You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having problem with dynamic scaffolding for embedded class in the create/edit form. When I open the create/edit page, the html declaration <!doctype html><html> and the closing </html> are missing. Using the simple example from grails doc page:
class Person {
Address homeAddress
static embedded = ['homeAddress']
}
class Address {
String street
}
Then I try overriding the embedded template in layouts/_fields/embedded.gsp:
<fieldset class="embedded ${g.pageProperty(name:'type')}">
Test
<g:layoutBody/>
</fieldset>
I am still having the same problem. If I remove <g:layoutBody/> part, the <html></html> appears again. However I cannot see the embedded fields.
Embedding class also seems to be broken in a freshly generated grails app. After embedding a child class inside a parent class, the create/edit form shows up as blank page in the browser page. Did I miss anything?
The text was updated successfully, but these errors were encountered:
@sbglasius please take a look at this issue grails/scaffolding#12 it has an example attached with views generated by scaffolding plugin. the issue is still present as of Grails 3.2.6
seems like <f:all> is causing problems, because if i declare embedded field with f:field, it works fine.
@sbglasius please take a look at this issue grails3-plugins/scaffolding#12 it has an example attached with views generated by scaffolding plugin. the issue is still present as of Grails 3.2.6
seems like <f:all> is causing problems, because if i declare embedded field with f:field, it works fine.
At this point I'm not convinced there's much of a gain to using an embedded class at all. It would be just as easy to generate the view, use display: false, and then just customize/specialize the view for the specific properties.
Hi,
I'm having problem with dynamic scaffolding for embedded class in the create/edit form. When I open the create/edit page, the html declaration
<!doctype html><html>
and the closing</html>
are missing. Using the simple example from grails doc page:Then I try overriding the embedded template in layouts/_fields/embedded.gsp:
I am still having the same problem. If I remove
<g:layoutBody/>
part, the<html></html>
appears again. However I cannot see the embedded fields.Embedding class also seems to be broken in a freshly generated grails app. After embedding a child class inside a parent class, the create/edit form shows up as blank page in the browser page. Did I miss anything?
The text was updated successfully, but these errors were encountered: