Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to remove borders of a portlet in liferay

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 666
    Comment on it

    Hello Guys
    Now, We are removing borders of a portlet in liferay that added using tag as below :

    <liferay-portlet:runtime portletName="customSocialNotifications_WAR"  />
    

    You can use below attribute available in same tag as defaultPreferences, which defined below :

    Put following code in your portlet JSP page.

    <%
    StringBundler sb = new StringBundler();
    sb.append("<portlet-preferences >");
    sb.append("<preference>");
    sb.append("<name>");
    sb.append("portletSetupShowBorders");
    sb.append("</name>");
    sb.append("<value>");
    sb.append("false");
    sb.append("</value>");
    sb.append("</preference>");
    sb.append("</portlet-preferences>");
    %>
    
    <liferay-portlet:runtime portletName="customSocialNotifications_WAR"  defaultPreferences="<%=sb.toString()%>"/>
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: