Hi,

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:

http://www.irian.at/myfaces/date.jsf

cheers,

Gerald

On 10/2/06, danielitob <[EMAIL PROTECTED]> 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: 
http://www.nabble.com/Date-component-tf2369054.html#a6599625
Sent from the MyFaces - Users mailing list archive at Nabble.com.




--
http://www.irian.at

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

Professional Support for Apache MyFaces

Reply via email to