That's good enough :) Thanks, I'll stay posted
Cosmin > Hi, Cosmin. The 1.5.1 release is almost ready, but as usual we are > unable to commit to a release date due to constraints on our own time. > Sorry I can't be more specific. > > -Ben > > On Fri, Nov 28, 2008 at 12:02 PM, Cosmin Marginean > <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: > > OK, It seems there's a bug + fix for this in 1.5.1: > http://www.stripesframework.org/jira/browse/STS-608 > Sorry for the noise :) > > I patched this myself in my project, but do you have any clues about > when the new release (1.5.1 ?) will be out. I see a lot of patches > there. > > Thanks, > Cosmin > > Hello everyone, > > > > Boy, this took some time to figure it out. > > I wrote a custom converter for enums: > > > > public class EnumConverter implements TypeConverter<Enum> { > > public Enum convert(String s, Class<? extends Enum> aClass, > > Collection<ValidationError> validationErrors) { > > ... > > } > > public void setLocale(Locale locale) { > > } > > } > > > > I went back and forth for a while trying to understand why the > hell is > > it not loaded using Extension.Packages filter parameter. > > I dug through the whole flow and finally ran into this in > > /net.sourceforge.stripes.validation.DefaultTypeConverterFactory/: > > > > protected Class<? extends TypeConverter<?>> > > findTypeConverterClass(Class<?> targetClass) { > > //...some stuff > > else if (targetClass.isEnum()) { > > Class<? extends TypeConverter<?>> converterClass = > > findTypeConverterClass(*Enumeration*.class); > > //...some other stuff > > } > > > > I believe this should be: > > Class<? extends TypeConverter<?>> converterClass = > > findTypeConverterClass(*Enum*.class); > > > > I gotta say I had a good laugh though :) > > > > Regards, > > Cosmin Marginean > > > Cosmin Marginean > > -- > cosminaru.ro <http://cosminaru.ro> > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > <http://moblin-contest.org/redirect.php?banner_id=100&url=/> > _______________________________________________ > Stripes-users mailing list > [email protected] > <mailto:[email protected]> > https://lists.sourceforge.net/lists/listinfo/stripes-users > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ------------------------------------------------------------------------ > > _______________________________________________ > Stripes-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/stripes-users > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
