Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-8762

rich:messages displays messages multiple times

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Out of Date
    • Affects Version/s: 3.3.0, 3.3.1, 3.3.2.CR1, 3.3.2.GA, 3.3.2.SR1, 3.3.3.BETA1, 3.3.3.CR1, 3.3.3.Final
    • Fix Version/s: None
    • Component/s: component-validators
    • Labels:
      None
    • Environment:

      Richfaces 3.3.0 upwards with integrated Spring Webflow (version 2.0.5) and Hibernate Validator 4.0.2.

    • Steps to Reproduce:
      Hide

      Set up environment with Richfaces 3.3.3, Spring Webflow 2.0.5 and Hibernate Validator 4.0.2.
      Create a form for a simple bean and use a <graphValidator /> for that bean.
      Set up a single <rich:messages /> tag for that <graphValidator />.
      Have more than one field fail validation.

      The error messages will be repeated.

      Show
      Set up environment with Richfaces 3.3.3, Spring Webflow 2.0.5 and Hibernate Validator 4.0.2. Create a form for a simple bean and use a <graphValidator /> for that bean. Set up a single <rich:messages /> tag for that <graphValidator />. Have more than one field fail validation. The error messages will be repeated.
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Downgrade to version 3.2.2.

      Show
      Downgrade to version 3.2.2.

      Description

      Using a graphValidator, I set up a bean with Hibernate Validator annotations.

      When multiple fields fail validation; the <rich:messages /> tag outputs the error messages multiple times.

      It seems as though the message is displayed based on the number of failed fields. For example; when 2 fields fail, it will display both error messages twice. If 3 fields fail, it'll display all 3 messages 3 times, and so on.

      I have managed to replicate the same error in versions 3.3.0 to 3.3.3. I have not tried >4 as we need a stable release. This may mean it could already be fixed in version 4; but I am submitting this issue regardless.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  chmbrln Christopher Chamberlain
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: