You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Antonio Petrelli <an...@gmail.com> on 2007/05/21 16:06:07 UTC
Re: Tiles and
2007/5/21, Jim Theodoridis <st...@tera.gr>:
>
> Hello
>
> I am having the follwoing definition at tiles-defs.xml
>
> <definition name=".content.before.delete" extends=".content">
> <put name="body" value=".cPanel.content.before.delete" />
> <put name="message" value=".msg.content.show" />
> <put name="toolbar" value="{$1}" />
> </definition>
>
> how can i set that "toolbar" definition will be null?
What is that "{$1}"? I really cannot understand it.
Antonio
Re: Tiles and
Posted by Jim Theodoridis <st...@tera.gr>.
Thanx
Antonio Petrelli wrote:
> 2007/5/21, Jim Theodoridis <st...@tera.gr>:
>>
>> Because i allready have a template like this
>>
>> <definition name=".mainLayout"
>> path="/tiles/layouts/templates/admin/blackplazza_admin/mainLayout.jsp">
>> <put name="title" value="" />
>> <put name="header" value=".header" />
>> <put name="mainMenu"
>> value="/tiles/layouts/templates/admin/blackplazza_admin/mainMenu.jsp" />
>> <put name="toolbar" value="" />
>> <put name="message" value="" />
>> <put name="body" value="" />
>> <put name="footer"
>> value="/tiles/footers/admin/footer.jsp" />
>> </definition>
>>
>> .......................................................................................
>>
>>
>>
>> <definition name=".content" extends=".mainLayout">
>> <put name="title" value="Διαχείρηση Άρθρων" />
>> <put name="toolbar" value=".toolbar.content" />
>> </definition>
>>
>> and i want the toolbar definition not to dispayed at
>> .content.before.delete
>
>
>
> I see, then in <tiles:insert>, when you insert the "toolbar" attribute,
> add:
> ignore="true"
> This will skip the missing resource.
>
> HTH
> Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Tiles and
Posted by Antonio Petrelli <an...@gmail.com>.
2007/5/21, Jim Theodoridis <st...@tera.gr>:
>
> Because i allready have a template like this
>
> <definition name=".mainLayout"
> path="/tiles/layouts/templates/admin/blackplazza_admin/mainLayout.jsp">
> <put name="title" value="" />
> <put name="header" value=".header" />
> <put name="mainMenu"
> value="/tiles/layouts/templates/admin/blackplazza_admin/mainMenu.jsp" />
> <put name="toolbar" value="" />
> <put name="message" value="" />
> <put name="body" value="" />
> <put name="footer" value="/tiles/footers/admin/footer.jsp" />
> </definition>
>
> .......................................................................................
>
>
> <definition name=".content" extends=".mainLayout">
> <put name="title" value="Διαχείρηση Άρθρων" />
> <put name="toolbar" value=".toolbar.content" />
> </definition>
>
> and i want the toolbar definition not to dispayed at
> .content.before.delete
I see, then in <tiles:insert>, when you insert the "toolbar" attribute,
add:
ignore="true"
This will skip the missing resource.
HTH
Antonio
Re: Tiles and
Posted by Jim Theodoridis <st...@tera.gr>.
Because i allready have a template like this
<definition name=".mainLayout"
path="/tiles/layouts/templates/admin/blackplazza_admin/mainLayout.jsp">
<put name="title" value="" />
<put name="header" value=".header" />
<put name="mainMenu"
value="/tiles/layouts/templates/admin/blackplazza_admin/mainMenu.jsp" />
<put name="toolbar" value="" />
<put name="message" value="" />
<put name="body" value="" />
<put name="footer" value="/tiles/footers/admin/footer.jsp" />
</definition>
.......................................................................................
<definition name=".content" extends=".mainLayout">
<put name="title" value="Äéá÷åßñçóç ¢ñèñùí" />
<put name="toolbar" value=".toolbar.content" />
</definition>
and i want the toolbar definition not to dispayed at .content.before.delete
Antonio Petrelli wrote:
> 2007/5/21, Jim Theodoridis <st...@tera.gr>:
>>
>> Antonio Petrelli wrote:
>> > 2007/5/21, Jim Theodoridis <st...@tera.gr>:
>> >>
>> >> Hello
>> >>
>> >> I am having the follwoing definition at tiles-defs.xml
>> >>
>> >> <definition name=".content.before.delete" extends=".content">
>> >> <put name="body" value=".cPanel.content.before.delete" />
>> >> <put name="message" value=".msg.content.show" />
>> >> <put name="toolbar" value="{$1}" />
>> >> </definition>
>> >>
>> >> how can i set that "toolbar" definition will be null?
>> >
>> >
>> >
>> > What is that "{$1}"? I really cannot understand it.
>
>
>
> So you want to put a null value as an attribute?
> If it has not been defined in ".content" definition, then you simply
> need to
> remove the <put> element corresponding to the toolbar attribute.
> If it already defined in ".content", I think that you cannot do it in the
> XML file, but you can still do it by adding a Tiles controller that will
> remove that attribute value before rendering definition.
>
> BTW, why do you want to put an attribute with a null value?
>
> Antonio
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Tiles and
Posted by Antonio Petrelli <an...@gmail.com>.
2007/5/21, Jim Theodoridis <st...@tera.gr>:
>
> Antonio Petrelli wrote:
> > 2007/5/21, Jim Theodoridis <st...@tera.gr>:
> >>
> >> Hello
> >>
> >> I am having the follwoing definition at tiles-defs.xml
> >>
> >> <definition name=".content.before.delete" extends=".content">
> >> <put name="body" value=".cPanel.content.before.delete" />
> >> <put name="message" value=".msg.content.show" />
> >> <put name="toolbar" value="{$1}" />
> >> </definition>
> >>
> >> how can i set that "toolbar" definition will be null?
> >
> >
> >
> > What is that "{$1}"? I really cannot understand it.
So you want to put a null value as an attribute?
If it has not been defined in ".content" definition, then you simply need to
remove the <put> element corresponding to the toolbar attribute.
If it already defined in ".content", I think that you cannot do it in the
XML file, but you can still do it by adding a Tiles controller that will
remove that attribute value before rendering definition.
BTW, why do you want to put an attribute with a null value?
Antonio
Re: Tiles and
Posted by Jim Theodoridis <st...@tera.gr>.
Antonio Petrelli wrote:
> 2007/5/21, Jim Theodoridis <st...@tera.gr>:
>>
>> Hello
>>
>> I am having the follwoing definition at tiles-defs.xml
>>
>> <definition name=".content.before.delete" extends=".content">
>> <put name="body" value=".cPanel.content.before.delete" />
>> <put name="message" value=".msg.content.show" />
>> <put name="toolbar" value="{$1}" />
>> </definition>
>>
>> how can i set that "toolbar" definition will be null?
>
>
>
> What is that "{$1}"? I really cannot understand it.
>
> Antonio
>
I was just like null and i want something like this
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org