Difference between revisions of "JSF Nice URL"
Jump to navigation
Jump to search
Line 15: | Line 15: | ||
It works fine. I have now (in Faces) : | It works fine. I have now (in Faces) : | ||
* | * ''server/faces/Home'' instead of ''server/faces/faces/HomePage.jsf'' | ||
* | * ''server/faces/Details/escidoc:6423'' instead of ''server/faces/faces/Details.jsf?item=escidoc:6423'' | ||
Now we have to decide which parameters have to be written in the URL. | Now we have to decide which parameters have to be written in the URL. | ||
For Faces I propose: | For Faces I propose: | ||
* ID of the person for | * ''Details view'' : ID of the person | ||
* ''Home page'' : current page, sort criterium (criteria? for R2), sort order. | |||
* ''Search Result'' : home page parameters + search parameters |
Revision as of 15:29, 10 June 2008
JSF and Nice URL[edit]
Possible solutions[edit]
- Using Ajax and JSF
- Phase listeners and get requests
- Pretty URL
- (from 16.03.2008) Blog entry
- Java Sun Forum
- Post and Redirect get pattern
Cons/Pros[edit]
Implementation[edit]
I tested the solution provided by : http://tuckey.org/urlrewrite/.
It works fine. I have now (in Faces) :
- server/faces/Home instead of server/faces/faces/HomePage.jsf
- server/faces/Details/escidoc:6423 instead of server/faces/faces/Details.jsf?item=escidoc:6423
Now we have to decide which parameters have to be written in the URL.
For Faces I propose:
- Details view : ID of the person
- Home page : current page, sort criterium (criteria? for R2), sort order.
- Search Result : home page parameters + search parameters