palette and event

2009-12-02 Thread Swarnim Ranjitkar

I was trying to attach AjaxFormComponentUpdatingBehavior to palette and looks 
like I can't do it this way. Is there anyways to attach action to palette 
change event. 
Here is my code. Appreciate you feedback

Palette affiliatePalette  = new 
Palette("affiliatePalette",
new PropertyModel(this.getModel(),"allFilteredDtAdd"), 
affiliateRenderer, 12, false);
affiliatePalette.add(new  AjaxFormComponentUpdatingBehavior("onchange") 
{
protected void onUpdate(AjaxRequestTarget target) {

}
});   

Re: palette and event

2009-12-02 Thread Martin Makundi
http://www.mail-archive.com/users@wicket.apache.org/msg14153.html

2009/12/2 Swarnim Ranjitkar :
>
> I was trying to attach AjaxFormComponentUpdatingBehavior to palette and looks 
> like I can't do it this way. Is there anyways to attach action to palette 
> change event.
> Here is my code. Appreciate you feedback
>
> Palette affiliatePalette  = new 
> Palette("affiliatePalette",
>                new PropertyModel(this.getModel(),"allFilteredDtAdd"),
>                affiliateRenderer, 12, false);
>        affiliatePalette.add(new  
> AjaxFormComponentUpdatingBehavior("onchange") {
>            protected void onUpdate(AjaxRequestTarget target) {
>
>            }
>        });

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



Re: palette and event

2009-12-02 Thread Martin Makundi
http://issues.apache.org/jira/browse/WICKET-1574

2009/12/2 Swarnim Ranjitkar :
>
> I was trying to attach AjaxFormComponentUpdatingBehavior to palette and looks 
> like I can't do it this way. Is there anyways to attach action to palette 
> change event.
> Here is my code. Appreciate you feedback
>
> Palette affiliatePalette  = new 
> Palette("affiliatePalette",
>                new PropertyModel(this.getModel(),"allFilteredDtAdd"),
>                affiliateRenderer, 12, false);
>        affiliatePalette.add(new  
> AjaxFormComponentUpdatingBehavior("onchange") {
>            protected void onUpdate(AjaxRequestTarget target) {
>
>            }
>        });

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