Re: New feature request (about prepare data when validate fail)
lingcm <[email protected]>
| Newsgroups | gmane.comp.java.open-symphony.webwork |
|---|---|
| Message-ID | <28671303.1148294472855.JavaMail.os-j2ee@opensymphony01.managed.contegix.com> |
please refer my idea:
process flow
Input Page -> relatedAction -> detail Page
in Action i have the following method
[code]
public void addUserSubmit_on_validate_failed() throws Exception{
/** get some data form DB, and store it to HttpServletRequest
prepare data for input page display only
**/
}
public String addUserSubmit() throws Exception{
/** do some related operator **/
return "success";
}
[/code]
if use method "prepare()" insteads of "addUserSubmit_on_validate_failed()" , method will be execute every time. But system will go to detail page when validate successful. so addUserSubmit_on_validate_failed() method doesn't need be executed.
so in my opinion, Should we add a interceptor to execute method "addUserSubmit_on_validate_failed()" when validate failed between interceptor "validation" and "workflow",
my english is so poor! So can you understand what's my meaning? thanks a lot for your reply!
Thanks & Regards
Denis
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=31804&messageID=61565#61565
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]