Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF, portlets and portal pack

 
JayJay Capra
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh btw, im using portal-pack-plugin-3_0_4_all to create the portlets.

 
H Jetly
Ranch Hand
Posts: 41
Google Web Toolkit Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
JayJay Capra
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 41
Google Web Toolkit Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 41
Google Web Toolkit Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic