convertDateTime keeps complaining about the format

Discussion in 'Java' started by KevinLEdwards@gmail.com, Feb 18, 2006.

  1. Guest

    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>
    , Feb 18, 2006
    #1
    1. Advertising

  2. James McGill Guest

    On Sat, 2006-02-18 at 14:53 -0800, wrote:
    > 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" ?
    James McGill, Feb 18, 2006
    #2
    1. Advertising

  3. Guest

    It displays the message "Sorry, your input is not in the right format."
    , Feb 19, 2006
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. codehead
    Replies:
    3
    Views:
    406
    codehead
    Jun 13, 2005
  2. Thomas McLean

    Python complaining about CherryPY?

    Thomas McLean, Aug 19, 2006, in forum: Python
    Replies:
    0
    Views:
    355
    Thomas McLean
    Aug 19, 2006
  3. Replies:
    6
    Views:
    473
  4. Replies:
    9
    Views:
    297
    Victor Bazarov
    Oct 6, 2005
  5. markscottwright
    Replies:
    7
    Views:
    382
    James Kanze
    Aug 3, 2007
Loading...

Share This Page