On 8/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I want to be able to reset an update form to it's initial state. Sounds
simple enough, but...
For what it's worth, I handled this by creating a "public String
clear() { return "clear"; } action method and a
redirect-back-to-the-same-page navigation rule.
<navigation-rule>
<from-view-id>/pages/mypage.xhtml</from-view-id>
<navigation-case>
<from-outcome>clear</from-outcome>
<to-view-id>/pages/mypage.xhtml</to-view-id>
<redirect />
</navigation-case>
</navigation-rule>
I don't really like it, but resetting all of the page backing been
values to null in an action wasn't working, and I didn't want to spend
the time to track down why.
(You can use use action="clear" and skip the java code, but I have my
commented-out java-based clearing code in there still.)