Done
Sorry if not well-formed issue. My first report to JIRA.

Issue url is
http://stripes.mc4j.org/jira/browse/STS-392


> That does seem like a bug.  I'm guessing that the tag is fetching
> from a Map and checking the value for  null, instead of checking to
> see if it contains the key for a given component.  Can you log a JIRA
> for this please?
>
> -t
>
> On Jun 27, 2007, at 4:01 AM, Evgeny Shepelyuk wrote:
>
>>      Hello everybody.
>> I have a following situation. 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 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>
>>
>> But seems this is not very correct behaviour.
>> Can this be changed to override component declared in layout even if
>> content of component declared in page is empty.
>>
>> --
>> Best Regards
>> Evgeny K. Shepelyuk
>>
>>
>> ----------------------------------------------------------------------
>> ---
>> 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
>
>
> -------------------------------------------------------------------------
> 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/



-- 
Best Regards
Evgeny K. Shepelyuk


-------------------------------------------------------------------------
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

Reply via email to