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
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
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
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
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.
t; >> <
>>>
>>>
http://static.springframework.org/spring/docs/2.0.x/reference/spring-form.tld.html
>
>>>
>>> >>
>>> >>
>>> >> So your JSP would look something like:
>>>
MAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>>
wrote:
>>
>> m4, wanted to finish off some functionality before updating
to m5.
>>
>>
>> Cheers
>>
>> Aled
>>
>>
>>
>>
;>
>>
>> Cheers
>>
>> Aled
>>
>>
>>
>>
>>
>> *From:* Michael Horwitz [mailto: [EMAIL PROTECTED]
<mailto:[EMAIL
ish off some functionality before updating
to m5.
>>
>>
>> Cheers
>>
>> Aled
>>
>>
>>
>>
>>
>>
gt;>
>>
>> Cheers
>>
>> Aled
>>
>>
>>
>>
>>
>> *From:* Michael Horwitz [mailto:[EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]>]
>> *Sent
PROTECTED]
>> <mailto:[EMAIL PROTECTED]>> wrote:
>>
>> m4, wanted to finish off some functionality before 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
Which version of AppFuse are yo
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:*
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
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
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
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
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
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
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
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
21 matches
Mail list logo