Many errors and warnings in the GSP editors are related to dynamic HTML generation. For example, the fragment
<label for="name">Name: </label>
<g:textField name="name"/>
will show an "invalid ID reference" error in the editor, even though an id="name" attribute is automatically generated by g:textField.
There should be a way to switch off these errors (and other warnings). I would suggest to add an entry to the intention menu that adds a special GSP comment right before the offending element.