2 Replies Latest reply on May 5, 2008 9:06 PM by Guillaume Jeudy

    rich:dataTable with h:commandButton and jboss EL

    Guillaume Jeudy Master

      Hi, i'm using Seam 2.0.1 with richfaces 3.2.0. I am listing data using rich:dataTable with nested h:commandButton inside. The behavior of this seems unspecified, for example I click on a button at position 10 and I get the id value of position 23 merged with the string values of position 10? (data corruption). I have verified in debug mode and the backing data is not corrupted.

      I still haven't found a way to reproduce the issue in a consistent way. Heres my sample.

      <h:form id="releasePackageItemForm">
                          <h:outputText value="No Items to display"
                               rendered="#{empty relPkg.refReleasePackageItems}" />
                          <rich:dataTable var="releasePackageItem"
                               rendered="#{not empty relPkg.refReleasePackageItems}">
                               <rich:column sortBy="#{releasePackageItem.referenceDomain.domainName}" sortOrder="ASCENDING">
                                    <f:facet name="header">
                                         <h:outputText value="Domain name" />
                                         value="#{releasePackageItem.referenceDomain.domainName}" />
                               <rich:column sortBy="#{releasePackageItem.referenceDomain.domainDescription}">
                                    <f:facet name="header">
                                         <h:outputText value="Description" />
                                    <h:outputText id="description" value="#{releasePackageItem.referenceDomain.domainDescription}" />
                               <rich:column sortBy="#{releasePackageItem.referenceDomain.typeCode}">
                                    <f:facet name="header">
                                         <h:outputText value="Type Code" />
                                    <h:outputText id="typeCode" value="#{releasePackageItem.referenceDomain.typeCode}"  />
                                    <f:facet name="header">
                                         <h:outputText value="Actions" />
                                         value="Manage Domain Instances" />

      Is there any reported incompatibilities with the elements im using ? I consider upgrading h:form to a4j:form and h:commandButton to a4j:commandButton even though I don't need ajax functionality just to see if that can get rid of the problem.

      This problem only started to appear after upgrading to h:dataTable, h:column to their rich: counterparts.