This may confuse the web user quite a bit. It's preferred to send the request
each time or cache it maybe.

Form form = new Form( "form" );
                List SITES = Arrays.asList(new String[] { "The Server Side", 
"Java Lobby",
"Java.Net" });
                final List<String> values = new LinkedList<String>();
                final CheckBoxMultipleChoice c = new 
CheckBoxMultipleChoice("site", new
Model(),  SITES );
                c.add( new AjaxFormChoiceComponentUpdatingBehavior(){
                        @Override
                        protected void onUpdate(AjaxRequestTarget target) {
                                
                                System.out.println( c.getModelObject() );
                        }
                        
                });
                form.add( c );
                add( form );

In this onUpdate you could send to server, cache or whatever.
-- 
View this message in context: 
http://www.nabble.com/CheckboxMultipleChoice-in-Ajax-style-tp23458553p23470100.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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

Reply via email to