Hi Ken, don't know if I get it rigth but it seems you just need a list
with pagination and the content to be reloaded "dynamically" (with an
ajax request) when changing page ( = clicking on one of the pagination
links).

You could certainly go with JSON but I suggest you for such a thing to
have a component made like this:

== paginated list component ==

pagination_links

= content_list_component =

pagination_links

== end paginated list component ==

The content list component will retrieve its list probably using some
parameter bounded on the main component. (e.g.
getOrderList(getCustomerId()) where getCustomerId() is a parameter
bound on the super component.

When clicking on a pagination link (a DirectLink)   the paging
DirectLink listener will update this property the parameter is bounded
to and issue a

getRequestCycle().getResponseBuilder().updateComponent("content_list_component");
this way the list (and just the list) will be dinamically updated.

Using JSON might be a little bit faster but would definitely require
more javascript code.

Hope this can be of any help.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to