- Liferay Portal only supports the use of AlloyUI JavaScript in portlet plugins.
True
False
Answer: False
- The following attributes are defined in liferay-portlet.xml:
(Please select all correct answers.)
A. If the portlet is instanceable
B. If the portlet appears in the Control Panel
C. If the portlet appears in the Content Management
category in the Add Application menu
D. If the portlet supports the Edit mode
Answer: A and B
- The standard methods of the portlet lifecycle in the JSR-286 portlet specification include:
(Please select all correct answers.)
A. init
B. service
C. render
D. destroy
E. notify
Answer: A, C, D
- The recommended use for a hook plugin is to:
A. Add a new portlet to the portal
B. Add a new theme to the portal
C. Add a new language key to the portal
D. Add a new layout template to the portal
Answer: C
- The recommended location to define custom velocity variables in a theme plugin is in:
A. init.vm
B. init_ext.vm
C. portal_normal.vm
D. init_custom.vm
Answer: D
2
NO.1 An administrator would like to add a new travel
preferences section in the Miscellaneous
section of the user form.
The travel preferences are stored as custom fields.
The recommended way to implement the solution using a hook
plugin is to:(Please select all correct
answers.)
A. Modify html/portlet/users_admin/edit_user.jsp to add
the travel preferences section to
theMiscellaneous section
B. Set the portal property "users.form. my.account,
miscellaneous"to "travel-preferences" and add
the corresponding JSP
C. Create a Struts action hook to persist the Expando
value to the database
D. Add the custom fields to the relevant JSP using
<liferay-ui;custom-attribute>
Answer: B,D
NO.2 Service Builder does not generate:
A. SQL statements to create tables
B. Hibernate and Spring configuration files
C. Axis web services
D. The view layer
Answer: D
NO.3 The recommended way to add new functionality in
Liferay is to:
A. Create Ext plugins
B. Createportlet, theme, layout template or hook plugins
C. Modify Liferay's source code directly
D. All of the above
Answer: B
NO.4 When adding new users to Liferay, the form will
display the Details, Organizations and
Personal Site sections based on the following property in
portal.properties:
users.form.add.main =detaiIs,organizations,personal-site
The "users.form.add.main" property is
listed in the liferay-hook_6_l_0.dtd as a portal property
that can be overridden with a hook.
Deploying a hook with the following property in the
portal.properties file will remove the Personal
Site section: users.form.add.main =details,organizations
A. True
B. False
Answer: B
NO.5 Public render parameters are of the type:
A. List
B. RenderParameter
C. String
D. Object
E. RenderRequest
Answer: C
IT Certification
Guaranteed, The Easy Way!
3 / 4
NO.6 The recommended way to add support for a new locale
is to:
A. Create an Ext plugin that adds a language properties
file for the desired locale
B. Create an Ext plugin that adds a language properties
file for the desired locale and implements a
servlet filter mapping using IlSnFilter
C. Create a hook plugin that adds a language properties
file for the desired locale and implements a
servlet filter hook to invoke IlSnFilter through
PortalClassLoaderFilter
D. Create a portlet plugin that overrides the core
language filter to recognize the desired locale
Answer: C
NO.7 A hook plugin can extend and override:(Please select
all correct answers.)
A. Core portal Struts actions
B. CoreportletStruts actions
C. Portletplugin Struts actions
D. Layout template Struts actions
Answer: A,B
NO.8 The descriptor liferay-portlet.xml:
A. Defines Liferay-specific portlet features
B. Defines the categories of the Add Application menu
C. Identifies portlets that only run onLiferay
D. All of the above
Answer: A
NO.9 The best way to add a new language key to the portal
is through:
A. The Control Panel
B. A hook plugin
C. An Ext plugin
D. Modifying Liferay's source
Answer: B
NO.10 Liferay's core JavaScript framework is:
A. jQuery
B. Dojo
C. MooTools
D. AlloyUI
E. YUI
Answer: D
NO.11 To display a success message in a JSP use:
A. <liferay-ui:success
message="part-deleted-successfully" />
B. <liferay-ui:success key=
"part-deleted-successfully" />
C. <alloy-ui:success key="part-deleted''
message="part-deleted-successfully" />
D. <liferay-ui:success key= "part-deleted"
message="part-deleted-successfully" />
IT Certification
Guaranteed, The Easy Way!
4 / 4
Answer: D
NO.12 In portal.properties:
login,events.post=\
com.liferay.portal.events.ChannelLoginPostActionA,\
com.liferay.portal.events.Defaultl_andingPageAction,\
com.liferay.portal.events.LoginPostAction
A hook plugin can insert a new class between
DefaultLandingPageAction and LoginPostAction.
A. True
B. False
Answer: B