In an application I have added some CSS to highlight fields that fail validation. The css looks as followed:
In the following example I have captured a checkbox control inside a table data cell of 1% width:
To apply a visual indication if a certain checkbox fails I have setup a simple JS function:
Besides a listing in the xp:messages control I also have a visual indicator for the checkbox on the location of the xpage:
Happy coding!