- Grails 1.1 Web Application Development
- Jon Dickinson
- 198字
- 2021-04-01 14:19:30
Chapter 3. Posting Messages
You have used Grails scaffolding to create some skeleton pages that manage users and roles. You will now learn the basics of web application development in Grails and implement the first of our user's goals to post messages.
The first user story could go something like this. As a team member, I want to be able to send a message to the rest of my team, so that I can share important information with my teammates.
To accomplish this goal, you are going to implement the following:
- A page to allow users to post messages
- A home page to display all messages in a chronological order
You will need to take the following steps to implement the above items:
- Create a domain class to represent messages
- Create a controller to handle user actions for messages
- Create a view to allow users to enter message data
- Create a controller to handle requests for the home page of the application
- Create a view for the home page
- Validate the message data input by the user
- Use GORM (Grail's Object Relational Mapping) to persist the message
- Use GORM to retrieve the messages in chronological order
推薦閱讀
- 現代企業應用設計指南
- Adobe創意大學After Effects CS5 產品專家認證標準教材
- User Training for Busy Programmers
- 下一代空間計算:AR與VR創新理論與實踐
- Photoshop CS6實戰基礎培訓教程(全視頻微課版)
- Android從入門到精通
- WordPress Theme Design
- 24小時學會PowerPoint 2010
- Oracle Enterprise Manager Grid Control 11g R1: Business Service Management
- CINEMA 4D新手快速進階實例教學
- Scribus 1.3.5: Beginner's Guide
- Photoshop CS6平面設計實戰從入門到精通(經典暢銷版)
- 跨境電商:速賣通搜索排名規則解析與SEO技術
- Origin 2022科學繪圖與數據分析(高級應用篇)
- Oracle Web Services Manager