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:
Which is not a valid CSS style defined in the JSR 286 Portlet Specification?
A. portlet-font
B. portlet-msg-info
C. portlet-section-text
D. portlet-a
正解:D
質問 3:
Carl is trying to create a theme based on a modularized IBM WebSphere Portal theme. He is ready for deployment, but is unsure of the structure he needs to use to accomplish this. What would be the proper deployment structure for this theme?
A. Create a folder for the theme in the file store, and create a WAR file containing an exact copy of this theme. All associations between static anddynamic content will be made once both are associated by sharing similar context roots.
B. Create an ZIP file that contains one WAR file containing the dynamic content of the theme and one JAR file containing a .content filereferencing the static content.
C. Create a WAR file that contains an ZIP file containing an EAR file that includes both static and dynamic content.
D. Create a custom version of the dynamic content from the modularized theme as a new EAR file and a custom version of the static content bycreating a folder in the file store for it.
正解:D
質問 4:
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 should really write all CSS and JavaScript inline for performance reasons so secondary requests to the server are never made.
C. Quinn must add the tag pointing to myLightBox.css into the
D. 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
質問 5:
Mr. Mosby is developing several different custom themes for the different brands his company offers. He's developed a custom theme WAR that provides the JSPs to be shared among the different themes. He has a JSP named brandNav.jsp and created a brandNav dynamic content spot that points to this JSP. However, for one particular theme he needs to use a different brandNav.jsp. Which one of the following is not a valid option?
A. Include the new JSP directly in the theme_xx.html and bypass the dynamic content spot
mapping:
<@include file="res:/CustomThemeContext/themes/html/MyTheme/custombrandNav.jsp" %>
B. Create a new Dynamic Content Spot pointing to the customBrandNav.jsp. Then modify the
theme_xx.html to use this new dynamic content spot.
C. Create an override in the themes metadata:key=com.ibm.portal.theme.brandNav
value="res:/CustomThemeContext/themes/html/MyTheme/custombrandNav.jsp"
D. Modify the theme_xx.html so that the html directly points to the new JSP:
href="res:/CustomThemeContext/themes/html/MyTheme/customBrandNav.jsp">
正解:A
質問 6:
Sanjeev wants to add a Help mode to his iWidget. At a minimum, what changes will he need to make to his iWidget definition XML so that IBM WebSphere Portal will enable a Help option for it?
A. Add 'help' to the supportedModes attribute of the iw:widget element. Add an iw:content element with a mode attribute of 'help' in the iw:widgetelement.
B. Add 'help' to the supportedModes attribute of the iw:widget element. Add an iw:content element with a mode attribute of 'help' in the iw:widgetelement. Add an 'onhelp' Javascript method.
C. Add an iw:content element with a mode attribute of 'help' in the iw:widget element.
D. No change needs to be made. All iWidgets in WebSphere Portal already have a Help mode.
正解:A
質問 7:
Frances is debugging an iWidget that should show a loader bar until markup is generated and shown, leveraging only lifecycle functions. Right now, she can only see the loader bar, but nothing else happens in the iWidget. She has verified that all dependencies have loaded properly and that the elements have rendered. What should she verify next?
A. Verify that the view is a supported mode for the iWidget.
B. Verify that the readyMarkup method is properly implemented.
C. Verify that the onUnload method is properly modifying the page content after loading completes.
D. Verify the onLoad method kicked off background functions needed to render the markup.
正解:D



0 お客様のコメント