struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc Eckart" <marc.eck...@googlemail.com>
Subject Re: OT: Tiles and Tags
Date Fri, 27 Jun 2008 11:21:19 GMT
Sorry :-)
I want to set the attributes of the menu tag like menuBar or
menuItemKey from a tiles.xml

I tried to set the attribute with:

	<menu:menu menuBar="<tiles:useAttribute name="menuBar"/>"
menuItemKey="menu.item.customersearch" />

I get then /> in the menuBar member. I think nesting tiles tags in
custom tags does not work? But how can I do this?

My tiles definition is this:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD
Tiles Configuration 2.0//EN"
"http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
<tiles-definitions>
  	<definition name="schufa.HelloWorldPage" extends=".mainLayout" >
  		<put-attribute name="titleKey" value="title.schufa"/>
  		<put-attribute name="menuItemKey" value="menu.item.customersearch"/>
  		<put-attribute name="menuBar" value="Main"/>
  		<put-attribute name="body"
value="/de/seb/schufa/view/HelloWorldTiles.ftl" type="template" />
	</definition>	
</tiles-definitions>

2008/6/27 Antonio Petrelli <antonio.petrelli@gmail.com>:
> 2008/6/27 Marc Eckart <marc.eckart@googlemail.com>:
>> Now we want to make the attributes of the menu tag configurable with tiles.
>> I have no clue how to do this.
>
> What are you trying to accomplish? Be clearer please.
>
> Antonio
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message