CRUD Project in Portlet Environment

While exercising the CRUD Tutorial (Performing Inserts, Updates and Deletes) in a Portlet Project, I have learnt that Portlet Life Cycle is little different from that of a normal Creator WebApplication.

Unlike a normal web application page, a portlet page can't assume that the page being rendered in the Render Response phase is the same page that was built in Restore View. If a portlet wants to maintain state across repeated render requests, the portlet must use the session bean to store stateful information.

The prerender code in this CRUD Portlet tutorial is little different from the one used in normal webapplication(as suggested in the tutorial). It uses a sessionbean property personId to persist the current personId selection or its change and then uses the same for passing as the parameter to the tripRowSet.

Here's the Creator Project built, InsertUpdateDelete_Portlet.zip, that works fine with the bundled Pluto w/ SunAppserver. Download this project, Open it in IDE and Choose Run project to deploy this to the bundled container.

Comments:

I download you InsertUpdateDelete_Portlet.zip and its perfect, it handles the lifecycle well for portlets. It works well on jetspeed as well. I need some help, I deploy your portlet and my portlet based on the same style of displaying user data, using a dropdown and table in Liferay Portal, and the initial page displays but when we select on the dropdown and select a different person is give the following error and the dropdown and table become blank, com.sun.rave.web.ui.component.DropDown::The current value of component form1:personDD does not match any of the selections. Did you forget to reset the value after changing the options? I have not been able to rectify this in Liferay. Liferay portal follows a different lifecycle compared to jetspeed and pluto. I also posted my problem in Java Creator 2 forums http://forum.sun.com/jive/thread.jspa?threadID=101855 If there is any solution please help. Thanks in advance Daniel

Posted by Daniel Mundra on July 13, 2006 at 09:53 PM PDT #

Hi Daniel, I have reported this issue to our Portlets Engg Crew. Bug# 6452072. When i get a workaround /fix for this, i'll let you know.
Regards,
Sakthi

Posted by guest on July 24, 2006 at 03:18 AM PDT #

Post a Comment:
Comments are closed for this entry.
About

sakthi

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today