Re: [appfuse-user] Drop-Down List

2008-12-29 Thread ashan
I have implemented dusty's recommendation. It worked really well. One thing to note - add your listener at the end of other listeners in the web.xml. Thanks! Bingu wrote: > > Hi all, > > > > I want to add simple drop down list in a JSP page with my Struts2 web > application on AppFuse fr

RE: [appfuse-user] Drop-Down List

2008-06-02 Thread Bandula Rathnasekara
Thank you very much Dustin, Paul and Richard for your detailed explanation and for your valued time. I will try this. Thanks /Bandula From: Dustin Pearce [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2008 8:57 PM To: users@appfuse.dev.java.net Subject: Re: [appfuse-user] Drop-Down

Re: [appfuse-user] Drop-Down List

2008-06-02 Thread Dustin Pearce
That approach is fine if you are working with a single page and a single drop-down, but when you need to share a drop-down definition several times it starts crumble a bit. What usually do for all of my applications is I first add a DataDictionary POJO with the purpose of creating all the

Re: [appfuse-user] Drop-Down List

2008-06-01 Thread Paul Were
Bandula, To be consistent. It is better practice to make your view layer interact with the action support controller struts MVC framework. If this is the case the your taskForm.jsp should be tied to TaskAction.java which should be your action class. In you Action class declare private List av

Re: [appfuse-user] Drop-Down List

2008-06-01 Thread Richard Mixon (CustCo)
I¹m pretty new to Struts2 myself, but all of my Appfuse Struts2 pages use a select tag something like this: I think your tag looks more like a Struts(1) tag. Here is the Struts2 reference page for the select tag: http://struts.apache.org/2.0.11.1/docs/select.html Hope this helps.

Re: [appfuse-user] Drop down list population

2007-07-10 Thread Michael Horwitz
t; >> < >>> >>> http://static.springframework.org/spring/docs/2.0.x/reference/spring-form.tld.html > >>> >>> >> >>> >> >>> >> So your JSP would look something like: >>>

Re: [appfuse-user] Drop down list population

2007-07-10 Thread Aled Rhys Jones
MAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>> wrote: >> >> m4, wanted to finish off some functionality before updating to m5. >> >> >> Cheers >> >> Aled >> >> >> >>

Re: [appfuse-user] Drop down list population

2007-07-10 Thread Aled Rhys Jones
;> >> >> Cheers >> >> Aled >> >> >> >> >> >> *From:* Michael Horwitz [mailto: [EMAIL PROTECTED] <mailto:[EMAIL

Re: [appfuse-user] Drop down list population

2007-07-10 Thread Aled Rhys Jones
ish off some functionality before updating to m5. >> >> >> Cheers >> >> Aled >> >> >> >> >> >>

Re: [appfuse-user] Drop down list population

2007-07-09 Thread Michael Horwitz
gt;> >> >> Cheers >> >> Aled >> >> >> >> >> >> *From:* Michael Horwitz [mailto:[EMAIL PROTECTED] >> <mailto:[EMAIL PROTECTED]>] >> *Sent

Re: [appfuse-user] Drop down list population

2007-07-08 Thread Matt Raible
PROTECTED] >> <mailto:[EMAIL PROTECTED]>> wrote: >> >> m4, wanted to finish off some functionality before updating to m5. >> >> >> Cheers >> >> Aled >> >> >> >> --

Re: [appfuse-user] Drop down list population

2007-07-08 Thread Aled Rhys Jones
*From:* Michael Horwitz [mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>] *Sent:* 06 July 2007 08:39 *To:* users@appfuse.dev.java.net <mailto:users@appfuse.dev.java.net> *Subject:* Re: [appfuse-user] Drop down list population Which version of AppFuse are yo

Re: [appfuse-user] Drop down list population

2007-07-07 Thread Aled Rhys Jones
efore updating to m5. Cheers Aled *From:* Michael Horwitz [mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>] *Sent:* 06 July 2007 08:39 *To:* users@appfuse.dev.java.net <mailto:users@appfuse.dev.java.net> *Subject:*

Re: [appfuse-user] Drop down list population

2007-07-06 Thread Michael Horwitz
ROTECTED]> 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:* users@appfuse.dev.java.net *Subject:* Re: [appfuse-user] Drop down list

RE: [appfuse-user] Drop down list population

2007-07-06 Thread Aled Rhys Jones
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: users@appfuse.dev.java.net Subject: Re: [appfuse-user] Drop down list population Which version of AppFuse are you

Re: [appfuse-user] Drop down list population

2007-07-06 Thread Michael Horwitz
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-betw

Re: [appfuse-user] Drop down list population

2007-07-05 Thread Tsung
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

Re: [appfuse-user] Drop down list population

2007-07-05 Thread Aled Rhys Jones
Any ideas with this one guys? I can't work out why the custom editor's setAsText and getAsText aren't being called... Aled Rhys Jones wrote: Seems I spoke too soon. Although the list of countries displays correctly, it never gets saved. I have a CountryEditor that has the methods required. p

Re: [appfuse-user] Drop down list population

2007-07-02 Thread Aled Rhys Jones
Seems I spoke too soon. Although the list of countries displays correctly, it never gets saved. I have a CountryEditor that has the methods required. public class CountryEditor extends PropertyEditorSupport { private GenericManager countryManager = null; public void setCountryManager

Re: [appfuse-user] Drop down list population

2007-07-02 Thread Aled Rhys Jones
Nice one Mike, finally got it working after spending most of yesterday scratching my head and cursing google for not finding exactly what I wanted ;-) Cheers Aled Michael Horwitz wrote: You are going to need to provide Spring MVC with a way to get from an id to a country and vice-versa. As yo

Re: [appfuse-user] Drop down list population

2007-07-01 Thread Michael Horwitz
You are going to need to provide Spring MVC with a way to get from an id to a country and vice-versa. As you correctly point out this is done by registering a custom property editor in your controller. To do this you need to: 1) Extend the class PropertyEditorSupport to create the property edito