cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephan Coboos" <>
Subject [Cforms] How to reproduce the selection state?
Date Tue, 28 Jun 2005 07:34:27 GMT

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!


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message