History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: NXP-494
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Thierry Delprat
Reporter: Solen Guitter
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Google issue summary
Nuxeo Enterprise Platform

Reviewed notes: update versions not displayed

Created: 19/01/07 17:10   Updated: 23/04/07 14:07
Component/s: None
Affects Version/s: None
Fix Version/s: 5.1 M2

Time Tracking:
Not Specified

Environment: 01/19 build

Resolution Date: 23/04/07 11:45
Require Callback: No
Participants: George Lefter, Solen Guitter and Thierry Delprat
Date of First Response: 31/01/07 19:58
Tags:


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

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
George Lefter - 31/01/07 19:58
fixed, but there is still a problem:
If you select Approbation, try to submit, it will fail, as LifeCycleState is mandatory.
If you then select Serial or Parale, you get an error..

George Lefter - 31/01/07 20:35
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="myInput" />
    </a4j:outputPanel><br />

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

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


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="myInput" />
    </a4j:outputPanel>
  <br />

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

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

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$1@1c71d5a) 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.

George Lefter - 05/02/07 16:20
not for 5.0, as discussed with Eric.