Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8022697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T22:20:29+00:00 2026-06-04T22:20:29+00:00

I am using JSF with richfaces. I am using convertDateTime of core ip to

  • 0

I am using JSF with richfaces. I am using convertDateTime of core ip to convert an inputText to Date.

<h:inputText styleClass="datepicker" value="#{searchBean.creationDate}" id="inputfield">
  <f:convertDateTime pattern="yyyy-MM-dd" />
</h:inputText>

Where creationDate in SearchBean is of type Java util Date and I am using a jquery datpicker to populate the input field.

The problem is that it is not working fine. When I submit form without entering any date (empty input field), everything works fine. But, when I select the date, the call doesn’t reach bean (tested it in debug mode). The page just refreshes itself without any exception/logging on the server side.

I have implemented a quick LifeCycleListener which showed following output:

With input field filled with date:

START PHASE RESTORE_VIEW(1)
END PHASE RESTORE_VIEW(1)
START PHASE APPLY_REQUEST_VALUES(2)
END PHASE APPLY_REQUEST_VALUES(2)
START PHASE PROCESS_VALIDATIONS(3)
END PHASE PROCESS_VALIDATIONS(3)
START PHASE UPDATE_MODEL_VALUES(4)
END PHASE UPDATE_MODEL_VALUES(4)
START PHASE INVOKE_APPLICATION(5)
END PHASE INVOKE_APPLICATION(5)
START PHASE RENDER_RESPONSE(6)
END PHASE RENDER_RESPONSE(6)

With empty date :

START PHASE RESTORE_VIEW(1)
END PHASE RESTORE_VIEW(1)
START PHASE APPLY_REQUEST_VALUES(2)
END PHASE APPLY_REQUEST_VALUES(2)
START PHASE PROCESS_VALIDATIONS(3)
END PHASE PROCESS_VALIDATIONS(3)
START PHASE RENDER_RESPONSE(6)
END PHASE RENDER_RESPONSE(6)

It is clear that there are two steps missing in second case. I am very new to JSF and don’t have much idea about internal working of it. Moreover, there are no validation/conversion exceptions. I am stuck here and I have no idea where to look for the solution. Any help is appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T22:20:31+00:00Added an answer on June 4, 2026 at 10:20 pm

    Reason for update model and invoke application not shown when you dont enter date is because your validation has failed, in case of validation failure model is not updated with UI content and application logic (your custom code) will not be invoked.

    If you have added error messages in your .properties file then add the following

    javax.faces.converter.DateTimeConverter.DATE=value ({0}) must be a date
    

    Else

    <h:inputText styleClass="datepicker" value="#{searchBean.creationDate}" id="inputfield" converterMessage="Please Enter creation date in yyyy-MM-dd format">
      <f:convertDateTime pattern="yyyy-MM-dd" />
    </h:inputText>
    

    This would enable to show error message when validation fails.

    You will be getting conversion error when you submit null as date.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using JSF 1.2 and Richfaces 3.3.FINAL. I have an inputText which must
I'm using Richfaces JSF and I want to iterate over an Map<Object,Object> . I
I am using JSF 2 and RichFaces 3. Here in the picture shown below,
I'm using JSF 1.2 with Richfaces and Facelets. I have an application with many
I'm using JSF (Mojarra 1.2) with Richfaces (3.3.2) within some facelets which are used
Using Richfaces 3.3.0GA, jsf 1.2_14 and facelets. I have a richfaces ModalPanel with an
I'd like to be able to make an Ajax call using JSF/Seam/RichFaces and have
I'm using JSF 1.2 with Richfaces, and for every ajax request, the server is
I am using java 6 jsf 1.2 and richfaces 3.3.3 When I call the
Im working in a web application using JSF 2 and richFaces 4 and I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.