struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan Wynn" <>
Subject Re: [shale] Dynamic includes in clay
Date Tue, 18 Apr 2006 18:13:07 GMT
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();
View raw message