Yes it does. I'm confidant that the converter works properly as I've used
it before. This is my first attempt at using a custom converter with a
woodstock component. I think my next step will by to try and put the
converter as a field in a backing bean and use a #{mybean.dateConverter}
syntax to see if that works.
The thing that seems strange to me is that when I use the
#{customDateConverter} syntax I don't get any errors, it just seems like it
ignores it. I keep getting the same errors and messages as if it wasn't
there, and it converts properly when I use the default input format
mm/dd/yyyy.
On 10/26/07, Bob Yennaco <Bob.Yennaco_at_sun.com> wrote:
>
> Does com.expd.app.ap.ui.converter.DateConverter implement
> javax.faces.convert.Converter?
>
> Steven Bell wrote:
> > Hi,
> >
> > I seem to be having a problem using a custom converter on the calendar
> > component. I used this converter before with a standard jsf text
> > field and it worked fine. Here's what I have in faces-config.
> >
> > <converter>
> > <converter-id>customDateConverter</converter-id>
> > <converter-class>
> > com.expd.app.ap.ui.converter.DateConverter
> > </converter-class>
> > </converter>
> >
> > This gives me an error telling me it can't convert a String to a
> > converter.
> >
> > <w:calendar id="invoiceDate" label="Invoice/Doc Date:"
> > required="true"
> > selectedDate="#{payableBackingBean.invoiceDate}"
> > converter="customDateConverter" dateFormatPatternHelp="" />
> >
> > If I try it like this is just seems to ignore it (doesn't stop at
> > break points) and use the default converter.
> >
> > <w:calendar id="invoiceDate" label="Invoice/Doc Date:"
> required="true"
> > selectedDate="#{payableBackingBean.invoiceDate}"
> > converter="#{customDateConverter}" dateFormatPatternHelp="" />
> >
> > It seems like I'm missing something simple here.
> >
> > --
> > Regards,
> >
> > Steven Bell
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_woodstock.dev.java.net
> For additional commands, e-mail: dev-help_at_woodstock.dev.java.net
>
>
--
Regards,
Steven Bell