Documentation
FaceletsTools

Search 

Contents

  1. Introduction
  2. Getting Started
  3. Facelets Concepts
  4. Document Types
  5. Design View Support
  6. Code View Support
  7. Keyboard Shortcuts
  8. Tag Object Toolbars
  9. Property Inspectors
Selected 10. Facelets Tag Reference

10. Facelets UI Tag Reference

Contents > Facelets UI Tag Reference > ui:param

ui:param

The UI Param tag is used to pass objects as named variables between Facelets. The name attribute of the UI Param tag should match the name attribute of a ui:define tag contained in a ui:composition or ui:decorate in the template page receiving the object. The UI Param tag can also be used to pass objects to another page by using the ui:include tag.

Example:

<p><strong>param.jsf</strong></p>
<ui:include src="hello.jsf">
  <ui:param name="greeting" value="#{helloBean.message}"/>
</ui:include>

        

HTML Output

<p><strong>param.jsf</strong></p>
<h2>Hello World</h2>

Tag Attributes

name String
Required
The name of the variable to pass to the included Facelet.
value String
Required
The literal or EL expression value to assign to the named variable.