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's getNewValue() returning null when making changes to db query string Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "ValueChangeEvent Watch "ValueChangeEvent New topic
Author

ValueChangeEvent's getNewValue() returning null when making changes to db query string

Tariq Ahsan
Ranch Hand

Joined: Nov 03, 2003
Posts: 116
I am running into an error condition on the Alfresco based application's UI web page with the error message -
javax.faces.el.EvaluationException: Exception while invoking expression #{mycode.changeDisplayResults}
at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:156)


....

Caused by: java.lang.NullPointerException
at org.alfresco.web.bean.mycode.changeDisplayResultsEra(mycode.java:779)


This would happen if I make the changes in the SavedSearchResultDataMgr class which does the jdbc database query. The changes are –



By the way, I added a new column in the CODE_LIST_TABLE table – NEWCOL differentiate between code lists to be displayed on the dropdown based on certain business logic.

In my investigation I found that, in the method –



If I change back the query string back to it's original state without " and newcol= 'ABC'" +
the drop-down for Reason field on the screen will display all the required rows including the new values I added to the table.

ValueChangeEvent object - event is not null altogether as ValueChangeEvent.getOldValue() returning value.
Here's the part of the jsp page -



Any idea about this problem?

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ValueChangeEvent's getNewValue() returning null when making changes to db query string
 
Similar Threads
Has anyone seen this error before??
How to retrive data two times from database in sinble jsp page.
Sending Email from jsp page
How to store answer available in option form in database table?
problem in using Ajax calls