the pieces are all there, its up to you to figure out how to put them together.

if you want to highlight the field you need to add an attribute modifier that adds some css class if the component is invalid or highlights by other means

the ajax target can accept a _javascript_ that you want evaluated on the client side via addJavascript call, you can use that to focus on the invalid component

and then there are of course the ajaxified form component and form validating behaviors

you can package all the functionality above into your own behavior.

hope this gets you started

-Igor


On 4/25/06, Jeff Lin < [EMAIL PROTECTED]> wrote:
I was wondering if there is a good Wicket example of field level
validation. I am currently using the regular feedback panel for
validation and messages, but I would rather do onBlur() validation
that marks the field and focusses the cursor on the invalid field.
Does wicket have any of these capabilities built in? Are there any
good examples of this?

Thanks in advance,
Jeff



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to