• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

faces-config + /WEB-INF/jspf Question

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you have h:messsages on your page? If not, try using it to see any errors.
 
Demian Seiler
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
reply
    Bookmark Topic Watch Topic
  • New Topic