myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Juan Ignacio Sánchez Lara" <juanignaci...@gmail.com>
Subject Re: Changing String default converter
Date Thu, 17 May 2007 14:19:25 GMT
So I assume I must wait till myfaces-1.2.something :-\ Till then I'll use
explicit converter selection...

Thank you very much!

On 5/17/07, Mike Kienenberger <mkienenb@gmail.com> wrote:
>
> Registered "automatic" by-class String (and Object) converters are not
> allowed in JSF 1.1.
>
> It's been fixed for JSF 1.2.
>
>
> https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=131
>
>
> On 5/17/07, Juan Ignacio Sánchez Lara <juanignaciosl@gmail.com> wrote:
> > JSF by default assign empty string at backing bean properties when a
> form is
> > sent. I want to override that with a custom converter. My problem is my
> > converter is never called. This is the code at faces-config.xml:
> >
> >  <converter>
> >  <converter-for-class>java.lang.String</converter-for-class>
> >  <converter-class>
> >  myPackage.NullableStringConverter
> >  </converter-class>
> >
> >
> >  </converter>
> >
> >
> >
> > If I set breakpoints inside getAsObject or getAsString I see it doesn't
> > stops there. What am I doing wrong?
> >
> > --
> > Juan Ignacio Sánchez Lara
> > Ingeniero Informático + Técnico de Sistemas
> >
> > Diario: http://juanignaciosl.blogspot.com
> > Fotos (todas): http://www.flickr.com/photos/juanignaciosl
> > Fotos (selección): http://jpgmag.com/people/juanignaciosl
>



-- 
Juan Ignacio Sánchez Lara
Ingeniero Informático + Técnico de Sistemas

Diario: http://juanignaciosl.blogspot.com
Fotos (todas): http://www.flickr.com/photos/juanignaciosl
Fotos (selección): http://jpgmag.com/people/juanignaciosl

Mime
View raw message