Search code examples
grailsscaffoldinggrails-2.0

grails - bug in scaffolded view generation for Floats (Grails 2.0 RC1 - RC3)?


If one has a Float field in a domain class, the Grails view generation uses a

<g:field type="number" />

and one gets a

<input type="number" /> 

type of html field, which purely allows integers .... unless I'm just unable to get it to work differently.

Can one override the scaffolded generation to use something else for Floats, e.g. a simple text field, so that a floating point value can be entered?

Thanks

P.S. I can't find any documentation on the g:field tag, apparently new in this release. Can you refer me to any reference you've seen or include the documentation in this post? (if available)


Solution

  • Voting for the bug in the Grails bug-tracker might help get it fixed. There's also a workaround