Rene,
 
If you are using SiteMesh, you don't have to go by the URL. for the decoration.  For example, I recently created and lightly tested a SiteMesh "decorator-mappers" which decorates based on the virtual host name.  So how does this help you?  Since SiteMesh is OSS and fully customizable, you could try another approach such as (off the top of my head):
 
Have each JSF page put a value String, bean, etc. into request scope.  SiteMesh only decorates the page AFTER it is complete so the JSF page will run, could put your String into request scope and SiteMesh could extract that String then pick a new decorator based on that String.  Viola!  No URL update needed.  Just have the mapper to a request.getAttribute("fakeURL") or whatever field you wish to call it.  Then add your mapper to the sitemesh.xml file under the "decorator-mapper" section.
 
Regards,
David
 
-----Original Message-----
From: Rene Guenther [mailto:[EMAIL PROTECTED]
Sent: Monday, August 08, 2005 11:42 AM
To: 'MyFaces Discussion'
Subject: AW: url has to change

Thanks, but this one I know. That’s why I wrote “must be a not – redirect navigation” ;-))

 

Rene

 


Von: Darren Hartford [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 8. August 2005 17:21
An: MyFaces Discussion
Betreff: RE: url has to change

 

Only solution I have found has been to modify your navigation.xml (JSC term, sure it somehow carries over to MyFaces) for each action to have a <redirect/>.  There are issues with Request-scope variables in that they disappear with this solution, but the only one I've found to-date.

 

=======

        <navigation-case>
            <from-outcome>Page1toPage2</from-outcome>
            <to-view-id>/Page2.jsp</to-view-id>
            <redirect/>
        </navigation-case>

=====

 

-D

 


From: Rene Guenther [mailto:[EMAIL PROTECTED]
Sent: Monday, August 08, 2005 11:14 AM
To: 'MyFaces Discussion'
Subject: url has to change

Hi,

 

I am using sitemesh. Sitemesh decorates my page depending on the URL. I got a page with a list, I press a button (must be a not – redirect navigation) and the URL doesn’t change. What can I do to get the “real” URL displayed?

 

Thanks

René

Reply via email to