Corrie needs to create several iWidgets that will interact with each other. She is evaluating the mechanisms that she can use to share state information between the iWidgets. Which one of the following options is the best way to accomplish this?
A. Implement public render parameters.
B. Use the JSR 286 defined event and payload mechanism.
C. Store state information in the user's session.
D. Declare the state sharable in the ItemSet definition and register listeners in the individual iWidgets to be informed when shared state changes.
正解:D
質問 2:
When creating and registering a custom portlet service, it is possible to set initialization parameters. What code would Adrienne use to access a parameter with the name sample.portletservice.HelloServiceImpl2.message?
A. public void sayHello(RenderRequest request, RenderResponse response)
{
String message = request.getAttribute("message");
}
B. public void sayHello(RenderRequest request, RenderResponse response)
{
String message = request.getParameter("message");
}
C. public void init(Preferences servicePreferences) {
String message = servicePreferences.get("message",
"Hello");
}
D. public void init(Preferences servicePreferences) {
String message = servicePreferences.getInitParam("message",
"Hello");
}
正解:C
質問 3:
Which of the following is a false statement about limitations for a WSRP producer portlet?
A. WSRP producer portlets cannot use IBM WebSphere Portal internals in portlets such as engine objects or engine tags.
B. WSRP producer portlets cannot access portlet render parameters.
C. WSRP producer portlets do not support edit_defaults_compatibility portlet mode.
D. WSRP producer portlets cannot use PUMA SPI for accessing user information.
正解:B
質問 4:
Which of the following options is valid about downloadable portlets from the IBM Collaboration Solutions Catalog?
A. Portlets available for download are free, trial-based, or fee-based.
B. Only portlets developed by IBM are hosted by the Collaboration Solutions Catalog website.
C. Portlets available for download should not be used in the production environment.
D. Portlets available for download follow open standards.
正解:A
質問 5:
A software delivery executive, by the name of Fry, is developing a custom theme called Popplers. He has deployed the theme with six custom layouts (Lla, Zdb, Bdr, Amy, Pff and Hms) at dav:fstype1/themes/Popplers/layout-templates.
Over the past few days, he has been trying to scope three of these layouts (Lla, Zdb and Bdr) however, none of them are visible in the WebSphere Portal 8.0 Layout tab.
He has performed the following steps:
Refreshed browser's cache 4) Reloaded the page What is the problem with Popplers based on the information provided?
A. The last two steps are in the wrong order - perform step 4 first and then step 3 to solve the problem.
B. Step 2 is incorrect because layouts must be listed alphabetically - listing them as Bdr, Lla and then Zdb will correct the issue.
C. One cannot partially scope custom layouts in a theme. Just like the default Portal 8.0 theme, you must scope all defined custom layouts.
D. Step 1 is incorrect. Changing the URL value to ibmCfg.themeConfig.themeRootURI+"/system/layouts.json" will resolve the issue.
正解:D
質問 6:
Chris wants to do performance tuning in his mobile theme. What would be the first step he should take to achieve this task?
A. Change dynacache settings.
B. Use a third-party minification tool to compress the JavaScript files.
C. Configure cache manifest file.
D. Apply caching rules to the HTTP server.
正解:C