spring-webflow icon indicating copy to clipboard operation
spring-webflow copied to clipboard

Please, reopen SWF-966 [SWF-1212]

Open spring-operator opened this issue 15 years ago • 1 comments

Michał Bartczak opened SWF-1212 and commented


This issue is a sub-task of #1664

1 votes, 0 watchers

spring-operator avatar Mar 16 '10 21:03 spring-operator

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?

spring-operator avatar Mar 16 '10 21:03 spring-operator