Вопрос

For my web application in grails I have 3 admin controlling domain classes and no need of special UIs. For this I have decided to use dynamic scaffolding.

static scaffold = true; is scaffolding only one domain class.

Is there any way to scaffold all these 3 domain classes with a single controller. ?

Это было полезно?

Решение

I have found the solution.

We can scaffold a domain class from another controller by mentioning the name of domain class needed to scaffold dynamically.

For example:

static scaffold = User; 

This scaffolding is happening in run-time only. So if we need to avoid scaffolding and if we wish to add actions manually we can eliminate the above code of line.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top