>From: "Ryan Wynn" <[EMAIL PROTECTED]> > > On 4/18/06, Richard Wallace wrote: > > Is the viewId the dynamic page to be included or is it the base page > > that includes the dynamic content? My situation is that I have a single > > page, /report/default.html, and that is the only view that should ever > > be the view root. Within that is all my headers and footers and stuff. > > In the content area of that view I have the clay inclusion which uses > > the backing bean to determine what to include based on the current > > page. So, if I used your method above, would I just always create a > > new root view of the /report/default.html view? > > The view id is for the base page, so in your case /report/default.html. I > have > > String viewId = FacesContext.getCurrentInstance().getViewRoot().getViewId(); > navigate(viewId);
Maybe something like this would work too? <navigation-rule> <from-view-id>/default.html</from-view-id> <navigation-case> <from-outcome>next</from-outcome> <to-view-id>/default.html</to-view-id> </navigation-case> <navigation-case> <from-outcome>prev</from-outcome> <to-view-id>/default.html</to-view-id> </navigation-case> </navigation-rule> Gary