This content has been marked as final.
Show 6 replies
-
1. Re: Pagination problem
vicky123 Feb 6, 2008 2:07 PM (in response to vicky123)page links are generated properly
varible 'link' is 0 when i click on the link.<h:panelGrid columns="10"> <c:forEach items="#{userManage.pageLinks}" var="link"> <s:link action="#{userManage.loadSelectedPage(link)}" value="#{link}"> </s:link> </c:forEach> </h:panelGrid>
-
2. Re: Pagination problem
dexjam Feb 7, 2008 3:15 AM (in response to vicky123)You problably may want to try <ui:repeat />. As far as i can remember there are issues with forEach ...
-
3. Re: Pagination problem
vicky123 Feb 7, 2008 4:50 AM (in response to vicky123)You problably may want to try <ui:repeat />. As far as i can remember there are issues with forEach ...
Same problem with <ui:repeat>...
Can't I have an arrayList of Integer?
Is it required to have an arrayList of beans?
Thanks for the reply -
4. Re: Pagination problem
vicky123 Feb 7, 2008 6:53 AM (in response to vicky123)Can anyone help me solve this problem?
-
5. Re: Pagination problem
shane.bryzak Feb 7, 2008 8:07 AM (in response to vicky123)When invoking your method, "link" will be evaluated against the current contextual state, not the transient value that it was assigned during the rendering of your page. An alternative is to instead use a request param (or a page param) and write your link like this:
<s:link action="#{userManage.loadSelectedPage}" value="#{link}"> <f:param name="page" value="#{link}"/> </s:link>
-
6. Re: Pagination problem
vicky123 Feb 7, 2008 10:24 AM (in response to vicky123)Thanks shane
It worked.