aspose file tools*
The moose likes Portals and Portlets and the fly likes Jetspeed Portal not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Jetspeed Portal not working " Watch "Jetspeed Portal not working " New topic
Author

Jetspeed Portal not working

omkar patkar
Ranch Hand

Joined: Aug 25, 2005
Posts: 231
Hi,

Currently i am working on an application which uses Jetspeed Portal. In My portal there are certain tabs and which contains few portlets. Some of these portlets contain Form ...which on submitting reloads the page ..but this time few of the portlets are not displayed throwing exception

For e.g.:-

[B][/B]

Sometimes other portlets independent of that form portlet also vanishes showing similar message.

I am using :-

jdk 1.5
Tomcat 5.5
jetSpeed 2.0
Postgres 8.1
and Myfaces components since the user interface is developed using the Java server Faces .

Can any one please tell me what could be the problem ? .... how i can fix it ?

Thanks
Omkar !


Thanks and Regards
Omkar Patkar (SCJP 1.4)[url]http://javacollectionsnotes.blogspot.com[/url] | [url]http://omkar-myscjpexp.blogspot.com[/url]
Masoud Kalali
Author
Ranch Hand

Joined: Jul 08, 2004
Posts: 531

Hi
can you post a more complete stack trace ?
that you post is the beginning of te strack trace and it is hard to say what is the problem.


Masoud Kalali
Software Engineer - My Weblog - GlassFish Security
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968

How are you re-rendering the portal? How are you generating the link back to the portal?

This is how you should be doing it:

response.createRenderURL();//link back to the portlet
response.createActionURL();//triggers action phase

And this is why:


When a user clicks submit on a form, there must be an object sitting on the server that is ready to process the user�s request.
With typical Servlet/JSP applications, form submissions are forwarded to a Servlet, and the name of the Servlet is specified as the action of the form; However, we can�t do that with a portlet.
For example, if our number guessing application was implemented as a Servlet, there would be an HttpServlet, perhaps named NumberGuessServlet, that would respond to the submission of the form and extract the users input. The Servlet would constitute the �action� of the form, and the form tag would look like this:

<FORM ACTION=�NumberGuessServlet�>

But a portlet can�t make a direct call back to itself that easily The best a portlet could do is make a call back to the page the portlet is displayed on, but even that�s impossible to configure in an html form, because at development time, we don�t know which page, or on how many pages, our portlet will appear.



I have some tutorials on my website that deal with proper portlet development techniques. Feel free to check them out:

Tutorials on Properly Creating JSR-168 Portlets

Cheers!

-Cameron McKenzie
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jetspeed Portal not working
 
Similar Threads
Jetspeed Portlet Problem.
Jahia - Multiple portlets on a single page - MESS
Is there any PortletContaner API ?
How can I pass parameters between portal pages? (IPC, QueryString, Portlet Params, etc?)
show/hide portlets in portal