Contact Us
A 101-103 Siddhivinayak Towers, Off S.G. Highway, Ahmedabad, Gujarat 380051

Liferay DXP Interview Questions Part 1

by Attune World Wide / /

1. What is meant by Liferay?

  • Portal is platform to create web applications where portal provides commonly used features such as user management, authentication, sites, web content management to avoid creating from scratch. Portal assembles multiple portlet applications to form a page

2. What is Portal and Portlet?

  • Portal is platform to create web applications where portal provides commonly used features such as user management, authentication, sites, web content management to avoid creating from scratch. Portal assembles multiple portlet applications to form a page
  • Portlet is single application fragment on Portal

3. What is liferay portal and how it differs from other portals IBM, WCM, Web logic?

  • Liferay Portal is platform contains common applications used to create web application
  • Liferay provides a development framework with highly customization components for building a site.
  • Liferay Portal can be used for content management, be it web content management
  • Liferay Portal offers a rich collaborative application suite with:
    • Calendars
    • Blogs
    • Wikis
    • Workflow
    • User Management

4. What are difference between JSR-168 and JSR -286?

JSR – 168JSR-286
Portlet 1.0 SpecificationPortlet 2.0
Does not support IPCSupports IPC through events and public render parameters
No support of serveResource() methodincluded serveResource method to load resources dynamically
No Support of Portlet filtersIncluded portlet filters

5. What is meant by Liferay?

  • JSR-286

6. Which all method JSR-286 supports?

  • init()
  • render()
  • processAction()
  • processEvent()
  • serveResource()
  • destroy()

7. Which JSR-286 portlet class extends?

  • GenericPortlet

8. What class LiferayMVCPortlet extends?

  • LiferayPortlet -> GenericPortlet

9. What are the differences between Portlet and Servlet?

PortletServlet
Portlets renders part of HTMLServlets renders complete HTML document
Portlets does not generates complete HTML document and it is just fragmentServlets will geneate whole HTML document
Portlets are managed in portlet containerServlets are managed in Servlet container
Portlets can not be accessed URL and portlet should be placed on portlet page to accessServlets can be accessible with URL
Portlets supports CHTML,WML,XHTML content types onlyServlets supports generatins of all content types
Has three types of requests: render, action,resourceHas Single type of action called : HttpServletRequest
Portlets can define window states and modes/td>Servlet can not define window states and modes

10. What is Portlet Name space and why it is important ? how do you get portlet namespace in JSP?

  • Portlet namespace is portlet Id
  • p_p_id parameters also contains portlet namespace
  • portlet name space is prefixed with url parameters, so that portlet container will identify the parameters belongs what portlet
  • In JSP:
    • <% String nameSpace= renderResponse.getNamespace() %>
    • < portlet-namespace />

About Attune World Wide

What you can read next

Leave a Reply

Your email address will not be published. Required fields are marked *

3 + 17 =

Recent Posts

X