0

Common pagination component

asked 2012-08-03 02:56:04 +0800

saneera gravatar image saneera
24
http://saneera-yapa.blogs...

HI All

I am lokoking for a idea ,how to write common pagination component for my applicaition without specific to each object

can you guys tell how I am doing this with examples


Thanks

Daxter

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2012-09-13 14:31:26 +0800

jj gravatar image jj
638 3

Daxter,
Maybe you can elaborate more on your idea, but there is already a component called "paging" in ZK, which can be attached anywhere on your page.

link publish delete flag offensive edit

answered 2012-09-13 08:38:50 +0800

paowang gravatar image paowang
140 6

Maybe you can customize a component with paging feature in macro component:
http://books.zkoss.org/wiki/ZK%20Developer's%20Reference/UI%20Composing/Macro%20Component
In the template of such macro component, you can attach a separated Paging component to control change page:
http://books.zkoss.org/wiki/ZK%20Component%20Reference/Supplementary/Paging
Thus, we don't need to specify paging for each instance of such custom component.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2012-08-03 02:56:04 +0800

Seen: 99 times

Last updated: Sep 13 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More