7 Replies Latest reply on May 15, 2009 12:52 PM by asookazian

    couple of problems with RF 3.3.0.GA

    asookazian

      RF 3.3.0.GA
      Seam 2.0.2-FP

      plz reference my post here: https://jira.jboss.org/jira/browse/JBSEAM-4137

      so now the app is not crashing (no more java.lang.NoClassDefFoundError: org/apache/commons/beanutils/PropertyUtils) after the build.xml refactoring.

      Here are the issues I'm currently facing with rich:scrollableDataTable in a rich:modalPanel:

      1) sort does not work when I click column header (no exceptions). I do see the up/down arrow in the header after I click it, however. The data set sorting is not changing as per my expection.

      2) after I click the header, then close the modalPanel, then open the modalPanel again, the presentation of the dataTable is all messed up (misaligned and no headers). this is very strange as there are no exceptions in server.log again.

      Are these known issues? Here is my relevant code:

      <a4j:outputPanel id="opanel1">
       <rich:modalPanel id="mpanel1" width="475" height="300">
      
       <f:facet name="header">
       <h:panelGroup>
       <h:outputText
       value="Equipment History" />
       </h:panelGroup>
       </f:facet>
      
       <f:facet name="controls">
       <h:panelGroup>
       <h:graphicImage value="/img/close.png" id="hidelink1">
       <rich:componentControl for="mpanel1" attachTo="hidelink1" operation="hide" event="onclick"/>
       </h:graphicImage>
       </h:panelGroup>
       </f:facet>
      
       <s:div id="dataModalDiv">
      
       <a4j:form id="form1">
      
       <rich:scrollableDataTable id="equipmentHistoryMovementTable"
       frozenColCount="1"
       value="#{equipmentHistoryMovementList}"
       var="equipmentHistoryMovementBean"
       width="425px"
       height="200px"
       sortMode="single"
       rendered="#{equipmentHistoryMovementList.getRowCount() > 0}">
      
       <rich:column>
       <f:facet name="header">
       <h:outputText value="Account Number" />
       </f:facet>
       <h:outputText value="#{equipmentHistoryMovementBean.accountNumber}" />
       </rich:column>
       <rich:column>
       <f:facet name="header">
       <h:outputText value="Returned Date" />
       </f:facet>
       <h:outputText value="#{equipmentHistoryMovementBean.returnedDate}" >
       <s:convertDateTime pattern="MM-dd-yyyy"/>
       </h:outputText>
       </rich:column>
       <rich:column>
       <f:facet name="header">
       <h:outputText value="Return Reason Code" />
       </f:facet>
       <h:outputText value="#{equipmentHistoryMovementBean.returnReasonCode}" />
       </rich:column>
       <rich:column>
       <f:facet name="header">
       <h:outputText value="Employee Number" />
       </f:facet>
       <h:outputText value="#{equipmentHistoryMovementBean.employeeNumber}" />
       </rich:column>
       </rich:scrollableDataTable>
      
       <br />
       <br />
      
       <a4j:commandButton type="button"
       value="Close"
       onclick="Richfaces.hideModalPanel('mpanel1');"
       ajaxSingle="true"/>
      
       </a4j:form>
       </s:div>
      
       </rich:modalPanel>
       </a4j:outputPanel>


      I looked at the example for rich:scrollableDataTable on the RF live demo site and it doesn't look like you have to do anything special to enable sorting, etc. with this RF component.

      What is going on???