• 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 page data not changing

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a session scoped bean driving the data in a jsf page... Basically the bean has a bunch of arraylists that act as the filler for h:selectOneMenu

i am using output links and parameters to feed the page bean, the parameters tell the bean how to populate the arraylists

when i click link A it populates the page for product A.
when i click link B i see that the bean is building arraylists for product B yet the page is displaying Product A's data.

Its like the JSF is not even paying attention to the backing bean... I have no errors...

i know i am doing something wrong and there is probably an easy fix... Any ideas?
 
Sheriff
Posts: 3063
12
Mac IntelliJ IDE Python VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How do you send the request for "click link A"? If it's an AJAX request, then your problem may be as simple as needing a reRender attribute to say that you need the dropdown lists to redraw.
 
Christopher Whu
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Greg Charles wrote:How do you send the request for "click link A"? If it's an AJAX request, then your problem may be as simple as needing a reRender attribute to say that you need the dropdown lists to redraw.





i am going to fix the values as soon as i get this page proplem fixed
 
Christopher Whu
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ty fro the help btw... This site turned me on to JSF, which has changed my business...
 
Christopher Whu
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
not sure if this is the correct way to fix it but i basically put a call to a method that clears the form at the top of the jsf page and it works...
#{productLineModel.resetModel()}

i cant believe it was that simple....

I am just going to try and build some logic to not reset unless needed next..

Any advice on a more professional way to do this would be greatly appreciated....
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic