You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Dfr <df...@wm.ru> on 2007/05/21 22:24:19 UTC

Hello.
Im just interested why such approach doesnt work:
<t:dataTable var="item" value="#{ListBean.products}" 
first="#{param.first}"> .....

So when requested URL like: page.xhtml?first=100
dataTable displays first page.
Then i did following:

<t:dataTable var="item" value="#{ListBean.products}" 
first="#{ListBean.first}"> .....

and in faces-config.xml:
     <managed-bean>
         <managed-bean-name>ListBean</managed-bean-name>
...
         <managed-property>
             <property-name>first</property-name>
             <value>#{param.first}</value>
         </managed-property>

After this dataTable started to work just fine and page.xhtml?first=100 
started display records from 100th.

Really interesting why setting "first" attribute directly didnt the trick.