• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Help with ValueChangeListener!!!

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All Ranchers,

I am stuck with JSF's ValueChangeListener......Can anyone help me out of it?
I have a combo box (h:selectOneMenu) for which I used valuechangelistener to get to know whenever user changes the value and selects new option.
Here is the code:



Now my method specified in valuechangelistener has following implementation:



Also whatever value I am setting for ,I am deciding which URL to be called and then passing this URL value to Javascript using hidden parameter which will take this URL and open a new window.



The problem is when I change the option and click submit button then it valuechangelistener works and on the console it shows the new option selected but I also have onclick event on submit which opens the new window for which URL comes from the bean.
But the roblem is it takes the old value from combo box even though it shows it has changed.What could be the reason?

Does it has to do something with Phases of JSF?

But I have written in the code that for 'ANY_PHASE' it will update the value.
But it still gives me the same problem.

Please help me!!!

Thanks in advance

[ August 21, 2007: Message edited by: Amol Chavan ]
[ August 21, 2007: Message edited by: Amol Chavan ]
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
did you ever update this formaccessorbean.formURL value?
 
reply
    Bookmark Topic Watch Topic
  • New Topic