Re: problem with page devision in webwork 2.2.2
Philip Luppens <[email protected]>
| Newsgroups | gmane.comp.java.open-symphony.webwork |
|---|---|
| Message-ID | <9617959.1165310019676.JavaMail.os-j2ee@opensymphony01.managed.contegix.com> |
You cannot get this done in the view layer you mean ? Hmm, you might have to split it up like this:
[code]
<ww:if test="recordCount % pageSize == 0">
<ww:set name="pageNumber" value="%{recordCount / pageSize}"/>
</ww:if>
<ww:else>
<ww:set name="pageNumber" value="%{(recordCount / pageSize) + 1}"/>
</ww:else>
..
<ww:property value="#pageNumber"/>
[/code]
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=52153&messageID=105258#105258
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]