Re: ww:action for ww:select doesent execute again when return='INPUT'
Philip Luppens <[email protected]>
| Newsgroups | gmane.comp.java.open-symphony.webwork |
|---|---|
| Message-ID | <19667622.1148937530938.JavaMail.os-j2ee@opensymphony01.managed.contegix.com> |
> [code] > <ww:action id="AllBranches" executeResult="false" > name="baseinfo" namespace="/pub"/> > <ww:form action="newuser" namespace="/pub"> > <ww:token/>... > <ww:select label="please" > name="user.blbranch.branch" > list="#attr.AllBranches.branches" listKey="branch" > listValue="branch" required="true"/> > <ww:submit value="new user"/> > w:form> > [/code] > > Here list value of ww:select is retrieved from > ww:action.But while any error(caused by such as > validation,or something else) returns INPUT,ww:select > and the whole part after it disappear,it seems > ww:action is not executed once more at all. > The similar problem has been asked by FlÃÂávio Oliva > in thread: > http://forums.opensymphony.com/thread.jspa?messageID=6 > 876á« > In that thread,he think maybe interceptors just > return INPUT and the page is not executed again at > all. > Maybe this is the reason,But Could anyone tell me how > to solve this problem?. I always use the prepare() approach in such case, although a ww:action should work (in theory). You also shouldn't need to specify #attr - just #AllBranches will do. Apart from that there's little else I can tell you than to debug and see if ww:action gets called (at all), and if necessary, remove the validation/workflow interceptor from that stack for that particular action. --------------------------------------------------------------------- Posted via Jive Forums http://forums.opensymphony.com/thread.jspa?threadID=32651&messageID=63398#63398 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]