We were trying to build this Maven project in Travis CI and got a weird compilation error. After modifying the codes to explicitly define the exception types.
How to Add Android SDK in IntelliJ IDEA
This post demonstrates how to add an Android SDK in IntelliJ IDEA.
Modify XML Element Content in Java using XSLT
This post demonstrates how to modify some parts of the XML content in Java using XSLT. The example herein is rather straight-forward but will provide us a basic working codes before going further to learn the more advanced stuff.
Java, XSLT, and XML with Namespaces
When a XML uses namespaces, they need to be declared and used in the .xsl file so that the javax.xml.transform.Transformer knows how to deal with various elements in the XML. This post demonstrates how to deal with namespaces when performing transformation from or on XMLs.
Tomcat 8 and Java EE CDI
This post demonstrates how Dependency Injection works with Java EE CDI and Tomcat 8.We’ll display some text from a bean injected into our Servlet via CDI.
JSF – Check If User is Logged In with preRenderView
This post demonstrates how to check if user is logged in before the page is displayed to the user.
JSF – Get HTTP Session Attribute
This post demonstrates how to retrieve a attribute from an HTTP Session object in JSF 2.
JSF – Data Table Example
This post shows a sample usage of JSF Data Table to construct a basic HTML on a page. You can download the source codes from the GitHub link provided at the very bottom of this page.
Inheritance and Delegation Design Pattern Examples in Java
This post shows 2 sets of rather equivalent of Java source code files. One uses inheritance that enable child classes to inherit properties and methods from their parent classes. Another set uses the Delegation Design Pattern.
Java 9 Stream filter, takeWhile, dropWhile methods
This post demonstrates how to use the new methods – takeWhile and dropWhile – of the Stream interface in Java 9 Jigsaw. We’ll touch briefly on Stream.filter(Predicate p) just to get comfortable before trying out the new methods.