integrate Liferay6 and Struts 2 for developing a Portlet - liferay

I am using Liferay 6. I want to integrate Liferay-6 and Struts-2 for developing a Portlet.
I have seen a example in this Blog.
Here the author uses Portlet class as:
<portlet-class>org.apache.struts2.portlet.dispatcher.Jsr168Dispatcher</portlet-class>
How can I get this class?
Because I see only these classes avialable
com.liferay.util.bridges.mvc.MVCPortlet
com.liferay.portal.kernel.portlet.LiferayPortlet
javax.portlet.GenericPortlet
Please see the screen shot here

You can simply type org.apache.struts2.portlet.dispatcher.Jsr168Dispatcher in the combo box then you would be able to use Struts 2.

Related

Need help learning Liferay 7 MVC

Are there any basic tutorials for creating my first liferay 7 portlet like a Hello World App?
I am new to Liferay and need some help getting started. I have read over the liferay 7 tutorials and I have tried following the Liferay 7 Creating An MVC Portlet, but having trouble understanding where everything goes and how it all works together, and I feel that it is not a comprehensive tutorial.
About Me and My Liferay Aspirations:
I have experience with JAVA, JavaScript and Node.js.
I'd eventually like to be able to display a google map and display content on it, but just want to make some baby steps understanding portlets. Correct me if a portlet is not the right thing for me to be focusing on for this goal.
There is an excellent book "Liferay in Action". It helpls a lot, but there are a lot of mistakes in code. On the other hand, there is "Portlet in action", but it doesn't have free pdf-version :\
Also, you can visit web.liferay.com, I don't like this forum but there are good questions from time to time.
And any other issues you can only google, google and google again. Unfortunately, there is no alternative way.
The tutorials are not going to give you all the details, because they must be as short as possible. That said, the Creating an MVC Portlet tutorial should get you pretty well on your way. Which parts, specifically, are you having trouble understanding?
Have you read the Liferay MVC Portlet introductory tutorial? It's even sparser on details but it might fill in a few gaps.
If you are first time developing using liferay then this link might help you. It is guide to liferay 6.2. Creating plugin portlets is same in liferay 6.2 and 7. Just setup is different.
For creating liferay modules refer liferay 7 documentation.

Does Liferay supports IPC for portlets on different pages?

In IBM Websphere for IPC, we have something called as Wiring which allows us to switch to the receiving portlet page in case you have your event receiving portlet to be on different page than that of source portlet.
I am wondering if there is any way to achieve this in Liferay.
I have also followed the link: Using JSR-268 IPC for portlets on different pages in Liferay but not clear about application-context.xml as I have created a simple Liferay plugin-portlet-project from Eclipse.
Yes it is possible. You just need to pass the Layout id, portlet id along with your parameters.
<liferay-renderURL var="varLink" plId="layout-id" portletName="portletName_WAR_WarName"/>
Wiring is Websphere Portal's concept.
Liferay is not supporting Wiring, but you can do Inter-portlet communication using public render parameters & portlet events ( in case of ACTION->View IPC).
In case when you need (VIEW->VIEW) IPC, you can use liferay's session sharing mechanism.
More details on my blog https://rutvijshah.wordpress.com/2009/12/13/liferay-session-sharing-made-easy/

Visual JSF Designer

Please can any one tell me from where I can have Visual JSF designer that can be integrated with Eclipse ?
And Why netbeas doesn't have this functionality
I know that Myeclipse provides this ability, but it;s just run on 32-bit in addition it's not free.
Thanks in advance.
If you have the Dynamic Web Module facet and JavaServer Faces facet added on your project, right click on the page you want and choose Open with -> Web Page Editor.
That works only with pure JSF tags, not with third party library ones like Primefaces. You can also go through JSF Web Page Designer, but not sure how it will work since it looks it's not updated since long time ago.

Migrating from Java Page Flow to JSF

I am currently working on a project that uses WebLogic Portal and Apache Beehive Page Flow Controller.
The team would like to remove WebLogic Portal and the Page Flow Controllers with JSF. Currently we have not found a way to manage the workflow with JSF as with PFC.
With Spring MVC it would be easy because we only remove Beehive annotations using Spring MVC Annotations but we would like to go directly with JSF so later we can start using icefaces.
Any suggestions of where I can find information about what we want to do?
Thank you very much in advance.

How to create custom component using JSF 1.2?

I am new in the JSF world, please tell me step by step answer of how to create JSF custom component i search on the net but i didn't get any proper answer or give me some link which shows how to create custom component.
Thanks
Vinod
Googling for "extend UIComponentELTag" or "extends UIComponentELTag" should yield enough hints.
This is one of my favourites: http://blogs.steeplesoft.com/2006/12/jsf-component-writing-check-list/
RichFaces includes CDK (component development kit) that can be used for components development.
Here is the link to the guide: RichFaces CDK Developer Guide

Resources