0 Replies Latest reply on Oct 29, 2007 11:19 AM by Gerald Paguio

    Using rich:menuItem with Apache Tiles in page navigation

    Gerald Paguio Newbie

      Hi there!

      I have an application using Apache Tiles as my web layout and RichFaces' <rich:menuItem> component. I am navigating my other pages but it doesn't work... Here's the sample of my code :

      In menu.jsp...

      <rich:dropDownMenu value="Add Cafgu Records" direction="bottom-right" jointPoint="tr" horizontalOffset="-12" verticalOffset="0" style="width : 200px; background-color: #006699; color : #ffffff; border : 1px dotted #333333;">
      <rich:menuItem value="Profile" immediate="true" submitMode="server" action="to_profile"/>
      <rich:menuItem value="Military Schooling" immediate="true" submitMode="server" action="to_milSchooling"/>
      <rich:menuItem value="Awards and Commendations" immediate="true" submitMode="server" action="to_awards"/>
      <rich:menuItem value="Statement of Service" immediate="true" submitMode="server" action="to_statement"/>
      <rich:menuItem value="Employment" immediate="true" submitMode="server" action="to_employment"/>
      <rich:menuItem value="Marital Status" immediate="true" submitMode="server" action="to_marital"/>
      <rich:menuItem value="Dependents" immediate="true" submitMode="server" action="to_dependents"/>
      <rich:menuItem value="Relatives" immediate="true" submitMode="server" action="to_relatives"/>
      <rich:menuItem value="Character References" immediate="true" submitMode="server" action="to_character"/>
      </rich:dropDownMenu>



      In my tiles.xml...

      <tiles-definitions>


      <put-attribute name="title" value=""/>
      <put-attribute name="banner" value=""/>
      <put-attribute name="menu" value="/tiles/menu.jsp"/>
      <put-attribute name="body" value=""/>
      <put-attribute name="footer" value="/tiles/footer.jsp"/>



      <put-attribute name="title" value="CAA Information System ~ Cafgu Profile"/>
      <put-attribute name="body" value="/profile.jsp"/>



      <put-attribute name="title" value="CAA Information System ~ Cafgu Profile"/>
      <put-attribute name="body" value="/address_unit.jsp"/>



      <put-attribute name="title" value="CAA Information System ~ Cafgu Profile"/>
      <put-attribute name="body" value="/education_contact.jsp"/>



      <put-attribute name="title" value="CAA Information System ~ Cafgu Profile"/>
      <put-attribute name="body" value="/tariffs_firearms.jsp"/>



      <put-attribute name="title" value="CAA Information System ~ Military Schooling"/>
      <put-attribute name="body" value="/military.jsp"/>



      <put-attribute name="title" value="CAA Information System ~ Awards and Commendations"/>
      <put-attribute name="body" value="/awards.jsp"/>



      <put-attribute name="title" value="CAA Information System ~ Statement of Service"/>
      <put-attribute name="body" value="/statement.jsp"/>



      <put-attribute name="title" value="CAA Information System ~ Employment Records"/>
      <put-attribute name="body" value="/employment.jsp"/>


      </tiles-definitions>


      And here's my navigation in faces-config.xml...

      <navigation-rule>
      <from-view-id>/tiles/menu.jsp</from-view-id>
      <navigation-case>
      <from-outcome>to_profile</from-outcome>
      <to-view-id>/profile.jsp</to-view-id>
      </navigation-case>
      <navigation-case>
      <from-outcome>to_milschooling</from-outcome>
      <to-view-id>/military.jsp</to-view-id>
      </navigation-case>
      <navigation-case>
      <from-outcome>to_awards</from-outcome>
      <to-view-id>/awards.jsp</to-view-id>
      </navigation-case>
      <navigation-case>
      <from-outcome>to_statement</from-outcome>
      <to-view-id>/statement.jsp</to-view-id>
      </navigation-case>
      <navigation-case>
      <from-outcome>to_employment</from-outcome>
      <to-view-id>/employment.jsp</to-view-id>
      </navigation-case>
      </navigation-rule>

      How should I solve this?

      Thanks for your help in advance...