官术网_书友最值得收藏!

What is scaffolding?

Scaffolding is a mechanism used in Grails to allow developers to generate web pages that perform basic CRUD (Create, Read, Update, Delete) operations on the classes that make up the domain model of the application. These "scaffolded" pages are a very useful low-cost mechanism that allows you to verify whether your domain classes are capturing all the necessary information. It is however, extremely rare for a scaffolding to be used in a version of the application released to users, as most web applications require more complex usage scenarios that can be provided through default scaffolding.

When scaffolding is enabled for a domain class, the following pages and actions will be available to work with that domain object:

  • List
  • Create
  • Edit
  • View
  • Delete

Scaffolding will handle:

  • Creation of the web pages
  • Mapping user input to the domain class
  • Validating the user input
  • Persisting the data to the database

We will see that it is possible to get a significant amount of value from these screens without needing to implement any application logic.

主站蜘蛛池模板: 辛集市| 瓮安县| 庆云县| 雷山县| 桃源县| 丰城市| 江源县| 安陆市| 金昌市| 辽阳县| 大庆市| 剑河县| 汕头市| 股票| 哈尔滨市| 浮梁县| 图片| 淮安市| 龙江县| 宜黄县| 日土县| 五华县| 固安县| 镇江市| 红河县| 信丰县| 宜川县| 宜丰县| 荆州市| 贵港市| 中江县| 双牌县| 凤山县| 镇坪县| 寿阳县| 科技| 喜德县| 遵义市| 武乡县| 平阳县| 二手房|