Bonjour,
J'ai ajouté à ma base MYSQL un champ "TIME afin de pouvoir saisir une Heure Minute seconde sous la forme
HH:mm:ss dans mon formulaire xhtml
J'ai saisie 10:10 et j'ai l'erreur suivante
Cannot convert 01/01/70 10:10 of type class java.util.Date to class java.sql.Timestamp
Ou est mon erreur ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 En base ALTER table reportlines ADD line_hours_begin TIME; Dans le fichier chtml <h:outputLabel for="linehoursbegin" value="#{msg['beginhour']}" /> <h:inputText id="linehoursbegin" size="8" disabled="#{!entryBean.editable}" value="#{entryBean.currentLine.lineHoursBegin}"> <f:convertDateTime type="timestamp" pattern="HH:mm:ss" timeZone="CET" /> <a4j:ajax execute="@this" render="@this" /> </h:inputText>
Merci d'avance
Phil
Partager