Pass the Liferay Liferay Certified Professional Developer LRP-614 Questions and answers with CertsForce

Viewing page 3 out of 5 pages
Viewing questions 21-30 out of questions
Questions # 21:

Beta-portlet.war requires services that are in alpha-portlet.war. To guarantee beta-portlet.war deploys after alpha-portlet.war:

Options:

A.

Add the following to portletxml in beta-portlet.war:

< init-pa ram>

required-deployment-contexts

alpha-portlet


B.

Add the following to liferay-plugin-package.properties in beta-portlet.war:required-deploy ment-contexts=alpha-portlet


C.

Add the following to liferay-portlet.xml in beta-portlet.war:

alpha-portlet


D.

It is not possible to declare this type of dependency


Expert Solution
Questions # 22:

Instanceable portlets: (Please select all correct answers.)

Options:

A.

Have unique preferences perportlet


B.

Can be added to a page multiple times


C.

Share the same data within the same site


D.

Can be displayed in the Control Panel


E.

Share the same data on the same page


Expert Solution
Questions # 23:

To allow more than one instance of a portlet on the same page setinstanceabletotrue" in:

Options:

A.

liferay-portlet.xml


B.

liferay-display.xml


C.

liferay-plugin-package.xml


D.

liferay-layout-template.xml


E.

portlet.xml


F.

web.xml


Expert Solution
Questions # 24:

If multiple Ext plugins modify struts-config-ext.xml:

Options:

A.

Liferay merges all of the plugins into one plugin and deploys the combined plugin


B.

Liferay only deploys the first plugin that modifies struts-config-ext.xml and does not deploy subsequent plugins


C.

The last plugin deployed takes precedence


D.

All of the plugins deploy successfully


Expert Solution
Questions # 25:

To customize the default success message displayed by MVCPortlet:

Options:

A.

Add a custom key to the SessionMessages object


B.

Override the language key default-success-message in Language.properties


C.

Provide a entry in liferay-portlet.xml


D.

Pass a parameter called 'success'' in the ActionURL and map it to a custom language key


Expert Solution
Questions # 26:

Liferay's core local services: (Please select all correct answers.).

Options:

A.

Contain the business logic of the service


B.

Enforce permission checking


C.

Are required if using remote services


D.

Communicate to the database through the persistence layer


Expert Solution
Questions # 27:

A class that extends MVCPortlet must implement:

Options:

A.

init()


B.

doView()


C.

doEdit()


D.

processAction()


E.

All of the above


F.

None of the above


Expert Solution
Questions # 28:

The location of the XML file that determines permissions for a portlet plugin is configured by:

Options:

A.

The VM argument "resource-actions-configs"


B.

The portlet property "resource.actions.configs"


C.

The init parameter "resource-actions-configs"


D.

A portal property "plugin.resource.actions.configs"


Expert Solution
Questions # 29:

The method to set the value of a custom field for a BlogsEntry object ("blog") is:

Options:

A.

PortalUtil.setExpando(blog)


B.

blog.getExpandoBridge().setAttribute()


C.

ExpandoLocalServiceUtil.setAttribute(blog)


D.

blog.setExpandoQ


Expert Solution
Questions # 30:

The method to retrieve a list of users that have been added directly to a site is:

Options:

A.

SiteLocalServiceUtil.getSiteUsers()


B.

UserLocalServiceUtil.getSiteUsers()


C.

UserLocalServiceUtil.getGroupUsers()


D.

SiteLocalServiceUtil. getGroupUsers ()


Expert Solution
Viewing page 3 out of 5 pages
Viewing questions 21-30 out of questions