Available since OmniFaces 2.0

The <o:resolveComponent> component is a utility component via which a component can be looked up by its ID and a reference to it put in either the "facelet scope" (default) or the request scope.


Text directly via component: This is output text

Text via component reference: This is output text

Demo source code
    Text directly via component:
    <h:outputText id="myText" value="This is output text" />

<o:resolveComponent name="outputRef" for="myText" />

    Text via component reference: #{outputRef.value}