that is, customerManager on ApplicationFormController is null despite my adding <property name="customerManager" ref="customerManager"/> to the dispatcher-servlet.xml
George.Francis wrote: > > 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 > and therefore it's customerManager is null. > > > > Mike Horwitz wrote: >> >> 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 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? >>> >>> <form:select path="customer"> >>> <form:options items="customers" itemValue="id" itemLabel="name"/> >>> </form:select> >>> >>> >>> >>> >>> Mike Horwitz wrote: >>> > >>> > 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]> wrote: >>> >> >>> >> >>> >> 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: >>> >> <form:options items="customers" itemValue="id" itemLabel="name"/> >>> >> >>> >> and I get the error: >>> >> >>> >> javax.servlet.jsp.JspException: Type [java.lang.String] is not valid >>> for >>> >> option items >>> >> >>> >> >>> >> >>> >> mraible wrote: >>> >> > >>> >> > >>> >> >>> http://www.springframework.org/docs/reference/spring-form.tld.html#spring-form.tld.options >>> >> > >>> >> > <form:options items="customers" itemValue="id" labelValue="name"/> >>> >> > >>> >> > 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 specify label and value >>> >> >> > properties. >>> >> >> > >>> >> >> > Matt >>> >> >> > >>> >> >> > On 10/10/07, George.Francis <[EMAIL PROTECTED]> wrote: >>> >> >> >> >>> >> >> >> I tried the following in my JSP: >>> >> >> >> >>> >> >> >> <li> >>> >> >> >> <appfuse:label styleClass="desc" key=" >>> application.customer >>> >> "/> >>> >> >> >> <form:errors path="customer" cssClass="fieldError"/> >>> >> >> >> <form:select path="customer"> >>> >> >> >> <form:options items="customer"/> >>> >> >> >> </form:select> >>> >> >> >> </li> >>> >> >> >> >>> >> >> >> 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 >>> 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 >>> >> >> >> 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 >>> >> >> >> >> matter >>> >> >> >> >> of using a different tag than the <form:input> tag? >>> >> >> >> >> -- >>> >> >> >> >> View this message in context: >>> >> >> >> >> >>> >> >> >> >>> >> >> >>> >> >>> http://www.nabble.com/editing-bean-associations-tf4602749s2369.html#a13142252 >>> >> >> >> >> Sent from the AppFuse - User mailing list archive at >>> Nabble.com. >>> >> >> >> >> >>> >> >> >> >> >>> >> >> >>> --------------------------------------------------------------------- >>> >> >> >> >> To unsubscribe, e-mail: >>> [EMAIL PROTECTED] >>> >> >> >> >> For additional commands, e-mail: >>> [EMAIL PROTECTED] >>> >> >> >> >> >>> >> >> >> >> >>> >> >> >> > >>> >> >> >> > >>> >> >> >> > -- >>> >> >> >> > http://raibledesigns.com >>> >> >> >> > >>> >> >> >> > >>> >> >> >>> --------------------------------------------------------------------- >>> >> >> >> > To unsubscribe, e-mail: >>> [EMAIL PROTECTED] >>> >> >> >> > For additional commands, e-mail: >>> [EMAIL PROTECTED] >>> >> >> >> > >>> >> >> >> > >>> >> >> >> > >>> >> >> >> >>> >> >> >> -- >>> >> >> >> View this message in context: >>> >> >> >> >>> >> >> >>> >> >>> http://www.nabble.com/editing-bean-associations-tf4602749s2369.html#a13142842 >>> >> >> >> Sent from the AppFuse - User mailing list archive at >>> Nabble.com. >>> >> >> >> >>> >> >> >> >>> >> --------------------------------------------------------------------- >>> >> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> >> >> >> For additional commands, e-mail: >>> [EMAIL PROTECTED] >>> >> >> >> >>> >> >> >> >>> >> >> > >>> >> >> > >>> >> >> > -- >>> >> >> > http://raibledesigns.com >>> >> >> > >>> >> >> > >>> >> --------------------------------------------------------------------- >>> >> >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >>> >> >> > For additional commands, e-mail: [EMAIL PROTECTED] >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> >>> >> >> -- >>> >> >> View this message in context: >>> >> >> >>> >> >>> http://www.nabble.com/editing-bean-associations-tf4602749s2369.html#a13143571 >>> >> >> Sent from the AppFuse - User mailing list archive at Nabble.com. >>> >> >> >>> >> >> >>> --------------------------------------------------------------------- >>> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> >> >> For additional commands, e-mail: [EMAIL PROTECTED] >>> >> >> >>> >> >> >>> >> > >>> >> > >>> >> > -- >>> >> > http://raibledesigns.com >>> >> > >>> >> > >>> --------------------------------------------------------------------- >>> >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >>> >> > For additional commands, e-mail: [EMAIL PROTECTED] >>> >> > >>> >> > >>> >> > >>> >> >>> >> -- >>> >> View this message in context: >>> >> >>> http://www.nabble.com/editing-bean-associations-tf4602749s2369.html#a13143720 >>> >> Sent from the AppFuse - User mailing list archive at Nabble.com. >>> >> >>> >> --------------------------------------------------------------------- >>> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> >> For additional commands, e-mail: [EMAIL PROTECTED] >>> >> >>> >> >>> > >>> > >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/editing-bean-associations-tf4602749s2369.html#a13158622 >>> Sent from the AppFuse - User mailing list archive at Nabble.com. >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/editing-bean-associations-tf4602749s2369.html#a13160544 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
