tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rabenda, Clay" <Clay.Rabe...@mtvnmix.com>
Subject Put-list-attribute inheritance
Date Fri, 17 Apr 2009 21:41:07 GMT
Hi everyone,
I'm using Tiles 2.1.2 and am seeing some bugs using putListAttribute
inheritance.  I am seeing 2 of the 'parent' elements(and I think 3 with
2.1.1).

E.G.
This configuration:
<definition name="main" template="/views/main.jspx">
	...
	<put-list-attribute name="css_files">
		<add-attribute value="common.css" />
	</put-list-attribute>
	...
</definition>
...
<definition name="home" extends="main">
	...
	<put-list-attribute name="css_files" inherit="true">
    		<add-attribute value="foo.css" />
	</put-list-attribute>
	...
</definition>
Results in:
<link media="screen" type="text/css" rel="stylesheet"
href="/styles/common.css" />
<link media="screen" type="text/css" rel="stylesheet"
href="/styles/common.css" />
<link media="screen" type="text/css" rel="stylesheet"
href="/styles/foo.css" />

Unfortunately, due to a Spring 2.5.6 requirement I am using a custom
TilesConfigurer which was posted by Slava Kudinov here:
http://forum.springsource.org/showthread.php?t=65907
I'm not sure if this might be the cause of my problem but that's my best
guess...

Thanks in advance,
Clayton Rabenda



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message