It's not a secret anymore!
The moose likes JSF and the fly likes JSF+Portlet Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF+Portlet Problem" Watch "JSF+Portlet Problem" New topic

JSF+Portlet Problem

Ayanrtika Datta

Joined: Dec 07, 2008
Posts: 1
I am working on JSF+Portlet on Glassfish+Liferay server.

I have 2to jsf pages with corresponding beans with each pages.the beans are in the "session" scope.

In the 2nd page,I have a dropdown menu of applicant Types(like Main/Co-Applicant),with 2values.I have some input boxes too.

My Objective is:
I want the values of the inputboxes will be changed with the selection of the dropdown menu.
At the 1st time ,while loading the page I am loading a
In the list ....selection is the selectionindex of the dropdown and object is the corresponding object which is to be shown according to the selection.
In the backing Bean,I have written a code so that,on the ValueChangeEvent of the dropDown I am getting the value of selectionindex and from the list trying to show the object with corresponding selection.

My Problem is:
In the ValueChangeEvent of the dropDown,I am getting the proper value.But the page is always showing the 1st selection values.Evenif I am selecting the 2nd value from the dropdown,values of the corresponding inputboxes are not getting refreshed in the jsf page.

I dont know whether it is a page refresh problem or jsf lifecycle problem.Or is this a problem with my coding?

Please Help.Thank you for your help in advance.
I agree. Here's the link:
subject: JSF+Portlet Problem
jQuery in Action, 3rd edition