wood burning stoves
The moose likes JSF and the fly likes navigation problem from main menu Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "navigation problem from main menu" Watch "navigation problem from main menu" New topic

navigation problem from main menu

Phanikiran kvs

Joined: Jul 27, 2010
Posts: 1
I have a commandlink with action: "#{incident.init}" . It works on a test jsp page. When I click on the link, the action is triggered and ends with the proper return "init" , control goes to faces-config.xml, look-up "from-outcome" and goes to "to-view-id" then the new page displays. Problem: the same link won't work on the main menu. Same commandlink with action"#{incident.init}" , same return: "init". I have System.out.println() and the method is called. But the control is back on the main menu. Somehow, it doesn't find or doesn't go to faces-config.xml. Any idea what I'm missing. Below is some code I use in the application.

// commandlink in jsp
<h:commandLink action="#{incident.init}">
<hutputText value="Create Incident"/>

faces-config.xml code:
Backing bean for incident Record.


public class IncidentBean {
public String init() {

System.out.println( "IncidentBean init.. BEGIN" );
// some code

System.out.println( "IncidentBean init.. END" );
return "init";
I agree. Here's the link: http://aspose.com/file-tools
subject: navigation problem from main menu
It's not a secret anymore!