Hello Jakub
        
Il giorno 23/mag/05, alle 14:26, Messing, Elad ha scritto:

>>      However - is it possible to use this declaration in the form XML ? :
>>      <fd:field id="type">
>>              <fd:label>Type</fd:label>
>>            <fd:datatype base="long"/>
>>              <fd:selection-list type="flow-jxpath" list-path="restTypeList" 
>> value-path="id" label-path="name"/>
>>     </fd:field>

>Yes, it is possible but is not recommended. At the moment, I cannot 
>find a pointer to the relevant discussion, so you'll have to research 
>it yourself or take my word for it ;).

>       Ugo 

As you can see, We have already discussed that option.
However, Ugo mentioned that this is not recommended, and I didn't manage to 
find the discussion, So I am still using the solution - as you offered it.

Thanks anyway !

Elad

-----Urspr�ngliche Nachricht-----
Von: Jakub Kaniewski [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 27. Mai 2005 21:42
An: [email protected]
Betreff: Re: Selection list populated from Hibernate POJO

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]



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

Reply via email to