Developing IBM Lotus Domino 8.5.2 Applications: Advanced XPage Design v6.0 (C2040-922)

Page:    1 / 5   
Total 70 questions

Dominic wants to implement the open source CSS framework called Blueprint in his
XPages application. He does not want to include anyother 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. In each XPage in the application add the required CSS files to the Resources section
  • B. Create a new theme which extends webstandard and then add each Blueprint CSS file via a resource definition
  • C. Create a new theme which extends oneui and then add each Blueprint CSS file via a resource definition
  • D. Create a new theme which does not havean extension property and then add each Blueprint CSS file via a resource definition


Answer : D

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 userinterfaces. 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. Create a common Client-SideJavaScript Library for the XPages to share that the user interface can use to execute the business logic
  • B. Use a series of Custom Controls to hold the business logic and share them amongst the XPages
  • C. Create a common Server-Side JavaScript Library for the XPages to share that the user interface can use to execute the business logic
  • D. The user interface and the business logic in an XPage can not easily be separated and must be maintained in each XPage


Answer : C

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. dataTableStyleClass
  • B. viewStyleClass
  • C. viewPanelStyleClass
  • D. captionStyleClass


Answer : A

Tim has an XPage containing anEdit 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. Fromthe 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 Boxto set the dojoType to "dijit.form.NumberSpinner".
  • B. 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".
  • C. 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".
  • D. 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".


Answer : D

Francis wants to add a ClientSide JavaScript library called "loading.js" to his XPages. What is the best method to achieve this?

  • A. He must add the script library as a resource to each XPage.
  • B. He should add itto a Custom Control, which he should then add to every XPage.
  • C. He should add the following code to a theme: <resource> <content-type>application/x-javascript</content-type> <href>loading.js</href> </resource>
  • D. He should add the following code to a theme: <resource> <content-type>text/javascript</content-type> <href>loading.js</href> </resource>


Answer : C

Janewould like to specify a custom toolbar for the CK Editor in her Domino 8.5.2 application. How can she achieve this?

  • A. Jane will need to edit the files in the domino\html\ckeditor subfolders of the data folder on her server.
  • B. Jane can use the toolBar property of the Rich Text Field and set it accordingly.
  • C. Jane can add a Dojo Attribute called "toolBar" and set it accordingly.
  • D. There is no way to change the default toolbar of the CK Editor.


Answer : C

Liz wants to make the user confirm their action when they try and delete a document from the application using a delete button. The confirmation message needs to display the title of the document in it. What is the best way to compute this message?

  • A. In the client side event of the delete button use the following code: if (confirm("Are you sure you want to delete the document " + document1.getItemValueString('title'))){ return true; }else{ return false; }
  • B. In the client side event of the delete button use the following code: if (confirm("Are you sure you want to delete the document " + "#{javascript:document1.getItemValueString('title')}")){ return true; }else{ return false; }
  • C. In the server side event of the delete button use the following code: if (confirm("Are you sure you want to delete the document " + document1.getItemValueString('title'))){ return true; }else{ return false; }
  • D. In the server side event of the delete button use the following code: if (confirm("Are you sure you want to delete the document " + "#{javascript:document1.getItemValueString('title')}"){ return true; }else{ return false; }


Answer : B

David has an XPage designed to view a document. He is adding a Delete button, but he wants to add some client-side browser JavaScript to make a confirm dialog appear containing the document Subjectfield. How would he retrieve the Subject field value?

  • A. var subject = "#{javascript: dominoDoc.getItemValueString('Subject')}"; confirm("Subject: "+subject+"\nAre you sure you want to delete this document?");
  • B. var subject = dominoDoc.getItemValueString('Subject'); confirm("Subject: "+subject+"\nAre you sure you want to delete this document?");
  • C. var subject = "#{id:dominoDoc.getItemValueString('Subject')}"; confirm("Subject: "+subject+"\nAre you sure you want to delete this document?");
  • D. var subject= XSP.xhr("#{id:Subject}"); confirm("Subject: "+subject+"\nAre you sure you want to delete this document?");


Answer : A

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 partial refresh wherever possible.
  • B. Replacing post-based requests with get-based requests wherever possible
  • C. Setting the dataCache property on Domino view data sources to "full" wherever possible
  • D. Using viewScope variables to manage application state wherever possible


Answer : C

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


Answer : B

Titus has created a JSON string that he will pass to the browser. What method could he use to convert the string to an object?

  • A. dijit,fromJson()
  • B. dojo.fromJson()
  • C. dojo.toJson()
  • D. dijit.toJson()


Answer : B

Marion wants to use the Dojo mobile controls in an application she is building for deployment on a Domino 8.5.2 server. Which of the following statementsbest describes the steps she must take?

  • A. Marion just has to use the relevant Dojo modules that are installed by default on the server.
  • B. Marion must use modules from at least Dojo 1.5.0.
  • C. Marion must use modules from at least Dojo 1.6.0.
  • D. Dojo doesnot have any mobile controls.


Answer : B

Fredwants to remove any reference to pre-defined CSS frameworks such as OneUI from his XPages application. How does he achieve this?

  • A. It is not possible to remove all CSS files from an XPages application
  • B. Create a new Theme which extends the "webstandard"framework like this: <theme extends="webstandard"> </theme>
  • C. Create a new Theme which extends the "none" framework like this: <theme extends="none"> </theme>
  • D. Create a new Theme which removed the extends property from the theme definition like this: <theme> </theme>


Answer : D

Rachel needs to enable her XPages application for multi-language use. Where should she go to enable localization?

  • A. It is not possible to enable localization at application-level in XPages.
  • B. InLotus Notes, open up the Application Properties and on the Advanced tab click 'Enable localization'
  • C. In Domino Designer, open up the Application Properties and on the Advanced tab click 'Enable localization'
  • D. In Domino Designer, open up the ApplicationProperties and on the XPages tab click 'Enable localization'


Answer : D

Joe wishes to retrieve the HttpServletRequest while his XPage is loading. Which of the following is true regarding this activity?

  • A. Joe needs to add the following server side JS code to the afterPageLoad event: var request = facesContext.getRequest();
  • B. It is not possible to obtain this information as an XPage is loading
  • C. Joe needs to add the following server side JS code to the beforePageLoad event: var externalContext = facesContext.getExternalContext(); var request = externalContext.getRequest();
  • D. Joe needs to add the following client side JS code to the beforePageLoad event: var clientContext = facesContext.getClientContext(); var request = clientContext.getRequest();


Answer : C

Page:    1 / 5   
Total 70 questions