This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have defined a complex validation + script in my validation-rules.xml I declare the validation rule to be applied on a field in the form but when I try to load the JSP page, I can see that the other checks (like required, minlength etc... are generated, although my own check is not generated. I want to do client checking on this little extra check too because if it's not possible, it's useless (for me) to do checks at the client side at all. The thing that I want to check is that a field A is (almost) equal to a field B, except the final character (which should be A in field A and B in field B). So "0123AA12345A" and "0123AA12345B" will be accepted, otherwise, alert box.
I hope someone already implemented some more complex validation rules and knows how to solve the problem.