10 Replies Latest reply on Apr 6, 2010 5:12 PM by nbelaevski

    javax.faces.FacesException - Component for target not found in SuggestionBox

      All,

       

           I'm getting the following exception when I try to access my application.I have recently updated the following components in my application

       

      weblogic8.1 to weblogic 10.3

       

      myfaces 1.1.5 to 1.2.8

       

      richfaces 3.0.1 to 3.3.2

       

      tomahawk  1.1.5 to 12_1.1.10

       

      Struts tiles to tiles 2.0.7

       

      ----------------------------

      Exception while calling encodeEnd on component : {Component-Path : [Class: org.ajax4jsf.component.AjaxViewRoot,ViewId: /webContent/jsp/searchManager/search/searchManagerMain.jsp][Class: org.apache.myfaces.custom.document.Document,Id: j_id_id1][Class: org.apache.myfaces.custom.document.DocumentBody,Id: j_id_id9][Class: javax.faces.component.html.HtmlForm,Id: searchManagerForm][Class: org.apache.myfaces.custom.div.Div,Id: div_searchContainer][Class: org.apache.myfaces.custom.div.Div,Id: j_id_id15][Class: javax.faces.component.UINamingContainer,Id: subView_searchj_id_1][Class: org.apache.myfaces.component.html.ext.HtmlPanelGrid,Id: j_id_id2pc2]}

      Caused by:
      javax.faces.FacesException - Component for target tSuggest not found in SuggestionBox tSuggestBoxpc1

      -------------------------------

       

      PFB, the code I used in my app.

       

      --------------------------------

       

      <t:popup id="tooltipT"

                  style="#{(uiQSP.quickSearchListController.selectedT==null||uiQSP.quickSearchListController.selectedT=='')?null:'border:1px solid #000000;bgcolor:#FFFFFF;width:100px;background-color:#ffffff'}"

                  closePopupOnExitingElement="true" closePopupOnExitingPopup="true"

                  displayAtDistanceX="10" displayAtDistanceY="10" rendered="true">

                  <a4j:region id="tRegion">

                  <t:inputTextHelp value="#{uiQSP.quickSearchListController.selectedTA}" id="tSuggest"

                                 size="40" maxlength="255" >                   

                  </t:inputTextHelp>

                        <rich:suggestionbox id="tSuggestBox" for="tSuggest" style ="font-size:12px" tokens="" frequency="0" selfRendered="true" ignoreDupResponses="true"  

                              rules="#{uiQSP.rules}"

                              suggestionAction="#{uiQSP.autocompleteT}" var="result"

                              fetchValue="#{result.tName}" first="#{uiQSP.intFirst}"

                              minChars="#{uiQSP.minchars}"

                              shadowOpacity="#{uiQSP.shadowOpacity}"

                              border="#{uiQSP.border}" width="#{uiQSP.width}"

                              height="#{uiQSP.height}"

                              shadowDepth="#{uiQSP.shadowDepth}"

                              cellpadding="#{uiQSP.cellpadding}" >

                              <h:column>

                                    <h:outputText value="#{result.tName}" />

                              </h:column>

                              <a4j:support event="onselect" action="#{uiQSP.getXXX}"

                                           reRender="tooltipT,tx,ty,qname,qc,qmdc"></a4j:support>

                        </rich:suggestionbox>

                  </a4j:region>

                  <f:facet name="popup">

                        <t:div rendered="#{!(uiQSP.quickSearchListController.selectedT==null||uiQSP.quickSearchListController.selectedT=='')}">

                              <t:panelGrid columns="2">

                                    <t:outputText value="T:"

                                          style="font-weight: bold; font-size: 10;" />

                                    <t:outputText value="#{uiQSP.quickSearchListController.selectedT}" style="font-size:10; white-space: nowrap;" />                       

                              </t:panelGrid>

                        </t:div>

                  </f:facet>

       

            </t:popup>

      --------------------------------------------------------------------

       

      Please let me know what will be the root cause of this issue.

       

      Thanks & Regards,

      Nila

        • 1. Re: javax.faces.FacesException - Component for target not found in SuggestionBox
          ilya_shaikovsky

          will it works if you replace t:inputTextHelp with just h:inputText just for checking?

          • 2. Re: javax.faces.FacesException - Component for target not found in SuggestionBox

            Thanks for the reply.

             

            No, even i have tried with  h:inputText but the exception still persists.

            • 3. Re: javax.faces.FacesException - Component for target not found in SuggestionBox
              nbelaevski

              Exception refers to suggestion box with id="tSuggestBoxpc1". Please post the code that includes this component.

              • 4. Re: javax.faces.FacesException - Component for target not found in SuggestionBox

                The code does not have nay component with this ="tSuggestBoxpc1". It has a suggestiobbox with the id ='tSuggestBox'.

                 

                I'm not sure why it is refered as 'tSuggestBocpc1'.

                 

                 

                I have the below exception after including the <a4j:region> block in the below code

                 

                -----------

                 

                <h:inputText id="tSuggest"  value="#{uiQSP.quickSearchListController.selectedTA}" size="40" maxlength="255"/>     


                    <a4j:region id="tRegion" renderRegionOnly="true">


                   <rich:suggestionbox id="tSuggestBox" for="tSuggest"
                    suggestionAction="#{uiQSP.autocompleteT}"
                    var="result" rules="#{uiQSP.rules}"
                    fetchValue="#{result.tName}" eventsQueue="foo"
                    ignoreDupResponses="true" selectedClass="selCtl">
                    <h:column>
                     <h:outputText value="#{result.tName}" style="font: menu;" />
                    </h:column>
                   </rich:suggestionbox>

                 

                  </a4j:region>

                -------------------

                 

                Also PFB, the complete stack trace.

                 

                -------------------

                javax.faces.FacesException: Exception while calling encodeEnd on component : {Component-Path : [Class: org.ajax4jsf.comp
                onent.AjaxViewRoot,ViewId: /webContent/jsp/searchManager/search/searchManagerMain.jsp][Class: org.apache.myfaces.custom.
                document.Document,Id: j_id_id1][Class: org.apache.myfaces.custom.document.DocumentBody,Id: j_id_id9][Class: javax.faces.
                component.html.HtmlForm,Id: searchManagerForm][Class: org.apache.myfaces.custom.div.Div,Id: div_searchContainer][Class:
                org.apache.myfaces.custom.div.Div,Id: j_id_id15][Class: javax.faces.component.UINamingContainer,Id: subView_searchj_id_1
                ][Class: org.apache.myfaces.component.html.ext.HtmlPanelGrid,Id: j_id_id2pc2]}
                        at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:627)
                        at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild(RendererUtils.java:534)
                        at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChildren(RendererUtils.java:511)
                        at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild(RendererUtils.java:532)
                        at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChildren(RendererUtils.java:511)
                        at org.apache.myfaces.custom.htmlTag.HtmlTagRenderer.encodeChildren(HtmlTagRenderer.java:111)
                        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:611)
                        at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild(RendererUtils.java:528)
                        at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChildren(RendererUtils.java:511)
                        at org.apache.myfaces.custom.htmlTag.HtmlTagRenderer.encodeChildren(HtmlTagRenderer.java:111)
                        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:611)
                        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:250)
                        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:257)
                        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:257)
                        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:257)
                        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:257)
                        at org.apache.myfaces.tomahawk.application.jsp.JspTilesTwoViewHandlerImpl.actuallyRenderView(JspTilesTwoViewHand
                lerImpl.java:478)
                        at org.apache.myfaces.tomahawk.application.jsp.JspTilesTwoViewHandlerImpl.renderTilesView(JspTilesTwoViewHandler
                Impl.java:200)
                        at org.apache.myfaces.tomahawk.application.jsp.JspTilesTwoViewHandlerImpl.renderView(JspTilesTwoViewHandlerImpl.
                java:135)
                        at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
                        at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
                        at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
                        at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
                        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:182)
                        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
                        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
                        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
                        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
                        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
                        at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
                        at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
                        at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
                        at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
                        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
                        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
                        at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:384)
                        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
                        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
                        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
                        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
                        at weblogic.security.service.SecurityManager.runAs(Unknown Source)
                        at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
                        at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
                        at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
                        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
                        at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
                Caused by: javax.faces.FacesException: Exception while calling encodeEnd on component : {Component-Path : [Class: org.aj
                ax4jsf.component.AjaxViewRoot,ViewId: /webContent/jsp/searchManager/search/searchManagerMain.jsp][Class: org.apache.myfa
                ces.custom.document.Document,Id: j_id_id1][Class: org.apache.myfaces.custom.document.DocumentBody,Id: j_id_id9][Class: j
                avax.faces.component.html.HtmlForm,Id: searchManagerForm][Class: org.apache.myfaces.custom.div.Div,Id: div_searchContain
                er][Class: org.apache.myfaces.custom.div.Div,Id: j_id_id15][Class: javax.faces.component.UINamingContainer,Id: subView_s
                earchj_id_1][Class: org.apache.myfaces.component.html.ext.HtmlPanelGrid,Id: j_id_id2pc2][Class: org.apache.myfaces.custo
                m.tabbedpane.HtmlPanelTabbedPane,Id: j_id_id8pc2]}
                        at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:627)
                        at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild(RendererUtils.java:534)
                        at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.ja
                va:231)
                        at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:10
                2)
                        at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:624)
                        ... 47 more
                Caused by: javax.faces.FacesException: Exception while calling encodeEnd on component : {Component-Path : [Class: org.aj
                ax4jsf.component.AjaxViewRoot,ViewId: /webContent/jsp/searchManager/search/searchManagerMain.jsp][Class: org.apache.myfa
                ces.custom.document.Document,Id: j_id_id1][Class: org.apache.myfaces.custom.document.DocumentBody,Id: j_id_id9][Class: j
                avax.faces.component.html.HtmlForm,Id: searchManagerForm][Class: org.apache.myfaces.custom.div.Div,Id: div_searchContain
                er][Class: org.apache.myfaces.custom.div.Div,Id: j_id_id15][Class: javax.faces.component.UINamingContainer,Id: subView_s
                earchj_id_1][Class: org.apache.myfaces.component.html.ext.HtmlPanelGrid,Id: j_id_id2pc2][Class: org.apache.myfaces.custo
                m.tabbedpane.HtmlPanelTabbedPane,Id: j_id_id8pc2][Class: org.apache.myfaces.custom.tabbedpane.HtmlPanelTab,Id: j_id_id10
                pc2]}
                        at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:627)
                        at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild(RendererUtils.java:534)
                        at org.apache.myfaces.custom.tabbedpane.HtmlTabbedPaneRenderer.writeTabsContents(HtmlTabbedPaneRenderer.java:562
                )
                        at org.apache.myfaces.custom.tabbedpane.HtmlTabbedPaneRenderer.encodeEnd(HtmlTabbedPaneRenderer.java:239)
                        at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:624)
                        ... 51 more
                Caused by: javax.faces.FacesException: Exception while calling encodeEnd on component : {Component-Path : [Class: org.aj
                ax4jsf.component.AjaxViewRoot,ViewId: /webContent/jsp/searchManager/search/searchManagerMain.jsp][Class: org.apache.myfa
                ces.custom.document.Document,Id: j_id_id1][Class: org.apache.myfaces.custom.document.DocumentBody,Id: j_id_id9][Class: j
                avax.faces.component.html.HtmlForm,Id: searchManagerForm][Class: org.apache.myfaces.custom.div.Div,Id: div_searchContain
                er][Class: org.apache.myfaces.custom.div.Div,Id: j_id_id15][Class: javax.faces.component.UINamingContainer,Id: subView_s
                earchj_id_1][Class: org.apache.myfaces.component.html.ext.HtmlPanelGrid,Id: j_id_id2pc2][Class: org.apache.myfaces.custo
                m.tabbedpane.HtmlPanelTabbedPane,Id: j_id_id8pc2][Class: org.apache.myfaces.custom.tabbedpane.HtmlPanelTab,Id: j_id_id10
                pc2][Class: org.apache.myfaces.component.html.ext.HtmlPanelGrid,Id: j_id_id2pc3]}
                        at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:627)
                        at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:534)
                        at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChildren(RendererUtils.java:511)
                        at org.apache.myfaces.shared_impl.renderkit.html.HtmlGroupRendererBase.encodeEnd(HtmlGroupRendererBase.java:92)
                        at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:624)
                        ... 55 more
                Caused by: javax.faces.FacesException: Exception while calling encodeEnd on component : {Component-Path : [Class: org.aj
                ax4jsf.component.AjaxViewRoot,ViewId: /webContent/jsp/searchManager/search/searchManagerMain.jsp][Class: org.apache.myfa
                ces.custom.document.Document,Id: j_id_id1][Class: org.apache.myfaces.custom.document.DocumentBody,Id: j_id_id9][Class: j
                avax.faces.component.html.HtmlForm,Id: searchManagerForm][Class: org.apache.myfaces.custom.div.Div,Id: div_searchContain
                er][Class: org.apache.myfaces.custom.div.Div,Id: j_id_id15][Class: javax.faces.component.UINamingContainer,Id: subView_s
                earchj_id_1][Class: org.apache.myfaces.component.html.ext.HtmlPanelGrid,Id: j_id_id2pc2][Class: org.apache.myfaces.custo
                m.tabbedpane.HtmlPanelTabbedPane,Id: j_id_id8pc2][Class: org.apache.myfaces.custom.tabbedpane.HtmlPanelTab,Id: j_id_id10
                pc2][Class: org.apache.myfaces.component.html.ext.HtmlPanelGrid,Id: j_id_id2pc3][Class: org.apache.myfaces.component.htm
                l.ext.HtmlPanelGrid,Id: j_id_id3pc3]}
                        at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:627)
                        at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild(RendererUtils.java:534)
                        at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.ja
                va:231)
                        at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:10
                2)
                        at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:624)
                        ... 59 more
                Caused by: javax.faces.FacesException: Exception while calling encodeEnd on component : {Component-Path : [Class: org.aj
                ax4jsf.component.AjaxViewRoot,ViewId: /webContent/jsp/searchManager/search/searchManagerMain.jsp][Class: org.apache.myfa
                ces.custom.document.Document,Id: j_id_id1][Class: org.apache.myfaces.custom.document.DocumentBody,Id: j_id_id9][Class: j
                avax.faces.component.html.HtmlForm,Id: searchManagerForm][Class: org.apache.myfaces.custom.div.Div,Id: div_searchContain
                er][Class: org.apache.myfaces.custom.div.Div,Id: j_id_id15][Class: javax.faces.component.UINamingContainer,Id: subView_s
                earchj_id_1][Class: org.apache.myfaces.component.html.ext.HtmlPanelGrid,Id: j_id_id2pc2][Class: org.apache.myfaces.custo
                m.tabbedpane.HtmlPanelTabbedPane,Id: j_id_id8pc2][Class: org.apache.myfaces.custom.tabbedpane.HtmlPanelTab,Id: j_id_id10
                pc2][Class: org.apache.myfaces.component.html.ext.HtmlPanelGrid,Id: j_id_id2pc3][Class: org.apache.myfaces.component.htm
                l.ext.HtmlPanelGrid,Id: j_id_id3pc3][Class: org.apache.myfaces.component.html.ext.HtmlPanelGrid,Id: j_id_id4pc3]}
                        at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:627)
                        at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild(RendererUtils.java:534)
                        at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.ja
                va:231)
                        at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:10
                2)
                        at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:624)
                        ... 63 more
                Caused by: javax.faces.FacesException: Exception while calling encodeEnd on component : {Component-Path : [Class: org.aj
                ax4jsf.component.AjaxViewRoot,ViewId: /webContent/jsp/searchManager/search/searchManagerMain.jsp][Class: org.apache.myfa
                ces.custom.document.Document,Id: j_id_id1][Class: org.apache.myfaces.custom.document.DocumentBody,Id: j_id_id9][Class: j
                avax.faces.component.html.HtmlForm,Id: searchManagerForm][Class: org.apache.myfaces.custom.div.Div,Id: div_searchContain
                er][Class: org.apache.myfaces.custom.div.Div,Id: j_id_id15][Class: javax.faces.component.UINamingContainer,Id: subView_s
                earchj_id_1][Class: org.apache.myfaces.component.html.ext.HtmlPanelGrid,Id: j_id_id2pc2][Class: org.apache.myfaces.custo
                m.tabbedpane.HtmlPanelTabbedPane,Id: j_id_id8pc2][Class: org.apache.myfaces.custom.tabbedpane.HtmlPanelTab,Id: j_id_id10
                pc2][Class: org.apache.myfaces.component.html.ext.HtmlPanelGrid,Id: j_id_id2pc3][Class: org.apache.myfaces.component.htm
                l.ext.HtmlPanelGrid,Id: j_id_id3pc3][Class: org.apache.myfaces.component.html.ext.HtmlPanelGrid,Id: j_id_id4pc3][Class:
                org.apache.myfaces.custom.popup.HtmlPopup,Id: tooltipTApc1]}
                        at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:627)
                        at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild(RendererUtils.java:534)
                        at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.ja
                va:231)
                        at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:10
                2)
                        at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:624)
                        ... 67 more
                Caused by: javax.faces.FacesException: Exception while calling encodeEnd on component : {Component-Path : [Class: org.aj
                ax4jsf.component.AjaxViewRoot,ViewId: /webContent/jsp/searchManager/search/searchManagerMain.jsp][Class: org.apache.myfa
                ces.custom.document.Document,Id: j_id_id1][Class: org.apache.myfaces.custom.document.DocumentBody,Id: j_id_id9][Class: j
                avax.faces.component.html.HtmlForm,Id: searchManagerForm][Class: org.apache.myfaces.custom.div.Div,Id: div_searchContain
                er][Class: org.apache.myfaces.custom.div.Div,Id: j_id_id15][Class: javax.faces.component.UINamingContainer,Id: subView_s
                earchj_id_1][Class: org.apache.myfaces.component.html.ext.HtmlPanelGrid,Id: j_id_id2pc2][Class: org.apache.myfaces.custo
                m.tabbedpane.HtmlPanelTabbedPane,Id: j_id_id8pc2][Class: org.apache.myfaces.custom.tabbedpane.HtmlPanelTab,Id: j_id_id10
                pc2][Class: org.apache.myfaces.component.html.ext.HtmlPanelGrid,Id: j_id_id2pc3][Class: org.apache.myfaces.component.htm
                l.ext.HtmlPanelGrid,Id: j_id_id3pc3][Class: org.apache.myfaces.component.html.ext.HtmlPanelGrid,Id: j_id_id4pc3][Class:
                org.apache.myfaces.custom.popup.HtmlPopup,Id: tooltipTApc1][Class: org.ajax4jsf.component.html.HtmlAjaxRegion,Id: taRegi
                onpc1][Class: org.richfaces.component.html.HtmlSuggestionBox,Id: tSuggestBoxpc1]}
                        at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:627)
                        at javax.faces.component.UIData.encodeEnd(UIData.java:779)
                        at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild(RendererUtils.java:534)
                        at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChildren(RendererUtils.java:511)
                        at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild(RendererUtils.java:532)
                        at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChildren(RendererUtils.java:511)
                        at org.apache.myfaces.custom.popup.HtmlPopupRenderer.encodeEnd(HtmlPopupRenderer.java:82)
                        at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:624)
                        ... 71 more
                Caused by: javax.faces.FacesException: Component for target tSuggest not found in SuggestionBox tSuggestBoxpc1
                        at org.richfaces.renderkit.html.SuggestionBoxRenderer.getTarget(SuggestionBoxRenderer.java:345)
                        at org.richfaces.renderkit.html.SuggestionBoxRenderer.getScript(SuggestionBoxRenderer.java:377)
                        at org.richfaces.renderkit.html.SuggestionBoxRenderer.doEncodeEnd(SuggestionBoxRenderer.java:274)
                        at org.ajax4jsf.renderkit.RendererBase.encodeEnd(RendererBase.java:134)
                        at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:624)
                        ... 78 more

                Thanks,

                Nila

                • 5. Re: javax.faces.FacesException - Component for target not found in SuggestionBox
                  ilya_shaikovsky

                  could you please carefully check once more if there are component with tSuggestBoxpc1 id... maybe in some included views?

                  • 6. Re: javax.faces.FacesException - Component for target not found in SuggestionBox

                    Hi,

                     

                    I have searched my entire project with the particular name..but i couldn't find any...

                     

                    somehow, the ids for the <a4j> and <rich> tags are appened with pc1/pc2 like that.... don't know y....

                     

                    Thanks ,

                    Nila

                    • 7. Re: javax.faces.FacesException - Component for target not found in SuggestionBox
                      nbelaevski

                      That's MyFaces doing this:

                       

                      UIComponentClassicTagBase.java:

                          private String createNextId(String componentId)
                          {
                              Integer currentCounter = (Integer) getFacesContext().getExternalContext().getRequestMap().get(componentId);
                       
                              int iCurrentCounter = 1;
                       
                              if (currentCounter != null)
                              {
                                  iCurrentCounter = currentCounter.intValue();
                                  iCurrentCounter++;
                              }
                       
                              getFacesContext().getExternalContext().getRequestMap().put(componentId, new Integer(iCurrentCounter));
                       
                              if (isIncludedOrForwarded())
                              {
                                  componentId = componentId + "pc" + iCurrentCounter;
                              }
                              else
                              {
                                  componentId = componentId + UNIQUE_ID_PREFIX + iCurrentCounter;            
                              }
                       
                              return componentId;
                          }
                      
                      
                      
                      • 8. Re: javax.faces.FacesException - Component for target not found in SuggestionBox

                        Do i need to use any particular version Myfaces with Richfaces?

                         

                        Pls assist.

                         

                        Thanks,

                        Nila

                        • 9. Re: javax.faces.FacesException - Component for target not found in SuggestionBox

                          Do I need to use any other version of Myfaces with richfaces?

                           

                          PFB, the list of the jar files in my project.

                           

                          ---------

                          All-MB.jar
                          antlr-2.7.6.jar
                          asm.jar
                          bpmutil.jar
                          bsf.jar
                          cglib-2.1.3.jar
                          commons-beanutils-1.7.0.jar
                          commons-codec-1.3.jar
                          commons-collections-3.2.jar
                          commons-digester-1.8.jar
                          commons-discovery-0.4.jar
                          commons-el-1.0.jar
                          commons-fileupload-1.2.1.jar
                          commons-fileupload.jar
                          commons-httpclient-3.0.1.jar
                          commons-lang-2.1.jar
                          commons-logging-1.1.1.jar
                          commons-net-1.4.1.jar
                          commons-validator-1.2.0.jar
                          Dart.jar
                          dctm.jar
                          dfc.jar
                          dfcbase.jar
                          dom4j-1.4.jar
                          hibernate3.jar
                          htmlparser.jar
                          j4j.jar
                          jdom.jar
                          jenia4faces_1.2.1.jar
                          joda-time-1.4.jar
                          jsp-api.jar
                          jstl-1.2.jar
                          junit.jar
                          log4j.jar
                          myfaces-api-1.2.8.jar
                          myfaces-impl-1.2.8.jar
                          odmg-3.0.jar
                          offline.jar
                          oscache-2.3.jar
                          poi-2.5.1-final-20040804.jar
                          richfaces-api-3.3.2.SR1.jar
                          richfaces-impl-3.3.2.SR1.jar
                          richfaces-ui-3.3.2.SR1.jar
                          spring.jar
                          struts.jar
                          subscription.jar
                          tiles-api-2.0.7.jar
                          tiles-core-2.0.7.jar
                          tiles-jsp-2.0.7.jar
                          tomahawk12-1.1.10-SNAPSHOT.jar
                          Widgets.jar
                          workflow.jar
                          xalan.jar
                          xbean.jar
                          xdb.jar
                          xerces-2.6.2.jar
                          xercesImpl.jar
                          xml-apis.jar
                          xmlParserAPIs.jar
                          xmlparserv2.jar

                          ---------

                           

                          Pls Assist.

                           

                          Thanks,

                          Nila

                          • 10. Re: javax.faces.FacesException - Component for target not found in SuggestionBox
                            nbelaevski

                            No special MyFaces version. I'm not sure whether the problem is caused by MyFaces or Tiles, please post all code snippets related to the suggestion box component. Try creating minified example that reproduces the issue and post code for the pages it contains of.