How to hold cursor position in the same field if it is having validation errors?
Posted on 2012-03-12
I have a requirement, if the first field having validation error, then the system should not allow us to go to next field in the screen. the cursor position should be hold in the same field.
Please provide me the solution to achieve this, with Java Script/Ajax/JSF.
In my last query, experts are advised me to use PhaseListener, but it showing validation errors, but it is not restricting, it is allowing to go to next field.
kindly help me.