layout-component without content doesn't override layout-component from layout
page
-----------------------------------------------------------------------------------
Key: STS-392
URL: http://mc4j.org/jira/browse/STS-392
Project: Stripes
Issue Type: Bug
Components: Tag Library
Affects Versions: Release 1.4.3
Environment: Tomcat 5.5
Reporter: Evgeny Shepelyuk
Assigned To: Tim Fennell
Priority: Minor
For example. There's layout.jsp and two pages: page1.jsp and page2.jsp.
layout.jsp is simple
<s:layout-definition>
<s:layout-component name="com1">FIRST COMPONENT
<br></s:layout-component>
<s:layout-component name="com2">SECOND COMPONENT
<br></s:layout-component>
<s:layout-component name="content"/>
</s:layout-definition>
The idea is for page1.jsp to show both components (com1 and com2) and own
content.
For page2.jsp idea is to show only com2 and not to show com1 component.
So for page1.jsp i'm doing following and it's working ok.
<s:layout-render name="/layout.jsp">
<s:layout-component name="content">PAGE1</s:layout-component>
</s:layout-render>
For page2.jsp i was going to do
<s:layout-render name="/layout.jsp">
<s:layout-component name="com1"/>
<s:layout-component name="content">PAGE2</s:layout-component>
</s:layout-render>
Since i've overriden the com1 component with empty tag i assumed the com1
won't be shown in resulting HTML.
But it is shown. To make it be hidden i needed to put some content into
layout-component tag like this
<s:layout-component name="com1"> </s:layout-component>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://mc4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development