Hmm. In that case you might want to take a look at Spring's form tags to
make life a little easier:
http://static.springframework.org/spring/docs/2.0.x/reference/spring-form.tld.html
So your JSP would look something like:
<spring:form commandName="website" ...>
...
<spring:select path="contact.country" items="${countries}"
itemLabel="name" itemValue="id"/>
....
</spring:form>
A lot simpler and Spring will do all the hard work for you. As long as
your form backing object has a non-null contact attribute, it should all
work like magic. I think the problem in your code is the name you attach to
the select element - Spring expects specific names to get its bindings
sorted out.
Mike.
On 7/6/07, Aled Rhys Jones <[EMAIL PROTECTED]> wrote:
m4, wanted to finish off some functionality before updating to m5.
Cheers
Aled
------------------------------
*From:* Michael Horwitz [mailto:[EMAIL PROTECTED]
*Sent:* 06 July 2007 08:39
*To:* [email protected]
*Subject:* Re: [appfuse-user] Drop down list population
Which version of AppFuse are you using Aled?
On 7/5/07, *Tsung* <[EMAIL PROTECTED]> wrote:
Aled - Rather than having setCountryManager method, pass the
CountryManager
referene in CountryEditor's constructor.
--
View this message in context:
http://www.nabble.com/Add-ManyToOne-relationship-between-user-and-a-new-pojo-tf3993393s2369.html#a11454095
Sent from the AppFuse - User mailing list archive at
Nabble.com<http://nabble.com/>
.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]