Hints and Tips for Creating Custom Portlets |
This chapter provides tips and best practices for developing portlets, including the following:
avoiding namespace problems
bundling multiple portlets into a single PAR file
testing portlets
obtaining a user or session context
obtaining the user's name
obtaining the user's locale
Note: The code samples in this chapter require that you include the appropriate import statements at the top of your program. Here are some examples:
import com.sas.preferences.SASProfileInterface; import com.sas.services.information.metadata.PersonInterface; import com.sas.services.session.SessionContextInterface; import com.sas.services.user.UserContextInterface; import com.sas.services.user.UserServiceInterface;
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.