Issue (View Online)

Key: NXP-494
Issue Type: Bug Bug
Status: In Progress In Progress
Priority: Minor Minor
Assignee: George Lefter
Reporter: Solen Guitter
Environment: 01/19 build

Operations

View all
View comments
View history
Reviewed notes: update versions not displayed 
Updated: 31/01/07 20:35   Created: 19/01/07 17:10  

The following comment has been added to this issue: [ Permlink ]

Author: George Lefter
Date: 31/01/07 20:35
Comment:
simple case description for the Ajax/Jsf problem:

This version works (with a textbox):

  <a4j:region renderRegionOnly="false">
  <h:selectOneRadio id="choose" value="#{bean.a}">
    <f:selectItems value="#{bean.map}" />
    <a4j:support ajaxSingle="true" event="onchange" reRender="ajaxPanel" />
  </h:selectOneRadio><br />
  </a4j:region>

    <a4j:outputPanel id="ajaxPanel">
      <h:inputText id="myInput" value="#{bean.b}" rendered="#{bean.a == 'blue'}"
        required="true" />
      <h:message for="" />
    </a4j:outputPanel><br />

  Mandatory field:
  <h:inputText value="#{bean.c}" required="true" /><br />

  <h:commandButton value="submit" action="" />


This version fails in some cases with a Converter exception for the radiobutton control.
(the only change is the use of radiobuttons instead of a textbox)


  <a4j:region renderRegionOnly="false">
  <h:selectOneRadio id="choose" value="#{bean.a}">
    <f:selectItems value="#{bean.map}" />
    <a4j:support ajaxSingle="true" event="onchange" reRender="ajaxPanel" />
  </h:selectOneRadio><br />
  </a4j:region>

    <a4j:outputPanel id="ajaxPanel">
      <h:selectOneRadio id="myInput" value="#{bean.b}" rendered="#{bean.a == 'blue'}"
        required="true">
        <f:selectItems value="#{bean.map2}" />
      </h:selectOneRadio>
      <h:message for="" />
    </a4j:outputPanel>
  <br />

  Mandatory field:
  <h:inputText value="#{bean.c}" required="true" /><br />

  <h:commandButton value="submit" action="" />

The exception is:
java.lang.IllegalArgumentException: Value is no String (class=org.apache.myfaces.shared_impl.renderkit.RendererUtils$1, value=org.apache.myfaces.shared_impl.renderkit.RendererUtils$[EMAIL PROTECTED]) and component myform:myInput with path: {Component-Path : [Class: org.ajax4jsf.framework.ajax.AjaxViewRoot,ViewId: /ajax.xhtml][Class: javax.faces.component.html.HtmlForm,Id: myform][Class: org.ajax4jsf.ajax.html.HtmlAjaxOutputPanel,Id: ajaxPanel][Class: javax.faces.component.html.HtmlSelectOneRadio,Id: myInput]} does not have a Converter

It looks like Jsf/Ajax tries to assign an invalid value (maybe a myfaces radiobutton control ?!) to the SelectOneRadio button.

Project: Nuxeo Enterprise Platform 5
Fix Versions: 5.0 Final

 Description   
After a review, the "update versions" field in the "Modify" tab of a note is not displayed.

This message was automatically generated by Atlassian JIRA Enterprise Edition, Version: 3.7.2-186 - Bug/feature request.
If you think it was sent incorrectly, contact one of this server's administrators.

_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to