ICEfaces
  1. ICEfaces
  2. ICE-9114

ace:delegate does not work when enclosed by ice:panelBorder

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.2
    • Fix Version/s: None
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      Java 6, Tomcat 7

      Description

      The ace tooltip delegate example does not work when ace:delegate is surrounded with ice:panelBorder. The error message is:
      javax.faces.FacesException: Cannot find delegate component "tooltipDelegate" in view or it is not an instance of <ace:tooltipDelegate>.

      Sample Source Code:
      <ui:define name="example">
      <h:form id="form">
      <ice:panelBorder id="borderLayout" renderCenter="true"
      renderNorth="false" renderWest="false" renderEast="false">
      <f:facet name="north" />

      <f:facet name="west" />

      <f:facet name="east" />

      <f:facet name="center">

      <ace:delegate id="tooltipDelegate">
      <ace:dataTable id="carTable" value="#{dataTableSort.carsData}"
      var="car" paginator="true" rows="15">

      <ace:column headerText="ID">
      <h:outputText value="#{car.id}" />
      </ace:column>

      <ace:column headerText="Name">
      <h:outputText id="carName" value="#{car.name}" />
      </ace:column>

      <ace:column headerText="Cost">
      <h:outputText value="#{car.cost}">
      <f:convertNumber type="currency" currencySymbol="$"
      groupingUsed="true" minFractionDigits="2"
      maxFractionDigits="2" />
      </h:outputText>
      </ace:column>

      </ace:dataTable>
      </ace:delegate>
      <ace:tooltip id="tooltip" for="carName"
      forDelegate="tooltipDelegate" fetch="#{car}"
      store="#{delegateTooltipBean.data}">
      <h:outputText value="Chassis: #{delegateTooltipBean.data.chassis}" />
      <br />
      <br />
      <h:outputText
      value="Weight: #{delegateTooltipBean.data.weight}lbs." />
      <br />
      <br />
      <h:outputText
      value="Accel: #{delegateTooltipBean.data.acceleration}" />
      <br />
      <br />
      <h:outputText value="MPG: #{delegateTooltipBean.data.mpg}" />
      </ace:tooltip>

      </f:facet>
      </ice:panelBorder>
      </h:form>
      </ui:define>

        Issue Links

          Activity

          Hide
          Ken Fyten added a comment -

          This is due to the fact that the ice:panelBorder component relies on the DOMResponseWriter, which is incompatible with partialTreeRendering in JSF 2. Linked to the JIRA to resolve that issue.

          Show
          Ken Fyten added a comment - This is due to the fact that the ice:panelBorder component relies on the DOMResponseWriter, which is incompatible with partialTreeRendering in JSF 2. Linked to the JIRA to resolve that issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              Dominik F
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: