문제

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