we can achieve SPA in liferay 6.2 by making changes in theme. But how can we achieve it in 7 .. ?? Before going into the LR7 SPA.. Quickly, we glance .. What is SPA , What is SennJs , SennaJs Key enchancements so what is Senna.js? ´ Senna.js is a super fast single page application engine that can dramatically optimize any site's performance. It's open source and doesn't require any dependency. ´ SennaJS is Liferay Portal’s SPA engine. ´ SennaJS handles the client-side data, and AJAX loads the page’s content dynamically. SennaJS provides the following key enhancements to SPA: ´ SEO & Bookmarkability : Sharing or bookmarking a link displays the same content you are viewing ´ Hybrid rendering : Ajax + server-side rendering lets you disable pushState at any time, allowing progressive enhancement ´ State retention : Scrolling, reloading, or navigating through the history of th...
When we are using any Liferay login.jsp, To customise we are using hook !! So In that login.jsp, I dont need default error message like Your request failed to complete. I need to hide request failed to complete message . So, To hide particularly this above message, Add the below code, in your login.jsp page <% SessionMessages.add(request, PortalUtil.getPortletId(request) + SessionMessages.KEY_SUFFIX_HIDE_DEFAULT_ERROR_MESSAGE) ;%> And deploy the portlet, Login now. Only Failed to access your account message appears.
Very good information
ReplyDelete