Category: QuickBytes
Comparing Constants Safely
When comparing two objects, the equals method is used to return true if they are identical. Typically, this leads to the following code : The problem here is that whether intended or not, it is quite possible that the name value is null, in which case a null pointer exception would be thrown. A better […]
Continue Reading...Fading in Primefaces Components
I was trying to fade in a Primefaces panel component that was initially hidden and found it to be somewhat of a struggle. After a bit of googling, the only thing I found out was that I wasn’t the first to come across the problem. Here’s the basic JSF code to use an effect on […]
Continue Reading...More Time Saved By Unit Tests
So I’ve been meaning to make a fix in one of my projects for a while, and I haven’t touched the code in over a year, so of course I have to go back and really get back up to speed with the code. The change was for the Datavalve project and it was to […]
Continue Reading...JSTL 1.2 Missing From Maven Repositories
It seems in the last few weeks or so the Maven JSTL dependency has vanished from at least the central repository. This has caused a number of issues around the web.
Continue Reading...Update
I haven’t been writing for a while since I’ve been busy working on several things right now. First off, after a few months of job hunting, I’ve changed jobs, I’m now doing some Java contract work down in Pittsburgh. After 11 years at my old job, it was time to move on. The great thing […]
Continue Reading...Google is just looking out for the folks
I noticed this little nugget in the Google Analytics FAQ : Due to user privacy concerns, Google Analytics doesn’t report on personally identifiable information, including a visitor’s IP address. Is this the same Google that will take a picture of you in your own home from 20 feet away, post it online, and tell you […]
Continue Reading...JBoss Java EE 6 spec dependency in Maven
Adam Bien wrote about the Troubled with the crippled Java EE 6 APIs in Maven and a solution for them. Another solution has presented itself now that JBoss has finalized the Java EE 6 spec pom and added it to their public repositories as of early January 2011. You can include the spec in your […]
Continue Reading...Read All About It!
I dusted off my PHP skills and added a new custom wordpress page to list all articles for a set of tags to create a kind of index page. The articles are grouped by tag and ordered by date so you can see the whole library of articles and tutorials. You can also find the […]
Continue Reading...JBoss 6.0 CR1 is Released
JBoss has put out a CR1 release for JBoss 6.0 which implements the Java EE 6 specification. I don’t normally cover product releases, but I thought I may as well mention it since nobody else has (not even their blog). I only found out when I was sniffing around in their Maven Repositories and found […]
Continue Reading...CDI @Alternative Info
The @Alternative CDI annotation allows you to have multiple matching dependencies for a given injection point. This means you can define beans that provide implementations for the same interface without worrying about ambigious dependency errors. When you mark a class with the @Alternative annotation, it is effectively disabled and cannot be considered for injection. The […]
Continue Reading...