When the EGL property displayUse is button or hyperlink, the property action identifies
the code that is invoked when the user clicks the button or link in a Web
page displayed by a PageHandler. The property has not effect for fields in
VGUIRecords.
The value you assign to action is used as a default
when you place the field (or a record that includes the field) on the Web
Page in Page Designer.
The value of
action is one of these kinds of
string literals:
- The name of an event-handling function in the PageHandler
- A label that maps to a Web resource (for example, to a JSP) and that corresponds
to a from-outcome attribute of a navigation-rule entry in the JSF Application
Configuration Resource file
- The name of a method in a Java™ bean, in which case these rules apply:
- The format is the bean name followed by a period and a method name
- The bean name must relate to one of the managed bean-name entries in the
JSF Application Configuration Resource file
If you do not specify a value for
action, the
user's click of the field has the following effect:
- If the value of the property displayUse is button,
validation occurs, after which JSF re-displays the same Web page.
- If the value of the property displayUse is hyperlink,
no validation occurs, but JSF re-displays the same Web page.