malaguna’s boring blog

Using beforeShowDay From BackBean Values

| Comments

I have found some info and examples about using beforeShowDay attribute to enable/disable days in p:calendar component from PrimeFaces, it is easy and strightforward. But, these examples did not retrieve data from back bean, instead it calculate some conditions on JavaScript.

After some reviews on StackOverflow I found a great entry in Zenida’s blog, about how to do it.

However, this approach did not work on Chrome browser, neither Internet Explorer. So I started debugging and fixed some bugs. Now here you are with a complete solution valid for every browser.

Liquifying Your Project

| Comments

Sometimes, when you use Hibernate in a project, you rely on hbm2ddl utility, it is fast and seems a very nice feature to manage database. However, when the project starts growing up it comes more difficult to maintain. I suffered it recently in a medium size project (150 KLoc) and thus I decided to search for a better option.

After some research, I found Liquibase and now I am convinced it is the right way. In this post I am going to tell you how I use Liquibase.