IBM Developing IBM Lotus Domino 8.5.2 Applications: Advanced XPage Design - C2040-922 FREE EXAM DUMPS QUESTIONS & ANSWERS
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?
Correct Answer: C
Vote an answer
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?
Correct Answer: B
Vote an answer
John has a managed bean which is defined as follows: <faces-config> <managed-bean> <managed-bean-name>distanceConverter</managed-bean-name> <managed-beanclass>bean.MyBean</managed-bean-class> <managed-bean-scope>view</managed-beanscope> </managed-bean> </faces-config> 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?
Correct Answer: D
Vote an answer
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?
Correct Answer: B,D,E,F
Vote an answer
Marco has built 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:
Correct Answer: C
Vote an answer
Elaine wants to use the "webkit" stylesheet for webkit browsers. Which object will enable her to do this?
Correct Answer: A
Vote an answer
John wishes to add a managed bean to his application. In order to do this he must do which of the following:
Correct Answer: C
Vote an answer