Displaying Guestbook Status

Displaying Approved Workflow Items
Step 1 of 2

The Guestbook Admin application’s main view currently has a search container with two columns: the guestbook name and the guestbook actions button.

Figure 1: The Guestbook Admins main view currently shows the name of the guestbook and its actions button.

Figure 1: The Guestbook Admin's main view currently shows the name of the guestbook and its actions button.

  1. Add a third column between the two existing ones: call it Status. Open

    guestbook-web/src/main/reosurces/META-INF/resources/guestbookadminportlet/view.jsp
    
  2. Find the existing search-container-column definitions:

    <liferay-ui:search-container-column-text property="name" />
    
    <liferay-ui:search-container-column-jsp align="right"
        path="/guestbookadminportlet/guestbook_actions.jsp" />
    
  3. Put the following new column between the existing columns:

    <liferay-ui:search-container-column-status property="status" />
    

Save the file and wait for the web module to redeploy. With the addition of one line in the JSP, the Guestbook Admin application now displays the guestbook’s workflow status.

Figure 2: The Guestbook Admins main view, displaying the status of each guestbook.

Figure 2: The Guestbook Admin's main view, displaying the status of each guestbook.

Now move on to the Guestbook application’s view layer.

« Displaying Approved Workflow ItemsDisplaying Approved Entries »
这篇文章有帮助吗?
0 人中有 0 人觉得有帮助