Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 10. Personalizing portlets > Validating preferences

10.6. Validating preferences

Earlier in this chapter, you saw how to retrieve preferences selected by the user from the request and set these preferences in the PortletPreferences object. The next logical step is to validate these preferences before saving them in the portal database (by calling the store method).

For instance, in the Book Catalog portlet, you need to confirm that the preferred ISBN entered by the user exists in the catalog before saving it. There are several benefits of validating the ISBN:


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint