Problem with Custom Validator

Hi,

I was trying to develop a custom validator to check for all my validations.

Followed all the possible steps defined ....

Created a class that implements Validator Interface

Implemented validate() method

Registered the class in faces-config.xml, with a validator ID

Referred the validator in a component of my JSF page

Still, it is not working. However, the control is coming into custom validator's constructor, but not going into the validate() method.

Help me!!!

Thanks in advance.

Mercury.

[565 byte] By [dmercurya] at [2007-11-27 9:29:46]
# 1
Anyone pls help ?
dmercurya at 2007-7-12 22:39:11 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Are you using f:validator tag as a child of the component you want to validate with your custom validator? Or are you using the validator attribute of the component tag?

Try using the f:validator tag if you're not (and leave out the validator attribute). If that's not it, some code snippets would be helpful.

CowKing

IamCowKinga at 2007-7-12 22:39:11 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

Yes I am using f:validator tag as a child of the component that I want to validate with your custom validator. Am using the ValidatorID to call the validate() method of my custom validator.

Still not working ...

Sorry for late reply.

Thanks,

Mercury

dmercurya at 2007-7-12 22:39:11 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
Post some code. Without the code you are effectively saying "I'm doing everything right but it doesn't work. What am I doing wrong?"
RaymondDeCampoa at 2007-7-12 22:39:11 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
Can anyone pls help me out in resolving the issue with custom Validator ?
dmercurya at 2007-7-12 22:39:11 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6

lol

You can start by reading your responses!

Both Raymond and I have asked you to post code. Yet you ignore that. You're telling everyone here that you a) don't listen, b) want to waste our time, c) aren't actually having a big enough problem to work with us, and d) are a lazy bum. =)

No thanks. Even if you post code now, I wouldn't expect much help.

You really, really need to read this:

http://www.catb.org/~esr/faqs/smart-questions.html

CowKing

IamCowKinga at 2007-7-12 22:39:11 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...