[richfaces-issues] [JBoss JIRA] Resolved: (RF-1048) datascroller: improvement in scroller after the table changes
Nick Belaevski (JIRA)
jira-events at lists.jboss.org
Mon Oct 22 09:43:04 EDT 2007
[ http://jira.jboss.com/jira/browse/RF-1048?page=all ]
Nick Belaevski resolved RF-1048.
--------------------------------
Resolution: Duplicate Issue
> datascroller: improvement in scroller after the table changes
> -------------------------------------------------------------
>
> Key: RF-1048
> URL: http://jira.jboss.com/jira/browse/RF-1048
> Project: RichFaces
> Issue Type: Bug
> Affects Versions: 3.1.1
> Reporter: Ilya Shaikovsky
> Assigned To: Alexej Kushunin
> Fix For: 3.2.0
>
>
> <rich:dataTable value="#{capitalsBean.capitals}" var="cap" rows="5" bgcolor="black" rowKeyVar="rowKey" binding="#{capitalsBean.table}" id="table">
> <rich:column>
> <a4j:outputPanel id="row1" layout="none">
> <h:inputText value="#{cap.name}" rendered="#{cap.checked}" id="textrow1"></h:inputText>
> <h:outputText value="#{cap.name}" rendered="#{not cap.checked}" id="outrow1"></h:outputText>
> </a4j:outputPanel>
> </rich:column>
> <rich:column>
> <a4j:outputPanel id="row2" layout="none">
> <h:inputText value="#{cap.state}" rendered="#{cap.checked}" id="textrow2"></h:inputText>
> <h:outputText value="#{cap.state}" rendered="#{not cap.checked}" id="outrow2">
> <rich:toolTip>
> <h:outputText value="#{cap.timeZone}"></h:outputText>
> </rich:toolTip>
> </h:outputText>
> </a4j:outputPanel>
> </rich:column>
> <ui:remove>
> <rich:column>
> <h:selectBooleanCheckbox value="#{cap.checked}">
> <a4j:support event="onclick" reRender="textrow1,outrow1,textrow2,outrow2">
> <a4j:ajaxListener type="org.ajax4jsf.ajax.ForceRender"></a4j:ajaxListener>
> </a4j:support>
> </h:selectBooleanCheckbox>
> </rich:column>
> </ui:remove>
> <rich:column>
> <h:commandButton action="#{capitalsBean.delete}" value="delete" reRender="table,scroller"/>
> </rich:column>
> <f:facet name="footer">
> <rich:datascroller ajaxSingle="false" id="scroller"></rich:datascroller>
> </f:facet>
> </rich:dataTable>
> On the last table page I have one row. After It deletion - table remains stays on the last page. So no elements but the only scroller is rendered. As I think scroller should automatically be switched to last-1 row and stop renders last page link at all.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list