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

    rich:dataTable with h:commandButton and jboss EL

    gjeudy

      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"
      
                               value="#{relPkg.refReleasePackageItems}"
      
                               rendered="#{not empty relPkg.refReleasePackageItems}">
      
                               <rich:column sortBy="#{releasePackageItem.referenceDomain.domainName}" sortOrder="ASCENDING">
      
                                    <f:facet name="header">
      
                                         <h:outputText value="Domain name" />
      
                                    </f:facet>
      
                                    <h:outputText
      
                                         value="#{releasePackageItem.referenceDomain.domainName}" />
      
                               </rich:column>
      
                               <rich:column sortBy="#{releasePackageItem.referenceDomain.domainDescription}">
      
                                    <f:facet name="header">
      
                                         <h:outputText value="Description" />
      
                                    </f:facet>
      
                                    <h:outputText id="description" value="#{releasePackageItem.referenceDomain.domainDescription}" />
      
                               </rich:column>
      
                               <rich:column sortBy="#{releasePackageItem.referenceDomain.typeCode}">
      
                                    <f:facet name="header">
      
                                         <h:outputText value="Type Code" />
      
                                    </f:facet>
      
                                    <h:outputText id="typeCode" value="#{releasePackageItem.referenceDomain.typeCode}"  />
      
                               </rich:column>
      
                               <rich:column>
      
                                    <f:facet name="header">
      
                                         <h:outputText value="Actions" />
      
                                    </f:facet>
      
                                    <h:commandButton
      
                                         action="#{domInstanceAdminAction.manageDomainInstances(releasePackageItem.referenceDomain)}"
      
                                         value="Manage Domain Instances" />
      
                               </rich:column>
      
                          </rich:dataTable>
      
                     </h:form>



      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.

        • 1. Re: rich:dataTable with h:commandButton and jboss EL
          gjeudy

          After some testing it turns out the problem has nothing todo with JSF core tags versus richfaces tags but has to do with running jboss in debug mode.


          Now I am completely at a loss. I'm using JBoss 4.2.2 AS, EclipseIDE 3.3, when I run in debug mode (dont even need to set a breakpoint) the problem occurs, when I run in normal mode the problem disappears, this is consistent and very reproducable.


          Are there any known issues with the debug mode ?


          Regards,
          -Guillaume

          • 2. Re: rich:dataTable with h:commandButton and jboss EL
            gjeudy

            Apologies for spamming this forum with this problem.


            Removing all breakpoints and restarting eclipseIDE seemed to have cured the problem.


            I hope it can help somebody else hitting similar issues,


            Thanks,
            -Guillaume