Enrique
Thanks for answering.
I've got some doubts from your reply.
If I don't bind my checkbox how can I know in my backing bean
whether it's checked?
And about finding the page index where I'm in, I got the example
and it worked ok if I needed to display the value in my page, as the
example. But I'm wanting to get this value in my backing bean and this
is what I'm not getting. I'm sorry if I missed something from your
reply.
Thanks.
Enrique Medina escreveu:
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=""
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.
|
- Re: DataTable and Scroller kin
-