[ 
http://www.stripesframework.org/jira/browse/STS-392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ben Gunter resolved STS-392.
----------------------------

       Resolution: Fixed
    Fix Version/s: Release 1.5.7

> layout-component without content doesn't override layout-component from 
> layout page
> -----------------------------------------------------------------------------------
>
>                 Key: STS-392
>                 URL: http://www.stripesframework.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
>            Priority: Minor
>             Fix For: Release 1.5.7
>
>
> 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.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to