tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Zucenko <zuce...@gmail.com>
Subject Re: Struts2 tiles
Date Wed, 09 Jul 2008 14:30:05 GMT
Hi  Antonio,
OK, I just may recommend that being able to include none template on 
specific position would add some more comfort to Tiles.. since I like to 
use tiles.xml for exactly this purpose - to decide where to show or not 
show some element.. on certain position..

But thanks anyway..
Ivan

Antonio Petrelli wrote:
> 2008/7/9 Ivan Zucenko <zucenko@gmail.com>:
>   
>> 1) I have one main layout template for many situations. There is a place
>> where I want to put or not to put one special component..
>> ...
>>  in one definition I need to show somethink in "foot" section
>>  in most situation nothing.. but do not like to use empty.jsp for this.. I
>> am sure I misser right solution....
>>     
>
> I think your solution is right, except in the case you have a
> "strange" result as an HTML document, such as an empty <div>. In this
> case I suggest to change the template that you use.
>
>   
>> 2) how to include instead of value="modul/news.jsp" rather struts action
>> tag..
>> not to have modul/news.jsp containing:
>> <s:action name="modul/news" executeResult="true"/>
>>
>> but i can understand you may consider too tight coupling with Struts2
>>     
>
> See this previous e-mail:
> http://www.nabble.com/Tiles2-import-Struts2-action-via-insertTemplate-td13834640.html
> A template and an attribute value work mostly the same way.
>
> Antonio
>
>   


Mime
View raw message