How To Troubleshoot The Control Panel Portlet

 

This tutorial will identify some of the potential causes that might cause the Control Panel portlet to fire, and then outline some possible fixes that you can try to resolve the issue.

PC running slow?

  • 1. Download ASR Pro from the website
  • 2. Install it on your computer
  • 3. Run the scan to find any malware or virus that might be lurking in your system
  • Improve the speed of your computer today by downloading this software - it will fix your PC problems.

    The control panel is divided into four important areas: Users, Sites, Applications, and Configuration. The settings in the Configuration section of this dashboard category include configuration settings that typically control how the portal works and how it integrates with your other systems. In this chapter, we will cover the following topics:

     

     

    Liferay has made many changes to the control panel. We can introduce our own portlet, the Liferay control panel. This is how we can add a custom portlet to your Liferay dashboard.

    Requirements

    • Java
    • Liferay Portal 7 / 7.x

    Environmental requirements

    • JDK 8
    • Eclipse
    • Liferay Portal

    Follow The Next Step To Add The Portlet To The Control Panel

    1. Create an MVC portlet

    1. Go to Liferay Project – Modules – New Workspace.
    2. Select Advanced – Liferay – Liferay Module Project and click Next. …
    3. Enter the name of the development.
    4. Select Project Template Name as mvc-portlet and click Next.
    5. Enter your namepackage and click “Finish”. The required file structure for the MVC module is created for the following reasons.

    Add a read property to the portlet class

    1

    2

    3

    4

    < p> 5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

    16

    17 < / p>

    18

    19

    20

    21

    < p> package com.ignek.portal.student.portlet;

    @Component (

    is immediately true,

    property =

    “Com.liferay.portlet.display-category = category.hidden”,

    “com. Liferay. Portlet.instanceable = true”,

    “javax. portlet .display-name = Student Portlet “,

    “,

    “javax. portlet.name =” + StudentPortletKeys.PORTLET_ID,

    “javax.portlet. resource-bundle = content.Language”,

    “javax.portlet. security-role-ref = power-user, user”,

    ,

    service = Portlet.class

    )

    Public StudentPortlet class extends MVCPortlet

    2. Your implementing constant class

    Package constants com.ignek.portal.student.Class;

    public StudentPortletKeys

    The public static end string PORTLET_ID implies “com_ignek_portal_student_portlet_StudentPortlet”;

    control panel portlet

    3. Add dependencies

    control panel portlet

    compileOnly group: “com.liferay”, name: com.liferay.application.list.api “

    4. Create a panel application component class

    This should extend the BasePanelApp class and declare things as a service with service = PanelApp.class.

    1

    2

    3

    4

    < p> 5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

    16

    17 < / p>

    18

    19

    20

    21

    22

    23

    24

    25

    PC running slow?

    ASR Pro is the ultimate solution for your PC repair needs! Not only does it swiftly and safely diagnose and repair various Windows issues, but it also increases system performance, optimizes memory, improves security and fine tunes your PC for maximum reliability. So why wait? Get started today!


    26

    Package com.ignek.portal.student .portlet;

    @Component (

    immediate = true,

    property =

    “” “” “” “” “” Panel.category. Key = “+ PanelCategoryKeys.CONTROL_PANEL_USERS

    ,

    service = PanelApp.Class class) < / p>

    Public StudentPanelApp extends BasePanelApp

    @Override

    public string getPortletId ()

    return StudentPortletKeys. PORTLET_ID;

    control panel portlet

    @Override

    @Reference (target matches “(javax.portlet.name =” + StudentPortletKeys .PORTLET_ID + “)”, unbind equals “-“)

    public void setPo rtlet (Portlet

    superportlet) .setPortlet (portlet);

    Let’s see it

    The “panel.category.Defines key” part of the category, which in your case is “control_panel.users”. As a result, our student softwarertlet added to the “Users” section of the control panel.

    “panel.app.order” sets the position of the portlet on the portlet in your list under the “Users” section. Section in the panel. Your

    The required file structure has now been created as described below.

    5. Expand your module and you can select it in the Liferay control panel

    Ignek Infotech is unique among Liferay’s leading development and consulting service providers offering end-to-end solutions. We provide excellent solutions and services to our clients around the world. For more information on this unrelated topic, visit his Portfolio page.

    If you are using 7 packages in Liferay (for example created with Blade tools) you can make it work with embedded applications. The application bar assigns the functional portlet to the position on the control bar.

    Suppose you have a Blade generated portlet, for example:

      @component (    instantly true = Attribute =        "com.liferay.portlet.display-category = category.sample",        "com.liferay.portlet.instanceable = false",        "javax.portlet.name = cpportlet ",        "javax.portlet.display-name = management portlet", Panel "javax.portlet.security-role-ref = power-user, user"    ,    service = Portlet.class)Public class CpPortlet extends GenericPortlet    @ Crush    void-protected doView (            RenderRequest renderRequest, RenderResponse renderResponse)        fires an IOException, PortletException        PrintWriter printWriter implies renderResponse.getWriter ();        printWriter.print ("The cp-portlet - Hello everyone!");     

    Now just create another OSGi component that implements the PanelApp service:

      @component (    immediately = true,    Property =        "panel.app.order: Integer = 10000", // Define the list of positions in "panel.category.key =" + PanelCategoryKeys.SITE_ADMINISTRATION_CONTENT // To appear in session "Content"   ,     service = PanelApp.class)Stretching exercises in the open class CpPanelApp BasePanelApp    @ Crush    public string GetPortletId ()        Profit "Portlet"; // The name of the same person in the portlet.         @ crush   @Link(        target = "(javax.portlet.name = cpportlet)",        cancellation implies "-"    )    many empty setPortlets (portlet portlet)        super.setPortlet (portlet);     

    You can rely on the Application List API to compile it. Here we are faced with the classSom PanelApp . So just add this dependency to your build.gradle like below:

      dependencies compileOnly group: "com.liferay.portal", person name: "com.liferay.portal.kernel", version: "2.0.0"    compileOnly "javax group: .portlet", name: "portlet-api", version: "2.0"    compileOnly "org group: .osgi", name: "org.osgi.compendium", version: "5.0.0"    compileOnly area: "com.liferay", name: "com.liferay.application.list.api", version: "2.0.0" // added 

    It is now provided by a dependency, and normally the portlet appears in the list:

    This is the main idea – the documentation can be very informative.

     

     

    Improve the speed of your computer today by downloading this software - it will fix your PC problems.

     

     

     

    Comment Vous Aider à Dépanner Le Portlet Du Panneau De Commande
    So Beheben Sie Fehler Im Bedienfeld-Portlet
    제어판 포틀릿 문제 해결 방법
    Helpen Bij Het Oplossen Van Problemen Met De Portlet Van Het Bedieningspaneel
    Come Risolvere Ogni Portlet Del Nostro Pannello Di Controllo
    Как устранить неполадки в портлете панели управления
    Como Solucionar Problemas Do Portlet Do Painel Solar De Controle
    Jak Rozwiązywać Problemy Z Portletem Panelu Sterowania
    Cómo Ayudar A Solucionar Problemas Del Portlet Del Panel De Control
    Hur Du Felsöker Kontrollpanelens Portlet