You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tiles.apache.org by mikecg <mi...@celerityglobal.com> on 2011/08/08 20:57:38 UTC
Re: Put-list-attribute inheritance
Ok..maybe you could help me.. I'm trying to use the inherit on a
put-list-attribute using 2.2.2, but I'm getting the error *Attribute
"inherit" must be declared for element type "put-list- attribute"*. See my
code below--thanks to anyone who can help!
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
"http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
<definition name="base.js" template="/WEB-INF/jsp/js/js.jsp">
<put-list-attribute name="js">
<add-attribute value="/js/jquery.js" type="string" />
<add-attribute value="/js/jquery-ui.js" type="string" />
</put-list-attribute>
</definition>
<definition name="arbor.js" extends="base.js">
<put-list-attribute name="js" inherit="true" >
<add-attribute value="/js/arbor.js" type="string" />
</put-list-attribute>
</definition>
--
View this message in context: http://struts.1045723.n5.nabble.com/Put-list-attribute-inheritance-tp3554106p4678736.html
Sent from the tiles users mailing list archive at Nabble.com.
Re: Put-list-attribute inheritance
Posted by Antonio Petrelli <an...@gmail.com>.
Please do not hijack others' thread, especially the ones of 2 years ago.
Please start a new thread.
Antonio
2011/8/8 mikecg <mi...@celerityglobal.com>
> Ok..maybe you could help me.. I'm trying to use the inherit on a
> put-list-attribute using 2.2.2, but I'm getting the error *Attribute
> "inherit" must be declared for element type "put-list- attribute"*. See my
> code below--thanks to anyone who can help!
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <!DOCTYPE tiles-definitions PUBLIC
> "-//Apache Software Foundation//DTD Tiles Configuration
> 2.0//EN"
> "
> http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
>
>
> <definition name="base.js" template="/WEB-INF/jsp/js/js.jsp">
> <put-list-attribute name="js">
> <add-attribute value="/js/jquery.js" type="string" />
> <add-attribute value="/js/jquery-ui.js" type="string" />
> </put-list-attribute>
> </definition>
>
> <definition name="arbor.js" extends="base.js">
> <put-list-attribute name="js" inherit="true" >
> <add-attribute value="/js/arbor.js" type="string" />
> </put-list-attribute>
> </definition>
>
>
>
> --
> View this message in context:
> http://struts.1045723.n5.nabble.com/Put-list-attribute-inheritance-tp3554106p4678736.html
> Sent from the tiles users mailing list archive at Nabble.com.
>