posted 16 years ago
Hello,
I have been hunting for a solution to my issue in these forums, in my books, and elswhere on the web.
Scenario:
I have an application that I have a main page called administrationhome.jsp that includes a left_navigation.jspf as shown here:
<%@ include file="WEB-INF/jspf/left_navigation.jspf" %>
As you can surmise this has links that users will click causing an action to action/outcome to occur as shown here:
<t:commandLink id="cmdlnk_usersearch" binding="#{leftNavigation_backing.linkUserSearch}" action="usersearch" value="#{components.commandlink_leftnav_usersearch}" styleClass="leftnavlink" immediate="true" />
Now I was hoping that I would just make the following entry in my faces-config for my navigation rule and all would be well, but all I get is a refreshing of my original screen:
<navigation-rule>
<display-name>
left_navigation
</display-name>
<from-view-id>
/administrationhome.jsp
</from-view-id>
<navigation-case>
<from-outcome>
usersearch
</from-outcome>
<to-view-id>
/usersearch.jsp
</to-view-id>
<redirect />
</navigation-case>
</navigation-rule>
The above did not work, so I tried the next configuration settings, but again all I get is a refreshing of my original screen:
<navigation-rule>
<display-name>
left_navigation
</display-name>
<from-view-id>
/WEB-INF/jspf/left_navigation.jsp
</from-view-id>
<navigation-case>
<from-outcome>
usersearch
</from-outcome>
<to-view-id>
/usersearch.jsp
</to-view-id>
<redirect />
</navigation-case>
</navigation-rule>
Is it possible to have the faces-config see what is in the WEB-INF directory?
Any help would be appreciated.
Demian