The usual way to save input is to do a form submit. Link the form to the
zone, and then submitting will trigger the update on the zone after sending
the data to the server.

However, this does not work if the form is not filled out and valid. In that
case there's a longer way:

I used the ZoneUpdater mixin on all the form components, not to update the
zone but to simply record changes serverside (returning void from the event
handler). Something like this:
<t:textfield t:id="TextField" value="value"
validate="required,minlength=3,maxLength=25"
                  t:mixins="zoneUpdater" t:zone="thezone"
t:clientEvent="keyup" event="change" />
  @Log
  public void onChangeFromTextField(String value)
  {
    this.value = value;
  }
-- 
View this message in context: 
http://tapestry-users.832.n2.nabble.com/T5-1-Preserve-user-input-while-refreshing-form-inside-zone-tp5557633p5558573.html
Sent from the Tapestry Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to