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.
MegaCorp is working on integrating one of their applications existing in non-IBM WebSphere Portal environments into WebSphere Portal. Which of the following options should they use for this purpose?
A. WebClipping Portlet International Edition
B. IntegrationPortlet
C. WebClipping Portlet
D. IntegrationPortlet_jsEnabled
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.
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 init(Preferences servicePreferences) { String message = servicePreferences.get("message", "Hello"); }
B. public void sayHello(RenderRequest request, RenderResponse response) { String message = request.getAttribute("message"); }
C. public void init(Preferences servicePreferences) { String message = servicePreferences.getInitParam("message", "Hello"); }
D. public void sayHello(RenderRequest request, RenderResponse response) { String message = request.getParameter("message"); }
What does the collaborative services API allow the portlet developer to do?
A. The API gives the user access to Microsoft Exchange and IBM Lotus Notes inboxes when developing custom portlets.
B. The API allows the user to connect to social services such as Twitter and Facebook for custom portlets.
C. The API provides person tags to custom portlets.
D. The API provides the IBM Connections business cards capability to a custom portlet.
The following code sample uses the PUMA SPI within a standard portlet.
Sunil needs to retrieve attributes on the current user. Which one of the following lines of code, if inserted at line 6, will provide the functions to retrieve attributes from the User object?
A. PumaProfile p = service.getProfile( (javax.portlet.ActionRequest) request);
B. PumaProfile p = service.getProfile( (javax.portlet.PortletRequest) request);
C. PumaController p = service getController( (javax.portlet.ActionRequest) request);
D. PumaController p = service getController( (javax.portlet.PortletRequest) request);
Rafael needs to create a way for non-administrator users to change the look of the Portal 8.0 theme. Which solution will provide the simplest answer?
A. Use multiple custom themes.
B. Create new dynamic content spots to serve multiple CSS files.
C. Use the new module and profile features to define and load different CSS.
D. Create a custom theme style to be deployed in the theme's CSS directory, and modify styles.json to include the style.
Quinn is creating a module that adds a customized Dojo lightbox for a disclaimer to overlay the screen as soon as the page loads using dojo.addOnLoad. She has already created myLightBox.css and intends to write the JavaScript event triggering the lightbox inline. What must Quinn do to ensure she gets the desired functionality at minimal performance cost?
A. Quinn should add all this code right after the theme's
tag to ensure the functionality happens as soon as the body markup is loading.B. Quinn must add the tag pointing to myLightBox.css into the
C. Quinn must create a CSS sub-contribution type in her module pointing to myLightBox.css. The JavaScript can be added anywhere therein aslong as the page uses the default deferred profile and the event is added to the event handler.
D. Quinn should really write all CSS and JavaScript inline for performance reasons so secondary requests to the server are never made.
Usha has developed a JSR 286 compliant portlet. She wants to use it on a WSRP producer so that it can be consumed by a remote IBM WebSphere Portal server. What changes if any should be made?
A. She must set the enable WSRP portlet initialization parameter to true in the portlet.xml file.
B. She should change her portlet class to implement ServiceDescription and Markup interface.
C. She does not have to make any changes.
D. She should change her portlet class to implement ServiceDescription, Markup, Registration and PortletManagement interface.
Ted is developing a module that will provide content to the Markup sub-contribution type. This Markup sub-contribution will contain some inline JavaScript. What will happen if Ted makes this module deferred rather than non-deferred?
A. The script code inside the markup will not be evaluated and run when the deferred module is loaded.
B. The script code inside the markup will be evaluated and run. However, it will throw an exception since its being loaded from a different domain.
C. The script code inside the markup will be evaluated and run without error when the deferred module is loaded.
D. The server-side combiner framework will not allow JavaScript inside of the Markup contribution type.