On Fri, Aug 29, 2008 at 09:38:20PM +0300, Timo Rantalaiho wrote:
> On Fri, 22 Aug 2008, John Krasnay wrote:
> > It's sometimes awkward to implement an AJAX indicator the standard way,
> > by implementing IAjaxIndicatorAware, since it forces me to use an
> > explicit class where I otherwise would have used an anonymous inner
> > class. I actually have this code in one of my classes:
>
> There's still the kludge of making a named local inner class
>
> Form myForm = new Form("foo", model);
> TextField myField = new TextField("bar");
> class BarsBehavior extends AjaxFormChoiceComponentUpdatingBehavior
> implements IAjaxIndicatorAware {
> ...
> }
> myField.add(new BarsBehavior());
> ...
You can do that?! Wow, learn something new every day.
Thanks for the tip.
jk
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]