Blog Archives

JPA and stored procedures

In a majority number of cases the Java-Persistence API (JPA) to create/load/update entities cover all your needs. But sometimes you need to do something special inside the DB with help of stored-procedures. The good thing about JPA is that you

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

Manage server throughput for large downloads

Manage server throughput for large downloads Initially I want to explore the solutions to implement Servlet/OutputStream with limited throughput in order to limit single download to some bandwidth. It looks to be a perfect article which describe the way to

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

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

How to avoid primary page conversation timeout on background requests in Seam. Hacking around Seam request lifecycle

It will be not easy to read and understand this article, so please remember that you always have a choice to not read it đŸ™‚ So,.. in our app we have few background processes on the page which are periodically

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

Useful Eclipse navigation shortcuts for java developer

I find that this article (10 Eclipse Navigation Shortcuts…) is great and will save you a lot of time in development/coding if you are programming in Eclipse. I personally prefer Intellij Idea for java development, but in case of Android

Tagged with: , , ,
Posted in Android, 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

Export to Excel with jXLS can be faster

I got a question about the jXLS performance, in short it was like “jXLS is a kind of slow for my big reports”. I mentioned that in my previous post (Creating Excel reports from java is easy) It’s true, especially

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

HierarchyViewer missed in Android SDK r07 for Windows

I just updated to Android SDK-r07 and find out that I don’t have hierarchy-viewer tool anymore, what a nice surprise đŸ™‚ I know this program is stored in hierarchyviewer.jar so just created the hv.bat in tools directory with just java

Tagged with: , , ,
Posted in Android, Tips and Tricks