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.

Reply via email to