When the displayUse property is set to button or hyperlink,
the action property identifies the code
that EGL invokes when the user clicks the button or link in a web
page that a JSF handler displays.
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 the following
kinds of string literals:
- The name of an event-handling function in the JSF handler.
- 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 following events take place when the user clicks the field:
- If the value of the displayUse property
is button, validation occurs, after which
JSF redisplays the same web page.
- If the value of the displayUse property
is hyperlink, validation does not occur,
and JSF simply redisplays the same web page.