Came around a task to raise Jira tickets and view existing Jira tickets using Liferay Framework. Started with creating two POC.
First POC is Portlet with Task submission that goes directly into schema on MYSql using Liferay MVC.
Liferay Portlet Form
Liferay MVC Data Layer with MYSql
Project structure screenshot at the bottom.
Lets Create a new Portlet named IssueLiferayMVC.
Follow link to create one. Creating a new Portlet
Lets create jsp form containing inputs related to a task/Bug. Make the entries by replacing view.jsp with raise_issue.jsp
Explained the inter communication between jsps and java class
Note: Refer comments for attribute,object,tags explanations.
Lets start with creating a simple portlet using LifeRay.
Portlet is a Java Web-Application that can be embedded into the pages that we have created using Liferay Web Admin. A Liferay page is collection of well arranged portlets.
Lets Switch from existing HSQL to MySQL.
Simplest way of switching database is to use a property file named portal-ext.properties.Way to override the existing features can be written into this file.
Go to Liferay tomcat directory->WEB-INF->classes. Their you find the file portal-ext.properties.
In case you don’t find it,create a new file named portal-ext.properties.
Add the below database configuration parameters to run LFRay on MySQL.
Setting up Liferay portlet Maven Eclipse Project Required dependencies to get started
Add the SDK home to the eclipse.
3.Liferay IDE Eclipse