Eric has added the Dojo Module "dijit.form.FilteringSelect" to his XPage and set the dojoType on his Combo Box to "dijit.form.FilteringSelect". However, when he previews his XPage he is not seeing the FilteringSelect? What has he done wrong?
A. He needs to use an Edit Box control instead of a Combo Box control
B. The correct Dojo module is dojo.FilteringSelect
C. The correct Dojo module is dijit.FilteringSelect
D. He has forgotten to set dojoParseOnLoad="true" and dojoTheme="true"
正解:D
質問 2:
Frank is attempting to add some functionality to an existing XPage: ?The XPage has a Date Time Picker edit box named "graduationDate" where users must enter their graduation date. ?Frank looks at the HTML source of the XPage and sees that the edit box has the HTML attribute: dojoType="ibm.xsp.widget.layout.DateTimeTextBoxContainer" ?Frank has added a combo box where users should choose their type of Job, from the options "Intern", "Graduate" or "Experienced". ?Frank wants to add an onchange listener to the combo box, that checks the value of the graduation date and gives a browser alert popup dialog like "Intern and Graduate positions only available in the first 2 years after graduation". ?Frank has looked at the HTML source of the XPage and sees that the Date Time Picker edit box has a dojoType attribute. Which of the following code snippets should Frank use to retrieve the graduation date before triggering the alert dialog:
A. var graduationDate = dijit.byId("#{id:graduationDate}").getValue();
B. var graduationDate = getComponent("graduationDate").getValue();
C. var graduationDate = XSP.getElementById("#{id:graduationDate}").value;
D. var graduationDate = dojo.byId("#{id:graduationDate}").value;
正解:A
質問 3:
Liz must do a code review of a third party XPages application in order to optimize performance wherever possible. She has come up with a shortlist of things to do. Each of the following can be used to improve performance EXCEPT which one?
A. Using viewScope variables to manage application state wherever possible
B. Setting the dataCache property on Domino view data sources to "full" wherever possible
C. Using partial refresh wherever possible.
D. Replacing post-based requests with get-based requests wherever possible
正解:B
質問 4:
Tim has an XPage containing an Edit Box. He has read that it is possible to use the Dojo Toolkit NumberSpinner control in XPages, and he wishes to modify his XPage so that the Edit Box will appear as a Number Spinner in the browser. What would the steps be to accomplish this?
A. In the XPage, in the Resources tab of the Properties view, add a Dojo Module resource for
"dijit.form.NumberSpinner" to the XPage.
Configure the Edit Box to set the dojoType to "dijit.form.NumberSpinner".
B. Import the NumberSpinner.js file from Dojo into the application as a Dojo Module.
In the XPage, in the Resources tab of the Properties view, add that Dojo Module resource for that
NumberSpinner.js file to the XPage.
Configure the Edit Box to set the dojoType to "dijit.form.NumberSpinner".
C. Import the NumberSpinner.js file from Dojo into the application as a JavaScript Library.
In the XPage, in the Resources tab of the Properties view, add a JavaScript Library resource for
that NumberSpinner.js file to the XPage.
Configure the Edit Box to set the dojoType to "dijit.form.NumberSpinner".
D. From the Dojo Tollkit Website, get the URL to the most recent version of the NumberSpinner.js
control (where the URL begins with http://).
In the XPage, in the Resources tab of the Properties view, add a JavaScript Library using that
URL.
Configure the Edit Box to set the dojoType to "dijit.form.NumberSpinner".
正解:A
質問 5:
Jo wants to make a configurable list of countries available to the client side JavaScript of her XPage for use in various different fields on the web page. What would be the most efficient approach?
A. Use the Output Script control to create a global Client Side JavaScript object to reference when the list is required
B. Perform an AJAX request to get the country list from another XPage when it is required using dojo.xhrGet
C. Add an @DbColumn to a server side script library to look up the country list in each place it is required
D. Add a @Decorum to a client side script library to look up the country list in each place it is required
正解:A
質問 6:
Wayne needs to debug some client side JavaScript code in an XPage to find why a feature is not working as expected. Which of the following actions would be the best option to determine the problem?
A. Wayne can insert print() and _dump() statements directly in the JavaScript code and use the information sent to the console window to help debug the problem
B. Wayne can install FireBug or FireBug lite in the browser, set breakpoints in the JavaScript code and then run and debug the application
C. Wayne can open the Java perspective in Domino Designer, find the Java code for the XPage in the "local\xsp" source folder, set breakpoint(s) in the code using the standard Java tooling and then preview the application
D. Wayne can activate the Source pane for the XPage in Domino Designer, set breakpoint(s) on the JavaScript code by double-clicking in the side-gutter and then preview the application
正解:B
質問 7:
Tamsin is building an XPages application for use on mobile devices. She finds the font and row height on View Panel controls too small and difficult to navigate on a touch screen. Which View Panel property should she add her CSS class to?
A. captionStyleClass
B. dataTableStyleClass
C. viewStyleClass
D. viewPanelStyleClass
正解:B
黒川** -
ほかの方も記載ありましたが、このPass4Testの問題集の模擬試験がとても良いです。A2040-922本番の試験は、この模擬試験を解いてから望むとベストです。