Previous Next vertical dots separating previous/next from contents/index/pdf

Data Binding

Web application development is very much centered around the integration of dynamic data with the presentation elements on a web page. Unfortunately, there is not a uniform or universal approach to this problem and in fact, there are competing standards and frameworks that all approach this problem differently. The Workshop Studio group of products provide a data-binding engine that understands how to make the data from your application available in your web pages. It does this by tying into the application database and into the extended metadata that is provided through your classes and tag libraries. This information is combined through the Variables view and the Tag Editors to provide intelligence to every editable element on the page. The Workshop Studio group of products allow any attribute of any element in your web page to be bound with dynamic data, and can still make use of framework specific patterns for data binding.

You can bind any attribute of selected elements in the JSP editor using the Property Sheet and the data binding engine will automatically generate the tags which will output the data-bound value to the page. In the case of JSP pages, the IDE will use jsp:getProperty tags and in the case of Struts, the IDE will use bean:write tags. This intelligence is built-in and requires no additional configuration from the developer. The IDE also extends the concept of data binding to deal with localization, and supports binding presentation elements to localized data sets.

Struts

One of the most significant advantages that Struts provided for early adopters was its powerful data binding model. Struts is based on the use of Java beans as data elements in the web page and supports a data binding model that allows a Java bean or any property of a Java bean to be easily accessed through a combination of a name / property pattern. This pattern is used in conjunction with the Struts tag libraries to allow property values to easily be output, evaluated and compared. BEA Workshop Studio and BEA Workshop for Struts fully support this model for data binding. As a result, you will see many of the Struts tag editors which refer to bean/property and name/property fields.

Related concepts

Application Database
Web Application Artifacts

Related reference

Choose Binding Dialog

 

Skip navigation bar   Back to Top