tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Petrelli" <antonio.petre...@gmail.com>
Subject Re: Configure a ViewPreparer
Date Tue, 22 Jan 2008 08:22:51 GMT
2008/1/21, Vernon <vwu725@yahoo.com>:
>
>     <definition name="new_ads"
> template="/WEB-INF/jsp/categories/new_ads.jsp"
> controllerClass="com.abc.xyz.web.ad.NewADComponentController">
>         <put name="size" value="50"/>
>     </definition>
> ....
> <definition name="new_ads"
> preparer="com.abc.xyz.web.ad.NewADViewPreparer">
>   <put-attribute name="???"
> value="/WEB-INF/jsp/categories/new_ads.jsp" /> <===
> what the attribute name shall be?
>   <put-attribute name="size" value="50"/>
> </definition>
>

The definitions are not equivalent!
In the first version of your code, you see the "template" XML attribute:
there is a "template" XML attribute in Tiles 2 too:

<definition name="new_ads"
preparer="com.abc.xyz.web.ad.NewADViewPreparer"
template"/WEB-INF/jsp/categories/new_ads.jsp">
  <put-attribute name="size" value="50"/>
</definition>

HTH
Antonio

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