myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Partha <parthat...@gmail.com>
Subject Issue with checkbox when Datascroller is used
Date Tue, 29 Jul 2008 05:10:07 GMT

HI there,

I have implemented pagination using datascroller and I have a checkbox for
each record on the page.
10 records are displayed at a time.The checkbox value is bound to a backing
bean getter and setter properties.
When the user checks the box for a record and 
clicks on the nextpage in the pagination,the checked value of the checkbox
is not 
retained in the backing bean.

Please find the code below:


<p><t:panelGrid id="mainPanel"
				rendered="#{pc_PeopleFinderPortletView.showData}" >
				<t:dataTable id="userData"
					binding="#{pc_PeopleFinderPortletView.dataTable}"
					value="#{pc_PeopleFinderPortletView.pagedListDataModel}" var="dataItem"
					width="100%" border="0" styleClass="scrollerTable"
					headerClass="standardTable_Header"
					footerClass="standardTable_Header"
					rowClasses="standardTable_Row1,standardTable_Row2"
				
columnClasses="standardTable_Column,standardTable_ColumnCentered,standardTable_Column"
					preserveDataModel="true" rows="10">

					
					<t:column id="column20">
						<t:selectBooleanCheckbox id="checkbox1"
							styleClass="selectBooleanCheckbox" value="#{dataItem.selected}">
						</t:selectBooleanCheckbox>
					</t:column>
	</t:dataTable>

			</t:panelGrid></p>

<p><t:panelGrid id="pp2" columns="1" styleClass="scrollerTable2"
				columnClasses="standardTable_ColumnCentered"
				rendered="#{pc_PeopleFinderPortletView.showData}">
				<t:dataScroller id="scroll_1" for="userData" fastStep="10"
					pageCountVar="pageCount" pageIndexVar="pageIndex"
					styleClass="scroller" paginator="true" paginatorMaxPages="9"
					paginatorTableClass="paginator"
					paginatorActiveColumnStyle="font-weight:bold;" immediate="true"
					actionListener="#{pc_PeopleFinderPortletView.scrollerAction}"
					rendered="#{pc_PeopleFinderPortletView.showData}">
					<f:facet name="first">
						<t:graphicImage url="images/arrow-first.gif" border="1" />
					</f:facet>
					<f:facet name="last">
						<t:graphicImage url="images/arrow-last.gif" border="1" />
					</f:facet>
					<f:facet name="previous">
						<t:graphicImage url="images/arrow-previous.gif" border="1" />
					</f:facet>
					<f:facet name="next">
						<t:graphicImage url="images/arrow-next.gif" border="1" />
					</f:facet>
					<f:facet name="fastforward">
						<t:graphicImage url="images/arrow-ff.gif" border="1" />
					</f:facet>
					<f:facet name="fastrewind">
						<t:graphicImage url="images/arrow-fr.gif" border="1" />
					</f:facet>
				</t:dataScroller>
				<t:dataScroller id="scroll_2" for="userData"
					rowsCountVar="rowsCount"
					displayedRowsCountVar="displayedRowsCountVar"
					firstRowIndexVar="firstRowIndex" lastRowIndexVar="lastRowIndex"
					pageCountVar="pageCount" immediate="true" pageIndexVar="pageIndex"
					rendered="#{pc_PeopleFinderPortletView.showData}" >
					<h:outputText id="pagemsg10" value="#{firstRowIndex}"></h:outputText>
					<h:outputText id="pagemsg11" value="  -  "></h:outputText>
					<h:outputText id="pagemsg12" value="#{lastRowIndex}"></h:outputText>
					<h:outputText id="pagemsg13" value=" of "></h:outputText>
					<h:outputText id="pagemsg14" value="#{rowsCount}"></h:outputText>
					<h:outputText id="pagemsg15" value=" results"></h:outputText>
				</t:dataScroller>
			</t:panelGrid></p>


This is a weird issue.I am using tomahawk 1.1.6.
Please help me.

Thanks and Regards,
Partha.

-- 
View this message in context: http://www.nabble.com/Issue-with-checkbox-when-Datascroller-is-used-tp18705430p18705430.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Mime
View raw message