Implementing Rails Build Features Using Apache Tiles

Has anyone tried to duplicate Ruby on Rails using Apache Tiles 2 layout? I am trying to integrate Tiles 2 with Spring. I have a previously written custom view viewver for the Spring framework that does this quite nicely, but I am upgrading to Spring Webflow 2 and I need to be able to integrate Tiles 2

0


source to share


1 answer


I did just that. Here are some snippets from this Java application.

<definition name="registration" template="/tiles/layouts/defaultLayout.jsp">
  <put-attribute name="body" value="undefined" />
  <put-attribute name="footer" value="/tiles/footer.jsp?alt=true" />
</definition>

<definition name="site.signup" extends="registration">
  <put-attribute name="page" value="Signup" />
  <put-attribute name="body" value="/jsp/common/signup.jsp" />
</definition>

      



Something like this worked for us. It's been a while (I was running into Ruby's world) so I couldn't honestly explain what that really means.

0


source







All Articles