jsf - Validating a wrong date entry in rich faces -


In one of our functionality we have some date fields for inline editing where we have enabled manual input if rich: The calendar component, if we manually enter the wrong date or junk data, this action method will not call either. According to our requirement we need to display an error message for date verification for these types of fields. Is there a way to find that the date entered in the calendar field is inappropriate with this component. Code for reference:

  & lt; Rich: calendar id = "actualOpeningDtCal" is provided = "# {! Blank aProgram.id}" value = "# {aProgram.actualOpeningDate}" placeholder = "Dd-mmm-yyyy" inputSize = "20" enabledInnual input = "Right" date pattern = "dd-MMM-yyyy" button symbol = "..// content / images / calendar" showWeeksBar = "false" showFooter = "false" & gt; & Lt; A4j: support event = "onunputblur" render = "alight" auxaxing = "wrong" action = "# {aController.inlineEdit}" & gt; & Lt; F: setPropertyActionListener value = "# {aProgram}" target = "# {aController.inLineEditaBean}" /> & Lt; / A4j: support & gt; & Lt; A4j: support event = "oncolpax" render = "alight" auxaxing = "wrong" action = "# {aController.inlineEdit}" & gt; & Lt; F: setPropertyActionListener value = "# {aProgram}" target = "# {aController.inLineEditaBean}" /> & Lt; / A4j: support & gt; & Lt; / Rich: Calendar & gt; If the verification fails, there are error messages:  

Perhaps you are not showing them & lt; Rich: Messages & gt; Instead of & lt; H: messages & gt; Use so that they can render the Ajax response.

A bad practice, but probably will work to use the immediate = "true" (bypasses the validation) and then must be verified in the action method.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -