VGUIRecord stereotype
A Record part with the VGUIRecord stereotype is a main part and is the basis of a VGUI record variable in a VGWebTransaction program. That variable makes communication possible between the program and a specific web page. Each converse or show statement that presents the web page references a VGUI record variable.
- The VGUI record object is a Java™ class instance that contains the data being passed between the program and the web page.
- The VGUI record bean is a Java™ bean
that provides data validation and event-handling services. The UI
record bean is used in these ways:
- When a JSP prepares a web page for display, the JSP accesses the VGUI record bean, which accesses the data in the VGUI record object.
- When the user provides input to the web browser, the bean validates the input either for use by business logic or (if validation failed) for subsequent redisplay. After a successful validation, the bean stores the data in the VGUI record bean, and the EGL runtime makes the data available to the program.
- The web page is a JSP page that includes HTML fields and control structures based on the uiType property of the fields in the VGUIRecord part.
Characteristics of the VGUI record fields (length, primitive type) must match characteristics of web page fields. Fields in the VGUIRecord part use the uiType property to specify the type of HTML tag to create for that field: an input field, an output field, or a control button.
At run time, the VGUIRecord is represented by a UI record bean. Java™ code in the JSP file access this UI record bean and displays it on the page. When you design the JSP that presents the web page, be sure to bind fields in the web page to the equivalent structure fields in the VGUIRecord. This binding means that the JSP runtime transfers data between a given field in the page and the equivalent field in the VGUI record bean.
For more information on the relationship between JSP and web transactions, refer to the EGL Programmer's Guide.