4. Select a JavaBean class from the Class field or click the Browse button to locate the file. JavaBeans
may be in CLASS (.class), ZIP (.zip), or JAR (.jar) files.
5. To set the default value of any of the bean??™s properties, select the item from the Properties area and
enter a new value in the Default Value field. To set the default value to dynamic value, click the
lightning-bolt icon.
6. Click OK when you??™re finished.
JavaBean Collection
To insert a JavaBean Collection as a data source, follow these steps:
1. From the Server Behaviors panel, click the Add (+) button and choose JavaBean Collection from
the list. The JavaBean Collection dialog box, shown in Figure 34-25, is displayed.
2. Select a JavaBean class from the Class field or click the Browse button to locate the file.
3. Select an Indexed Property to use from the list.
4. Make sure that the Item Class entered by Dreamweaver is correct, modifying it if necessary.
5. Set how the JavaBean variables may be accessed by choosing a Scope: page, request, session, or
application.
6. Click OK when you??™re finished.
1077
Handling Server Behaviors 34
FIGURE 34-25
Dreamweaver automatically reads the indexed property for a selected JavaBean Collection
data source.
ASP.NET server behaviors
Two special server behaviors make displaying dynamic data quick and easy: DataGrid and DataList.
Pages:
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823