ICEfaces
  1. ICEfaces
  2. ICE-1358

ClassCastException in SeamExamples

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6DR#2
    • Fix Version/s: 1.6DR#3, 1.6
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      all

      Description

      java.lang.ClassCastException: java.util.Vector cannot be cast to javax.faces.application.FacesMessage
      at javax.faces.component.UIData.hasErrorMessages(UIData.java:554)
      at javax.faces.component.UIData.encodeBegin(UIData.java:534)
      at javax.faces.component.html.HtmlDataTable.encodeBegin(HtmlDataTable.java:47)
      at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:513)
      at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:520)
      at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:520)
      ...


      Caused by code in the BridgeFacesContext

       public Iterator getMessages() {
              return faceMessages.values().iterator();
       }

      The faceMessages hashmap contains a vector of messages, not FacesMessages, therefore the contents of each vector must be concatenated into a return buffer. I have a fix, just need a jira case to commit against.



        Activity

        Hide
        Greg Dick added a comment -

        Return an Iterator containing all the messages concatenated together.

        Sending BridgeFacesContext.java
        Transmitting file data .
        Committed revision 13423.

        Show
        Greg Dick added a comment - Return an Iterator containing all the messages concatenated together. Sending BridgeFacesContext.java Transmitting file data . Committed revision 13423.

          People

          • Assignee:
            Unassigned
            Reporter:
            Greg Dick
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: