Ahh, that's it! 

>       <fb:value="selected-car" path="selectedCar"/>

This was the line I've missed. Thx! :)

But what can I do, if more than one car can be selected?

Thank you, Mark!

Regards
Stephan

> -----Ursprüngliche Nachricht-----
> Von: news [mailto:[EMAIL PROTECTED] Im Auftrag von Mark Lundquist
> Gesendet: Dienstag, 28. Juni 2005 16:52
> An: [email protected]
> Betreff: Re: AW: [Cforms] How to reproduce the selection state?
> 
> On 2005-06-28 04:00:46 -0700, "Stephan Coboos" 
> <[EMAIL PROTECTED]> said:
> 
> > Hi Mark,
> > 
> > Thanks for your answer.
> > 
> >>> name = Foo
> >>> description = Bar
> >>> cars = {BMW, Audi, Peugeot}
> >>> getSelectedCar = Audi
> >>> 
> >> I don't see the problem.  If cars and selectedCar are both bean 
> >> properties, why should it make a difference what the values are or 
> >> that they came from a database?
> >> 
> >> 
> >>> How can I reproduce the form in order to select "Audi" in the 
> >>> dropdown box for cars automatically?
> >>> 
> >> It should "just work" (;-)... have you tried it?
> > 
> > No, because I don't know how to say to Cforms that it have 
> to select 
> > Audi at form load.
> 
> So... how is that not just
> 
>       form.load (bean);
> 
> ???  I must just not be understanding your question :-/
> 
> You have
> 
>       <fb:value="selected-car" path="selectedCar"/>
> 
> or something along those lines, right?
> 
> —ml—
> 
> 
> 
> ---------------------------------------------------------------------
> 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