New feature request (about prepare data when validate fail)

lingcm <[email protected]>
Newsgroups gmane.comp.java.open-symphony.webwork
Message-ID <33027536.1148279149806.JavaMail.os-j2ee@opensymphony01.managed.contegix.com>
Hi, guys

  I have the following proplem when i work with WW.  for example

  I have the following process flow.

  Input Page -> relatedAction -> detail Page

  In input page i have a Dropdown list which get from database and stored in HttpServletRequest.  And i'm using validate framework (and disabled client-side validation)  to do validate.  But it maybe lost the value of dropdown list when validate failed.

  in current WW we can use prepareInterceptor to prepare data before return to input page. but this prepare method will be executed always. 

  in my opinion the prepare method should not be executed when validate successful. so if  we can provide a function to execute the method (such as: {methodName}_no_fail() ) when validate failed.

  my suggestion: we should add a new interceptor to process this situation between the interceptor "validation" and "workflow". 

Thanks & Regards
Denis
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=31804&messageID=61514#61514

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.