John has a managed bean which is defined as follows:
Answer : D
John needs to access data which is in a relational database from his XPages application.
What is the best option for accessing the data?
Answer : B
Rick creates a Server-Side JavaScript library, and defines afew global variables at the beginning of the library. The JavaScript in his XPage and in the JavaScript library modify those global variables. The server the application runs on is heavily used, and the application settings are set to Keep Pages on Disk for best scalability. When the application executes, what is likely to happen?
A. The application will perform as expected.
B. The application will generate an error because you can not declare global Server-Side
JavaScript variables -
C. The application will run, but the values of the globally defined variables may be lost when the server's JVM garbage collects variables, causing unexpected results.
D. The application will run, but every partial or full refresh will reset the values of the global variables when it reloads the Server-Side JavaScript library.
Answer : C Topic 2, Volume B
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:
Answer : B
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?
Answer : C
Eric is writing an XPages in the Notes Client (XPinC) application and has a data type problem in a Server Side JavaScript function. How can he find out more information about the objects in his code?
Answer : B
Elizabeth needs to parse the contents of a web page held on a remote server into an applicationScope variable via the server side onclick event of a button using Server Side
JavaScript. How would she do this?
Answer : D
John wishes to add a Java Class to his XPages application. How would he do this?
Answer : C
Marco hasbuilt an XPage that has increased in complexity over time and now contains several hundred lines of XSP markup, with many postback actions that conditionalize the display of the page. He feels that the page does not perform well and is looking to improve the responsiveness for the end-user. He is considering the following actions to improve performance. All of the following actions may improve performance EXCEPT which one:
Answer : A
Per wants to connect to a datasource using JDBC. What is the best way todo this?
Answer : D
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 bestoption to determine the problem?
Answer : B
Michelle is editing an existing XPage: ?The page has a "tags" Edit Box with Type Ahead enabled, which provides suggestions for possible tags or keywords to add to the document.
?The HTML source of the Edit Box includes a dojoType attribute. ?After the edit box there is a panel named "tagsHint" explaining the concept of tags. ?Now Michelle wants to hide the "tagsHint" panel when values are already present in the "tags" field. ?She adds an
Output Script control containing the following code: var tags = dijit.byId("#{id:tags}"); if( tags.value.length > 0 ){ // already set some tag var tagsHint =
XSP.getElementById("#{id:tagsHint}"); tagsHint.style.display = "none"; } ?When she opens the page in a web browser, the JavaScript Error Console reports the error: tags is undefined at the line: if( tags.value.length > 0 ){ // already set some tag What is the problem with the sample code?
Answer : B
Jeremy wants all of the dijit.Dialog boxes in his application to call a client side JavaScript function called "validateForm" whenever they are hidden. What is the best solution?
Answer : D,E,F,G
Rick creates a Server-Side JavaScript library, and defines a few global variables at the beginning of the library. The JavaScript in his XPage and in the JavaScript library modify those global variables. The server the application runs on is heavily used, and the application settings are set to Keep Pages on Disk for best scalability. When the application executes, what is likely to happen?
Answer : C
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?
Answer : B
Have any questions or issues ? Please dont hesitate to contact us