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

Icesoft | ernest210 | 9 years ago
  1. 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'
  2. 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'
  3. 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'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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'
  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 = 'dateOne'

      at com.icesoft.faces.component.datapaginator.DataPaginator.findUIData()
    2. com.icesoft.faces
      DataPaginatorRenderer.encodeBegin
      1. com.icesoft.faces.component.datapaginator.DataPaginator.findUIData(DataPaginator.java:331)
      2. com.icesoft.faces.component.datapaginator.DataPaginator.getUIData(DataPaginator.java:221)
      3. com.icesoft.faces.component.datapaginator.DataPaginator.isModelResultSet(DataPaginator.java:1086)
      4. com.icesoft.faces.component.datapaginator.DataPaginatorRenderer.encodeBegin(DataPaginatorRenderer.java:186)
      4 frames
    3. JavaEE 7
      UIComponentBase.encodeBegin
      1. javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:703)
      1 frame
    4. com.icesoft.faces
      GridRenderer.encodeChildren
      1. com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:340)
      2. com.icesoft.faces.renderkit.dom_html_basic.GridRenderer.encodeChildren(GridRenderer.java:196)
      2 frames
    5. JavaEE 7
      UIComponentBase.encodeChildren
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:721)
      1 frame
    6. com.icesoft.faces
      GroupRenderer.encodeChildren
      1. com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:342)
      2. com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:348)
      3. com.icesoft.faces.renderkit.dom_html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:92)
      3 frames
    7. JavaEE 7
      UIComponentBase.encodeChildren
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:721)
      1 frame
    8. com.icesoft.faces
      PanelStackRenderer.encodeChildren
      1. com.icesoft.faces.component.util.CustomComponentUtils.renderChild(CustomComponentUtils.java:339)
      2. com.icesoft.faces.component.panelstack.PanelStackRenderer.encodeChildren(PanelStackRenderer.java:112)
      2 frames
    9. JavaEE 7
      UIComponentBase.encodeChildren
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:721)
      1 frame
    10. com.icesoft.faces
      GroupRenderer.encodeChildren
      1. com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:342)
      2. com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:348)
      3. com.icesoft.faces.renderkit.dom_html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:92)
      3 frames
    11. JavaEE 7
      UIComponentBase.encodeChildren
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:721)
      1 frame
    12. com.icesoft.faces
      PanelStackRenderer.encodeChildren
      1. com.icesoft.faces.component.util.CustomComponentUtils.renderChild(CustomComponentUtils.java:339)
      2. com.icesoft.faces.component.panelstack.PanelStackRenderer.encodeChildren(PanelStackRenderer.java:112)
      2 frames
    13. JavaEE 7
      UIComponentBase.encodeChildren
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:721)
      1 frame
    14. com.icesoft.faces
      GroupRenderer.encodeChildren
      1. com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:342)
      2. com.icesoft.faces.renderkit.dom_html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:92)
      2 frames
    15. JavaEE 7
      UIComponentBase.encodeChildren
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:721)
      1 frame
    16. com.icesoft.faces
      GroupRenderer.encodeChildren
      1. com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:342)
      2. com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:348)
      3. com.icesoft.faces.renderkit.dom_html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:92)
      3 frames
    17. JavaEE 7
      UIComponentBase.encodeChildren
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:721)
      1 frame
    18. com.icesoft.faces
      PanelBorderRenderer.encodeEnd
      1. com.icesoft.faces.component.util.CustomComponentUtils.renderChild(CustomComponentUtils.java:339)
      2. com.icesoft.faces.component.panelborder.PanelBorderRenderer.renderTableCell(PanelBorderRenderer.java:325)
      3. com.icesoft.faces.component.panelborder.PanelBorderRenderer.renderTableCells(PanelBorderRenderer.java:269)
      4. com.icesoft.faces.component.panelborder.PanelBorderRenderer.renderCenter(PanelBorderRenderer.java:175)
      5. com.icesoft.faces.component.panelborder.PanelBorderRenderer.renderEastWestCenter(PanelBorderRenderer.java:154)
      6. com.icesoft.faces.component.panelborder.PanelBorderRenderer.renderPanel(PanelBorderRenderer.java:131)
      7. com.icesoft.faces.component.panelborder.PanelBorderRenderer.encodeEnd(PanelBorderRenderer.java:107)
      7 frames
    19. JavaEE 7
      UIComponentBase.encodeEnd
      1. javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:740)
      1 frame
    20. com.icesoft.faces
      D2DViewHandler.renderView
      1. com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:570)
      2. com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:565)
      3. com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:565)
      4. com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:565)
      5. com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:541)
      6. com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:153)
      6 frames
    21. JSF
      LifecycleImpl.render
      1. com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
      2. com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
      3. com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
      3 frames
    22. com.icesoft.faces
      MainServlet.service
      1. com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:58)
      2. com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:45)
      3. com.icesoft.faces.webapp.http.core.IDVerifier.service(IDVerifier.java:25)
      4. com.icesoft.faces.webapp.http.core.ViewBoundServer.service(ViewBoundServer.java:52)
      5. com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50)
      6. com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19)
      7. com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
      8. com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:29)
      9. com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:109)
      10. com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:35)
      11. com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
      12. com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
      13. com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:98)
      13 frames
    23. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
      1 frame