Creating a custom datascroller - duplicate id in the faces tree
Hello,
i try to create a datascroller with :
- a CustomHtmlDataScroller
- a CustomerHtmlDataScrollerTag
- a CustomHtmlDataScrollerRenderer
- a new tld file
- and the definition of component and renderer in faces-config.xml :
...
<component>
<component-type>proj.custom.HtmlDataScroller</component-type>
<component-class>xxx.custom.datascroller.CustomHtmlDataScroller</component-class>
</component>
<render-kit>
<renderer>
<component-family>proj.custom.panel</component-family>
<renderer-type>proj.custom.DataScroller</renderer-type>
<renderer-class>xxx.custom.datascroller.CustomHtmlDataScrollerRenderer</renderer-class>
</renderer>
</render-kit>
...
In java code i change only occurences of "HtmlDataScroller.class" by "CustomHtmlDataScroller.class"
I also change the methods getRenderType and getComponentType in the Tag class to return values described in faces-config.xml file.
So, this component shoulds work like the tomahawk datascroller
Indeed, i have an error :
java.lang.IllegalStateException: Client-id : _id140 is duplicated in the faces tree.
The new scroller has a specific id ... not _id140
Do you already have a similar behaviour ?
Thanks.

