are you sure a hidden field receives onchange events?

-igor


On Thu, Mar 6, 2008 at 4:03 AM, Juan Pablo Coen Mitrani
<[EMAIL PROTECTED]> wrote:
>
>  Hi,
>  I've noticed that recorderComponent initialization has been moved from
>  Palette constructor to private initFactories() method which is called by
>  onBeforeRender() method.
>
>  I was trying to add an Ajax behavior to a new Palette like this:
>    Palette palette = new Palette( ... );
>    AjaxFormComponentUpdatingBehavior ajaxBehavior =
>    new AjaxFormComponentUpdatingBehavior("onchange") { ... };
>
>    palette.getRecorderComponent().add(ajaxBehavior);
>    add(palette);
>
>  This is obviously giving me a NullPointerException, as recorderComponent is
>  null at the time I'm trying to get it.
>
>  Is there a new way to add a behavior to the Palette?
>
>  Thanks,
>  Juan Pablo
>  --
>  View this message in context: 
> http://www.nabble.com/Palette-and-recorderComponent-initialization-%28Wicket-1.3.1%29-tp15871741p15871741.html
>  Sent from the Wicket - Dev mailing list archive at Nabble.com.
>
>

Reply via email to