yep, that will do it

-igor


On 1/24/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:

private class ExistingUserValidator extends StringValidator{

        public void onValidate(FormComponent formComponent, String string)
{
            //lookup database
            //if username taken
            // error(formComponent)
        }
        protected String resourceKey(FormComponent formComponent)
        {
            return "ExistingUserValidator ";
        }

    }

?? is it

On 1/24/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
>
>
> What are proper ways to build custom validators, i seem to loose touch
> when i checked IValidator doc and i saw "THIS IS NOT PART OF PUBLIC API" and
> then I looked at CustomValidator and every thing in deprecated. Is there any
> newest approach for writing a custom validator
>
> For instance I want to validate against a database for a uniqueContraint
> situation.
>
> Any latest tips?
>
> thanks
>
>
>




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to