Re: Using same navigator on top and bottom of page.

2008-07-28 Thread Daniel Freitas
I will add the patch there if I ever come up with a good implementation. The problem is that there are so many things that can be customizable that it might be hard to come with a good, elegant solution. For example, the user might want to use images only, or text only, or image before a text (for

Re: Using same navigator on top and bottom of page.

2008-07-28 Thread Igor Vaynberg
create a patch and attach it to a jira issue is usually the best way. btw there is already an issue for something like this: https://issues.apache.org/jira/browse/WICKET-1735 -igor On Mon, Jul 28, 2008 at 3:01 PM, Daniel Freitas <[EMAIL PROTECTED]> wrote: > BTW. I'm trying to customize the Pagi

Re: Using same navigator on top and bottom of page.

2008-07-28 Thread Igor Vaynberg
no, wicket:id is not an html id, but in order for ajax to work you have to identify the elements. and since you are mapping one component to two html tags you need to somehow have two html ids, one for each tag... -igor On Mon, Jul 28, 2008 at 2:58 PM, Daniel Freitas <[EMAIL PROTECTED]> wrote: >

Re: Using same navigator on top and bottom of page.

2008-07-28 Thread Daniel Freitas
BTW. I'm trying to customize the PagingNavigator. If I come up with a good way to do it, how can I contribute to the project? Basically, I will try to let the user choose images or text for the first, previous, next and last links. Regards, 2008/7/28 Daniel Freitas <[EMAIL PROTECTED]> > I meant

Re: Using same navigator on top and bottom of page.

2008-07-28 Thread Daniel Freitas
I meant the wicket:id (which is not an html id right?). Anyways, I will just keep that in mind. Two components work as expected. 2008/7/28 Igor Vaynberg <[EMAIL PROTECTED]> > two html elements cannot have the same id within the same html document... > > -igor > > On Mon, Jul 28, 2008 at 1:55 PM,

Re: Using same navigator on top and bottom of page.

2008-07-28 Thread Igor Vaynberg
two html elements cannot have the same id within the same html document... -igor On Mon, Jul 28, 2008 at 1:55 PM, Daniel Freitas <[EMAIL PROTECTED]> wrote: > I don't. I expected it to be rendered twice with the same id ;). Which is > not possible, thus I had to create two components with two ids

Re: Using same navigator on top and bottom of page.

2008-07-28 Thread Daniel Freitas
I don't. I expected it to be rendered twice with the same id ;). Which is not possible, thus I had to create two components with two ids to make the navigator appear twice. Regards 2008/7/28 <[EMAIL PROTECTED]> > how would you expec the same component to render twice with different HTML > ids? >

Re: Using same navigator on top and bottom of page.

2008-07-28 Thread igor . vaynberg
how would you expec the same component to render twice with different HTML ids? -Igor On 7/28/08, Daniel Freitas <[EMAIL PROTECTED]> wrote: > With the following markup: > > > > > > >

Re: Using same navigator on top and bottom of page.

2008-07-28 Thread Daniel Freitas
With the following markup: It works ok with regular PaginNavigator or with this Ajax code: topPagingNavigator = new AjaxPagingNavigator("t

Re: Using same navigator on top and bottom of page.

2008-07-28 Thread Brill Pappin
From what i understand, you have the right code with two different components. Can you make a custom model that can handle the sync? - Brill On 28-Jul-08, at 3:01 PM, Daniel Freitas wrote: Hello guys. I searched the list for answers on this but couldn't find any. Is there a way to show a Pa

Re: Using same navigator on top and bottom of page.

2008-07-28 Thread Igor Vaynberg
try with regular paging navigator, it will most likely work. the problem is that because you are using ajaxpagingnavigator, when you click the top you do not redraw the bottom. you need to add that behavior yourself. -igor On Mon, Jul 28, 2008 at 12:01 PM, Daniel Freitas <[EMAIL PROTECTED]> wrote

Using same navigator on top and bottom of page.

2008-07-28 Thread Daniel Freitas
Hello guys. I searched the list for answers on this but couldn't find any. Is there a way to show a PagingNavigator (actually an AjaxPagingNavigator) on the top and bottom of a page? The navigator will page the same data, it's added on top and bottom just for convenience. I tried to do: