Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.0-beta-2
-
None
-
JSF
Description
This code:
<h:form id="myForm">
<h:inputText value="#
<f:ajax render="#{myBean.bindingMyTest.clientId}" event="keyup"/>
</h:inputText>
<h:inputText id="myText" value="#{myBean.test}
" binding="#
{myBean.bindingMyTest}" />
</h:form>
produces java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Collection
while this works:
<h:form id="myForm">
<h:inputText value="#
<f:ajax render="myForm:myText" event="keyup"/>
</h:inputText>
<h:inputText id="myText" value="#{myBean.test}
"/>
</h:form>
On Mojarra both work fine. My guess is here's some problem with the special lifecycle of bindings properties.