Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-2227

Faces keep showing WARN unhandled FacesMessage, besides tr:messages already rendered them.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0.0-core
    • None
    • Components, Facelets
    • None
    • Linux Fedora 15, MySQL 5.x, Apache Geronimo 3.0-Beta-1, MyFaces 2.0.9, Trinidad 2.0.0, Using Facelets

    Description

      Every time the ManagedBean perform an action such as save, update, delete a row in database, a message is created by using a method inside a static class:

      public class FacesUtil {

      //...<some more stuff here>

      public static void setMessage(String clientid, String message)

      { FacesContext context = FacesContext.getCurrentInstance(); FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, "Info.", message); context.addMessage(clientid, msg); context.renderResponse(); }

      }

      And the message is created on ManagedBean this way:

      public void doDelete(ActionEvent event)

      { String message = ""; //<some method relevants actions here....> message = "Record has been deleted"; FacesUtil.setMessage(null,message); }

      The message is rendered as expected, but MyFaces for some reason, doesn't notice that, and throws a warning message to console:

      2012-02-27 11:02:14,398 WARN [RenderResponseExecutor] There are some unhandled FacesMessages, this means not every FacesMessage had a chance to be rendered.
      These unhandled FacesMessages are:

      • Record has been deleted successfully

      Thanks in advance,

      Eduardo

      Attachments

        1. bug_TRINIDAD-2227.jspx
          0.8 kB
          Caius Gran
        2. Bug2227.java
          1.0 kB
          Caius Gran
        3. faces-config.xml
          0.6 kB
          Caius Gran
        4. trinidad-config.xml
          0.2 kB
          Caius Gran
        5. web.xml
          4 kB
          Caius Gran

        Activity

          People

            Unassigned Unassigned
            eduardogt Eduardo Garcia
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: