[RSS]

How do I use the page alert component?

The Java Studio Creator tutorial Using the Page Alert Component covers this topic, however you must make the following changes to its steps:

In the section Adding Properties to the SessionBean, replace step 2 with the following steps:

  • In the Outline window, right-click SessionBean1 and add the following properties to the session bean:
    • Name: userPageAlert; Type: PageAlert
    • Name: userMessage; Type: String
    • Name: userVisible; Type: boolean.
  • Double-click the SessionBean1 node to open its Java file. Right-click anywhere in the file and choose Fix Imports.

In the section Creating a Page to Display the Page Alerts:

  • After step 3, select the radio button labeled All below the box labeled Select bindable property.

In the section Adding a Group Panel to the Page Alert:

  • Add the f:facet tags around the following tag:
    <webuijsf:panelGroup binding="#{UserAlert.groupPanel1}" id="groupPanel1"/>

In the section Defining Page Navigation:

Note that page navigation behaves slightly differently in Visual Web Pack than it does in Java Studio Creator.
For more information, see the Visual Web Pack tutorial Setting Up Page Navigation.