Content Management Web Application Programming v6.0 (E20-455)

Page:    1 / 11   
Total 156 questions

How do you customize the layout of an existing component's form?

  • A. copy the component definition and JSP into the custom application layer and modify both
  • B. modify only the component JSP in the webtop application layer
  • C. copy the component definition and JSP into the custom application layer and modify just the JSP
  • D. modify the component JSP and behavior class in the webtop application layer


Answer : A

In a custom precondition definition you have defined the following custom element:
<customElement>myvalue</customElement>
What is the correct way of retrieving the value of the element in your precondition class given the following parameters?
IConfigElement config, ArgumentList args, Context context, Component component

  • A. component.getConfigLookup().lookupElement("customElement",context)
  • B. context.get("customElement")
  • C. config.getChildValue("customElement")
  • D. args.get("customElement")


Answer : C

When is it appropriate to use an actionlist tag?

  • A. when you want several actions available for a specific object type to be listed together
  • B. when you want to display an action that can list a number of user-defined arguments
  • C. when you want several actions that use the same precondition to be listed together
  • D. when you want to restrict the list of actions available for a specific component


Answer : A

What can be done in the onRenderEnd() method of a component?

  • A. change visibility of a control on the JSP
  • B. navigate to a different page
  • C. cleanup of resources
  • D. update and display values of a datagrid


Answer : C

You have an application that has multiple languages. You create a new component that has an informative label in the user interface.
Which NLS method should you use to add a localized message to the label?

  • A. add a single resource file containing the messages in the different languages and use the getString() method to get the label message
  • B. add a JSP with a <dmf:label> tag for each language and ensure that only the label with the correct language is visible
  • C. add resource files with language specific bundle suffixes that each contain the label message in the corresponding languages
  • D. create a JSP for each language. When the component is initialized, determine the correct page and switch to it using the setComponentPage() method


Answer : C

Given the following component configuration file:
<component ...>
...
<pages>
<start>/custom/component/display.jsp</start>
<results>/custom/component/qryresults.jsp</results>
</pages>
...
</component>
Which statement returns the value of the results tag?

  • A. String tagValue = lookupString("results");
  • B. String tagValue = ConfigService.lookupString("results");
  • C. String tagValue = lookupString("pages.results");
  • D. String tagValue = ConfigService.lookupString("pages.results");


Answer : C

If you have multiple languages supported in your WDK application, how do you indicate which locale to use by default?

  • A. change the value of <default_locale> inside the <language> tag of app.xml
  • B. change the value of <default_language> inside the <language> tag of app.xml
  • C. change the value of <default_locale> inside the <language> tag of config.xml
  • D. change the value of <default_language> inside the <language> tag of config.xml


Answer : A

Which tag tells the form processor that the JSP page is a WDK page and turns the page into a form object?

  • A. <dmf:form>
  • B. <dmf:body>
  • C. <dmf:webform>
  • D. <dmf:wdkform>


Answer : C

You add an action to the menu bar in classic view. For this action, you want to create an action precondition to determine if the selected document has a lifecycle attached. To achieve optimal performance, how would you accomplish this?

  • A. use DQL to query the document's r_policy_id attribute in the precondition class
  • B. fetch the document object in the preconditon class using getObject() and check the r_policy_id attribute
  • C. ensure that the r_policy_id is passed part of the action precondition arguments
  • D. add the r_policy_id to the user context before the action precondition is called


Answer : C

Which statement is true about extending the behavior of an existing component?

  • A. onInit() is never inherited.
  • B. New or overridden methods must be included.
  • C. All compiled class files are placed in the config directory.
  • D. The original component class is referenced in the custom configuration definition.


Answer : B

What triggers the automatic addition of WDK-related JavaScript functions to a JSP?

  • A. the rendering logic of the container associated with the component
  • B. the <dmf:webform /> tag on a JSP
  • C. an <%@ include> directive on a JSP
  • D. the onInit() method of the behavior class associated with the component


Answer : B

Which JavaScript method is used to jump to a component from the client side?

  • A. postComponentJump
  • B. postComponentJumpEvent
  • C. doComponentJump
  • D. doComponentJumpEvent


Answer : B

In the return listener, how do you obtain the results from a nested call?

  • A. use the getControl() method to obtain references to the controls on the nested component
  • B. call the get() method of the ArgumentList passed to it
  • C. call the get() method of the Map object passed to the listener method
  • D. call the getFormsResponse() method of the Form argument passed to the listener method


Answer : C

When is the onRender() method of a component called?

  • A. before a JSP is processed
  • B. only when a JSP is first displayed
  • C. after the JSP has been processed
  • D. only when the component is being initialized


Answer : A

How do action definitions differ from component definitions?

  • A. An action definition can have a <precondition> tag.
  • B. Only component definitions contain a <params> element.
  • C. Only component definitions use the configuration service.
  • D. Action and component definitions use different qualifiers.


Answer : A

Page:    1 / 11   
Total 156 questions