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

rich:messages is broken when FacesMessages is used from an action that returns an outcome

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 3.1.2
    • Fix Version/s: 3.1.2, 3.1.3, 3.2.0
    • Component/s: None
    • Labels:
      None

      Description

      1. Create a project using JBoss Tools
      2. Create an action called "hello"
      3. Test it (works)
      4. Change /home.xhtml to use rich:messages instead of h:messages
      5. Changle Hello.java as follows:

      public String hello()
      {
      //implement your business logic here
      log.info("hello.hello() action called by #

      {identity.username}

      ");
      facesMessages.add("hello");
      return "/home.xhtml";
      }

      6. Test it (the message is not displayed correctly)

        Gliffy Diagrams

          Activity

          Hide
          pmuir Pete Muir added a comment -

          Ok, the message is found by UIRichMessages (facesContext.getMessages() returns it), but as "isPassed" (some local variable of richfaces) is false, the message is not written out.

          Show
          pmuir Pete Muir added a comment - Ok, the message is found by UIRichMessages (facesContext.getMessages() returns it), but as "isPassed" (some local variable of richfaces) is false, the message is not written out.
          Hide
          alexsmirnov Alexander Smirnov added a comment -

          There is behavior from attempt to create "smart" validator, to avoid error massages for the "unvisitet" fields.
          Now, it's disabled by default.

          Show
          alexsmirnov Alexander Smirnov added a comment - There is behavior from attempt to create "smart" validator, to avoid error massages for the "unvisitet" fields. Now, it's disabled by default.

            People

            • Assignee:
              ayanul Aleksej Yanul
              Reporter:
              gavin.king Gavin King
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development