Hello,

I need to bind a bean to a form using Cforms. My bean looks like this:

public class MyBean {

        String name;
        String description;
        List cars;

        // ... Setter and Getter here

        // Returns the selected car
        String getSelectedCar()...
}

I know how to bind this values to the form using the binding xml. But I
don't know how to repoduce the selection state of the cars list coming form
a presistence layer like the database. Let's say the bean contains the
following values right after loading it from the database:

name = Foo
description = Bar
cars = {BMW, Audi, Peugeot}
getSelectedCar = Audi

How can I reproduce the form in order to select "Audi" in the dropdown box
for cars automatically?

Thank you a lot!

Regards
Stephan


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

Reply via email to