Is it possible to register multiple behaviors for a field?

2009-07-12 Thread Kenneth NA
I want to register two behaviors for a textfield, is this possible, as I only see the result and call to one of them? This is what I am trying to do: textfield.add(new ComponentVisualErrorBehavior(onblur, tf)); textfield.add(new AjaxFormComponentUpdatingBehavior(onblur) { ... }

Re: Is it possible to register multiple behaviors for a field?

2009-07-12 Thread Martin Makundi
You could use ajax decorator which sort of appends callers.. I am not exactly sure how in your particular situation, but you can try it out and see how it works: public static final IAjaxCallDecorator BLUR_DECORATOR = new IAjaxCallDecorator() { public CharSequence decorateOnFailureScript(