Il giorno 23/mag/05, alle 13:39, Messing, Elad ha scritto:

������� I have a Hibernate POJO class - for a restaurant type. It is actually a mapping of a look-up table from my DB. An ID, and Name members. That's it.

Two possibilities come to mind:

A) use the src attribute and make it point to a pipeline that would query the Hibernate datastore and output some XML. You don't have to have Hibernate output XML, as you wrote: you can have a flowscript function do the query and produce XML via a template page (JXTG or Velocity). Or even an XSP page.

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");

        HTH,

                Ugo

--
Ugo Cei
Tech Blog: http://agylen.com/
Source.zone: http://sourcezone.info/
Wine & Food Blog: http://www.divinocibo.it/

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to