Ugo Cei wrote:

B) possibly simpler:

var form = new Form("formdef.xml");
var list = hibernateSession.find("from ...");
form.lookupWidget("widget-id").setSelectionList(list, "id", "name");
form.showForm("form-template");

Or declare selection list as JXPath in scheme

<fd:selection-list type="flow-jxpath" list-path="RESTAURANTS" value-path="id" label-path="name"/>

And in flowscript :

var form = new Form("formdef.xml");
var data = new Object();
data.RESTAURANTS = hibernateSession.find("from ...");
form.showForm("form-template",data);


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to