chkal/pf-issue-test — Issue #34: Navigation rule "pretty:" does not update URL
Author: chkal
Created: 2012-03-06 07:20:47+00:00
State: open

Originally filed by **markus.h...@gmail.com** on 2010-02-26T07:18:35

Google Code issue: http://code.google.com/p/prettyfaces/issues/detail?id=33

Hi Lincoln,

as discussed on JSF days in Vienna, here is the issue:
When you are using the same JSF action method (e.g. for a command button)
on different pages and a bean value in the URL, it would be very handy to
have a navigation rule that redirects to the currently displayes page and
generate the URL with the new value.
If you're using "pretty:" for this purpose, it just refreshes the page and
not the URL. Therefore you have to make a distinction in the action method
code on which page you currently are and give back the belonging full
navigation string "pretty:id" of the current page. It would be more
convient if you would just have to return "pretty:"

Best regards
Markus