Blog Archives

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

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

How to launch android camera using intents

Instead of writing your own activity to capture the pictures you probably prefer (in most cases)  to use existent Camera activity which actually have good UI and features. It’s really easy to do, just launch it with Intent like in

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

Suggestion engine with Hibernate Search and Lucene. Intro

I was inspired by the InfoQ articla Implementing Google’s “Did you mean” Feature In Java which shows the way to create the “Suggester” service based on Lucene.  Here is two more links you should read if interested in that topic

Tagged with: , , , , , , , ,
Posted in Software Development

How to use autofocus in Android

I’m having Android G1 device and while I’m doing the photos with integrated camera software I see that device is trying to focus before taking the photos (I hear the beep and see green border after camera is focused) But

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

Creating Excel reports from java is easy

Yeah, things sometime become really easy if you choose right tools and approach. I’ve to create relatively complex Excel report which is not “die-hard” task itself (you can use Apache-POI or JExcel API) But creating the formatting with Apache-POI API

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

How to Become an Early Riser

Very nice solution which upgrade your lifestyle and get you more productive time each day. How to Become an Early Riser The idea in short is to “Go to bed when you’re sleepy and then get up at a fixed

Tagged with: ,
Posted in Tips and Tricks

Gmail failure 502 on September 1, 2009

Today, September 1, 2009, Gmail was down from 20-00/8pm GMT it is actually in progress now , but my IMAP access from Outlook still works, cool. Gmail shows “502 Server error” in the title and “The server encountered a temporary

Tagged with: , ,
Posted in Tips and Tricks

Howto delete large emails from GMail

Problem description I use GMail almost every day during 4 years (and I love it) and on the moment I have a tons of emails and about 1.5 Gb of email storage size. I’m sure that a most of that

Tagged with: , ,
Posted in Tips and Tricks