Tuesday, October 11, 2011

ADF PPR not working with af:inputText solved

I had a small panel full of inputText boxes which were not updating on PPR. I was trying to partially refresh the container panel of all the input boxes. I even tried refreshing the input boxes individually. But to no avail.

I got a hint from somewhere that in addition to setting the partialTarget of the container panel you must programmatically call the following for each and every input box for PPR to be effective, in this case(assuming that ibField is the RichInputText component in your managed bean):

ibField.resetValue();

This did it for me!

Wednesday, September 28, 2011

Some JSF 2 rules to remember

  1. Request Bean can hold a reference to a Session Bean. Not vice versa, because a session bean has a longer life than a request bean and the rule is that longer scoped beans can't hold shorter scoped beans but vice versa is allowed.
  2. Cyclic references are a strict no. That is a request bean refers to a session bean which in turn holds a reference to the previous request bean is not allowed.