John wishes to add a managed bean to his application. In order to do this he must do which of the following:
A. Open the pre-existing xpages-config.xml file located at WebContent\WEB-INF\xpagesconfig.xml and add the appropriate markup to the file.
B. Create a file called xpages-config.xml within his application and define the managed bean within the file using the appropriate syntax.
C. Open the pre-existing faces-config.xml file located at WebContent\WEB-INF\faces-config.xml
and add the appropriate markup to the file.
D. Create a JavaBean class and add the Java class as a page resource to the XPage where the managed bean is to be used.
正解:C
質問 2:
Dominic wants to implement the open source CSS framework called Blueprint in his XPages application. He does not want to include any other CSS framework resources which may exist on the Domino server. What is the best way to include all of the required CSS files in the XPages in his application?
A. Create a new theme which extends oneui and then add each Blueprint CSS file via a resource definition
B. Create a new theme which does not have an extension property and then add each Blueprint CSS file via a resource definition
C. Create a new theme which extends webstandard and then add each Blueprint CSS file via a resource definition
D. In each XPage in the application add the required CSS files to the Resources section
正解:B
質問 3:
John needs to access data which is in a relational database from his XPages application. What is the best option for accessing the data?
A. As long as there is a JDBC driver available for the database then John can write Java to access the database
B. As long as there is a JDBC driver available for the database then John can write Java or Server Side Javascript to access the database.
C. The relational data source would need to have a web service added to it to allow access to the data.
D. It is not possible to access relational data from an XPage
正解:B
質問 4:
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
質問 5:
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
質問 6:
Aaron has created an XPages application that has a couple of XPages to surface the same data to two different application roles in two completely different user interfaces. Each role can manipulate parts of the data, but in both cases, the data must adhere to the same business logic and rules. What would be the best way for Aaron to implement the same business logic in each XPage?
A. Use a series of Custom Controls to hold the business logic and share them amongst the XPages
B. The user interface and the business logic in an XPage can not easily be separated and must be maintained in each XPage
C. Create a common Client-Side JavaScript Library for the XPages to share that the user interface can use to execute the business logic
D. Create a common Server-Side JavaScript Library for the XPages to share that the user interface can use to execute the business logic
正解:D
質問 7:
John needs to access data which is in a relational database from his XPages application. What is the best option for accessing the data?
A. As long as there is a JDBC driver available for the database then John can write Java to access the database
B. As long as there is a JDBC driver available for the database then John can write Java or Server Side Javascript to access the database.
C. The relational data source would need to have a web service added to it to allow access to the data.
D. It is not possible to access relational data from an XPage
正解:B