Posts

Liferay Login Screenlet - DXP

Image
SCREENLETS IN LIFERAY SCREENS FOR ANDROID Liferay Screens for Android contains several Screenlets that you can use in your Android apps. This section contains the reference documentation for each. If you’re looking for instructions on using Screens, see the  Screens tutorials . The Screens tutorials contain instructions on  using Screenlets  and  using views in Screenlets . Each Screenlet reference document here lists the Screenlet’s features, compatibility, its module (if any), available Views, attributes, listener methods, and more. The available Screenlets are listed here with links to their reference documents: Login Screenlet:  Signs users in to a Liferay instance. Sign Up Screenlet:  Registers new users in a Liferay instance. Forgot Password Screenlet:  Sends emails containing a new password or password reset link to users. User Portrait Screenlet:  Show the user’s portrait picture. DDL Form Screenlet:  Presents dynamic forms to be filled out by users an

Gogo Shell via Telnet in Liefray DXP 7.1

Gogo Shell via telnet is no longer enabled by default in Liferay 7.1 To enable this add the below line in portal-ext.properties file, module.framework.properties.osgi.console=localhost:11311

Audience Targeting in DXP

Image
Audience Targeting 2.0 for Liferay DXP, improving the already powerful capabilities of segmenting your audience, targeting specific content to different user segments, and creating campaigns to target content to user segments.   It also allows you to track user actions and generate reports that provide insight into the effectiveness of your campaigns. The Audience Targeting application for Liferay provides many ready to use features that provide a robust solution for many customers. Audience Targeting New User Segment Segmentation : 34 existing rules in 4 categories Behavior (Anonymous/Authenticated) Session Attributes (Anonymous/Authenticated) User Attributes (Authenticated) Social (Authenticated) 6 new rules to complete the set (from customer’s feedback) IP Range (Anonymous/Authenticated) Language (Anonymous/Authenticated) Previously Visited Site (Anonymous/Authenticated) Sign Up Date (Authenticated) Last Login Date (Authenticated) User C

Hide Default Liferay Error Message in login.jsp (HOOK)

Image
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.

NoNodeAvailableException[None of the configured nodes are available} in Liferay 7 (Local server setup)

NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{127.0.0.1}{127.0.0.1:9300}]] just to breif you about NoNodeAvailableException that to when you are using elastic serach in your local. on your server console screen you can see the below exception. NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{127.0.0.1}{127.0.0.1:9300}]] at org.elasticsearch.client.transport.TransportClientNodesService.ensureNodesAreAvailable(TransportClientNodesService.java:290) at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:207) at org.elasticsearch.client.transport.support.TransportProxyClient.execute(TransportProxyClient.java:55) at org.elasticsearch.client.transport.TransportClient.doExecute(TransportClient.java:288) at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:359) at org.elasticsearch.action.ActionRequestBuilder.execute

LifeRay 7 with Single Page Application (SPA) features & SennaJs !!! How It works? In LR7 & LR6.2..

 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 the page takes you back to where you were. ´ UI feed

AUI validation for phone number, special characters(only +, - and space )

In below example, just shown how to validate phone number using required special characters <aui:input type="text"   name="phoneNumber" label="PhoneNumber" >   <aui:validator name="custom"  errorMessage="You can enter a maximum of 30 numeric and special  ( only +, - and space ) characters">   <aui:validator name="maxLength">30</aui:validator>   function (val, fieldNode, ruleValue) {   var returnValue = true;   var iChars = "~`!@#$%^&*()_=[]\\\';,./{}|\":<>?qwertyuiopasdfghjklzxcvbnm";                 for (var i = 0; i < val.length; i++) {                     if (iChars.indexOf(val.charAt(i)) != -1) {                                      returnValue = false;                     }                 }                 return returnValue;         }     </aui:validator> </aui:input> Explanation : Give input type, name, label. mention valid