• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

If I'd had more time, I would have written a shorter letter. -T.S. Eliot such a short, tiny ad:
Why should you try IntelliJ IDEA ?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!