formcomponentupdatingbehavior does exactly what its name implies, it
updates a single form component. what you want is
ajaxformsubmitbehavior which submits the entire form and thus lets you
access values in other components

-igor

On Thu, May 29, 2008 at 11:13 PM, freak182 <[EMAIL PROTECTED]> wrote:
>
> Hello,
> I dont know if im only experiencing this but i gave headache.My problem is i
> have a AjaxFormComponentUpdatingBehavior on my dropdownchoice and i need to
> get the value from a textfield/requiredtextfield but i find it hard...one
> suggestion from colleague is to this:
>
> amountTextfield.add(new AjaxFormComponentUpdatingBehavior("onchange"){
>                        @Override protected void onUpdate(AjaxRequestTarget 
> target){
>                        }
>                });
>
> my dropdown same also..
>
> dropdown.add(new AjaxFormComponentUpdatingBehavior("onchange"){
>                        @Override protected void onUpdate(AjaxRequestTarget 
> target){
>                         ................................
>                           //get the value of textfield
>                       }
>                });
>
> ...and its working...but when there no more values or empty string in
> textfield the old inputed value was displaying...why could this be?is the
> value cache?what could be the workaround for this?
>
> Thanks a lot...Cheers
>
> --
> View this message in context: 
> http://www.nabble.com/AjaxFormComponentUpdatingBehavior-weird-accessing-textfields-tp17552287p17552287.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to