Using the JClient Text Fields to Display Object Attributes

When using JClient text fields to display the attribute values of an object, such as those defined by an Address object, the fields will not display the attribute values (they will display instead some static text).

If you bind a text field to an object attribute, you can ensure the value is correctly displayed in the JClient panel by forcing the query to reexecute on the iterator binding of the bound object.

To force executeQuery() on the object's iterator binding, add this method call after jbInit() is done in the panel, where Street is replaced by the name of your object attribute binding:

panelBinding.findControlBinding("Street").getIteratorBinding().executeQuery();

It is only necessary to call executeQuery() on one of the object domain attributes (like Street) to force the iterator binding to refetch all attribute values of the same object.


About JClient-Specific Controls
Customizing an ADF Attribute Binding

 

Copyright © 1997, 2004, Oracle. All rights reserved.