[Wicket-user] update propertyModel value to null

2007-01-23 Thread Shawn Tumey
Hello, textarea wicket:id=myString rows=10/textarea FormComponent myStringComp = new TextArea(myString, new PropertyModel(this, myString)); myStringComp.add(new AjaxFormComponentUpdatingBehavior(onchange){ protected void onUpdate(AjaxRequestTarget target) { myString

Re: [Wicket-user] update propertyModel value to null

2007-01-23 Thread Igor Vaynberg
hmm can you try onblur instead of onchange, dont know if textarea supports that event -igor On 1/23/07, Shawn Tumey [EMAIL PROTECTED] wrote: Hello, textarea wicket:id=myString rows=10/textarea FormComponent myStringComp = new TextArea(myString, new PropertyModel(this, myString));

Re: [Wicket-user] update propertyModel value to null

2007-01-23 Thread Shawn Tumey
onblur has the same outcome as onchange. Updates to myString that grow it, or shrink it work fine as long as there is something in the textarea field. Clearing the field retains the previous value. BTW, this is using 1.2.4 any other ideas? On of my coworkers suggested overloading the

Re: [Wicket-user] update propertyModel value to null

2007-01-23 Thread Erik van Oosten
Hi Shawn, Could you check that you have a single, properly nested form element in the html? I vaguely remember someone having problems with this. Erik. Shawn Tumey wrote: onblur has the same outcome as onchange. Updates to myString that grow it, or shrink it work fine as long as

Re: [Wicket-user] update propertyModel value to null

2007-01-23 Thread Shawn Tumey
Hello Erik, The form element is there. Hello Igor, I will have check with our software architect before I can upgrade to the 1.3x branch. I am moving on to other functionality for the time being. Thanks to both of you for your assistance. Any other suggestions? Regards, On 1/23/07, Erik

Re: [Wicket-user] update propertyModel value to null

2007-01-23 Thread Igor Vaynberg
use wicket's ajax debug console to see what the url request is then set a breakpoint in AjaxFormComponentUpdatingBehavior.onEvent and walk it, see why its not setting the value to null -igor On 1/23/07, Shawn Tumey [EMAIL PROTECTED] wrote: Hello Erik, The form element is there. Hello

Re: [Wicket-user] update propertyModel value to null

2007-01-23 Thread Shawn Tumey
The input is returning to the server as an empty string . The field is required, so when the onEvent method checks protected final void onEvent(final AjaxRequestTarget target) { final FormComponent formComponent = getFormComponent(); boolean callOnUpdate = true; try