ICEfaces
  1. ICEfaces
  2. ICE-6500

The h:message component rendering causes a full page reload.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Alpha2
    • Fix Version/s: 2.0.1
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      ICEfaces 2 JSF 2
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      Enclose <h:message> in a < h:panelGroup>.
      Show
      Enclose <h:message> in a < h:panelGroup>.

      Description

      The MessageRenderer, responsible for rendering the h:message component, does not render an ID around the dynamically generated text. It's also not clear if any containing element is rendered even if the message is empty (the containing element is required by ICEfaces for Ajax update).

      1. screenshot-01.png
        229 kB
      2. screenshot-02.png
        172 kB
      3. screenshot-03.png
        172 kB

        Activity

        Deryk Sinotte created issue -
        Ted Goddard made changes -
        Field Original Value New Value
        Salesforce Case []
        Description The MessagesRenderer, responsible for rendering the h:messages component, renders different nodes depending on whether there are messages or not. When there are no messages to render, it renders:

        <div id="messages"></div>

        However, if there are messages to render, it replaces the div with a ul (or a table depending on how it's configured):

        <ul id="messages"><li> Message added via actionListener: form:add </li></ul>

        If the h:message component is a child of the body, the DOM diff algorithm will determine that the closest parent is html and send a window.location.reload() command back to the client.
        The MessageRenderer, responsible for rendering the h:message component, does not render an ID around the dynamically generated text. It's also not clear if any containing element is rendered even if the message is empty (the containing element is required by ICEfaces for Ajax update).

        Ted Goddard made changes -
        Workaround Description Enclose <h:message> in a < h:panelGroup>.
        Workaround Exists [Yes]
        Salesforce Case []
        Fix Version/s 2.0.1 [ 10255 ]
        Fix Version/s 2.0-Alpha3 [ 10032 ]
        Fix Version/s 2.0.0 [ 10230 ]
        Assignee Judy Guglielmin [ judy.guglielmin ] Deryk Sinotte [ deryk.sinotte ]
        Deryk Sinotte made changes -
        Assignee Deryk Sinotte [ deryk.sinotte ] Judy Guglielmin [ judy.guglielmin ]
        Ken Fyten made changes -
        Salesforce Case []
        Assignee Priority P2
        Assignee Judy Guglielmin [ judy.guglielmin ] Yip Ng [ yip.ng ]
        yip.ng made changes -
        Attachment screenshot-01.png [ 12865 ]
        Ken Fyten made changes -
        Salesforce Case []
        Assignee Yip Ng [ yip.ng ] Deryk Sinotte [ deryk.sinotte ]
        yip.ng made changes -
        Assignee Deryk Sinotte [ deryk.sinotte ] Yip Ng [ yip.ng ]
        yip.ng made changes -
        Attachment screenshot-01.png [ 12877 ]
        yip.ng made changes -
        Attachment screenshot-01.png [ 12877 ]
        yip.ng made changes -
        Attachment screenshot-02.png [ 12878 ]
        yip.ng made changes -
        Attachment screenshot-03.png [ 12887 ]
        yip.ng made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Assignee Priority P2
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            yip.ng
            Reporter:
            Deryk Sinotte
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: