Hi everyone. I hope this is a quick and easy question.
I want to show a "Form successfully submitted" message, so in my Page
object I have this:
@Persist
@Property
private boolean showSuccess;
Then in my onSuccess method I have this:
private void onSuccess() {
...
showSuccess = true;
}
My question is this: where do I set showSuccess to be false? If the
user ever comes back to the page again, the value will still be true but
it should be false. If I set it false in pageLoaded or pageAttached, it
will always be false because that happens after onSuccess (on the reload).
Thanks.
--
Tim Koop
[email protected] <mailto:[email protected]>
www.timkoop.com <http://www.timkoop.com>