my form looks like this:

When the user clicks \"+ Add\" a new distanc
I need to be able to show individual "required" messages. Any ideas?
For that you don't need to fiddle with IDs. JSF will do it for you. Just do
This will end up in generated HTML like follows:
...
Rightclick the page in browser and choose View Source to see it yourself.
Any validation error will just be shown in the same row as the input.