You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by taygolf <ta...@gmail.com> on 2008/06/25 16:46:51 UTC

lossing form data on ajax repaint

Hey guys. I have a small problem. I have a group of textfields that are
created on the fly from the database by using a panel. All of the textfields
use modal windows as popups to populate them with data except for 2. These 2
are manually filled in my the user. All of the textfields are in a
WebMarkupContainer. The reason I have them in a WebMarkupContainer is
because I need to default some fields based on what is selected in another
field and I use ajax to repaint the WebMarkupContainer to show my changes.

The problem is when I repaint the WebMarkupContainer the 2 testfields that
have data that was manually entered by the users are completely erased and
set back to blank.

How can I keep the data from being cleared on an ajax repaint?

Thanks

T
-- 
View this message in context: http://www.nabble.com/lossing-form-data-on-ajax-repaint-tp18114293p18114293.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: lossing form data on ajax repaint

Posted by Igor Vaynberg <ig...@gmail.com>.
either dont repaint them, or pass their values to the server along
with that ajax request like AjaxFormComponentUpdatingBehavior does.

-igor

On Wed, Jun 25, 2008 at 7:46 AM, taygolf <ta...@gmail.com> wrote:
>
> Hey guys. I have a small problem. I have a group of textfields that are
> created on the fly from the database by using a panel. All of the textfields
> use modal windows as popups to populate them with data except for 2. These 2
> are manually filled in my the user. All of the textfields are in a
> WebMarkupContainer. The reason I have them in a WebMarkupContainer is
> because I need to default some fields based on what is selected in another
> field and I use ajax to repaint the WebMarkupContainer to show my changes.
>
> The problem is when I repaint the WebMarkupContainer the 2 testfields that
> have data that was manually entered by the users are completely erased and
> set back to blank.
>
> How can I keep the data from being cleared on an ajax repaint?
>
> Thanks
>
> T
> --
> View this message in context: http://www.nabble.com/lossing-form-data-on-ajax-repaint-tp18114293p18114293.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org