myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Müllan" <>
Subject Re: Date component
Date Mon, 02 Oct 2006 13:47:52 GMT

normally you should not need a converter for just the simplest example.

The "value" attribute of inputDate has only to be bound to a Date type
in the backend, in your case is this dataReg. Maybe you also have to
set the "type" attribute, e.g. to "date".

Just have a look at our examples date page:



On 10/2/06, danielitob <> wrote:
> Hi guys,
> i was surprising to note how difficult is using an inputDate of Tomahawk...
> i've read many examples but i need a simplest solution...
> i've used in my jsf page
> <h:outputText value="Data"/>
> <t:inputDate value="#{user.dataReg}">
> </t:inputDate>
> and i've a date columns in a mysql table.
> I've to read this value entered in my page and putting it into database...
> i do it in this manner
> pst.setDate(12, dataReg);
> (i've 12 fields in my table).
> When i do it i've
> java.lang.IllegalArgumentException: argument type mismatch
> How can i solve it?
> I need a converter?
> Please help me with code......thanks very much
> --
> View this message in context:
> Sent from the MyFaces - Users mailing list archive at


Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

View raw message