I have a very simple page with a form containing a few fields linked to
properties on my page class like so:
Page:
<input jwcid='email' length='30'>
Spec:
<component id="email" type="TextField">
<binding name="displayName" value="Email"/>
<binding name="value" value="email"/>
<binding name="validators" value="required, email"/>
</component>
Class:
public abstract String getEmail();
public abstract void setEmail(String email);
I've noticed that if I enter a value in the field, submit the form, then
navigate to the original root app URL and refresh, the previously entered
value reappears.
Checking the rendered page source HTML, the page is clearly being rendered
anew by Tapestry with the previous values.
Where and how is this state being saved? I haven't maked any fields
persistent or anything to notify Tapestry to intercede.
I thought Tapestry would reinitialize the page prior to rendering. If not,
what's the best practice on this?