Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

id attribute of <g:form> is ignored #17

Open
donalmurtagh opened this issue Feb 23, 2018 · 0 comments
Open

id attribute of <g:form> is ignored #17

donalmurtagh opened this issue Feb 23, 2018 · 0 comments
Assignees

Comments

@donalmurtagh
Copy link

donalmurtagh commented Feb 23, 2018

Steps to Reproduce

  1. Create a new Grails 3.3.2 app with the web profile
  2. Add a User domain class with a name property
  3. Run grails generate-all user
  4. Add an id property to the form for creating a new user
<g:form resource="${this.user}" method="POST" id="create-user-form">
...
</g:form>

Expected Behaviour

The HTML for this form should have an id="create-user-form" attribute

Actual Behaviour

The HTML for this form does not have an id="create-user-form" attribute.
Incidentally, the resource attribute of the g:form tag is not documented

Environment Information

  • Operating System: Mac OS X
  • Grails Version: 3.3.2
  • JDK Version: 1.8.0_66
  • Container Version (If Applicable): Tomcat
@donalmurtagh donalmurtagh changed the title id attribute of <g:form> is ignored id attribute of <g:form> is ignored Feb 23, 2018
@ilopmar ilopmar self-assigned this Feb 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants