img
Figure 18-15. The list contact view
Implementing the Show Contact View
Let's implement the show contact view, which will be displayed when the user selects a row and clicks
the View Selected button.
Take a look at the code snippet in Listing 18-11, which was extracted from the start state in the flow
definition in Listing 18-5 (flow.xml).
Listing 18-11. Navigate from List Contact to Show Contact View
<view-state id="start" view="list.xhtml">
<on-entry>
<evaluate expression="contactController.newContactListBean()"
result="viewScope.contactListBean"/>
</on-entry>
<transition on="view" to="show">
<set name="requestScope.contactId" value="contactListBean.selectedContact.id"/>
</transition>
<transition on="add" to="add-step-1">
Search WWH :
Custom Search
Previous Page
Spring Framework 3 Topic Index
Next Page
Spring Framework 3 Bookmarks
Home