Can I access the Apache Tiles definition name inside a ViewPreparer?
Asked Answered
A

1

6

Is it possible to access the Apache Tiles definition name inside a ViewPreparer?

Acuff answered 10/4, 2012 at 11:45 Comment(1)
that's a very good question, bro. I've been looking for the same thing. I've submitted an issue on the apache foundation jira system, issues.apache.org/jira/browse/TILES-564, hopefully they'll develop the feature.Pentha
A
1

just add the attribute into the xml, eg

<definition name="t.*" extends="t.container">
    <put-attribute name="body" value="/WEB-INF/jsp/{1}.jsp"/>
    <put-attribute name="title" expression="${song.title} - ${song.author} in ${jukebox.name}"/>
    <put-attribute name="view" value="t.{1}"/>
</definition>
Africanize answered 27/5, 2013 at 7:19 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.