Results 1 to 2 of 2
  1. #1
    hannehomuth's Avatar
    hannehomuth is offline Member
    Join Date
    Jul 2008
    Location
    Sommerfeld (Brandenburg, Germany)
    Posts
    36
    Rep Power
    0

    Default [SOLVED] Navigate from a tiles to another page

    Hi @ all,

    I use JSF (Myfaces) with Apache Tiles. What I want to do is to navigate FROM a tile to another page. A concret example.
    I have a tile "navigation.jsp". This tiles is inserted in many other pages. Wenn I set a navigation rule from this tiles to another page it will not work because the page I'm actually on is not the tile itself rather than the page in which this tile was inserted. I have a little picture of my navigation rules



    If I would do that navigation rule from the index.jsp it will work, but that means that I have to do the same navigationrules again and again, from each page which I will add. Do you know what I mean and do you know I could fix that?

    Thx for suggestions

  2. #2
    hannehomuth's Avatar
    hannehomuth is offline Member
    Join Date
    Jul 2008
    Location
    Sommerfeld (Brandenburg, Germany)
    Posts
    36
    Rep Power
    0

    Default Solution found

    Hi again, I found the solution by myself.

    You can use an general <from-view-id> tag.

    <navigation-rule>
    <from-view-id>*</from-view-id>
    <navigation-case>
    <from-outcome>searchOe</from-outcome>
    <to-view-id>/pages/vwdmsoe/search.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>

    That means that from every page you will come to this site if the outcome is searchOe.


Similar Threads

  1. Common error page using struts tiles...?
    By prabhurangan in forum Web Frameworks
    Replies: 0
    Last Post: 08-28-2008, 03:34 PM
  2. [SOLVED] Navigate with Cursor keys
    By hannehomuth in forum Advanced Java
    Replies: 7
    Last Post: 07-25-2008, 01:22 PM
  3. Replies: 0
    Last Post: 07-11-2008, 04:07 PM
  4. struts tiles
    By sasikumarm in forum Web Frameworks
    Replies: 0
    Last Post: 03-27-2008, 03:36 PM
  5. Tiles in JSF
    By Heather in forum SWT / JFace
    Replies: 2
    Last Post: 06-30-2007, 04:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •