Details
-
Type: Bug
-
Status: Open
-
Priority: 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>
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
- depends on
-
ICE-7089 Eliminate use of DOMContext
- Closed
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
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.