Using AjaxCheckBox

2010-08-23 Thread Anna Simbirtsev
Hi, I am trying to use AjaxCheckBox to update another checkbox model object when this checkbox is clicked. CheckBox b = new CheckBox(basicCreate, new ModelBoolean()); AjaxCheckBox a = new AjaxCheckBox(create, new ModelBoolean()) { private static

Re: Using AjaxCheckBox

2010-08-23 Thread Sven Meier
Hi, calling b.setOutputMarkupId(true) during Ajax request is too late. The HTML tag will not have a markup id, so nothing will be updated. Call this method immediately after constructing the checkbox. Regards Sven On 08/23/2010 09:18 PM, Anna Simbirtsev wrote: Hi, I am trying to use

Re: Using AjaxCheckBox

2010-08-23 Thread Anna Simbirtsev
Thanks, this fixed a problem. But I thought, it would give me an error message, if I am trying to update a component that does not have setOutputMarkupId(true) ? On Mon, Aug 23, 2010 at 3:26 PM, Sven Meier s...@meiers.net wrote: Hi, calling b.setOutputMarkupId(true) during Ajax request is too

Re: Using AjaxCheckBox

2010-08-23 Thread Sven Meier
Yes, you did call it before #addComponent(): b.setOutputMarkupId(true); target.addComponent(b); But Wicket doesn't keep track of *when* you called the method, i.e. before or after the Ajax request. IIRC there should be an error message in the Ajax debug window. Regards Sven On

Disabling and enabling components using AjaxCheckBox

2008-12-09 Thread itayh
/Disabling-and-enabling-components-using-AjaxCheckBox-tp20911338p20911338.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Disabling and enabling components using AjaxCheckBox

2008-12-09 Thread Ernesto Reinaldo Barreiro
/Disabling-and-enabling-components-using-AjaxCheckBox-tp20911338p20911338.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Disabling and enabling components using AjaxCheckBox

2008-12-09 Thread Ernesto Reinaldo Barreiro
this message in context: http://www.nabble.com/Disabling-and-enabling-components-using-AjaxCheckBox-tp20911338p20911338.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL

Re: Disabling and enabling components using AjaxCheckBox

2008-12-09 Thread Ernesto Reinaldo Barreiro
-using-AjaxCheckBox-tp20911338p20911338.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

Re: Disabling and enabling components using AjaxCheckBox

2008-12-09 Thread itayh
or disable according the check box, Any Idea? Thanks in advance -- View this message in context: http://www.nabble.com/Disabling-and-enabling-components-using-AjaxCheckBox-tp20911338p20911338.html Sent from the Wicket - User mailing list archive at Nabble.com