Re: Attach ajax/javascript to CheckBox, v1.4

2017-05-25 Thread Martin Grigorov
Hi, On Thu, May 25, 2017 at 5:40 PM, sorinev wrote: > I've tried adding an AjaxEventBehavior to the regular CheckBox and to the > AjaxCheckBox. I tried a few different things, the latest one is this: > > fooCheckBox.add(new AjaxEventBehavior("onbefore"){ > There is no JavaScript named "

Re: StringResouceModel Can't find key with BootstrapCheckbox

2017-05-25 Thread Ernesto Reinaldo Barreiro
I think StringResourceModel is a IComponentAssignedModel and [image: Inline image 1] and [image: Inline image 2] So maybe the line this.label = labelModel should be replaced by this.label = wrap(labelModel) for this to work? Thought Label tag should already be doing that. Can you create a q

StringResouceModel Can't find key with BootstrapCheckbox

2017-05-25 Thread David Beer
Hi I am using the BootstrapCheckbox and when I try to add the Label using StringReosrceModel if fails to find the key in the properties file for the page it is on. However when I use Model.of() it works. BootstrapCheckbox addMoreUsersCheckbox = new BootstrapCheckbox("checkbox-add-more-users", ad

Re: Question about

2017-05-25 Thread Claudia Hirt
Created wicket-6377. Thanks for the quick response. > Am 24.05.2017 um 23:07 schrieb Andrea Del Bene : > > Hi, > > I think it's actually a bug. Could you open an issue on JIRA? > > Andrea. > > PS: thank you for investigating the issue! > >> On 24/05/2017 18:45, Claudia Hirt wrote: >> Sorry,

Re: Attach ajax/javascript to CheckBox, v1.4

2017-05-25 Thread sorinev
I've tried adding an AjaxEventBehavior to the regular CheckBox and to the AjaxCheckBox. I tried a few different things, the latest one is this: fooCheckBox.add(new AjaxEventBehavior("onbefore"){ @Override protected IAjaxCallDecorator getAjaxCallDecorator(){

Re: Attach ajax/javascript to CheckBox, v1.4

2017-05-25 Thread Martin Grigorov
On Thu, May 25, 2017 at 12:49 AM, sorinev wrote: > I have a version 7.x application where I have an Ajax component that I add > some javascript to via this method: > > @Override > protected void updateAjaxAttributes(AjaxRequestAttributes > attributes) { > s