chkal/pf-issue-test — Issue #73: Prettyfaces executes action before applying common JSF properties
Author: chkal
Created: 2012-03-06 07:28:57+00:00
State: open

Originally filed by **kkolyank...@gmail.com** on 2010-10-25T22:39:56

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

How to reproduce:
1. open JSF project with prettyfaces. Add to pretty-config.xml "pattern-url" tag with named parameter (value="/books_edit/#{id}"). Add to pretty-config.xml "action" tag with method-indicating expression (#{booksBean.prepare}). (see pretty-config-my.xml.png)
2. Add to view template parameter to bean property binding ().
3. launch application.

Expected:
"prepare" method will be executed before "setSelectedBookId".

Actual:
"prepare" method is executed after "setSelectedBookId".

I tried to use direct property binding in "pattern-url" tag of pretty-faces.xml (see "pretty-config.xml.png") and it works as expected, But it will be nice also to apply properties in "f:viewParam" before action execution=)

Source code of example project with this issue demo is attached.(comments in BooksBean.java:67, BooksBean.java:23)

javax.faces:jsf-impl:2.0.2-FCS
PrettyFaces 3.1.0
Tomcat 6.0.26