rich:dataTable input values problem with rich:datascroller
spiritfox26 Sep 6, 2010 11:28 AMI have this problem, if i insert values in Screen Order input text (example 1 (id 517) , 2 (id 412), 3 (id 420), etc) but when i'm change to page 2 with scroller, the values of intput text are lost. Anyone have an idea?
The code is:
<rich:dataTable id="items" value="#{dominioBean.valoresModel}" var="val" rows="9">
<rich:column>
<f:facet name="header">
<h:outputText value="#{msg.idTipoAtributoLabel}"/>
</f:facet>
<h:outputText value="#{val.idValor}"/>
</rich:column>
<rich:column>
<f:facet name="header">
<h:outputText value="#{msg.nomTipoAtributoLabel}"/>
</f:facet>
<h:inputText id="idValor" value="#{val.valor}"/>
</rich:column>
<rich:column>
<f:facet name="header">
<h:outputText value="#{msg.ordenPantallaLabel}"/>
</f:facet>
<h:inputText id="idOrdenPantalla" value="#{val.ordenPantalla}"/>
</rich:column>
<rich:column>
<f:facet name="header">
</f:facet>
<a4j:commandLink id="removeValor" reRender="dominioForm" action="#{dominioBean.removeValor}" onclick="if (!confirm(document.getElementById('msgEliminar').value)) return false;">
<h:graphicImage value="/images/bt_delete.png" alt="#{msg.removeLabel}" />
</a4j:commandLink>
</rich:column>
</rich:dataTable>
<rich:datascroller id="scroll" for="items"/>
<rich:dataTable id="items" value="#{dominioBean.valoresModel}" var="val" rows="9"> <rich:column> <f:facet name="header"> <h:outputText value="#{msg.idTipoAtributoLabel}"/> </f:facet> <h:outputText value="#{val.idValor}"/> </rich:column> <rich:column> <f:facet name="header"> <h:outputText value="#{msg.nomTipoAtributoLabel}"/> </f:facet> <h:inputText id="idValor" value="#{val.valor}"/> </rich:column> <rich:column> <f:facet name="header"> <h:outputText value="#{msg.ordenPantallaLabel}"/> </f:facet> <h:inputText id="idOrdenPantalla" value="#{val.ordenPantalla}"/> </rich:column> <rich:column> <f:facet name="header"> </f:facet> <a4j:commandLink id="removeValor" reRender="dominioForm" action="#{dominioBean.removeValor}" onclick="if (!confirm(document.getElementById('msgEliminar').value)) return false;"> <h:graphicImage value="/images/bt_delete.png" alt="#{msg.removeLabel}" /> </a4j:commandLink> </rich:column> </rich:dataTable> <rich:datascroller id="scroll" for="items"/>