Is it possible to access the Apache Tiles definition name inside a ViewPreparer?
Can I access the Apache Tiles definition name inside a ViewPreparer?
Asked Answered
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
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>
© 2022 - 2024 — McMap. All rights reserved.