I would check the code for inputDate's renderer.   I haven't used it,
but I know that inputCalendar internally sets its own
dateTimeConverter.

On 5/30/07, Steven Gollery <[EMAIL PROTECTED]> wrote:

I'm having problems getting t:inputDate to use a custom converter class. In
the page, I have this:

<t:inputDate id="dateOfBirth" type="date" popupCalendar="true"
                  value="#{editPatient.dateOfBirth}"
                  binding="#{editPatient.dobInput}">
    <f:converter converterId="dobConverter"/>
    <f:validator validatorId="dobValidator"/>
</t:inputDate>

And in faces-config.xml:

  <validator>
        <validator-id>dobValidator</validator-id>

<validator-class>com.cdmtech.proj.LHSWebSite.jsf.backingBeans.DOBValidator</validator-class>
  </validator>

  <converter>
     <converter-id>dobConverter</converter-id>

<converter-class>com.cdmtech.proj.LHSWebSite.jsf.backingBeans.DOBConverter</converter-class>
  </converter>


If the values entered by the user can be converted to a date,
DOBValidator.validate gets called, as expected. But neither of the Converter
methods in DOBConverter ever get called.

I've used custom converters before without this problem. Anybody know what
I'm doing wrong here?

Steven Gollery

--
View this message in context: 
http://www.nabble.com/t%3AinputDate-and-custom-converters-tf3842118.html#a10879754
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Reply via email to