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

        Hide
        Ted Goddard added a comment -

        This should likely be done by the component team. Assigning to Deryk for assignment based on current release schedules.

        Show
        Ted Goddard added a comment - This should likely be done by the component team. Assigning to Deryk for assignment based on current release schedules.
        Hide
        yip.ng added a comment -

        An id does get rendered, even when there is no id specified for <h:message>. See screenshot 1.

        Show
        yip.ng added a comment - An id does get rendered, even when there is no id specified for <h:message>. See screenshot 1.
        Hide
        Ted Goddard added a comment -

        Maybe this was fixed in mojarra 2.1?

        Show
        Ted Goddard added a comment - Maybe this was fixed in mojarra 2.1?
        Hide
        Ken Fyten added a comment -

        Deryk, Yip can't reproduce this using the compat component showcase. Please attach a test-case or detailed instructions on how to reproduce this.

        Show
        Ken Fyten added a comment - Deryk, Yip can't reproduce this using the compat component showcase. Please attach a test-case or detailed instructions on how to reproduce this.
        Hide
        yip.ng added a comment - - edited

        From Deryk:

        I'm not a 100% sure but I think that perhaps Ted cloned another issue that I originally created (http://jira.icefaces.org/browse/ICE-5660) which was for h:messages. There are comments in that case that indicate that anyway. The description was simply modified so it applied to h:message. In any event, I don't have a test case but:

        • The problem was with h:message and I think Component Showcase uses ice:message (from the example for the screenshot). So we should ensure we're testing with an h:message. Perhaps adding and h:message to the core/basic example would do it.
        • As Ted notes in his comment, this may have been fixed or the behaviour changed when upgrading to JSF 2.1.x. We should try the behaviour in the ICEfaces 2.0 release version and in the current trunk and see if the behaviour is different at all.
        Show
        yip.ng added a comment - - edited From Deryk: I'm not a 100% sure but I think that perhaps Ted cloned another issue that I originally created ( http://jira.icefaces.org/browse/ICE-5660 ) which was for h:messages. There are comments in that case that indicate that anyway. The description was simply modified so it applied to h:message. In any event, I don't have a test case but: The problem was with h:message and I think Component Showcase uses ice:message (from the example for the screenshot). So we should ensure we're testing with an h:message. Perhaps adding and h:message to the core/basic example would do it. As Ted notes in his comment, this may have been fixed or the behaviour changed when upgrading to JSF 2.1.x. We should try the behaviour in the ICEfaces 2.0 release version and in the current trunk and see if the behaviour is different at all.
        Hide
        yip.ng added a comment -

        Problem reproducible in ACE showcase. See screenshot 2. But the rendering isn't done by com.icesoft.faces.renderkit.dom_html_basic.MessageRenderer. Is it done by com.sun.faces.renderkit.html_basic.MessageRenderer? How are we going to modify that? Change the renderer mapping for <h:message> and create a new class for it? How to do that?

        Show
        yip.ng added a comment - Problem reproducible in ACE showcase. See screenshot 2. But the rendering isn't done by com.icesoft.faces.renderkit.dom_html_basic.MessageRenderer. Is it done by com.sun.faces.renderkit.html_basic.MessageRenderer? How are we going to modify that? Change the renderer mapping for <h:message> and create a new class for it? How to do that?
        Hide
        Ken Fyten added a comment -

        Yip, looks like http://jira.icefaces.org/browse/ICE-5716 was the original fix for h:messages component. The task now is to take that same fix and implement one for h:message as well.

        Show
        Ken Fyten added a comment - Yip, looks like http://jira.icefaces.org/browse/ICE-5716 was the original fix for h:messages component. The task now is to take that same fix and implement one for h:message as well.
        Hide
        yip.ng added a comment -

        Changes in faces-config for ICE-5716 gone. Need to track down another way of mapping renderer to component.

        Show
        yip.ng added a comment - Changes in faces-config for ICE-5716 gone. Need to track down another way of mapping renderer to component.
        Hide
        yip.ng added a comment - - edited

        Mapping in ICE-5716 was moved to DOMRenderKit.java in ICE-5868.

        Show
        yip.ng added a comment - - edited Mapping in ICE-5716 was moved to DOMRenderKit.java in ICE-5868 .
        Hide
        yip.ng added a comment - - edited

        Done. See screenshot 3.

        Revision: 23991


        Modified : /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/impl/renderkit/DOMRenderKit.java
        Added : /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/impl/renderkit/html_basic/MessageRenderer.java

        Show
        yip.ng added a comment - - edited Done. See screenshot 3. Revision: 23991 Modified : /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/impl/renderkit/DOMRenderKit.java Added : /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/impl/renderkit/html_basic/MessageRenderer.java

          People

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

            Dates

            • Created:
              Updated:
              Resolved: