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 – 168 | JSR-286 |
---|---|
Portlet 1.0 Specification | Portlet 2.0 |
Does not support IPC | Supports IPC through events and public render parameters |
No support of serveResource() method | included serveResource method to load resources dynamically |
No Support of Portlet filters | Included 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?
Portlet | Servlet |
---|---|
Portlets renders part of HTML | Servlets renders complete HTML document |
Portlets does not generates complete HTML document and it is just fragment | Servlets will geneate whole HTML document |
Portlets are managed in portlet container | Servlets are managed in Servlet container |
Portlets can not be accessed URL and portlet should be placed on portlet page to access | Servlets can be accessible with URL |
Portlets supports CHTML,WML,XHTML content types only | Servlets supports generatins of all content types |
Has three types of requests: render, action,resource | Has 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 />