I want to know if its possible to use Velocity Dynamic expressions in *.ds.xml for dynamically loading titles of dynamic form fields from the session.
I want to retrieve the title values from the bean class managed by spring.
Please help me by providing the appropriate velocity scripts in the title attributes in the ds.xml given below.
<DataSource ID="formds" serverType="generic">
<fields>
<field name="field1" title="<Velocity Script for field1>" type="text" ></field>
<field name="field2" title="<Velocity Script for field2>" type="text" ></field>
<field name="field3" title="<Velocity Script for field3>" type="text" ></field>
</fields>
<serverObject lookupStyle="spring" bean="formDao"/>
<operationBindings>
<binding operationType="fetch" serverMethod="fetch">
<serverObject lookupStyle="spring" bean="formDao"/>
</binding>
</operationBindings>
</DataSource>
I want to retrieve the title values from the bean class managed by spring.
Please help me by providing the appropriate velocity scripts in the title attributes in the ds.xml given below.
<DataSource ID="formds" serverType="generic">
<fields>
<field name="field1" title="<Velocity Script for field1>" type="text" ></field>
<field name="field2" title="<Velocity Script for field2>" type="text" ></field>
<field name="field3" title="<Velocity Script for field3>" type="text" ></field>
</fields>
<serverObject lookupStyle="spring" bean="formDao"/>
<operationBindings>
<binding operationType="fetch" serverMethod="fetch">
<serverObject lookupStyle="spring" bean="formDao"/>
</binding>
</operationBindings>
</DataSource>
Comment