convertDateTime keeps complaining about the format

K

KevinLEdwards

Regardless of the formats that I try I keep getting the message "Sorry,
your input is not in the right format." What's the right format??



<tr>
<td><h:eek:utputText value="Time"/></td>
<td>
<h:inputText id="time" value="#{generalBean.time}">
<f:convertDateTime type="time" pattern="hh:mm a" />
</h:inputText>
<h:message for="time" showDetail="true" showSummary="true" />
</td>
</tr>
 
J

James McGill

Regardless of the formats that I try I keep getting the message "Sorry,
your input is not in the right format." What's the right format??

In your example,

pattern="hh:mm a"


So what happens if you enter "04:20 PM" ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top