navigation from page fragment

Hi I've have search box in my nav panel (page fragment). How can I set navigation case for page fragment? So when button is clicked I should go to results page.Michal
[188 byte] By [mglowacki] at [2007-11-26 11:42:27]
# 1

The navigation rules are defined in faces-config.xml.

So, if i had fragment1.jspf inside Page1.jsp and a button inside the page fragment which on click should take me to Page2.jsp

My navigation rule in faces-config would look something like:

<navigation-rule>

<from-view-id>/Page1.jsp</from-view-id>

<navigation-case>

<from-outcome>foo</from-outcome>

<to-view-id>/Page2.jsp</to-view-id>

</navigation-case>

</navigation-rule>

Where the action handler for the button returns "foo"

deepsix at 2007-7-7 11:49:19 > top of Java-index,Development Tools,Java Tools...
# 2
well, i already know that much :)but this way i would have to create separate nav rule for each page where this page fragment is defined and that's what i would like to avoid.
mglowacki at 2007-7-7 11:49:19 > top of Java-index,Development Tools,Java Tools...
# 3

Ahh well.. If you are using the same page fragment in a large number of pages

maybe you could then just expand the scope for from-view-id to "/*" and make sure that none of the other buttons return the same action string..

Unless you want the button on the page fragment to redirect to different pages depending on the page it is on..

deepsix at 2007-7-7 11:49:19 > top of Java-index,Development Tools,Java Tools...