ICEfaces
  1. ICEfaces
  2. ICE-9770

ace:delegate does not work inside cc:implementation

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.3
    • Fix Version/s: None
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      glassfish 3.1.2.2

      Description

      The showcase code ace-tooltip-delegate works in my environment. But if I try the showcase code inside a component definition (<cc:implementation>), the error message
      javax.faces.FacesException: Cannot find delegate component "tooltipDelegate" in view or it is not an instance of <ace:tooltipDelegate>.

      is shown. the same occures with my own markup:
      <?xml version='1.0' encoding='UTF-8' ?>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml"
            xmlns:cc="http://java.sun.com/jsf/composite"
            xmlns:h="http://java.sun.com/jsf/html"
            xmlns:ace="http://www.icefaces.org/icefaces/components">
          <cc:interface></cc:interface>
          <cc:implementation>
              <h:form>
                  <h:commandButton action="#{tariffRulesController.search()}" value="Search"/>
                  <ace:delegate id="tooltipDelegate">
                      <ace:dataTable value="#{tariffRulesController.result}" var="row">
                          <ace:column headerText="Rule Text"><h:outputText id="ruletext" value="#{row.ruleTextShort}"/></ace:column>
                      </ace:dataTable>
                  </ace:delegate>
                  <ace:tooltip id="tooltip" for="ruletext" forDelegate="tooltipDelegate" fetch="#{row}" store="#{tariffRulesController.tooltipItem}">
                      <h:outputText value="#{tariffRulesController.tooltipItem.ruleTextLong}"/>
                  </ace:tooltip>
              </h:form>
          </cc:implementation>
      </html>

        Activity

        F Lupke created issue -

          People

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

            Dates

            • Created:
              Updated: