Hi,
your validator registration looks ok, but you you wrote about a custom
tag and, i think, also about a custom component.
If you create a custom component then you must register it as component.
<component>
<component-type>
[your component type]
</component-type>
<component-class>
[full qualified class name of your UIComponent]
</component-class>
</component>
If you just want to use your own validator
you can use your registered validator with the f:validator tag
and you don't need to create your own tag.
<f:validator validatorId="itecon.web.validator.ValidateCompareDate" />
Johannes Hiemer wrote:
> Hi,
> hm I regsitered the component like this:
> <validator>
>
> <validator-id>itecon.web.validator.ValidateCompareDate</validator-id>
> <validator-class>
> itecon.web.validator.ValidateCompareDate
> </validator-class>
> </validator>
>
> Is that wrong?
> Btw. perhaps I need to mention that I am using myfaces with facelets.
>
> Regards Johannes
>
> "MyFaces Discussion" <[email protected]> schrieb am 01.09.05 15:02:54:
>
>>Did you have declared your component in your faces-config.xml ?
>>
>>seems that the application don't know anything about a component type of
>> 'itecon.web.validator.ValidateCompareDate'.
>>
>>Johannes Hiemer wrote:
>>
>>>Hi,
>>>based on the equal-tag from Matthias Wessendorf I created a tag to compare 2
>>>dates. But when I try to use it I get the error below. Perhaps anyone could
>>>help me figuring out what I am doing wrong.
>>>javax.faces.FacesException: Undefined component type
>>>itecon.web.validator.ValidateCompareDate
>>> at
>>> org.apache.myfaces.application.ApplicationImpl.createComponent(ApplicationImpl.java:390)
>>> at
>>> com.sun.facelets.tag.jsf.ComponentHandler.createComponent(ComponentHandler.java:203)
>>> at
>>> com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:135)
>>> at
>>> com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:148)
>>> at
>>> com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:148)
>>> at
>>> com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:48)
>>> at
>>> com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:148)
>>> at com.sun.facelets.tag.ui.DefineHandler.apply(DefineHandler.java:59)
>>> at com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:67)
>>> at
>>> com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:48)
>>> at
>>> com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:50)
>>> at
>>> com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:48)
>>> at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:157)
>>> at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:202)
>>> at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:181)
>>>
>>>I attached the two validator files. If the myfaces project is intereseted in
>>>using them, what I personally don't think, then feel free. :)
>>>
>>>______________________________________________________________
>>>Verschicken Sie romantische, coole und witzige Bilder per SMS!
>>>Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
>>>
>>
>>--
>>Don't answer to From: address!
>>Mail to this account are droped if not recieved via mailinglist.
>>To contact me direct create the mail address by
>>concatenating my forename to my senders domain.
>
>
>
> ______________________________________________________________
> Verschicken Sie romantische, coole und witzige Bilder per SMS!
> Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
>
--
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.