View fragment
An improved version of f:subview that correctly orders JSF and HTML tags.
Component at design time
There is no visible runtime rendering of the
viewFragment tag. This tag is not directly rendered as content within the body tag (it's children are rendered).
Component at runtime
There is no visible runtime rendering of the
viewFragment tag.
Properties and All Attributes views
The Properties view for a component shows the most common set of attributes you can set on a component, and, depending on the component, you might also see options for adding controls, actions, or other components. To open the Properties view, click
Window | Show View | Properties.
These are the common attributes for the viewFragment tag:
Table 1. viewFragment tag attributes Attribute name
Description
binding
An expression that binds the component's instance (usually a user interface component) to a bean property (usually in the backing file).
id
Assigns a name to a component. Should be a unique name within a JSP.
rendered
Can be set to true or false:
- false - Component will not be rendered to the browser at runtime.
- true - Component will get rendered. This is the default value.