Brandon wants to extend Dojo's dijit.Dialog box to add some extra functionality. How would Brandon declare the new Dojo class?
A. dijit.declare("brandons.Dialog", "dijit.Dialog", { // added functionality });
B. dojo.declare("brandons.Dialog", "dijit.Dialog", { // added functionality });
C. dojo.declare("brandons.Dialog", dijit.Dialog, { // added functionality });
D. dijit.declare("brandons.Dialog", dijit.Dialog, { // added functionality });
正解:C
質問 2:
Jo wants to make a configurable list of countries available to the client side JavaScript of her XPage for use in various different fields on the web page. What would be the most efficient approach?
A. Use the Output Script control to create a global Client Side JavaScript object to reference when the list is required
B. Perform an AJAX request to get the country list from another XPage when it is required using dojo.xhrGet
C. Add an @DbColumn to a server side script library to look up the country list in each place it is required
D. Add a @Decorum to a client side script library to look up the country list in each place it is required
正解:A
質問 3:
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 xspconfig file to define the tag, create a Java Class which 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 will serve as a renderer, in order to render the tag as HTML markup.
C. Create a UI Component extension Java Class that extends UIInputComponent, create an xspconfig file to define the tag, create a Java Class which will serve as a renderer, in order to render the tag as HTML markup. Then create a managed bean definition in faces-config.xml.
D. Create a custom control with an edit box and reuse the custom control within the XPages
正解:B
質問 4:
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 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;
}
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 " +
document1.getItemValueString('title'))){
return true;
}else{
return false;
}
C. 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;
}
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 " +
document1.getItemValueString('title'))){
return true;
}else{
return false;
}
正解:C
質問 5:
John has an XPages application whose UI is entirely in English. John's company has expanded to new markets and as a result the application now also needs to support French and German users. Which of the following are the first steps that John should take in order to localize his application?
A. Add English, French and German in the XPage localization options in Application Properties,
perform a 'clean' and 'rebuild' on the application.
Enter the translated strings in the generated properties files.
B. Create a new application for each language, copying the XPage and Custom control design
elements to the new applications, localizing the
XPages and Custom Controls in each application
C. Create a copy of each of the XPages and Custom Controls, suffixed by the language identified
(e.g.
_en, _fr etc..) and localize the contents of
the suffixed design element.
D. Use a tool like Domino Global Workbench to localize the application and make it a multilingual
application
正解:A
質問 6:
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="distanceConverter.miles"></xp:inputText>
C. <xp:inputText id="inputText1" value="#{bean.MyBean.setMiles()}"></xp:inputText>
D. <xp:inputText id="inputText1" value="#{distanceConverter.miles}"></xp:inputText>
正解:D
質問 7:
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. captionStyleClass
B. dataTableStyleClass
C. viewStyleClass
D. viewPanelStyleClass
正解:B
Anzai -
C2040-922の試験に無事合格しました。C2040-922の完全素人なんだけど、これのおかげて二週間練習して本番試験受けて合格した。素晴らしい。