File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes ValueChangeEvent help!! Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "ValueChangeEvent help!!" Watch "ValueChangeEvent help!!" New topic
Author

ValueChangeEvent help!!

Kumar Gaurav
Ranch Hand

Joined: Apr 08, 2008
Posts: 108
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.


Regards,
Gaurav
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
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?


Code depot of a Java EE / JSF developer | JSF / Eclipse / Tomcat kickoff tutorial | DAO kickoff tutorial | I ♥ Unicode
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: ValueChangeEvent help!!
 
Similar Threads
Ragarding TagFiles.
Passed SCWCD 1.4 with 82%
Regarding Ebb 3.0
Is httpunit support script contains table1 deleteRow( rowno)
Personal Problem (Need Advice)