How to create our own portlet in liferay - liferay

Please describe me in brief how to create portlets using eclipse ide and to add these in liferay.

You can install the Liferay IDE (which comes as a plugin) in Eclipse, can download it from here.
And then create a Liferay project the same way as you create a normal Eclipse project by going to File --> New --> Liferay Project --> A window will open which will ask you about what kind of project you need to create in liferay (portlet, hooks, theme, ext, layout etc).
Some more links to get you started with Liferay IDE:
Installation guide for Liferay IDE
Getting started with Liferay IDE
Hope this helps.

File->New->Liferay project->
Enter the name
click ok
It will show project
and then goto docroot/WEB-INF/src
create a portlet here

Very simply, see the screencast:

Related

How to create Web Application in Apache Netbeans 10?

Just I've downloaded Netbeans 10. While creating new project, I'm not getting option 'Web Application'.
How to do it?
Is there GUI design builder for web applications in Apache Netbeans 10?
Unlike some earlier NetBeans releases such as 8.2, Apache NetBeans 10.0 does not support web development by default, and that is why you do not see an option for Java Web under the Categories listed within the Project Wizard. See What's Happened to My Favorite NetBeans Plugins? for additional background information.
However, web development can still be performed using Apache NetBeans 10.0. You just need to install some plugins first:
Go to Tools > Plugins and select the Available Plugins tab.
Ensure that the entries are sorted in ascending Category order. Click the Category column header to do that if necessary.
Scroll down and locate the entries for the Category named Java Web and EE.
Under the Install column check all of those entries:
Click the Install button to install those checked Java Web and EE plugins.
Follow the instruction for the Installer wizard. The requested plugins will be downloaded and installed, and you will be invited to click Finish to restart NetBeans.
After the restart select File > New Project.... There should be new entries in the Categories list named Java Web and Java EE, allowing you to create web and EE applications:
Troubleshooting:
If there are no entries for Java Web and EE on the Available Plugins tab then update your question with a screen shot of Tools > Plugins > Settings.
If the plugins appear to install correctly but Java Web and Java EE are still not available under the Project Wizard after a restart then update your question with:
A screen shot of Tools > Plugins > Installed, with the User Installed Plugins entry selected.
The recent content of the NetBeans log (View > IDE Log).
If you're not seeing the Java Web and EE categories, you need to go into Settings and make sure Netbeans 8.2 Plugin Portal is checked like in the image below.

Why i cannot found the theme project in the import window in Liferay 7? [duplicate]

how to import a theme in liferay 7 workspace?
I added the theme under workspace/themes and I tried to deploy it but did not work. The build type of my Theme is Ant.
The following picture shows the details:
I put the Theme under *sdk\com.liferay.portal.plugins.sdk-1.0.11\themes* and I tried to test it as in Liferay 6. Import-> Liferay Projects from plugins SDK then when adding the SDK I got an error :
app.server.dir is invalid. Please reconfigure Plugins SDK setting:
app.server.dir=path to liferay portal/tomcat-8.0.32
Then I tried to migrate the theme from the plugins sdk liferay workspace.
I puted the sdk under: liferay-workspace\plugins-sdk\sdk\com.liferay.portal.plugins.sdk-1.0.11
Then I tried this commande C:\Users\User1\workspace2\liferay-workspace>blade convert --themebuilder name_theme she does not return anything.
The structure of the original theme:
The css directory:
I fixed the problem app.server.dir is invalid. by switching the java jdk from 8 to 7 in eclipse.ini file:
-vm
D:/Program Files/Java/jdk1.7.79/bin/javaw.exe
When I did Import-> Liferay Projects from plugins SDK and I puted the SDK path, I got this error:
No available projects can be imported.
Do I need to upgrade it?
Update:
Sorry, I checked the compatibility of Theme. The theme is already compatible with Liferay 7 and no need to upgrade it.
<look-and-feel>
<compatibility>
<version>7.0.2+</version>
</compatibility>
...
</look-and-feel>
I am trying to import the Theme on Liferay 7.0.0 GA1.
1- I am using jdk 1.8 for eclipse Neon.3 Release (4.6.3).
Image description:
2- I updated sdk /build.{ username}.properties
Image description:
3- I putted the Theme under sdk\liferay-plugins-sdk-7.0\themes and I did Import-> Liferay Projects from plugins SDK and I putted the SDK path D:\FormationJEE\Liferay\Liferay7_g1\sdk\liferay-plugins-sdk-7.0. I do not find the theme. I did Refresh and it does not appear.
Image description:
I followed #OlafKock 's instructions:
I declared the compatibility with 7.0.0+ and when I did Import-> Liferay Projects from plugins SDK I did not have the right to put the path of sdk. It is set by default to this: D:\FormationJEE\Liferay\Liferay7_g1\sdk\liferay-plugins-sdk-‌​7.0. I do not find the theme. I did Refresh and it does not appear.
Now, I can not change the path of sdk anymore. It is stuck at D:\FormationJEE\Liferay\Liferay7_g1\sdk\liferay-plugins-sdk-‌​‌​7.0. I can not test the theme on Liferay 7.0 GA5.
I fixed that by creating another workspace but still can not import the theme project.
4- Hello, I tried to migrate the theme from the plugins sdk to workspace using this command:
blade convert --themebuilder [THEME_PROJECT_NAME]
I typed the command and nothing happens.
I followed this link:
MIGRATING A THEME FROM THE PLUGINS SDK TO WORKSPACE
To upgrade existing liferay 6 theme refer following url
https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/upgrading-themes
use following command to upgrade your existing liferay 6 theme.
gulp upgrade
You can build liferay 7 theme using following url, and copy your existing liferay theme css, js and portal files to new theme directory.
https://web.liferay.com/web/smgulnaaz/blog/-/blogs/theme-creation-in-liferay-7
Not sure if this helps, but: Try 7.0 GA5. It might have fixed an issue that you're running into. Also, it might help the mismatch of your stated version and the declared compatibility
<look-and-feel>
<compatibility>
<version>7.0.2+</version>
</compatibility>
...
</look-and-feel>
7.0.2+ refers to "7.0 GA3 and later", but you state that you're using GA1.
Many issues have been fixed since then. Do a quick try declaring compatibility with 7.0.0+, but, by all means, use the most current version as a long term fix.

Liferay Audience Targeting

I am new to Liferay and I deploy Liferay Audience Targeting -7.lpkg in deploy folder and restart my server still it's not showing in Liferay DXP
Then I check in GOGO Shell there Liferay Audience targeting module is showing but in Resolved state but when using diag on that module it's showing No resolution report for the bundle. Can't able to get where a problem is.GOGO Shell
I am not using GOGO Shell. However, I had similar issue with the Liferay DXP EE SP1 bundle. I had to restart my bundle for audience targeting to deploy properly the first time.
I also ran into an issue with not being able to add reports in campaigns. I found the following solution on the liferay forums that worked for me. You need the appropriate fixpack for Liferay DXP. If you have any issues with DXP with bundled HSQL, then you need to use MySQL or another database as HSQL is not supported
https://web.liferay.com/community/forums/-/message_boards/message/87413363
Hope this helps.

How change Powered By Liferay

How can i change powered by liferay to custom label and hyperlink when clicking liferay . I am new to liferay development . Can some suggest to create hook for changing basic functionalities in liferay 7.
You need to write a fragment in Liferay 7
Here is the tutorial
https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/overriding-a-modules-jsps
The latest IDE Of Liferay (Released in Dec 2016) provides option to create Liferay fragment hook through IDE.
Previous IDE didnt had the support, other option is you can create through Blade.
To change powered by liferay you must create your custom theme for the liferay.
In liferay you can customize the liferay default theme and there you can modify powered by and liferay with any message as per your requirement.
For more info use these links: Creating theme and Creating basic theme.

How To add the JDE To Eclipse Plugin

I have used NetBeans IDE,I installed the NetBeans plugin for BB,and then it will detect the List of JDE's presently installed in the System and i can use it in NetBeans.
Similarly i want to know how to add the Blackberry JDE to Eclipse IDE.It always come with Inbuit JDE 4.5 and what can be done to add new JDE's(5.0 ,6.0 etc) to the Eclipse IDE.I have Eclipse 1.0.67 version,
Besides in the Form ,is it possible,i have also downloaded Eclipse 1.1.s
Do i want to download new plugin similar to netbeans ,can u explain in detail?
Regards
Rakesh Shankar.P
In the Help menu, choose Install New Software. In the resulting dialog, click the Add... button. In the Location field add this url: http://www.blackberry.com/developers/jar/3.6/java/. You don't need to add a name, Eclipse will resolve it for you. Once it's added there is a wait while Eclipse fetches data from that url. Expand BlackBerry Java Plug-in Category once it loads, and the available SDKs will be there. Installing any of those will configure Eclipse with the JDE you want.

Resources