Hi,

a small example:

<h:form id="myForm">
<h:selectOneMenu id="selectMenu" value="#{myBean.menuValue}" valueChangeListener="#{myBean.menuValueChangedListener}">
       <f:selectItem itemValue="true" itemLabel="Yes"/>
       <f:selectItem itemValue="false" itemLabel="No"/>
       <f:ajax event="change" render="output"/>
   </h:selectOneMenu>
   <h:outputText id="output" value="#{myBean.menuValue}"/>
   <h:commandButton action="action"/>
</h:form>

Switching from no to yes works, but switching from yes to no causes the following error messages in browser (firefox) and no request is send to server:

clientError-TypeError-MyFaces ERROR:Affected Class: myfaces._impl.xhrCore._AjaxUtils
Affected Method: encodeSubmittableFields
Error name: TypeError
Error message: subBuf is undefined
Error description: undefined
Error number: undefined
Error line number: 3380
- Note, this message is only sent, because project stage is development and no other error listeners are registered.

The message in IE8:

lientError-TypeError-MyFaces ERROR:Affected Class: myfaces._impl.xhrCore._AjaxUtils
Affected Method: encodeSubmittableFields
Error name: TypeError
Error message: 'undefined' ist Null oder kein Object
Error description: 'undefined' ist Null oder kein Object
Error number: -2146823281
Error line number: undefined
- Note, this message is only sent, because project stage is development and no other error listeners are registered.

I tried to use boolean, String an enum Types for Value. But always the same error.

Any ideas?

Thx,
regards Marcus

Reply via email to