ICEfaces
  1. ICEfaces
  2. ICE-5145

Sparkle: required component doesn't show messages when inside the tabset component

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Alpha1
    • Fix Version/s: 2.0-Beta2, 2.0.0
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      messages + tabset

      Description

      Sparkle: required component doesn't show messages when inside the tabset component

        Activity

        Hide
        Adnan Durrani added a comment -

        I was debugging and found out that the renderResponse phase is being invoked twice for some reason. Later I removed the tabset from the page and just used the h: components to see the difference, but strangely I see the same behaviour no faces messages on submit.

        <h:messages />
        <h:form>
        <h:inputText value="#

        {tabBean.txt1}

        " required="true" />
        <h:inputText value="#

        {tabBean.txt2}

        " required="true" />
        <h:commandButton value="Submit" />
        <h:commandButton value="Another Submit">
        <f:ajax execute="@all" render="@all" />
        </h:commandButton>
        <h:messages />
        </h:form>

        Show
        Adnan Durrani added a comment - I was debugging and found out that the renderResponse phase is being invoked twice for some reason. Later I removed the tabset from the page and just used the h: components to see the difference, but strangely I see the same behaviour no faces messages on submit. <h:messages /> <h:form> <h:inputText value="# {tabBean.txt1} " required="true" /> <h:inputText value="# {tabBean.txt2} " required="true" /> <h:commandButton value="Submit" /> <h:commandButton value="Another Submit"> <f:ajax execute="@all" render="@all" /> </h:commandButton> <h:messages /> </h:form>
        Hide
        Adnan Durrani added a comment -

        It seems like that messages are being lose due to the page reload. What happens is that when message gets rendered to the page the JSF adds a "ul" element to the body as well, which is causing a reload and that is why we lose messages.

        Show
        Adnan Durrani added a comment - It seems like that messages are being lose due to the page reload. What happens is that when message gets rendered to the page the JSF adds a "ul" element to the body as well, which is causing a reload and that is why we lose messages.
        Hide
        Ken Fyten added a comment -

        Still an issue?

        Show
        Ken Fyten added a comment - Still an issue?
        Hide
        Adnan Durrani added a comment -

        Its already fixed and not valid anymore.

        Show
        Adnan Durrani added a comment - Its already fixed and not valid anymore.

          People

          • Assignee:
            Adnan Durrani
            Reporter:
            Adnan Durrani
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: