I am not sure if this is what you need, but I had problem similar to
yours and solved it this way:

You wrote:
1) @Persist("session")
- Obviously doesn't work well for just persisting values between
requests, unless someone has come up with a reliable construct for
nulling out these values whenever someone leaves the page?

I have page registerUser, where I want user to have clear fields every
time he enters the page. All fields are market @Persist

@Persist
private String name;

@Persist
private String surname;

// etc...

To solve clearing both fields values and error messages on each page
exit I use method cleanupRender() where I put clearErrors() and
discardPersistentFieldChanges().

@Inject
private ComponentResources componentResources;

void cleanupRender() {
    componentResources.discardPersistentFieldChanges();
    registerForm.clearErrors();
}

// discardPersistentFieldChanges() from T5 api:
Discards all persistent field changes for the page containing the
component. Changes are eliminated from persistent storage (such as the
Session) which will take effect in the next request (the attached page
instance is not affected).

Regards
-- 
Tomasz Dziurko

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

Reply via email to