Darren is working with the Outline view on a new XPage. He drags a button control so that it is above an edit box control. What effect does this have on the XPage in the Design editor?
A. There will be no effect until Darren clicks the Synchronize Navigator with Editor tab in the Outline view, then the button control will moveabove and to the left of edit box control.
B. There will be no effect until Darren saves the Xpage, then the button control will move above and to the left of edit box control.
C. There will be no effect until Darren clicks the Synchronize Navigator with Editor tab in the application navigator, then the button control willmove above and to the left of edit box control.
D. The button control will move above and to the left of edit box control.
正解:D
質問 2:
Jessica would like to use the sessionScope object to share the value of the "Name" Edit Box for the duration of the user's XPage session. Which of the following can she use to set her "myName" sessionScope variable with the value of the Edit Box?
A. var name = getComponent("Name").getValue(); sessionScope.put(name, "myName");
B. var name = getComponent("Name").getValue(); sessionScope.set("myName", name);
C. var name = getComponent("Name").getValue(); sessionScope.put("myName", name);
D. var name = getComponent("Name").getValue(); sessionScope.set(name, "myName");
正解:C
質問 3:
Henry is using a requestScope scoped variable (rSa) in an XPage called XPageA to make it available in XPageB. John is testing XPageB, but rSa is still empty. Which of the following is causing this behavior?
A. Henry has not defined the variable yet.
B. rSa is not defined on the server.
C. Henry needs to test XPageB from the action set on XPageA.
D. John mistakenly typed: requestScope.get(rSa) instead of requestScope.get("rSa").
正解:C
質問 4:
Carl is using the NotesRichTextDocLink object to work with a URL that he has in the body of an email. He would like to remove the underlying URL associated with the link, while leaving the formatting of the link alone. What method would Carl use to accomplish this task?
A. RemoveLinkage
B. SetHotSpotTextStyle
C. RemoveURL
D. Remove
正解:A
質問 5:
Daniel has an XPage design element that shows a view. The view has hundreds of entries, ten of which display at one time. What core control can Daniel add to the XPage to allow the user to navigate through the view?
A. Pager control
B. View control
C. Repeat control
D. Navigator control
正解:A
質問 6:
Lena is developing an XPage that is a shopping cart application, to allow the user to browse available corporate publications. The publications that the user selects are stored in a cookie that is named usrPubs. The username is stored in a cookie named shopperName. What code can Lena use in her XPage to retrieve the cookies?
A. var req = facesContext.getExternalContext().getRequest(); var cookies = req.cookie().values();
B. var req = facesContext.getExternalContext().getRequest(); var cookies = req.getHeader("Cookie");
C. var cookies = header.get().cookie();
D. var pubs = cookie.get("usrPubs"); var uName = cookie.get("shopperName");
正解:B
質問 7:
Renee is developing the Product Support Contact XPage. When a product manager enters the name of a support technician, the page is submitted and a lookup is done to try and populate the technician's e-mail address and phone number on the XPage. If there is no e-mail or phone number found, then messages should display to inform the product manager that the E-mail and Phone fields must be entered. On the XPages tab in the Application properties, the Client Validation check box is unchecked. What steps can Renee take to provide the needed validation messages on the XPage?
A. On the XPages tab in the Application properties, click to select Client Validation. Drag a Display Errors control from the core controls paletteonto the XPage.
B. Drag a Server Validation control from the core controls palette onto the XPage and select the names of the fields needing validation.
C. Drag a Display Errors control from the core controls palette onto the XPage.
D. On the XPages tab in the Application properties, click to select Server-side Validation. Drag a Display Errors control from the core controlspalette onto the XPage.
正解:C