After a bit of mucking around, I essentially did just that--copy
NavigatorLabel's behavior, but with a PageableListView instead of a
DataTable. To do so I abandoned my separate first/last/total components in
favor of a simple constructed String: "1-10 of 100". The code looks
something like this:
what i meant was see how it constructs the message. it overrides
model.getobject(), which is called everytime the component needs to render.
you should read the models page on the wiki.
-igor
On 5/22/07, Tremelune <[EMAIL PROTECTED]> wrote:
Is there an easy way to use this with an ordered li
Is there an easy way to use this with an ordered list as opposed to a
DataTable? It seems roundabout to define IColumn array to a single-columned,
unlabeled list.
I'm trying to determine if a (possibly overcomplicated) DataTable with a
NavigatorLabel is a better solution than the onAjaxUpdate() t
Okay, I've got the container being passed into the target onAjaxUpdate()...Is
there a method that then gets called on objects passed into the target? I'm
having trouble understanding where I would change the data from "1-3" to
"4-6" (from my previous example).
By "viewed range" I simply mean that
see how NavigatorLabel in extensions works
-igor
On 5/22/07, Tremelune <[EMAIL PROTECTED]> wrote:
I've got an ajax pager in a custom panel. Part of this panel displays the
page range (ie, "Viewing items 11-20 of 500"). The panel is constructed
once
when the page is loaded:
public AwesomeP
ht-
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Im Auftrag
> von Tremelune
> Gesendet: Dienstag, 22. Mai 2007 18:06
> An: wicket-user@lists.sourceforge.net
> Betreff: Re: [Wicket-user] Updating item range for ajax pager
>
>
> That appears to be a timer-base
That appears to be a timer-based solution. I would like the panel to update
once and only once when a user clicks on a paging link. Also, to clarify,
the list is getting updated by the "click", but the viewed range is not. So
you have this:
---
* George Michael
* Ezra Lusk
* T-Bone
Viewing items
t; An: wicket-user@lists.sourceforge.net
> Betreff: [Wicket-user] Updating item range for ajax pager
>
>
> I've got an ajax pager in a custom panel. Part of this panel
> displays the page range (ie, "Viewing items 11-20 of 500").
> The panel is constructed once when the page
I've got an ajax pager in a custom panel. Part of this panel displays the
page range (ie, "Viewing items 11-20 of 500"). The panel is constructed once
when the page is loaded:
public AwesomePanel(final String id) {
...
container.add(pageListView);
container.add(new PagerPanel("page