Re: [s2] Improved Velocity Integration

2008-09-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Don, Don Brown wrote: > Ah, that does look a lot better. I still wish velocity supported > named parameters, but this is better than nothing. Yeah, I pitched named parameters to the Velocity folks and they generally balked because Velocity is simpl

Re: Enum type conversion

2008-09-18 Thread Musachy Barroso
Yeah, this was a big annoyance and Don fixed it at some point. On Thu, Sep 18, 2008 at 8:35 AM, Jeromy Evans < [EMAIL PROTECTED]> wrote: > Bob Tiernay wrote: > >> I'm not 100% sure, but I though Musachy enabled this by default? >> > > Ah, yes, Don did for 2.1.0, > https://issues.apache.org/struts

Re: Enum type conversion

2008-09-18 Thread Jeromy Evans
Bob Tiernay wrote: I'm not 100% sure, but I though Musachy enabled this by default? Ah, yes, Don did for 2.1.0, https://issues.apache.org/struts/browse/WW-2162 But it's not back-ported to 2.0.x - To unsubscribe, e-mail: [EMA

Re: Enum type conversion

2008-09-18 Thread Bob Tiernay
I'm not 100% sure, but I though Musachy enabled this by default? -- From: "Jeromy Evans" <[EMAIL PROTECTED]> Sent: Thursday, September 18, 2008 5:51 AM To: "Struts Developers List" Subject: Re: Enum type conversion Piotr Matkowski wrote: Maybe En

Re: Enum type conversion

2008-09-18 Thread Jeromy Evans
Piotr Matkowski wrote: Maybe Enums should be handled by struts by default? Why they aren't handled? Enum conversion broken/unsupported in OGNL's default type converter. I can't recall where. I spent hours hunting it down and put it in the too hard basket... However, if you enable XWork's

Re: Enum type conversion

2008-09-18 Thread Piotr Matkowski
ok, I just found it: there is already a converter for enums, I missed somehow: com.opensymphony.xwork2.util.EnumTypeConverter Piotr 2008/9/18 Piotr Matkowski <[EMAIL PROTECTED]> > Hi, > I was wondering, is there some easy way (annotation, config) to perform > type conversion on Enum types? > I no

Enum type conversion

2008-09-18 Thread Piotr Matkowski
Hi, I was wondering, is there some easy way (annotation, config) to perform type conversion on Enum types? I noticed that struts does not handle Enum types by default, which is not what I expected. Lets say we have an Enum like that: public enum Fruit { ORANGE, APPLE; } and Action with field