public class SeamViewMetadata
extends javax.faces.view.ViewMetadata
ViewMetadata implementation for the purpose of adding a UIViewParameter placeholder component if
necessary.
In JSF 2.0, the view metadata facet was introduced for the purpose of providing front-controller behavior in JSF. On an initial request, the full JSF lifecycle is executed on a partial view consisting of the components in the view metadata facet. However, there is one big caveat! The lifecycle is only executed if the view metadata contains at least one UIViewParameter.
This wrapper intercepts the call to ViewMetadata.createMetadataView(FacesContext) and adds a placeholder
UIViewParameter if the view metadata is non-empty and there are no other UIViewParameter components.
| Constructor and Description |
|---|
SeamViewMetadata(javax.faces.view.ViewMetadata delegate) |
| Modifier and Type | Method and Description |
|---|---|
javax.faces.component.UIViewRoot |
createMetadataView(javax.faces.context.FacesContext context) |
String |
getViewId() |
public String getViewId()
getViewId in class javax.faces.view.ViewMetadatapublic javax.faces.component.UIViewRoot createMetadataView(javax.faces.context.FacesContext context)
createMetadataView in class javax.faces.view.ViewMetadataCopyright © 2009-2013 Seam Framework. All Rights Reserved.