Hi Matt,
We had to get rid of some automatic coercion we were doing in 1.1.0 as
the TCK would fail with it in place. I suppose you're seeing the
results of this change.
If you take out the convertNumber converter, the inputHidden will
automatically convert dependent on the type of the backing bean value.
It should have done that under 1.1.0 as well, though. So I suppose
that it was overkill you added it under 1.1.0, and that overkill
didn't work anymore with 1.1.1.
regards,
Martin
On 3/31/06, Matt Raible <[EMAIL PROTECTED]> wrote:
> 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
>
--
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces