You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/05/14 05:21:10 UTC
DO NOT REPLY [Bug 19911] New: -
messages footer attribute written even when no messages when using tiles
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19911>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19911
messages footer attribute written even when no messages when using tiles
Summary: messages footer attribute written even when no messages
when using tiles
Product: Struts
Version: 1.1 RC1
Platform: Other
OS/Version: Linux
Status: NEW
Severity: Minor
Priority: Other
Component: Tiles framework
AssignedTo: struts-dev@jakarta.apache.org
ReportedBy: matt@somanetworks.com
Slightly odd behaviour.
Example code inside a "messages.jsp" tile:
<html:messages id="message"
property="org.apache.struts.action.GLOBAL_ERROR"
header="errormessage.header" footer="errormessage.footer">
<bean:write name="message" filter="false"/>
</html:messages>
<html:messages id="message" message="true"
header="donemessage.header" footer="donemessage.footer">
<bean:write name="message" filter="false"/>
</html:messages>
This code prints out any 'GLOBAL' errors and messages, and is included in every
page in the application.
What happens is that, once any message is displayed on a page, all subsequent
pages that use this code fragment print out the footer attribute, regardless of
whether or not there are any messages on those pages.
This only seems to occur when using the Tiles framework.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org