|
|
|
[
Permlink
| « Hide
]
Patrick Lightbody - [09/Sep/04 06:52 PM ]
Frank, I don't know what you are referring to :(
I saw this bug specifically when I did the following.
1) Executed an Action (ViewAction) that sent me to a JSP. 2) In the JSP I used a <ww:action> (callign CategoryAction) to get a list of something to populate a dropdown. 3) Somewhere *after* that <ww:action> tag I tried to use an error.vm via <ww:component> to display some errors from the original Action The action in the following error.vm wound up being the 2nd action, CategoryAction, not the originally requested action, ViewAction. error.vm --------------------------- #if( $action.hasActionErrors() ) #foreach( $error in $action.actionErrors ) <div class="errorMessage">$!webwork.htmlEncode($error)</div> #end #end I should also add that the <ww:action/> tag in the JSP is closed, it has no body. I would except $action to be CategoryAction while within the body, but not after the tag has ended.
OK, I understand the bug and I think I know of a fix for it, but it will need to wait until after this 2.1.2 release which is badly needed.
Please check this with the latest CVS. I think the change I made to create a new ValueStack copy when creating a chained ActionContext should solve any issues like this.
| |||||||||||||||||||||||||||||||||||||||