The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Tim Holloway wrote:I do not recommend using actionListeners. They have a purpose, but it is so specialized that I cannot recall a single webapp I've ever done in JSF that required one. An action method is POJO, and thus less platform-specific.
Besides, when using RichFaces 4, the a4j tags are supplanted by JSF2 f:ajax tags, and the f:ajax listener is a completely different construct than an actionListener, and sends a completely different parameter. So avoid confusion.
The reason why your updated data isn't being seen is because you didn't tell the View to refresh its data after the ajax process. Use the reRender a4j:commandButton attribute to indicate what elements of the View should be re-rendered (updated) after the ajax call is done.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.