try to set <t:dataScroller immediate="false"
regards,
Thomas
On Wed, Aug 6, 2008 at 11:34 AM, Partha <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> maybe someone could help me with this.
> I have a t:dataTable and one column is displaying checkboxes which
> values are bound to a backing bean property.
> So when I now check a checkbox and then use dataScroller to scroll
> to the next page, the value of the checkbox is not updated in the managed
> bean.
> With commandSortHeader the value remains.
>
> 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="false" rows="10">
>
>
> <t:column id="column20">
> <t:selectBooleanCheckbox
> id="checkbox1" readonly="false"
>
> styleClass="selectBooleanCheckbox"
>
> value="#{dataItem.selected}" immediate="true" rendered="true"
> onchange="return
> checkedB(this,'#{dataItem.name}');">
> </t:selectBooleanCheckbox>
> </t:column>
>
> </t:panelGrid></p>
>
> <p><t:panelGrid id="pp2" columns="1"
> styleClass="scrollerTable2"
> columnClasses="standardTable_ColumnCentered"
>
> rendered="#{pc_PeopleFinderPortletView.showDataScroller}">
> <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.showDataScroller}">
> <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.showDataScroller}">
> <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>
>
> </hx:scriptCollector>
> </h:form>
>
>
>
> Please help me.
>
>
> Best rgds
> Partha
> --
> View this message in context:
> http://www.nabble.com/dataScroller%2C-checkbox-values-not-updated-tp18847497p18847497.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>