4 Replies Latest reply on Jul 15, 2008 6:53 PM by jazir1979

    ScrollableDataTable - input fields lose their value after AJ

    jazir1979

      Hi all,

      We have a scrollabledatatable with input boxes in some columns. If the user enters values into these and then scrolls further down, the AJAX scrolling triggers, and if they scroll back up, all of their work is lost.

      Is this a bug, or can I do something to fix it?

      I saw a similar post about the datascroller which mentioned setting ajaxSingle="false", but scrollabledatatable does not have the ajaxSingle property.

      Here's our code-

      <rich:scrollableDataTable id="planningProgressResults" var="ind"
       value="#{maintainWorkOrdersDetails.progressPercentages}"
       rows="10" height="200px" width="95%" styleClass="resultsTable"
       sortMode="single" first="0" frozenColCount="1">
       <rich:column width="100">
       <h:outputText value="#{ind.progressIndicator.name}"/>
       </rich:column>
       <rich:column width="50">
       <h:selectBooleanCheckbox styleClass="checkbox"
       label="#{labels.required}" id="indRequired"
       value="#{ind.required}"/>
       </rich:column>
       <rich:column width="150">
       <h:outputText value="#{ind.percentComplete}">
       <f:convertNumber type="number" maxFractionDigits="2"
       minFractionDigits="2"/>
       </h:outputText>
       <h:inputText label="#{labels.percentComplete}" id="indPercent"
       rendered="#{maintainWorkOrdersDetails.editMode}"
       value="#{ind.percentComplete}">
       <f:validateDoubleRange minimum="00.00"
       maximum="100.00"/>
       </h:inputText>
       </rich:column>
      </rich:scrollableDataTable>
      


      thanks very much!
      Daniel.