Hi,

I had exactly the same use case and solved it as follows - works like charm
(unfortunately I cannot share the code):

extend StatelessTab (each instance to be constructed with its pageparameter
value

extend StatelessTabbedPanel,
constructor with the pageparameter key
override newLink to return a bookmarkablepagelink for each tab
override onbeforerender to set the selected tab dependent on the page's
pageparameter

perhaps you'd also want to adopt pageparameters of the previous request when
switching tabs when generating the links.

hope this helps, cheers :)


rmoskal wrote:
> 
> I'm familiar with the a lot of the strategies that make for nicer urls in
> Wicket, but am at a loss for how to make the urls for a tabpanel
> friendlier.
> 
> Instead of /Home:1:1, /Home:2:1, etc.
> 
> I'd like to have  /Home:Account:1, /Home:Alerts:1, etc.
> 
> It would be nice to lose the last bit on the right, but I could live with
> it if it messes with wickets state maintaining ability.
> 
> Has anyone had a client pester them for this?
> 
> Thanks and regards,
> 
> Robert Moskal
> Brooklyn, USA
> 

-- 
View this message in context: 
http://www.nabble.com/Pretty-url-for-tabs-tp20451052p20477380.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]

Reply via email to