John wishes to create a component that is capable of saving its state as the JSF component tree is being saved and restored. In order to do this, John's component must implement which of the following interfaces:
-
A
com.ibm.xpages.component.XPStateHolder
-
B
javax.faces.component.StateHolder
-
C
javax.faces.component.DataHolder
-
D
javax.xpages.component.StateHolder
Reveal answer details
Close answer details
Pat wishes to create a new XPages UI control which will take user input. At a MINIMUM which of the following does he need to do?
-
A
Create a UI Component extension Java Class that extends UIInputComponent, create an xsp-config file to define the tag, create a Java Classwhich will serve as a renderer, in order to render the tag as HTML markup.
-
B
Create a UI Component extension Java Class that extends UIInput, create an xsp-config file to define the tag, create a Java Class which willserve as a renderer, in order to render the tag as HTML markup.
-
C
Create a custom control with an edit box and reuse the custom control within the XPages
-
D
Create a UI Component extension Java Class that extends UIInputComponent, create an xsp-config file to define the tag, create a Java Classwhich will serve as a renderer, in order to render the tag as HTML markup. Then create a managed bean definition in faces-config.xml.
Reveal answer details
Close answer details
Peter wants to enhance the view controls used in his application so that they can display rich content from the underlying document collection. He wants to do this in an efficient manner as the application has thousands of documents and is accessed by hundreds of concurrent users. Which of the following approaches should John take to add this enhancement to his application most efficiently?
-
A
Modify the Domino view to include the rich text field and add a new column to his view controls that automatically binds to this field.
-
B
Add a computed column to the view control that opens each document, set the column content type to HTML, and bind the rich text contentfrom each document using JavaScript code.
-
C
Add an action to each column that will retrieve the rich text content from the underlying document when clicked, assign it to a computed fieldwith content type set to HTML, and then display that field.
-
D
Nothing - XPages view controls cannot display rich content.
Reveal answer details
Close answer details
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();
Reveal answer details
Close answer details
Lydia wants to create a JSON string to represent an array with three objects. Each object has two variables, vA and vB, set to different string values of "one", "two", "three", "four", "five", and "six". What is the proper syntax for the JSON string?
-
A
[ { vA: 'one', vB: 'two' },{ vA: 'three', vB: 'four' },{ vA: 'five', vB: 'six' } ]
-
B
"[ { vA: 'one', vB: 'two' },{ vA: 'three', vB: 'four' },{ vA: 'five', vB: 'six' } ]"
-
C
"[ { vA: one, vB: two },{ vA: three, vB: four },{ vA: five, vB: six } ]"
-
D
new Array(new Object({ vA: 'one', vB: 'two' }), new Object({ vA: 'one', vB: 'two' }), new Object({ vA: 'one', vB: 'two' }));
Reveal answer details
Close answer details
Per wants to connect to a datasource using JDBC. What is the best way to do this?
-
A
Write a LotusScript or Java agent and call it from Client-Side JavaScript, as he would have done in traditional Domino web applications.
-
B
He must use a third-party tool like DECS or LEI.
-
C
The necessary JDBC drivers will come pre-installed with Domino. He just needs to write SSJS or Java to call the required methods.
-
D
He will need to download and install the relevant JDBC drivers and write SSJS or Java to call the required methods.
Reveal answer details
Close answer details
John has a page with an edit box and a submit button and decides he wants to use a Dojo NumberSpinner dijit. He adds the dojoType dijit.form.NumberSpinner to the edit box. The submit button stops working. What is the reason for the submit button not working?
-
A
John needs to check the check box "Enable Dojo" on the submit button
-
B
John needs to add a dojo module to the XPage.
-
C
John needs to add a server side JavaScript library to the XPage
-
D
John needs to configure themes to include a dojo theme like tundra
Reveal answer details
Close answer details
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
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 have an extension property and then add each Blueprint CSS file via a resource definition
Reveal answer details
Close answer details
John has a managed bean which is defined as follows:  The bean has a property called 'miles' which allows a distance in miles to be entered and converted to kilometers. John wishes to have a user enter a value via an edit box and use the managed bean to convert the value from miles to kilometers. What should the value of the edit box's value attribute be in order to utilize the managed bean?
-
A
<xp:inputText id="inputText1" value="#{view.distanceConverter.miles}"></xp:inputText>
-
B
<xp:inputText id="inputText1" value="#{bean.MyBean.setMiles()}"></xp:inputText>
-
C
<xp:inputText id="inputText1" value="distanceConverter.miles"></xp:inputText>
-
D
<xp:inputText id="inputText1" value="#{distanceConverter.miles}"></xp:inputText>
Reveal answer details
Close answer details
Question 10
Single choice
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;}
Reveal answer details
Close answer details
|