ICEfaces
  1. ICEfaces
  2. ICE-8811

ace:dateTimeEntry - Validation message only shown when using render @all

    Details

    • Salesforce Case Reference:

      Description

      An ace:dateTimeEntry as a custom validation defined. If the date selected is later than todays date then it will throw a validation error. The ace:ajax component is used on dateSelect. The error message is only shown when using render="@all". Anything else doesn't display the message (@form, any component id).

        Activity

        Hide
        Arran Mccullough added a comment -

        Attached test case that shows the issue. Steps:

        • Load welcomeICEfaces.jsf
        • Open the calendar popup and select a date in the future.
        • Server side logs will indicate that the validation has fired but no message is shown.
        Show
        Arran Mccullough added a comment - Attached test case that shows the issue. Steps: Load welcomeICEfaces.jsf Open the calendar popup and select a date in the future. Server side logs will indicate that the validation has fired but no message is shown.
        Hide
        yip.ng added a comment -

        Nothing wrong with component.

        @all message was shown by JSF development PROJECT_STAGE setting, not by <h:message>. See screenshot-01. So actually none of @all, @form or @id worked.

        Then problem was in the addMessage() call in the backing bean. Component id should be specified instead of null. See screenshot-02.

        See screenshot-03 for the result after the fix. Tested @all, @form and @id.

        Show
        yip.ng added a comment - Nothing wrong with component. @all message was shown by JSF development PROJECT_STAGE setting, not by <h:message>. See screenshot-01. So actually none of @all, @form or @id worked. Then problem was in the addMessage() call in the backing bean. Component id should be specified instead of null. See screenshot-02. See screenshot-03 for the result after the fix. Tested @all, @form and @id.

          People

          • Assignee:
            yip.ng
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: