FAQ
Greetings,

I'm trying to use Shale's ViewController in a managed bean to execute
some code when the bean first loads. I'm using a nightly build of
shale-core and shale-tiger from 20060221.

It all seems really simple but I can't get it to work. None of my
ViewController methods are ever called (init(), prerender(), etc...).
I've added & mapped the shale filter in my web.xml, added the chain
listener to my web.xml, added all the dependant jars, and added a
dummy chain-config and dialog-config to META-INF.
My managed bean has the same name as my jsp (the jsp begins with a
lower case letter and the bean an upper case letter but changing that
had no effect).

What else can I do? I don't know if my problem is related to MyFaces
or to Shale.

Thanks,
David

Search Discussions

  • James Reynolds at Apr 13, 2006 at 5:13 pm
    From your message I can see that you understand the naming convention
    for Managed-bean-name file, but are you including the entire path to the
    file? If you have webroot/myFolder/myFile.jsp, then the name is
    myFolder$myFile.

    Just checking.

    -----Original Message-----
    From: David Miller
    Sent: Thursday, April 13, 2006 11:08 AM
    To: users@myfaces.apache.org
    Subject: Shale ViewController and MyFaces

    Greetings,

    I'm trying to use Shale's ViewController in a managed bean to execute
    some code when the bean first loads. I'm using a nightly build of
    shale-core and shale-tiger from 20060221.

    It all seems really simple but I can't get it to work. None of my
    ViewController methods are ever called (init(), prerender(), etc...).
    I've added & mapped the shale filter in my web.xml, added the chain
    listener to my web.xml, added all the dependant jars, and added a dummy
    chain-config and dialog-config to META-INF.
    My managed bean has the same name as my jsp (the jsp begins with a lower
    case letter and the bean an upper case letter but changing that had no
    effect).

    What else can I do? I don't know if my problem is related to MyFaces or
    to Shale.

    Thanks,
    David
  • David Miller at Apr 13, 2006 at 5:25 pm
    HOT DOG!
    Thanks James :)
    On 4/13/06, James Reynolds wrote:

    From your message I can see that you understand the naming convention
    for Managed-bean-name file, but are you including the entire path to the
    file? If you have webroot/myFolder/myFile.jsp, then the name is
    myFolder$myFile.

    Just checking.

    -----Original Message-----
    From: David Miller
    Sent: Thursday, April 13, 2006 11:08 AM
    To: users@myfaces.apache.org
    Subject: Shale ViewController and MyFaces

    Greetings,

    I'm trying to use Shale's ViewController in a managed bean to execute
    some code when the bean first loads. I'm using a nightly build of
    shale-core and shale-tiger from 20060221.

    It all seems really simple but I can't get it to work. None of my
    ViewController methods are ever called (init(), prerender(), etc...).
    I've added & mapped the shale filter in my web.xml, added the chain
    listener to my web.xml, added all the dependant jars, and added a dummy
    chain-config and dialog-config to META-INF.
    My managed bean has the same name as my jsp (the jsp begins with a lower
    case letter and the bean an upper case letter but changing that had no
    effect).

    What else can I do? I don't know if my problem is related to MyFaces or
    to Shale.

    Thanks,
    David
  • Matthias Wessendorf at Apr 13, 2006 at 7:45 pm
    It also possible to change that... for instance, when *bound* to a
    specific tool ([1])

    [1] http://tinyurl.com/ghr79


    On 4/13/06, David Miller wrote:
    HOT DOG!
    Thanks James :)
    On 4/13/06, James Reynolds wrote:

    From your message I can see that you understand the naming convention
    for Managed-bean-name file, but are you including the entire path to the
    file? If you have webroot/myFolder/myFile.jsp, then the name is
    myFolder$myFile.

    Just checking.

    -----Original Message-----
    From: David Miller
    Sent: Thursday, April 13, 2006 11:08 AM
    To: users@myfaces.apache.org
    Subject: Shale ViewController and MyFaces

    Greetings,

    I'm trying to use Shale's ViewController in a managed bean to execute
    some code when the bean first loads. I'm using a nightly build of
    shale-core and shale-tiger from 20060221.

    It all seems really simple but I can't get it to work. None of my
    ViewController methods are ever called (init(), prerender(), etc...).
    I've added & mapped the shale filter in my web.xml, added the chain
    listener to my web.xml, added all the dependant jars, and added a dummy
    chain-config and dialog-config to META-INF.
    My managed bean has the same name as my jsp (the jsp begins with a lower
    case letter and the bean an upper case letter but changing that had no
    effect).

    What else can I do? I don't know if my problem is related to MyFaces or
    to Shale.

    Thanks,
    David

    --
    Matthias Wessendorf
    Zülpicher Wall 12, 239
    50674 Köln
    http://www.wessendorf.net
    mwessendorf-at-gmail-dot-com

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupusers @
categoriesmyfaces
postedApr 13, '06 at 5:08p
activeApr 13, '06 at 7:45p
posts4
users3
websitemyfaces.apache.org

People

Translate

site design / logo © 2018 Grokbase