The javax.portlet.GenericPortlet abstract class provides default functionality and convenience methods for handling portlet requests. It provides a default implementation for which interfaces from the javax.portlet package?
A. EventPortlet, Portlet, PortletPreferences, PortletSession
B. Portlet, PortletConfig, PortletPreferences, PortletSession
C. EventPortlet, Portlet, PortletConfig, PortletContext
D. EventPortlet, Portlet, PortletConfig, ResourceServingPortlet
正解:D
質問 2:
Roger has been discussing iWidgets with a prospective client and has been highlighting certain aspects of the specification. Which of the following statements is false and thus ill-advised?
A. Overall page management components are provided by the iContext. These include iWidget coordination, page layout and controls, andbackend service interaction.
B. The iDescriptor is a special ManagedItemSet which is always persisted by the iContext.
C. iScope is a mechanism to support encapsulation of an iWidget's assests.
D. Three modes are defined in the iContext Constants (VIEW, EDIT and HELP). An iWidget does not need to support all three modes.
正解:B
質問 3:
The following code defines the selectEmployee() method in a portlet: @processAction(name=select) void selectEmployee(ActionRequest, ActionResponse) throws PortletException, java.io.IOException { } To use the portlet action dispatching, which of the following key-value pairs must be set as a parameter in the HTML form?
A. javax.portlet.action / select
B. processAction / select
C. javax.portlet.action / selectEmployee
D. processAction / selectEmployee
正解:A
質問 4:
Stella is developing a CSS sub-contribution component for her custom module. Which of the followings statements is incorrect regarding CSS sub-contribution types?
A. CSS sub-contributions are only valid under a head contribution type.
B. When debug is enabled, separate link elements are generated for each CSS URL.
C. CSS sub-contributions are valid under both head and config contribution types.
D. The URL referenced in CSS sub-contribution must return valid CSS syntax.
正解:C
質問 5:
Cheng is a registered user of his company's intranet portal. He accesses the portal by a web browser with a valid RememberMe cookie but he has not logged into the portal during the current session. How does the portal treat Cheng?
A. Identified and authenticated
B. Unidentified and authenticated
C. Identified and unauthenticated
D. Unidentified and unauthenticated
正解:C
質問 6:
Which of the following options is not a valid parameter of the login() method of the Portlet Login service (interface com.ibm.portal.portlet.service.login.LoginService)?
A. char[] password - The password of the user.
B. java.net.URL redirectURL - The login redirect URL.
C. java.lang.String userID - The user ID of the user.
D. javax.security.auth.Subject subject - A security subject to be passed to the WebSphere Application Server login modules that can be null if notneeded.
正解:B