-
1. Re: Execute arbitrary method upon specific page navigation
dhinojosa Sep 21, 2008 9:40 AM (in response to vk101)Why can't you use destination1.xhtml from source1.xhtml, destination2.xhtml from source2.xthml, etc... and then use facelets templating <ui:composition> <ui:include> to abstract away any duplication?
-
2. Re: Execute arbitrary method upon specific page navigation
vk101 Sep 21, 2008 6:47 PM (in response to vk101)A few reasons that I wouldn't want to do it that way are:
- to keep the number of artifacts to a minimum (based on the number of different navigation cases, I could be introducing tens or hundreds of destination.xhtml pages, if not more)
- for a bookmarkable, RESTful application where the location of the page matters, I may not want to introduce multiple destination pages when it really is ONE page (with very slight modifications), just because Seam doesn't allow it to be done programmatically
So based on your Seam knowledge, does the capability I mentioned in my original post not exist (to be able to execute an arbitrary method on page navigation)?
-
3. Re: Execute arbitrary method upon specific page navigation
luxspes Sep 22, 2008 5:23 AM (in response to vk101)And... did you tried with plain sending a diffent query string for each case?
destination.xhtml?do=something destination.xhtml?do=otherthing destination.xhtml?do=somethingelse
and read it with a @RequestParameter ?