There seem to be some type of regression that has happen with regards to
actionMessage/actionErrors.
In the current build snapshots of 2.1.3 actionErrors/message are no longer
exposed my to the sitemesh decorator(I am using freemarker result
types/decorators). However that are still available to the direct result,
just not within the decorators.
This is an example of a snippet used with a decorator.
<div id="middlebox">
<#if (actionMessages?exists && actionMessages.size() > 0)><#include
"/WEB-INF/decorators/msg.ftl"/></#if>
<#if (fieldErrors?exists &&
actionErrors?exists) &&
(fieldErrors.size() > 0 || actionErrors.size() > 0)>
<#include
"/WEB-INF/decorators/error_msg.ftl"/>
</#if>
${body}
</div>
Any idea what could have caused this regression?
I the decorator I can still refer to ${action.actionMessages.size()}
Thanks,
Matthew Payne
--
View this message in context:
http://www.nabble.com/Struts-2.1.2%28an-previous-releases%29-vs-2.1.3-in-regards-to-actionMessages-in-a-sitemesh-decorator-tp19361286p19361286.html
Sent from the Struts - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]