A client wants to write several portlets for their new website. Each portlet must be labeled and record some trace information whenever it is accessed. The portlets must share common information with each other as well. When discussing best practices options with the client, which of the following would not be recommended?
A. Each portlet can be labeled by its own title bar.
B. JSPs should be used to separate output and functionality of the portlets.
C. Portlets communicate via writing to a common file in the root directory.
D. Trace information can be logged to log files.
Chris wants to do performance tuning in his mobile theme. What would be the first step he should take to achieve this task?
A. Apply caching rules to the HTTP server.
B. Use a third-party minification tool to compress the JavaScript files.
C. Change dynacache settings.
D. Configure cache manifest file.
Which of the following statements is true when using a resource URL in AJAX?
A. Changing state of the portlet is not allowed during the serveResource() method.
B. The portlet mode and window state can be changed during the serveResource() method.
C. New render parameters can be set during the serveResource() method.
D. Portlet preferences can be set during the serveResource() method.
Which is not a valid CSS style defined in the JSR 286 Portlet Specification?
A. portlet-a
B. portlet-font
C. portlet-msg-info
D. portlet-section-text
Bill is developing a portlet that uses AJAX to retrieve information from the server. In the serveResource() method first he is setting "AdminName" request attribute and then forwarding control to a JSP for generating markup. Using best practices, how should he print the "AdminName" attribute inside the JSP?
A. <%=resourceRequest.getAttribute("AdminName")%>
B. <%=renderRequest.getAttribute("AdminName")%>
C. ${requestScope.AdminName}
D. ${portalRequest.AdminName}
Evan needs to share action URL parameters used in a portlet with another portlet. In the binding section of the WSDL files used for specifying a portlet's participation with the property broker, an action URL parameter can be bound to several scopes. Which one of the following options best describes the scopes that Evan can use to share the action URL parameters using the property broker?
A. Page attribute, Request attribute, Request parameter, Session attribute
B. Request attribute, Request parameter, or Session attribute
C. Request parameter or Session attribute
D. Session attribute only
On an ongoing basis, Ken wants to track status messages from an application that he is writing. Which one of the following options should he use as a best practice to make the status messages available?
A. He should write messages to to SystemOut.log since it is the easiest to implement.
B. He should write them to SystemError.log since they are status messages and could be considered errors.
C. He should use the standard Java logger at an "info" level since "info" is the default trace level for IBM WebSphere Portal server.
D. He should use the standard Java logger at an "error" level since they are status messages and could be considered errors.
Emery is trying to make it so users from a specific geographic location do not have access to a specific metrics application hosted on their IBM WebSphere Portal server. Which of the following options is provided within WebSphere Portal that Emery can use to this purpose?
A. Emery can use the
B. Emery can use Personalization Rules to hide the portlet, leveraging information in the user repository regarding the user's geographiclocation.
C. Emery's users must register as being from a specific geography and Emery can develop workflow methods leveraging thePortalUserIdentityBean (or PUIB) object to ensure the portlet does not generate markup for the user in this geography.
D. None of the above. Emery is going to need to create a page and assign metadata parameters to hide the specific portlet from users fromgeographies that are not allowed to see it.
The portlet.xml file for SamplePortlet looks like this:
Assuming that no modifications have been made to the properties bundle, what would be written into SystemOut.log?
A. java.util.MissingResourceException: Can't find resource for bundle
B. java.lang.NullPointerException
C. Null
D. CertTargetPortlet
Dale is asked to create a new theme for IBM WebSphere Portal based on the Portal 8 Modular theme. This new theme will be the only theme applied to pages within the environment. What is the best way for him to proceed with this task?
A. Make a copy of the Modular theme to create a new, separate theme.
B. Edit the Modular theme directly.
C. Make a copy of the Modular theme to create a new, separate theme. Then remove all the other themes from the environment as they won't beused.
D. Edit the Modular theme directly and remove all the other themes from the environment.