Using different output components
This recipe describes how to use the outputText
, outputFormatted
, image
, icon
, statusIndicator
, and media
components of ADF Faces.
In this recipe, we will create a page to showcase a different output component. You can continue from the previous recipe, or you can grab the ADFFacesOutputComponents
application from Git repository.
How to do it...
In order to add different output components, follow the ensuing steps:
Open the
adfc-config.xml
file.Drag-and-drop a view activity inside the diagram and name it
outputComponents
.Double-click on the view activity to create the JSF page and choose Oracle Three Column Layout as a template.
Drag a panel group layout and drop it inside the
center
facet.Change the
Layout
attribute toscroll
.Drag an
outputText
component inside the panel group layout.Change the
Value
attribute toSample Date
.Drag another
outputText
component.Change the
Value
attribute to#{viewScope.output.sampleDate}
. This is an existing managed bean that has...