Re: NicEditTextAreaBehavior

2008-06-17 Thread francisco treacy
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

Re: NicEditTextAreaBehavior

2008-06-17 Thread francisco treacy
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"

Re: NicEditTextAreaBehavior

2008-06-17 Thread francisco treacy
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

Re: NicEditTextAreaBehavior

2008-06-16 Thread Don Hass
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

NicEditTextAreaBehavior

2008-06-14 Thread francisco treacy
public class NicEditTextAreaBehavior extends AbstractBehavior { private Component> textArea; private Boolean fullPanel = Boolean.TRUE; private static final ResourceReference NICEDIT_JAVASCRIPT = new JavascriptResourceReference(NicEditTextAreaBehavior.c