File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ValueChangeEvent help!!

 
Kumar Gaurav
Ranch Hand
Posts: 108
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a dropDown for which there is a valueCahngeListener. On exceuting code

valueChangeEvent.getOldValue().. its always giving null, But valueChangeEvent.getNewValue() is giving the current value that is selected in drop down.
Any cue why it is coming so.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The getOldValue() gives the originating value as it was during initial display/render of the page.
The getNewValue() gives the newly selected value as the client has chosen.

What did you expect then?
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic