Hello Galpi,
[EMAIL PROTECTED] wrote:
>
> I tried to follow the example of a tag part of the standard JSF component :
>
> <taglib class="org.apache.cocoon.components.ExtendedComponentSelector"
> logger="sitemap.taglib.jsf.html" name="http://java.sun.com/jsf/html">
> (...)
> <tag class="org.apache.cocoon.faces.taglib.html."
> logger="sitemap.taglib.jsf.html" name="commandButton"/>
> (...)
> </taglib>
>
> I don't get what the "class" refers to in both the "taglib" and the "tag"
> tags.
In the taglib element, leave the class as it is and change the value of
the name attribute to your uri (which is "query" as you write below)
In the tag element, enter the full tag name of your tag class in the
class attribute and the element name you want for your custom component
in the name attriute.
Have a look at one of the tag classes in the faces block of Cocoon as an
example of how you have write the tag class for your custom component.
Searching for "CommandButtonTag*" returns this :
>
> ./webapps/cocoon/api/java/org/apache/cocoon/faces/taglib/html/CommandButtonTag.html
>
> What's this html file ??
>
You do not need it for your application.
> My component and its tag class (customComponent and customeComponentTag)
> both live in the same package a.b.<class_name>, so I tried something like
> this :
>
> <taglib class="a.b.customComponent" logger="sitemap.taglib.jsf.html"
> name="query">
Try this instead:
<taglib class="org.apache.cocoon.components.ExtendedComponentSelector"
logger="sitemap.taglib.jsf.html" name="query">
> (...)
> <tag class="a.b.customComponentTag" logger="sitemap.taglib.jsf.html"
> name="customComponent"/>
> (...)
> </taglib>
>
OK.
> ("query" is the taglib-uri)
>
Yours,
Markus
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]