Hello,
I've got a server DataSource with this field:
The bean has got a field 'text' which is another bean which contains field 'theText' as normal String.
All getters and setters, parameterless constructors are available.
However, the field is not populated on the client. When I inspect the RPC Response, I see field "text" as such:
I don't see a member field "textTheText". Should it be there already in the response coming from server?
I can make it work by manually setting the datapath to the same value of the valueXPath.
Is this normal? Do I really need to do this?
(I can actually just setDataPath manually on the client without setting valueXPath in the DataSource.)
We do have a custom backend. Do we maybe need to call a special function during fetch which will 'execute' this XPath mapping?
SmartGWT EE 2.3 official release, development mode
I've got a server DataSource with this field:
Code:
<field name="textTheText" title="cccText" type="siString" valueXPath="text/theText"/>
All getters and setters, parameterless constructors are available.
However, the field is not populated on the client. When I inspect the RPC Response, I see field "text" as such:
Code:
text:{ id:50005, theText:"We do this...", timeStamp:"2006-01-19 15:57:14.140" },
I can make it work by manually setting the datapath to the same value of the valueXPath.
Code:
String valueXPath = field.getAttributeAsString("valueXPath"); if (valueXPath != null) { field.setDataPath(valueXPath); }
(I can actually just setDataPath manually on the client without setting valueXPath in the DataSource.)
We do have a custom backend. Do we maybe need to call a special function during fetch which will 'execute' this XPath mapping?
SmartGWT EE 2.3 official release, development mode
Comment