How the views bound name is set ?

Hi,

I have a question on setting of the view's ( say for example static

text field)bound name. My understanding is that we specify a view's

binding to a model's field through display field descriptor (by

setting the BOUND_DATAOBJECT_NAME_PROP,BOUND_DATAFIELD_NAME_PROP

attributes in the display field descriptor). I specified the two

attributes in the display field descriptor. However it is not

populating the view. Finally what i did is , I changed the constructor

of the StaticTextField view to the following :

public StaticTextField(View parent, Model model, String name, String

boundName,Object value, DisplayFieldDescriptor descriptor)

{

//super(parent,model,name,boundName, descriptor);

super(parent,model,name,

descriptor.getStringAttribute(DisplayFieldDescriptor.BOUND_DATAFIELD_N

AME_PROP), descriptor);

setValue(value,false);

}

It worked. Did I miss anything here ? or is it a bug ?

Thanks in Advance,

syam.

[1092 byte] By [Guest] at [2007-11-25 9:30:47]
# 1
Hi Mike,Thanks a lot for the explanation. It is clear now.regards,syam.
Guest at 2007-7-1 16:37:36 > top of Java-index,Development Tools,Java Tools...