tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Pratt" <thechrispr...@gmail.com>
Subject Re: MyFaces and Tiles
Date Thu, 20 Sep 2007 17:53:10 GMT
One step forward, two steps back.  Now that it appears to be rendering
everything correctly, it doesn't appear to want to navigate between
the pages.  For those playing the home version, the code is available
at http://www.planetpratt.com/xfer/crash5.war

I have a very simple tiles.xml with two definitions:

  <definition name="index" template="/layout/layout.jsp">
    <put-attribute name="title" value="Crash Test Dummy" type="string"/>
    <put-attribute name="body" value="/body/body.jsp" type="template"/>
  </definition>

  <definition name="home" template="/layout/layout.jsp">
    <put-attribute name="title" value="Welcome Home" type="string"/>
    <put-attribute name="body" value="/body/home.jsp" type="template"/>
  </definition>

And a single navigation-rule in faces-config.xml

  <navigation-rule>
    <from-view-id>/index.jsp</from-view-id>
    <navigation-case>
      <from-outcome>success</from-outcome>
      <to-view-id>/home.jsp</to-view-id>
    </navigation-case>
  </navigation-rule>

But when the commandButton submits action="success" it just goes back
to the original page.  I can't figure out how to get it to actually
follow the navigation rules?  Any ideas?  Thanks.

  (*Chris*)

Mime
View raw message