Re: unselected choices of Palette contain duplicates ...

2013-02-16 Thread Francois Meillet
Can you show up the code where you send the event ? François Meillet Formation Wicket - Développement Wicket Le 16 févr. 2013 à 16:56, grazia grazia.russolass...@gmail.com a écrit : I have overriden the onEvent method of the Palette class in the attempt to populate the palette (on the

How to make a stateful mounted page bookmarkable?

2013-02-16 Thread Bernard
Hi all, We mount all our pages so that the user can open them from bookmarks. But as soon as a page aquires some state - it does not matter how insignificant that state is - the page mount is discarded and we get URLs such as /wicket/page?0 which cause PageExpiredException. We can always

Re: unselected choices of Palette contain duplicates ...

2013-02-16 Thread grazia
To summarize that long code posting, on the page, there is an autocomplete, and a form containing the palette. The autocomplete sends the choice selection to the palette ... or is there something else (the form ?) that receives the event first and sends it to the palette ? -- View this

Re: unselected choices of Palette contain duplicates ...

2013-02-16 Thread Francois Meillet
In the onEvent method, update.getModelObject() is added to the choices collection. The collection is not a Set, but a List. So each time you add an item to choices, you create a new entry. François Meillet Formation Wicket - Développement Wicket Le 16 févr. 2013 à 16:56, grazia

Re: How to make a stateful mounted page bookmarkable?

2013-02-16 Thread Francois Meillet
Have a look to MountedMapper And also the Wicket in Action blog http://wicketinaction.com/2011/07/wicket-1-5-mounting-pages/ François Meillet Formation Wicket - Développement Wicket Le 17 févr. 2013 à 01:17, Bernard bht...@gmail.com a écrit : Hi all, We mount all our pages so that the

Re: How to make a stateful mounted page bookmarkable?

2013-02-16 Thread Bernard
Thanks. This works. But it does not work with PackageMapper via WebApplication#mountPackage() with a Page constructor with IModel parameter. Would this be an expected behavior? Regards, Bernard On Sun, 17 Feb 2013 01:27:13 +0100, you wrote: Have a look to MountedMapper And also the Wicket

JBoss RichFaces/AeroGear effort to create cross-framework components

2013-02-16 Thread Ondrej Zizka
Hi everyone, RichFaces team has started an effort to make their components available for multiple frameworks. Currently, the targetted are JSF, GWT/Errai and one I don't remember. It would be cool to have Wicket amongst those: Wicket community would get a set of highly tested and maintained

Re: JBoss RichFaces/AeroGear effort to create cross-framework components

2013-02-16 Thread Dan Tran
wow!! primefaces is on similar path with its primeui, love to your feedback from wicket communication as well sorry just cant help to chime in -D On Sat, Feb 16, 2013 at 8:47 PM, Ondrej Zizka ozi...@redhat.com wrote: Hi everyone, RichFaces team has started an effort to make their components

Re: How to make a stateful mounted page bookmarkable?

2013-02-16 Thread Ondrej Zizka
IIRC, bookmarkable pages need PageParameters, which also makes sense - it must be able to reconstruct the page just from URL. IModel is just stored in PageStore (or PageMap or how is it called) during a session. What bothers me more is that various back and forth moves always give some nulls

Re: How to make a stateful mounted page bookmarkable?

2013-02-16 Thread Bernard
A convenient way to check how Wicket considers pages bookmarkable: @Override public boolean bookmarkable() { boolean bookmarkable = super.isBookmarkable(); if(! bookmarkable){ throw new IllegalStateException(Page should be bookmarkable); } return