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.
John is developing a portlet that uses the portlet client model API to manipulate a user's profile on the client side. How can he get the object of the PortletWindow that represents the portlet on the client side?
A. new ibm.portal.portlet.PortletWindow("<%=portletWindowID%>")
B. new ibm.portal.portlet.PortletWindow()
C. this.getPortletWindow()
D. this.getPortletWindow("<%=portletWindowID%>")
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 wants to develop a portlet to act as a target using click-to-action. He wants to develop a client-side click-to-action handler. Which best describes the ways that he can get the source data submitted by the source portlet?
A. He can retrieve the source form and the input inside from the page Document Object Model.
B. He can retrieve the source data from the window.ibm.portal.c2a.event.value global variable.
C. Either of the above.
D. None of the above.
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
Steve wants to hide a menu item in the action menu. This menu item may be needed for later use. What is the best way to accomplish this?
A. Declare the menu item as not visible in the server-side feed. Declare the menu item as visible in the client-side code, and then stop and restartthe custom theme application.
B. Declare the menu item as visible in the server-side feed then override in the client-side's visibilityFn.
C. Use the IBM WebSphere Integrated Solutions console to edit the Dynamic Content Spot to update the menu definition and restart the customtheme application.
D. Update the shelfActions.json using the WebDAV located inside the menuDefinitions folder and then register the changes inside the theme.js filelocated inside the js folder.
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.
Peter has a custom portlet skin that he wants to deploy to an IBM WebSphere Portal server. Which one of these steps can best be used to deploy his custom skin?
A. Use the 'uploadNewSkin' ConfigEngine task.
B. Use WebDav to deploy to the skinlist entry point.
C. Use the 'installNewSkin' ConfigEngine task.
D. Place his skin project in the
When writing a custom portlet service, what interface must be implemented to make use of the portlet service life-cycle methods?
A. com.ibm.portal.portlet.service.spi.PortletServiceRegistryService
B. com.ibm.portal.portlet.service.spi.PortletService
C. com.ibm.portal.portlet.service.spi.PortletServiceLifeCycle
D. com.ibm.portal.portlet.service.spi.PortletServiceProvider
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.