Written actionhandler but can't set value
I have code that writes out the following when used as a tag
<sj4j:updateVariable name="destination" trueValue="home.jsf"
falseValue="task.jsf?id='#{nid}'" condition="#{nid ==
'0'}" />
nameValue = destination ( String.class )
trueValue = home.jsf (String.class)
falseValue = task.jsf?id='580' (..)
conditionValue = false (...)
NOW, I then do a
if( conditionValue.toString().equals("true") )
this.nameExpression.setValue(context, trueValue.toString() );
else
this.nameExpression.setValue(context, falseValue.toString() );
in my tag action listener.
I get the following error when the tag is executed.
Error updating variable: An exception of type
"javax.el.PropertyNotWriteableException" was thrown ...name="destination:
Illegal Syntax for Set Operation.
Question is how to set the variable destination in the action listener?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186080#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...