Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

JSF+Portlet Problem

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
Think of how stupid the average person is. And how half of them are stupider than that. But who reads this tiny ad?
Free, earth friendly heat - from the CodeRanch trailboss
    Bookmark Topic Watch Topic
  • New Topic