java.lang.IllegalArgumentException: could not find UIData referenced by attribute dataScroller@for = 'fooey'

ICEsoft JIRA Issue Tracker | Neil Griffin | 6 years ago
  1. 0

    Here's some XHTML that I was using to create the composite component: <?xml version="1.0" encoding="UTF-8"?> <ui:component xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:cc="http://java.sun.com/jsf/composite" xmlns:ice="http://www.icesoft.com/icefaces/component" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/1999/xhtml http://www.w3.org/2002/08/xhtml/xhtml1-transitional.xsd"> <cc:interface> <cc:attribute name="for" required="true" /> <cc:attribute name="value" default="#{i18n['showing-x-x-of-x-results']}" required="false" /> <cc:attribute name="style" required="false" /> <cc:attribute name="styleClass" required="false" /> </cc:interface> <cc:implementation> <ice:dataPaginator for="#{cc.attrs.for}" firstRowIndexVar="firstRowIndex" lastRowIndexVar="lastRowIndex" pageCountVar="pageCount" pageIndexVar="pageIndex" rendered="#{cc.rendered}" rowsCountVar="rowsCount" style="#{cc.attrs.style}" styleClass="#{cc.attrs.styleClass} search-results"> <ice:outputFormat value="#{value}"> <f:param value="#{firstRowIndex}" /> <f:param value="#{lastRowIndex}" /> <f:param value="#{rowsCount}" /> <f:param value="#{pageIndex}" /> <f:param value="#{pageCount}" /> </ice:outputFormat> </ice:dataPaginator> </cc:implementation> </ui:component> And here is the error I get when I try to use the composite component with <foo:iceInfoDataPaginator for="mytable" /> java.lang.IllegalArgumentException: could not find UIData referenced by attribute dataScroller@for = 'fooey' at com.icesoft.faces.component.datapaginator.DataPaginator.findUIData(DataPaginator.java:338) at com.icesoft.faces.component.datapaginator.DataPaginator.getUIData(DataPaginator.java:227) at com.icesoft.faces.component.datapaginator.DataPaginator.isModelResultSet(DataPaginator.java:1106) at com.icesoft.faces.component.datapaginator.DataPaginatorRenderer.encodeBegin(DataPaginatorRenderer.java:205) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:823) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:298) at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:101) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1613) at com.sun.faces.renderkit.html_basic.CompositeRenderer.encodeChildren(CompositeRenderer.java:75) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:300) at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:101) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:300) at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:101) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:300) at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:101) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848)

    ICEsoft JIRA Issue Tracker | 6 years ago | Neil Griffin
    java.lang.IllegalArgumentException: could not find UIData referenced by attribute dataScroller@for = 'fooey'
  2. 0

    Here's some XHTML that I was using to create the composite component: <?xml version="1.0" encoding="UTF-8"?> <ui:component xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:cc="http://java.sun.com/jsf/composite" xmlns:ice="http://www.icesoft.com/icefaces/component" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/1999/xhtml http://www.w3.org/2002/08/xhtml/xhtml1-transitional.xsd"> <cc:interface> <cc:attribute name="for" required="true" /> <cc:attribute name="value" default="#{i18n['showing-x-x-of-x-results']}" required="false" /> <cc:attribute name="style" required="false" /> <cc:attribute name="styleClass" required="false" /> </cc:interface> <cc:implementation> <ice:dataPaginator for="#{cc.attrs.for}" firstRowIndexVar="firstRowIndex" lastRowIndexVar="lastRowIndex" pageCountVar="pageCount" pageIndexVar="pageIndex" rendered="#{cc.rendered}" rowsCountVar="rowsCount" style="#{cc.attrs.style}" styleClass="#{cc.attrs.styleClass} search-results"> <ice:outputFormat value="#{value}"> <f:param value="#{firstRowIndex}" /> <f:param value="#{lastRowIndex}" /> <f:param value="#{rowsCount}" /> <f:param value="#{pageIndex}" /> <f:param value="#{pageCount}" /> </ice:outputFormat> </ice:dataPaginator> </cc:implementation> </ui:component> And here is the error I get when I try to use the composite component with <foo:iceInfoDataPaginator for="mytable" /> java.lang.IllegalArgumentException: could not find UIData referenced by attribute dataScroller@for = 'fooey' at com.icesoft.faces.component.datapaginator.DataPaginator.findUIData(DataPaginator.java:338) at com.icesoft.faces.component.datapaginator.DataPaginator.getUIData(DataPaginator.java:227) at com.icesoft.faces.component.datapaginator.DataPaginator.isModelResultSet(DataPaginator.java:1106) at com.icesoft.faces.component.datapaginator.DataPaginatorRenderer.encodeBegin(DataPaginatorRenderer.java:205) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:823) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:298) at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:101) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1613) at com.sun.faces.renderkit.html_basic.CompositeRenderer.encodeChildren(CompositeRenderer.java:75) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:300) at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:101) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:300) at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:101) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:300) at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:101) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848)

    ICEsoft JIRA Issue Tracker | 6 years ago | Neil Griffin
    java.lang.IllegalArgumentException: could not find UIData referenced by attribute dataScroller@for = 'fooey'
  3. 0

    Binding problem

    Icesoft | 9 years ago | bmaizel
    javax.faces.FacesException: Problem in renderResponse: could not find UIData referenced by attribute dataScroller@for = 'table_id'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    "could not find UIData referenced by attribute dataScroller"

    Icesoft | 9 years ago | ernest210
    java.lang.IllegalArgumentException: could not find UIData referenced by attribute dataScroller@for = 'dateOne'
  6. 0

    1. Set up a sample IceFaces EE 1.8.2.GA_P03 project. 2. Add code from attachedFiles to your project: - welcomeICEfaces.xhtml page: - Employee.java - EditableTableEventListener.java - PhonebookBean.java 3. Compile, build & Run application. 4. Notice in the server log the following exception appear each time you load welcome page: java.lang.IllegalArgumentException: Could not find the MenuPopup UIComponent referenced by attribute menuPopup="editableTable_namecol_createRowMenu" in UIComponent of type: com.icesoft.faces.component.ext.HtmlPanelGroup with id: "j_id28" at com.icesoft.faces.component.menupopup.MenuPopupHelper.findMenuPopup(MenuPopupHelper.java:140) at com.icesoft.faces.component.menupopup.MenuPopupHelper.renderMenuPopupHandler(MenuPopupHelper.java:54) at com.icesoft.faces.component.ext.renderkit.GroupRenderer.encodeBegin(GroupRenderer.java:171) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:816) at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:355) at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:364) ..... (for full stack trace refer to the attached serverLog.rtf) 5. Click on any row in the editable table to crash application with an exception demonstrated in attached screenshots. (see Screenshot1.jpg & Screenshot2.jpg)

    ICEsoft JIRA Issue Tracker | 5 years ago | Evgheni Sadovoi
    java.lang.IllegalArgumentException: Could not find the MenuPopup UIComponent referenced by attribute menuPopup="editableTable_namecol_createRowMenu" in UIComponent of type: com.icesoft.faces.component.ext.HtmlPanelGroup with id: "j_id28"

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      could not find UIData referenced by attribute dataScroller@for = 'fooey'

      at com.icesoft.faces.component.datapaginator.DataPaginator.findUIData()
    2. com.icesoft.faces
      DataPaginatorRenderer.encodeBegin
      1. com.icesoft.faces.component.datapaginator.DataPaginator.findUIData(DataPaginator.java:338)
      2. com.icesoft.faces.component.datapaginator.DataPaginator.getUIData(DataPaginator.java:227)
      3. com.icesoft.faces.component.datapaginator.DataPaginator.isModelResultSet(DataPaginator.java:1106)
      4. com.icesoft.faces.component.datapaginator.DataPaginatorRenderer.encodeBegin(DataPaginatorRenderer.java:205)
      4 frames
    3. JavaEE 7
      UIComponentBase.encodeBegin
      1. javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:823)
      1 frame
    4. JSF
      GroupRenderer.encodeChildren
      1. com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:298)
      2. com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:101)
      2 frames
    5. JavaEE 7
      UIComponent.encodeAll
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848)
      2. javax.faces.component.UIComponent.encodeAll(UIComponent.java:1613)
      2 frames
    6. JSF
      CompositeRenderer.encodeChildren
      1. com.sun.faces.renderkit.html_basic.CompositeRenderer.encodeChildren(CompositeRenderer.java:75)
      1 frame
    7. JavaEE 7
      UIComponentBase.encodeChildren
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848)
      1 frame
    8. JSF
      GroupRenderer.encodeChildren
      1. com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:300)
      2. com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:101)
      2 frames
    9. JavaEE 7
      UIComponentBase.encodeChildren
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848)
      1 frame
    10. JSF
      GroupRenderer.encodeChildren
      1. com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:300)
      2. com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:101)
      2 frames
    11. JavaEE 7
      UIComponentBase.encodeChildren
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848)
      1 frame
    12. JSF
      GroupRenderer.encodeChildren
      1. com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:300)
      2. com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:101)
      2 frames
    13. JavaEE 7
      UIComponentBase.encodeChildren
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848)
      1 frame