Re: customizing PagingNavigator

2008-09-24 Thread eyalbenamram

Thanks!!


Serkan Camurcuoglu wrote:
> 
> Here's an example of how I extend paging navigator:
> 
> /**
>  * Overridden to make links invisible.
>  */
> @Override
> protected Link newPagingNavigationLink(String id, IPageable 
> pageable, int pageNumber) {
> Link l = super.newPagingNavigationLink(id, pageable, pageNumber);
> // we don't want first/last links..
> l.setVisible(false);
> return l;
> }
> 
> as you see, I call l.setVisible(false) to make the first/last links 
> invisible. You should also provide markup with your extended navigator 
> (for example, my class is SimplePagingNavigator and I have a 
> corresponding SimplePagingNavigator.html) and you can change < and > to 
> prev and next within your new markup . You should copy the original 
> PagingNavigator.html from wicket source, rename it and modify it for 
> yourself.
> 
> hth,
> 
> SerkanC
> 
> 
> 
> eyalbenamram wrote:
>> Hi
>> I need to have a PagingNavigator that has only the "next" and "previous"
>> links visible,
>> and in addition, to change their looks from "<" to "prev"  and from ">"
>> to
>> "next"
>> Can you please add code? I searched the forum and found some messy stuff
>> that didn't work..
>>
>> Thaks, Eyal.
>>   
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/customizing-PagingNavigator-tp19649504p19651568.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: customizing PagingNavigator

2008-09-24 Thread Serkan Camurcuoglu

Here's an example of how I extend paging navigator:

   /**
* Overridden to make links invisible.
*/
   @Override
   protected Link newPagingNavigationLink(String id, IPageable 
pageable, int pageNumber) {

   Link l = super.newPagingNavigationLink(id, pageable, pageNumber);
   // we don't want first/last links..
   l.setVisible(false);
   return l;
   }

as you see, I call l.setVisible(false) to make the first/last links 
invisible. You should also provide markup with your extended navigator 
(for example, my class is SimplePagingNavigator and I have a 
corresponding SimplePagingNavigator.html) and you can change < and > to 
prev and next within your new markup . You should copy the original 
PagingNavigator.html from wicket source, rename it and modify it for 
yourself.


hth,

SerkanC



eyalbenamram wrote:

Hi
I need to have a PagingNavigator that has only the "next" and "previous"
links visible,
and in addition, to change their looks from "<" to "prev"  and from ">" to
"next"
Can you please add code? I searched the forum and found some messy stuff
that didn't work..

Thaks, Eyal.
  



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



customizing PagingNavigator

2008-09-24 Thread eyalbenamram

Hi
I need to have a PagingNavigator that has only the "next" and "previous"
links visible,
and in addition, to change their looks from "<" to "prev"  and from ">" to
"next"
Can you please add code? I searched the forum and found some messy stuff
that didn't work..

Thaks, Eyal.
-- 
View this message in context: 
http://www.nabble.com/customizing-PagingNavigator-tp19649504p19649504.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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