Please, reopen SWF-966 [SWF-1212]
Michał Bartczak commented
Comment pasted from parent task:
If possible, I'd like to reopen that bug. It had happened to me also in following example:
<view-state id="editMotherView" view="/user/edit/mother" model="currentMotherChild"> <transition on="selectEarInsertion" to="addEarInsertionView"> <evaluate expression="functions.echo('works')"/> <evaluate expression="requestParameters.currentEarInsertionIndex" result="currentMotherChild.selectedChild.selectedEarInsertionRow"/> <evaluate expression="functions.echo('doesNotWork')"/> </transition> </view-state>
Ends up with just first echo being executed (I know, bad kind of debug...). Second echo is never executed.
My bean looks like:
public class Child implements Serializable, Auditable, Comparable<Child> {
// snip
@Transient
private int selectedEarInsertionRow = -1;
public int getSelectedEarInsertionRow() { return selectedEarInsertionRow; }
public void setSelectedEarInsertionRow(int selectedEarInsertionRow) { this.selectedEarInsertionRow = selectedEarInsertionRow; } }
When I change transition to directly call setter, it works again.
Also, I have the following setting:
<context-param> <param-name>org.apache.myfaces.EXPRESSION_FACTORY</param-name> <param-value>org.jboss.el.ExpressionFactoryImpl</param-value> </context-param> Maybe that is a hint?