my dog learned polymorphism*
The moose likes Portals and Portlets and the fly likes JSF, portlets and portal pack Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "JSF, portlets and portal pack" Watch "JSF, portlets and portal pack" New topic
Author

JSF, portlets and portal pack

JayJay Capra
Greenhorn

Joined: Jul 13, 2011
Posts: 9
First of all, excuse my english im not a native english speaker.
This is my first post here, i been using this forum for a while
but like a guest, so today i decided to register because
I couldnt find a way to fix my problem.

So im using Gatein as a portal, and i need to use portlets 2.0.
Im used a plugin to create static html portlets and it worked well.
But now im trying to use MVC pattern with the framework JSF.
But i cant find a way to make it work, i tried to foward from the
Portlet_view.jsp to the forwardToJSF.jsp which redirects to welcomeToJSF.jsf
(.jsf because thats how i configured my JSF)
with no luck it doesnt seems to work. Is there another way to do this?
I would really apreciate your help.

Regards

Capra
JayJay Capra
Greenhorn

Joined: Jul 13, 2011
Posts: 9
oh btw, im using portal-pack-plugin-3_0_4_all to create the portlets.

H Jetly
Ranch Hand

Joined: Aug 26, 2010
Posts: 41

I would suggest you use the Eclipse IDE (With JBoss Tools plugin), that will give you the capability to create a JSF Portlet. I don't think the redirect mechanism is the best way to go ahead.
You should use the JBoss Portlet Bridge (it works as a handshaking mechanism for converting portlet calls to JSF calls)
Creating a portlet project through the IDE will guide you through the steps.


Harsh Jetly
JayJay Capra
Greenhorn

Joined: Jul 13, 2011
Posts: 9
Thank you very much for your answer, i was able to solve
my problem using "jsfportletbridge.java.net", unfortunatley
i was´t able to add any kind of faces, do you think JBoss
tools will be the solution to add richfaces/primefaces/myfaces
to the JSF portlets?

Thank you

Capra
H Jetly
Ranch Hand

Joined: Aug 26, 2010
Posts: 41

If you use JBoss Tools, the jsf portlets would have richfaces in them. Are you running Gatein (JBoss + Exxo Portlet ) ? If you are using Gatein, I think you should use the JBoss Portlet Bridge 2.0.0, This would support Richfaces, Primefaces and ICEFaces. I have used them.
JayJay Capra
Greenhorn

Joined: Jul 13, 2011
Posts: 9
I tried to use Jboss Portal Bridge, but i struggled to make it work,
Do you know where can I get some good documentation on how
to do this? The only way i managed to make it work was using
maven, im not maven fan, and i want to avoid using it if its
possible.



H Jetly
Ranch Hand

Joined: Aug 26, 2010
Posts: 41

I started using JBoss Portlet Bridge with Eclipse (with JBoss Tools Plugin). When you create a Portlet Project and include JSF Portlet in it, then a project will be created that contains the required libraries and the changes to be made on the portlet specific configuration. It created example seam portlets, which I replaced with my portlet jsf/richfaces code and got working. I built all my portlet projects like that.
 
 
subject: JSF, portlets and portal pack
 
Similar Threads
URLs in a Portlet
How Portlets and JSF are related
My JSF Portlet Tutorial
Starting portal development
When I should Portlets?