2008/11/24 pesho318i <[EMAIL PROTECTED]>:
> I just found my mistake!
> It seems that in the tiles.xml file I have defined one tile 2 times, grrrr:

Whoops! In fact your problem is pretty common.

> <definition name=".welcome" extends=".page">
>        <put-attribute name="content" value=".welcomeContent"/>
> </definition>
> <definition name=".welcome" extends=".page">
>        <put-attribute name="content" value=".welcomeContent"/>
>        <put-attribute name="autocomplete" value="/jsp/ajaxListRelations.jsp"/>
> </definition>

This is strange: if these definitions are defined in the order that
you posted, the latter one should be got. Probably it is a bug.

> This caused no error at runtime. however, the application was reading the
> first declaration only, and hence the error I got: "Attribute 'autocomplete'
> not found"

Tiles 2.0.6 will pop up the exception so you can see it.

> So it seems that the current versions of Struts and Tiles I use are working
> fine (struts 2.0.11 and tiles 2.0.5)

I suggest to upgrade anyway, Tiles 2.0.6 is a more stable release.

Antonio

Reply via email to