| From | Sent On | Attachments |
|---|---|---|
| Bjørn T Johansen | Aug 28, 2005 12:53 pm | |
| Craig McClanahan | Aug 28, 2005 3:15 pm | |
| Bjørn T Johansen | Aug 28, 2005 3:35 pm | |
| Craig McClanahan | Aug 28, 2005 3:52 pm | |
| Bjørn T Johansen | Aug 28, 2005 11:38 pm | |
| Wendy Smoak | Aug 28, 2005 11:44 pm | |
| Craig McClanahan | Aug 28, 2005 11:54 pm | |
| Bjørn T Johansen | Aug 29, 2005 12:12 am | |
| Bjørn T Johansen | Aug 29, 2005 12:29 am |
| Subject: | Re: [SHALE] prerender() never called..? | |
|---|---|---|
| From: | Craig McClanahan (crai...@gmail.com) | |
| Date: | Aug 28, 2005 3:15:47 pm | |
| List: | org.apache.struts.user | |
On 8/28/05, Bjørn T Johansen <bt...@havleik.no> wrote:
I have a managed bean that implements ViewController and I also have changed the
view-handler to ShaleViewHandler, but none of the methods in the ViewController
is called...
What am I missing?
The most common cause for this is having a managed bean name (for your ViewController) that does not match the name mapping rules that Shale requires. There is a pluggable interface for this, but the default rules take a context relative view id, and convert it to a corresponding managed bean name like this: * Strip the leading "/" character * Strip the trailing ".jsp" (or whatever) extension * Convert any remaining "/" characters to "$" characters.
Thus, if you have a view named "/mainmenu.jsp", the corresponding view controller managed bean *must* be named "mainmenu". Likewise, a vew named "/customer/details.jsp" would be mapped to managed bean name "customer$details".
Craig
Regards,
BTJ
--
-----------------------------------------------------------------------------------------------
Bjørn T Johansen
bt...@havleik.no
-----------------------------------------------------------------------------------------------
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic
messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
-----------------------------------------------------------------------------------------------





