Blog Archives

IcePush integration to web-application

In one of the previous post I show an example of how a4j-push and a4j-poll were used together. It help to solve several things and optimize code/requests a bit. But in reality it was not “real” push – it just

Tagged with: , , , , , , , , , , ,
Posted in Software Development, Tips and Tricks

Conditional re-rendering in JSF (Richfaces)

It happens that you want something to be re-rendered only if ajax-request is executed without errors. Or in other words – you want to be lazy if it possible and not perform “reRender” if you could. Just like that funny

Tagged with: , , , , ,
Posted in Software Development, Tips and Tricks

Richfaces a4j:poll and a4j:push Can Do More Together

Task: Update the content of the page if the content is changed on server-side, in other words – show the most-fleshiest content to the user. The most simple solution that comes to mind is to use <a4j:poll/> component which will periodically

Tagged with: , , , , , ,
Posted in Software Development, Tips and Tricks

Howto disable form submit on Enter and fix for RichFaces rich:inputNumberSpinner

It’s quite generic problem – to disable automatic form submit on ENTER, to avoid occasional submits which could lead either to page refresh or even to redirecting to another page. The general idea is to define onkeypressed event handler for

Tagged with: , , , , , ,
Posted in Software Development, Tips and Tricks

Show dynamic progress of time-consuming process in Seam/RichFaces

Sometimes you need to start really time-consuming task on the server, but doing that with simple h:commandAction which will re-render page after it is done is not a good idea. Showing a4j:status (which could be blocking – see “avoid concurrent

Tagged with: , , , , , , , , , , ,
Posted in Software Development, Tips and Tricks

Howto avoid concurrent call to conversation problem in Seam

Practical advices to minimize the ability of famous “Concurrent call to conversation error – 503”
It gives the solution of howto eliminate double-clicks and other actions of user during the request processing time
Tuning of aj4:commandLink to avoid concurrent call to conversation

Tagged with: , , , , , ,
Posted in Software Development, Tips and Tricks