| Author |
faces-config + /WEB-INF/jspf Question
|
Demian Seiler
Greenhorn
Joined: Oct 20, 2006
Posts: 11
|
|
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
|
 |
A. Dusi
Ranch Hand
Joined: Sep 27, 2004
Posts: 114
|
|
|
Do you have h:messsages on your page? If not, try using it to see any errors.
|
 |
Demian Seiler
Greenhorn
Joined: Oct 20, 2006
Posts: 11
|
|
DOH! Well I feel sheepish. I do that just about everytime I start a new application. I always forget to drop that tag on the top of my pages. I had mistyped my backing bean name. Thanks for the reminder.
|
 |
 |
|
|
subject: faces-config + /WEB-INF/jspf Question
|
|
|