new custom component problems (inc. stacktrace)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

new custom component problems (inc. stacktrace)

Eyal Grundstein

Hi all,

I tried creating a new component using the exact DataScroller source code. I followed orders from a  number of sources, yet something is going wron.

 

I added these lines to my faces.config file:

<component>

      <component-type>org.apache.myfaces.MyHtmlDataScroller</component-type>

             <component-class>com.viewer.components.datascroller.MyHtmlDataScroller</component-class>

      </component>

            <renderer>

           <component-family>javax.faces.Panel</component-family>

           <renderer-type>org.apache.myfaces.MyHtmlDataScroller</renderer-type>

           <renderer-class>com com.viewer.components.datascroller.MyHtmlDataScrollerRenderer</renderer-class>

       </renderer>

 

I am getting this error:

java.lang.StackOverflowError

      at java.util.HashMap.hash(HashMap.java:264)

      at java.util.HashMap.containsKey(HashMap.java:342)

      at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:104)

      at javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:526)

      at org.apache.myfaces.component.html.ext.HtmlPanelGroup.getClientId(HtmlPanelGroup.java:54)

      at javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:531)

      at org.apache.myfaces.component.html.ext.HtmlPanelGroup.getClientId(HtmlPanelGroup.java:54)

      at javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:531)

      at org.apache.myfaces.component.html.ext.HtmlPanelGroup.getClientId(HtmlPanelGroup.java:54)

      at javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:531)

      at org.apache.myfaces.component.html.ext.HtmlPanelGroup.getClientId(HtmlPanelGroup.java:54)

      at javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:531)

      at org.apache.myfaces.component.html.ext.HtmlPanelGroup.getClientId(HtmlPanelGroup.java:54)

      at javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:531)

      at org.apache.myfaces.component.html.ext.HtmlPanelGroup.getClientId(HtmlPanelGroup.java:54)

      at javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:531)

      at org.apache.myfaces.component.html.ext.HtmlPanelGroup.getClientId(HtmlPanelGroup.java:54)

      at javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:531)

      at org.apache.myfaces.component.html.ext.HtmlPanelGroup.getClientId(HtmlPanelGroup.java:54)

      at javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:531)

      at org.apache.myfaces.component.html.ext.HtmlPanelGroup.getClientId(HtmlPanelGroup.java:54)

      at javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:531)

 

Any clues?

 

 

Eyal Grundstein