http://www.flipkart.com/affiliate/displayWidget?affrid=WRID-136978840229968837 I always liked the approach Cay S. Horstmann takes in the examples in his Core Java books. He tries to follow good practices in all his examples which includes better naming […]
Factory Method pattern in Java
In my previous post about the Template Method pattern, I showed how one can leverage lambda expression and default methods. In this post I will explore about factory method pattern and see […]
Parsing XML using DOM, SAX and StAX Parser in Java
I happen to read through a chapter on XML parsing and building APIs in Java. And I tried out the different parser available on a sample XML. Then I thought of sharing […]
How to create ADF TreeTable programmatically?

Using ADF-BC to create ADF TreeTable is simple and straightforward, but doing the same without using ADF-BC involves a bit of work. Its not that its quite difficult but we would have […]
How to show links in ADF Messages

In ADF we show popup/inline messages using af:messages tag or popup messages using af:document. The actual code which populates the message is: The above code shows the message at INFO Severity. What […]
Runtime Polymorphism in Java

Quite a long time back I had written about Overriding v/s Hiding. In this post I would like to explain in brief with examples about Runtime polymorphism in Java. This post should […]
Understanding RowKey values in ADF TreeTable

For those working on ADF and using TreeTable or other Tabular components would have always wondered about this RowKey and lot of times many of the would have encountered the deadly NoSuchRowAvailable […]
Train Wreck Pattern – A much improved implementation in Java 8

Venkat Subramaniam at a talk today mentioned about Cascade Method pattern or Train Wreck pattern which looks something like: someObject.method1().method2().method3().finalResult() Few might associate this with the builder pattern, but its not the […]
Converting a List into comma separated value string in Java
We all have at least once in our coding life time done this: “Concatenate the elements of a List into a comma separated string”. And each time we have spent some time […]
A simple application of Lambda Expressions in Java 8
I have been trying to fit in lambda expressions in the code I write and this simple example is a consequence of the same. For those totally unaware of Lambda Expressions in […]