Monday, 30 April 2018

Step 5: Modify the layout of the page

You modify the page by adding some components to determine the layout of the page. First you add a dashboard to set the general layout of the page. Then you add components which will display synchronized data
  1. Go back to JDeveloper and in the Structure window, select the f:facet - center.
    This screenshot shows the Structure window that displays the attributes of a JSF papge with Center facet selected.
  2. Modify the layout of the header. In the Components Window, expand the Layout node and in the Interactive Containers and Headers section, notice the Panel Dashboard.
    This screenshot shows the Components window with Layout node expanded. The Layout node dispalys the layout components. Few Layout components are displayed under Interactive Containers and Headers section, where panelDashboard is highlighted.
    Drag it and drop it onto the f:facetCenter in the Structure window.
    This screenshot shows the Structure Window with panelDashboard placed under the Center facet.
  3. Next in the Components window, find another layout component, a Panel Box.
    This screenshot shows the Components window with panelBox selected under Layout node.
    Drag and drop it, in the Structure window, on the af:panelDashboard component your just added.
    This screenshot shows the Structure window with panelBox placed under panelDashboard.
  4. Add another 3 Panel Boxes to the af:panelDashboard so that you have four in total.
    This screenshot shows the Structure window with four panel boxes placed under panelDashboard.
  5. Set a property for all the panel boxes. In the Structure window, select all the af:panelBoxes.
    Then in the Properties window, set the Appearance > ShowDisclosure to false.
    Save your work
    This screenshot shows the Structure window with all Panel Boxes selected and the Properties window of the Panel Boxes, where Appearance section is expanded.
  6. Back in the Structure window, select the af:panelDashboard.
    Then set the Columns to 2 and RowHeight to 350px.
    Save All your work
    This scresnshot shows the Structure window with panelDashboard selected and the properties windows of panelDashboard where Common section is expanded. The Columns and RowHeight attributes are highlighted.
  7. Go back to your browser and reload the page to see the panel boxes.
    This screenshot shows the reloaded browser page that displays the data on the left side with all the inserted panel boxes on the right side.