Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Cannot Reproduce
-
Affects Version/s: 3.0
-
Component/s: ACE-Components
-
Labels:None
-
Environment:ICEfaces 3.0
-
Assignee Priority:P2
-
Salesforce Case Reference:
Description
ace:tooltip does not interpret EL expressions in the for attribute properly.
To reproduce modify code in the showcase to be like the one below:
<h:outputText id="#{tooltipOverviewBean.carSet[0].description}" value="#{tooltipOverviewBean.carSet[0].description}"/>
<ace:tooltip id="canBeOmmited"
for="#{tooltipOverviewBean.carSet[0].description}">
<h:panelGrid styleClass="tooltipBoxStyle">
<h:graphicImage value="#{tooltipOverviewBean.carSet[0].path}" alt="#{tooltipOverviewBean.carSet[0].description}"/>
<h:outputText value="#{tooltipOverviewBean.carSet[0].description} vehicle"/>
</h:panelGrid>
</ace:tooltip>
notice that h:graphic image and h:outputText interpret {tooltipOverviewBean.carSet[0].description} EL properly as expected.
To reproduce modify code in the showcase to be like the one below:
<h:outputText id="#{tooltipOverviewBean.carSet[0].description}" value="#{tooltipOverviewBean.carSet[0].description}"/>
<ace:tooltip id="canBeOmmited"
for="#{tooltipOverviewBean.carSet[0].description}">
<h:panelGrid styleClass="tooltipBoxStyle">
<h:graphicImage value="#{tooltipOverviewBean.carSet[0].path}" alt="#{tooltipOverviewBean.carSet[0].description}"/>
<h:outputText value="#{tooltipOverviewBean.carSet[0].description} vehicle"/>
</h:panelGrid>
</ace:tooltip>
notice that h:graphic image and h:outputText interpret {tooltipOverviewBean.carSet[0].description} EL properly as expected.
Another customer is seeing an issue with this. Their use case is slightly different than what is in the original description. They are using the ace:tooltip in a facelets component which requires the usage of EL through component re-use.