As Volker stated,  if you're not using

<f:validator validatorId="itecon.web.validator.ValidateCompareDate" />

then you also need to add a facelet tag definition for your validator
in a taglib.xml file.

Something like this:

    <tag>
      <tag-name>optionalValidator</tag-name>
      <validator>
        <validator-id>net.sf.jsfcomp.validator.OptionalValidator</validator-id>
      </validator>
    </tag>


On 9/1/05, Johannes Hiemer <[EMAIL PROTECTED]> 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
> 
>

Reply via email to