Want to pass your IBM WebSphere Portal 8.0 Solution Development C2040-911 exam in the very first attempt? Try Pass2lead! It is equally effective for both starters and IT professionals.
VCE
When creating and registering a custom portlet service, it is possible to set initialization parameters. What code would Adrienne use to access a parameter with the name sample.portletservice.HelloServiceImpl2.message?
A. public void init(Preferences servicePreferences) { String message = servicePreferences.get("message", "Hello"); }
B. public void sayHello(RenderRequest request, RenderResponse response) { String message = request.getAttribute("message"); }
C. public void init(Preferences servicePreferences) { String message = servicePreferences.getInitParam("message", "Hello"); }
D. public void sayHello(RenderRequest request, RenderResponse response) { String message = request.getParameter("message"); }
Which of the following statements regarding the Controller model is false?
A. A developer must commit the controller to persist the modifications.
B. A developer can only modify one resource per controller before committing the modifications.
C. The Controller model enhances the read-only portal model SPI by adding writable aspects.
D. The Content Model Controller allows a developer to modify the content topology and the properties of content nodes, such as pages, labels,and content URLs.
Which option best describes how JSR 286-compliant portlets and widgets interact with each other?
A. Portlets and widgets cannot interact with each other.
B. Widgets and portlets can interact by using shared render parameters and events.
C. Widgets and portlets can interact by using shared render parameters.
D. Widgets and portlets can interact by using events.