Re: [appfuse-user] editing bean associations

2007-10-11 Thread George.Francis
that is, customerManager on ApplicationFormController is null despite my adding to the dispatcher-servlet.xml George.Francis wrote: > > Sorry for being slow, but should I be doing that on > ApplicationFormController, ApplicationController, CustomerFormController > or CustomerController? >

Re: [appfuse-user] editing bean associations

2007-10-11 Thread George.Francis
Sorry for being slow, but should I be doing that on ApplicationFormController, ApplicationController, CustomerFormController or CustomerController? I tried adding the required methods to ApplicationFormController, but it seems that it's setCustomerManager(customerManager) method is never called

Re: [appfuse-user] editing bean associations

2007-10-11 Thread Michael Horwitz
You need to populate the "customers" variable in your controller. Override the referenceData() method, call the getAll() method on your Dao and populate the request. Mike. On 10/11/07, George.Francis <[EMAIL PROTECTED]> wrote: > > > > Hi, > I'm not populating it, I assumed that if I specified the

Re: [appfuse-user] editing bean associations

2007-10-11 Thread George.Francis
Hi, I'm not populating it, I assumed that if I specified the value "customers" that the framework would read the beans from the customer table. Obviously this is incorrect. Could you tell me the correct way to specify that the options should be read from the Customer table? Mik

Re: [appfuse-user] editing bean associations

2007-10-11 Thread Michael Horwitz
Could you give some details as to how you go about populating the variable "customers" for the jsp page? It should contain a list of Customer objects loaded from your database. It looks like you are loading it with a collection of String objects? Mike On 10/10/07, George.Francis <[EMAIL PROTECTED

Re: [appfuse-user] editing bean associations

2007-10-10 Thread George.Francis
This gave me the error: org.apache.jasper.JasperException: /WEB-INF/pages/applicationform.jsp(29,9) PWC6131: Attribute labelValue invalid for tag options according to TLD I tried changing it to: and I get the error: javax.servlet.jsp.JspException: Type [java.lang.String] is not valid for opti

Re: [appfuse-user] editing bean associations

2007-10-10 Thread Matt Raible
http://www.springframework.org/docs/reference/spring-form.tld.html#spring-form.tld.options Matt On 10/10/07, George.Francis <[EMAIL PROTECTED]> wrote: > > Sorry, can you be more specific regarding what I need to change? > > > mraible wrote: > > > > I believe it should be a Map unless you specif

Re: [appfuse-user] editing bean associations

2007-10-10 Thread George.Francis
Sorry, can you be more specific regarding what I need to change? mraible wrote: > > I believe it should be a Map unless you specify label and value > properties. > > Matt > > On 10/10/07, George.Francis <[EMAIL PROTECTED]> wrote: >> >> I tried the following in my JSP: >> >> >> >

Re: [appfuse-user] editing bean associations

2007-10-10 Thread Matt Raible
I believe it should be a Map unless you specify label and value properties. Matt On 10/10/07, George.Francis <[EMAIL PROTECTED]> wrote: > > I tried the following in my JSP: > > > > > > > > > > and I get: > > [ismid] ERROR [btpool0-7]

Re: [appfuse-user] editing bean associations

2007-10-10 Thread George.Francis
I tried the following in my JSP: and I get: [ismid] ERROR [btpool0-7] OptionsTag.doStartTag(80) | Type [java.lang.String] is not valid for option items mraible wrote: > > What's the problem? What are you using and what's not work

Re: [appfuse-user] editing bean associations

2007-10-10 Thread Matt Raible
What's the problem? What are you using and what's not working? Are you seeing an error? Matt On 10/10/07, George.Francis <[EMAIL PROTECTED]> wrote: > > Hello, > I have made a SpringMVC application and defined two beans, Customer and > Application. One of the members of the Application bean is a

[appfuse-user] editing bean associations

2007-10-10 Thread George.Francis
Hello, I have made a SpringMVC application and defined two beans, Customer and Application. One of the members of the Application bean is a Customer. I'm having trouble getting the applicationform.jsp page to display a list of existing Customers to associate with the Application. Is it simply a