t:inputCalendar "Required" not functioning correctly
----------------------------------------------------
Key: MYFACES-815
URL: http://issues.apache.org/jira/browse/MYFACES-815
Project: MyFaces
Type: Bug
Components: Tomahawk
Versions: 1.1.1
Environment: Windows 2000, Apache 5.5
Reporter: Hlias Mpalasis
when "Required" property is set to "false" t:inputCalendar is expected to
accept nulls
Instead it prevents JSF life cycle from entering "Invoke Application" phase. As
a result, applicaitons cannot continue unless a value is entered in
"inputCalendar" field.
I placed a custom phase monitor and discovered that JSF goes through the
following phases in the order specified.
RESTORE_VIEW, APPLY_REQUEST_VALUES, PROCESS_VALIDATIONS, UPDATE_MODEL_VALUES,
RENDER_RESPONSE. Notice that INVOKE_APPLICATION phase is skipped.
I have also observed that when "inputCalendar" is left empty, the model is
updated correctly in UPDATE_MODEL_VALUES phase with a null value but
INVOKE_APPLICATION phase is skipped.
I believe this is abnormal because the "inputCalendar" "Required" property is
set to false. It shouldn't mind about the null. Besides the model is updated
correctly.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira