protected IAjaxCallDecorator getAjaxCallDecorator() {
>return nicEditTextAreaBehavior.NICEDIT_AJAX_BUTTON_DECORATOR;
> }
ie so that just doing textarea.add(new NicEditTextAreaBehavior());
suffices. maybe you've got an idea?
anyway, after all these hacks seem to work!
francisco
On Tue
s is a call to
> wicket ajax gurus: could you help me improve this code?
>
> usage:
>
> (...)
> final NicEditTextAreaBehavior behavior = new NicEditTextAreaBehavior();
> textarea.add(behavior);
> (...)
>
> form.add(new AjaxFallbackButton("submit"
ted.
so here i came up with a new version that works (i believe with ajax
only, and with one textarea for the moment). i'm by no means an ajax
expert (hmm, in fact, i dislike javascript :) so this is a call to
wicket ajax gurus: could you help me improve this code?
usage:
(...)
final Nic
ou can use it with multiple textareas in the same page.
>
> let me know if you run into some problem using it. should this belong
> to the wiki as well?
>
> francisco
>
>
> public class NicEditTextAreaBehavior extends AbstractBehavior {
>
> private Component&g
public class NicEditTextAreaBehavior extends AbstractBehavior {
private Component> textArea;
private Boolean fullPanel = Boolean.TRUE;
private static final ResourceReference NICEDIT_JAVASCRIPT =
new JavascriptResourceReference(NicEditTextAreaBehavior.c