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());
...
> It occurred to me that this would be much simpler if
> AbstractDefaultAjaxBehaviour.findIndicatorId() were made protected and
> non-final rather than private. Then I could just override it in my
> anonymous inner class.
Thanks, that sounds like a good idea to me.
Best wishes,
Timo
--
Timo Rantalaiho
Reaktor Innovations Oy <URL: http://www.ri.fi/ >
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]