• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSF+Portlet Problem

 
Greenhorn
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
list(selection,object)
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.
 
We find this kind of rampant individuality very disturbing. But not this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic