wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guillaume Smet <guillaume.s...@gmail.com>
Subject Re: Prioritize header items in html templates
Date Thu, 21 Mar 2013 23:27:41 GMT
On Wed, Mar 20, 2013 at 11:48 PM, Guillaume Smet
<guillaume.smet@gmail.com> wrote:
> On Wed, Mar 20, 2013 at 12:58 PM, Martin Grigorov <mgrigorov@apache.org> wrote:
>> Another user asked the same question so I added it to my demo app:
>> https://github.com/martin-g/blogs/commit/d5a248a3a3d5369c9cdc66604eba384428e9d0a0

FWIW, the following does the trick for me:
getResourceSettings().setHeaderItemComparator(new
PriorityFirstComparator(true));

The parameter of the PriorityFirstComparator constructor is
renderPageFirst. The default HeaderItemComparator is new
PriorityFirstComparator(false);

-- 
Guillaume

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Mime
View raw message