Develop > Presentation layer > Customize WebSphere Commerce Accelerator, Organization Administration Console, or Administration Console > Tools framework > Universal dialog


Use data beans to populate values in a universal dialog

Data beans that are defined in the universal dialog definition XML file are instantiated when the universal dialog begins loading. If the data bean is also a WebSphere Commerce smartDataBean, it will also be activated at this time. A universal dialog is actually rendered as an HTML form.

If the user wants to update some properties of an item, then the bean should populate all properties in the universal dialog so the user can see the existing values. If the user wants to create an item, the bean should populate default values as well as selection options for objects such as radio buttons and check boxes.

For most data types, if the bean returns null, an empty string will be used in the final HTML form. For a date item, the current date is used.


Procedure


Related concepts

Universal dialog


Related tasks

Create a data bean

Modify the populate method


+

Search Tips   |   Advanced Search