This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
I have set some session attributes in servlet and I intend to have them retrieved in JSF page. But now the problem Im having now is I dont know what went wrong when I tried to direct to JSF component from servlet. May i know the full API from navigating from servlet to JSF page, please.. and what are the paths I need to set in faces-configs.xml
And for some reasons, the navigation just doesn't go through. Any idea? Been looking for a workaround for hours but still couldn't find any. WIll be waiting for an answer here...Any help will be appreciated. thanks...
Leslie Liew Eng Chuan
Joined: Jul 04, 2006
// this is to set attributes into the session JsfHelper.setSessionAttribute("taskFormParameters", taskFormParameters);
// this is to navigate to JSF page from servlet - something goes wrong here // I think FacesContext context = FacesContext.getCurrentInstance(); javax.faces.application.Application app = context.getApplication(); UIViewRoot viewRoot = app.getViewHandler().createView(facesContext, "/faces/task"); facesContext.setViewRoot(viewRoot); facesContext.renderResponse();