Hi,

The answer to your first problem is that you might have a checkbox not
bind to a model value, so it simply renders as previous.

With respect to the second problem, you can use the attributes in the
<x:dataScroller> tag:

                    <x:dataScroller id="scroll_2"
                            for="data"
                            rowsCountVar="rowsCount"
                            displayedRowsCountVar="displayedRowsCountVar"
                            firstRowIndexVar="firstRowIndex"
                            lastRowIndexVar="lastRowIndex"
                            pageCountVar="pageCount"
                            pageIndexVar="pageIndex"
                            >
                        <h:outputFormat
value="#{example_messages['dataScroller_pages']}"
styleClass="standard" >
                            <f:param value="#{rowsCount}" />
                            <f:param value="#{displayedRowsCountVar}" />
                            <f:param value="#{firstRowIndex}" />
                            <f:param value="#{lastRowIndex}" />
                            <f:param value="#{pageIndex}" />
                            <f:param value="#{pageCount}" />
                        </h:outputFormat>
                    </x:dataScroller>

Take a look at webapp examples from MyFaces ;-)

On 4/13/05, kin <[EMAIL PROTECTED]> wrote:
> Hi
> 
>     I'm new to JSF and I'm trying MyFaces. I just made a page with
> x:dataTable and x:scroller but I'm having some troubles.
> 
>     The first one is that x:dataTable has a column with checkBox. If I
> check a box, then all the same rows in all the diff. pages are going to
> be checked. How to solve that?
> 
>     The second is that I need to get the page index in my backing bean.
> I thought binding it as pageIndexVar="#{bean.property}" would solve my
> problem, but it's not working.
> 
>     Any suggestions?
> 
> Thanks, lkin.
>

Reply via email to