PageParameters is a hashmap and not a list, thus the hashcode is the decisive
factor, not the order the elements are added ...



Mathias P.W Nilsson wrote:
> 
> Hi!
> 
> I try to use the page parameters class for passing a lot of queries. Now
> it is very important that if I pass
> ?Item=13&Gender=female&Category=13 that I get this in the correct order.
> Used for internal bread crumbs and background image replacement.
> 
> When I use the PageParameters the parameters are not retained in the order
> I added them. Comments anyone?
> 
> Let's say I make this
> 
> PageParameters params = new PageParameters();
> params.add( "category", "12" );
> params.add( "brand", "11" );
> 
> 
> And I use this to check the parameters
> 
> Iterator iter = params.keySet().iterator();
> while( iter.hasNext() ){
>   String key = (String)iter.next();
> }
> 
> A do not get the order I'm looking for.
> 
> 
> 


-----
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/PageParameter-question-tp18999929p19000175.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