myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jamie Cash (JIRA)" <myfaces-...@incubator.apache.org>
Subject [jira] Commented: (MYFACES-592) tomahawke SelectOneRadio in datatable no longer working
Date Wed, 21 Sep 2005 14:55:28 GMT
    [ http://issues.apache.org/jira/browse/MYFACES-592?page=comments#action_12330099 ] 

Jamie Cash commented on MYFACES-592:
------------------------------------

For clarification, the message is repeated for every row in the data table except for the
selected row. 

The full data table code is below:
[code]
<h:form id="searchResults" rendered="#{ClientSearchBean.hasSearchResults}">
 <h:dataTable id="unitholders" styleClass="table" rowClasses="tableLight" border="1" cellspacing="0"
headerClass="tableHeader" value="#{ClientSearchBean.searchResults}" var="client">
    <h:column>
      <f:facet name="header">
        <h:outputText value="#{bundle.label_select}"/>
      </f:facet>
      <t:selectOneRadio id="selectRadio" forceId="true" forceIdIndex="false" required="true"
value="#{ClientSearchBean.selectedExtClientId}">
        <f:selectItem itemValue="#{client.extClientId}" itemLabel=""/>
      </t:selectOneRadio>
    </h:column>
    <h:column>
      <f:facet name="header">
        <h:outputText value="#{bundle.label_extClientId}"/>
      </f:facet>
      <h:outputText value="#{client.extClientId}"/>
    </h:column>
    <h:column>
      <f:facet name="header">
        <h:outputText value="#{bundle.label_firstname}"/>
      </f:facet>
      <h:outputText value="#{client.firstName}" />
    </h:column>
    <h:column>
      <f:facet name="header">
        <h:outputText value="#{bundle.label_middleName}"/>
      </f:facet>
      <h:outputText value="#{client.middleName}"/>
    </h:column>
    <h:column>
      <f:facet name="header">
        <h:outputText value="#{bundle.label_surname}"/>
      </f:facet>
      <h:outputText value="#{client.surname}"/>
    </h:column>
    <h:column>
      <f:facet name="header">
        <h:outputText value="#{bundle.label_cltaddr01}"/>
      </f:facet>
      <h:outputText value="#{client.cltaddr01}"/>
    </h:column>
    <h:column>
      <f:facet name="header">
        <h:outputText value="#{bundle.label_postcode}"/>
      </f:facet>
      <h:outputText value="#{client.postCode}"/>
    </h:column>
    <h:column>
      <f:facet name="header">
        <h:outputText value="#{bundle.label_nino}"/>
      </f:facet>
      <h:outputText value="#{client.nino}"/>
    </h:column>
    <h:column>
      <f:facet name="header">
        <h:outputText value="#{bundle.label_dateOfBirth}"/>
      </f:facet>
      <h:outputText value="#{client.dateOfBirth}"/>
    </h:column>
    <h:column>
      <f:facet name="header">
        <h:outputText value="#{bundle.label_organisationName}"/>
      </f:facet>
      <h:outputText value="#{client.organisationName}"/>
    </h:column>
    <h:column>
      <f:facet name="header">
        <h:outputText value="#{bundle.label_sex}"/>
      </f:facet>
      <h:outputText value="#{client.sex}"/>
    </h:column>    
  </h:dataTable>
  
  <h:panelGrid columns="1">
	<h:commandButton id="select" styleClass="button" action="#{ClientSearchBean.setData}"
value="#{bundle.label_select}" />
  </h:panelGrid>
  
</h:form>
[/code]

> tomahawke SelectOneRadio in datatable no longer working
> -------------------------------------------------------
>
>          Key: MYFACES-592
>          URL: http://issues.apache.org/jira/browse/MYFACES-592
>      Project: MyFaces
>         Type: Bug
>   Components: Tomahawk
>     Versions: 1.1.0, Nightly Build
>  Environment: Tomcat 5.5 running under JBoss on Windows Server 2003
>     Reporter: Jamie Cash

>
> The tomahawke selectOneRadio (t:selectOneRadio previously x:selectOneRadio) in a datatable
no longer works correctly. On selection of an item and submission of the form a ('Validation
Error',  "{0}": Value is not a valid option') message is added to the messages.
> This worked correctly in myfaces 1.0.9 but not in the last nightly build.
> Below is a subset of my jsp that outputs the column:
> <h:column>
>   <f:facet name="header">
>     <h:outputText value="#{bundle.label_select}"/>
>   </f:facet>
>   <t:selectOneRadio id="selectRadio" forceId="true" forceIdIndex="false" required="true"
value="#{ClientSearchBean.selectedExtClientId}">
>     <f:selectItem itemValue="#{client.extClientId}" itemLabel=""/>
>   </t:selectOneRadio>
> </h:column>
> The 'value; points to a string value in the backing bean and the itemValue points to
the same string value in the Client domain object, of which the table is driven from.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message