Time for action – creating the layout for the page
We will add a link in the
navigation
facet which will display horizontal links. For this, we will add theaf:panelGroupLayout
component to the page with the layout asvertical
. This can be configured in the property inspector.Most of the time, the components are added to the page using the Structure window by right-clicking on the container icon or the section of the page and inserting the component. You may also use the Component palette to drag-and-drop the component directly onto the page.
Now add two links to the page and change their name to
Employee information
andDirectory information
. These are the text messages that will be displayed for the links.You may notice that for each component added to the page, the backing bean is updated with the references to bind the component reference to the bean. You will have to run the page each time to see the changes you have made.
What just happened?
The previous task was to explain how the...