Hi i tried doing this it doesn't like adding
AjaxFormComponentUpdatingBehavior . I thought when you meant
AjaxFormComponentUpdatingBehavior by whateverbehaviour. i even added
onupdate method that didn't help too. still getting null when doing
pallet.getRecorderComponent. Please help
new PropertyModel(model,"allSids"),
renderer, 12, false){
protected Recorder<LeadSid>
newRecorderComponent() {
Recorder
r=super.newRecorderComponent();
r.add(new
AjaxFormComponentUpdatingBehavior("onchange"));
return r;
}
};
Edvin Syse wrote:
>
> Thanks! Will you update the javadoc as well?
>
> -- Edvin
>
> Den 28. juli. 2008 kl. 16.37 skrev "Igor Vaynberg"
> <[email protected]
> >:
>
>> override newrecorder() { recorder r=super.newrecorder(); r.add(new
>> whateverbehavior()); return r; }
>>
>> -igor
>>
>> On Mon, Jul 28, 2008 at 12:33 AM, Edvin Syse <[email protected]>
>> wrote:
>>> The javadocs for the Palette says to add
>>> AjaxFormComponentUpdatingBehaviour
>>> to the Recorder like this:
>>>
>>> Form form=new Form(...);
>>> Palette palette=new Palette(...);
>>> palette.getRecorderComponent().add(new
>>> AjaxFormComponentUpdatingBehavior("onchange") {...});
>>>
>>> getRecorderComponent() is null, because it isn't populated in the
>>> Palette's
>>> constructor, it is populated
>>> in the private initFactories() method, which is called from
>>> onBeforeRender.
>>>
>>> How am I supposed to get to the Recorder-component from the
>>> constructor of
>>> my pageclass? :)
>>>
>>>
>>> -- Edvin
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
--
View this message in context:
http://old.nabble.com/AJAXIFY-Palette%3A-Can%27t-get-to-the-Recorder-tp18685475p28090539.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]