We have a complex java object with a structure define below.
Class A{
private String a;
private B b;
}
Class B{
private x;
}
and the data-source field defined on the client side as
<fields>
<field>
<name>a</name>
<title>a Title</title>
</field>
<field>
<name>b</name>
<title>b Title</title>
<valueXPath>//B/b</valueXPath>
</field>
</fields>
When we call save data on the form, the java object is populated using the following operation.
A a = new A();
dsRequest.getDataSource().setProperties(dsRequest.getValues(), a);
The field a of class A is set but not field b. How do we set the field b of type B ?
Thanks,
Ashish Chugh
Class A{
private String a;
private B b;
}
Class B{
private x;
}
and the data-source field defined on the client side as
<fields>
<field>
<name>a</name>
<title>a Title</title>
</field>
<field>
<name>b</name>
<title>b Title</title>
<valueXPath>//B/b</valueXPath>
</field>
</fields>
When we call save data on the form, the java object is populated using the following operation.
A a = new A();
dsRequest.getDataSource().setProperties(dsRequest.getValues(), a);
The field a of class A is set but not field b. How do we set the field b of type B ?
Thanks,
Ashish Chugh
Comment