In MyFaces 1.1.0, I had:
<h:inputHidden value="#{userForm.user.version}" id="version">
<f:convertNumber/>
</h:inputHidden>
In 1.1.1, I get the following error from this code:
[appfuse-jsf] ERROR [http-8080-Processor25] [/appfuse-jsf].log(674) | Cannot set
value for expression '#{userForm.user.version}' to a new value of type java.lan
g.Long
javax.faces.el.EvaluationException: Cannot set value for expression '#{userForm.
user.version}' to a new value of type java.lang.Long
at org.apache.myfaces.el.ValueBindingImpl.setValue(ValueBindingImpl.java
:304)
at javax.faces.component.UIInput.updateModel(UIInput.java:226)
at javax.faces.component.UIInput.processUpdates(UIInput.java:165)
at javax.faces.component.UIForm.processUpdates(UIForm.java:85)
at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.
java:428)
If I remove <f:convertNumber/> in 1.1.1, everything works fine:
<h:inputHidden value="#{userForm.user.version}" id="version"/>
Is this "as designed"?
Thanks,
Matt