-
Notifications
You must be signed in to change notification settings - Fork 52
Type of g:field tag #82
Comments
Maybe it should be type="number" and add step="any" to allow chrome to input float numbers. |
works, thanks :) |
Do you have Date fields? My date field in _form.gsp like The date format is (yyyy-MM-dd) by default. |
yeap, I have the same problem, maybe must edit/fix the file src/scaffolding/renderEditor.template ??? |
But I still didn't find the solution. Do you? |
nop, not yet. |
I have not tried to use the date feature but I found that both editor template and the _form.gsp in /src/scaffolding have issues - one of the issues I have been dealing with is the implicid unique equal true (default) - to my recollection the _form.gsp made a code change to figure out the reqiured attribute but it seemed it did not work right. Could this be the problem for you? (Also see issue #80 for the renderEditor.template - similar issues were found) Hope this helps. |
<bs:datePicker name="tradeDate" precision="day" value="${itemStatusInstance?.tradeDate}" /> I found a solution to add @BindingFormat('yyyy-MM-dd') before my date field in domain class solve the date binding issue. But, is this the best (or suggested) way to bind the date field in grails 2.3.x? |
renderEditor.template is wrong, I fixed http://pastebin.com/tZP7ec6H |
i'm have a field in my domain class with double type, when I run generate-all in my domain class the _form template generated have a g:field tag in this field without "type" attributte
Domain class:
Double importe
_form.gsp :
<g:field class="form-control" name="importe"
value="${fieldValue(bean: facturaItemInstance, field: 'importe')}"
required="" />
The text was updated successfully, but these errors were encountered: