Java, JVM and beyond
Exploring the realm of Java language
  • Home
    • About
  • Java 8
  • Java
  • Scala
  • Design
  • Books
  • All Things

Parsing XML using DOM, SAX and StAX Parser in Java

By Mohamed Sanaulla On May 23, 2013 · Leave a Comment

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 it on my blog so that I can have a reference to the code as well as a reference for anyone reading this. [...]

Continue Reading →

How to create ADF TreeTable programmatically?

By Mohamed Sanaulla On May 20, 2013 · Leave a Comment

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 to build the data in the format expected by the ADF TreeTable. In this post I will show you how the data structure [...]

Continue Reading →

Book review: The Object-Oriented Thought Process

By Mohamed Sanaulla On May 19, 2013 · Leave a Comment

If you were to ask me a book to understand the Object oriented concepts in a practical way- I will surely recommend “The Object Oriented Thought process”.

These are some of the good things I found:

the author tries to be independent of the programming language while explaining the concepts. You can see few Java [...]

Continue Reading →

How to show links in ADF Messages

By Mohamed Sanaulla On May 16, 2013 · Leave a Comment

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 if we want to add a link in the message we show? For that we would have to wrap the complete message [...]

Continue Reading →

Runtime Polymorphism in Java

By Mohamed Sanaulla On May 14, 2013 · Leave a Comment

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 have been written before Overriding v/s Hiding, but better late than never.

Let us [...]

Continue Reading →

Understanding RowKey values in ADF TreeTable

By Mohamed Sanaulla On May 13, 2013 · Leave a Comment

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 Exception.

In this post I will first develop a sample application using JDevelooper(11.1.2.1.0)which will create a treeTable and populate the data by [...]

Continue Reading →

Train Wreck Pattern – A much improved implementation in Java 8

By Mohamed Sanaulla On May 10, 2013 · Leave a Comment

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 same. Anyways lets have a look at an example for this in Java with out the use of lambda [...]

Continue Reading →

Converting a List into comma separated value string in Java

By Mohamed Sanaulla On May 7, 2013 · 3 Comments

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 figuring out how to do it or sometimes we copy the code from a previous implementation. Lets see how we can implement this [...]

Continue Reading →

A simple application of Lambda Expressions in Java 8

By Mohamed Sanaulla On May 2, 2013 · Leave a Comment

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 Java, I would recommend them to read this [...]

Continue Reading →

Template Method Pattern- Using Lambda Expressions, Default Methods

By Mohamed Sanaulla On April 24, 2013 · Leave a Comment

Template Method pattern is one of the 23 design patterns explained in the famous Design Patterns book by Erich Gamma, Richard Helm, Ralph Johnson and John Vlissides. The intent of this pattern is stated as:

Define the skeleton of an algorithm in an operation, deferring some steps to subclasses. TemplateMethod lets [...]

Continue Reading →
← Previous Entries
  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

  • Connect to us …

  • Coderanch

    Javaranch
  • Archives

    • May 2013 (9)
    • April 2013 (6)
    • March 2013 (6)
    • January 2013 (5)
    • November 2012 (2)
    • September 2012 (1)
    • July 2012 (5)
    • June 2012 (1)
    • May 2012 (4)
    • April 2012 (7)
    • March 2012 (2)
    • February 2012 (4)
    • December 2011 (2)
    • November 2011 (4)
    • October 2011 (2)
    • September 2011 (1)
    • August 2011 (1)
    • July 2011 (1)
    • June 2011 (1)
    • May 2011 (1)
    • April 2011 (1)
    • February 2011 (4)
    • December 2010 (3)
    • November 2010 (2)
    • September 2010 (2)
    • August 2010 (3)
    • May 2010 (2)
    • March 2010 (6)
    • December 2009 (1)
    • November 2009 (3)
    • July 2009 (6)
    • June 2009 (3)
    • May 2009 (1)
    • April 2009 (6)
    • March 2009 (1)
    • January 2009 (1)
    • December 2008 (8)
    • November 2008 (5)
    • October 2008 (6)
    • September 2008 (4)
    • August 2008 (8)
    • July 2008 (19)
    • June 2008 (29)
    • May 2008 (27)
    • April 2008 (11)
    • March 2008 (8)
    • February 2008 (22)
    • January 2008 (3)
  • Dzone MVB

  • Send To Readmill

    Send to Readmill
  • Recent Posts

    • Parsing XML using DOM, SAX and StAX Parser in Java
    • How to create ADF TreeTable programmatically?
    • Book review: The Object-Oriented Thought Process
    • How to show links in ADF Messages
    • Runtime Polymorphism in Java
    • Understanding RowKey values in ADF TreeTable
    • Train Wreck Pattern – A much improved implementation in Java 8
    • Converting a List into comma separated value string in Java
    • A simple application of Lambda Expressions in Java 8
    • Template Method Pattern- Using Lambda Expressions, Default Methods
  • Disclaimer

    Some of the links contained within this site have my referral id, which provides me with a small commission for each sale. Thank you for your support.

Platform by PageLines