Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF+Portlet Problem  RSS feed

Ayanrtika Datta
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!