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: FW: Missing attribute
Date Tue, 26 Aug 2008 14:06:27 GMT
2008/8/26 Hehl, Thomas <Thomas.Hehl@acs-inc.com>:
> Again, I'm almost a newb to tiles. Please explain the create a definition
> thing you're referring to below.

Ok let's start from your original definitions:

  <definition name=".logout" extends=".baseDef">
      <put-attribute name="logoutErrorKey"      value="" />
      <put-attribute name="titleKey"            value="logout.title" />
      <put-attribute name="welcomeKey"          value="logout.welcome"/>
      <put-attribute name="menu"
value="/WEB-INF/view/logout_Menu.jsp" />
      <put-attribute name="body"
value="/WEB-INF/view/logout.jsp"/>
  </definition>

  <definition name=".logoutTimeout" extends=".logout">
      <put-attribute name="logoutErrorKey"      value="logout.timeout" />
  </definition>

Essentially you need to assign an attribute in "logout.jsp", present
in "body" attribute inside the ".logout" definition.
So let's define a new definition:

<definition name=".logoutBody" template="/WEB-INF/view/logout.jsp">
      <put-attribute name="logoutErrorKey"      value="logout.timeout" />
</definition>

And let's redefine the ".logoutTimeout" definition:

  <definition name=".logoutTimeout" extends=".logout">
      <put-attribute name="body"      value=".logoutTimeout" />
  </definition>

HTH
Antonio

Mime
View raw message