Tag: Journeyman
Simple RESTful services in Glassfish Pt 2
In part 2 of this article, we are going to create a data driven web service that will return JSON and XML to the client, and then use jQuery to add a new item to the database and display it in our page.
Continue Reading...Injecting String Resource Services with CDI
In this post we looked at adding String resource bundles to our JSF applications to move our string constants into external resources that we can define for different locales. Now I want to extend that example to show how you can expand on that by using injection to access those resources.
Continue Reading...Releasing Maven Projects with Git(Hub) in Windows
In the process of moving some new and existing projects to GitHub and releasing them using Maven under Windows, I discovered a number of issues that can be tricky to get around. This post is for anyone else with the same problems, and for my own future reference. First off, most of these issues are […]
Continue Reading...Conversational CRUD in Java EE 6
This tutorial will demonstrate a pattern for creating CRUD applications in JSF and Java EE 6. While this is not the only way of implementing this mechanism, it does promote re-use and can give you essentially zero code CRUD pages requiring just the view code. The goal is to provide a single structure that provides […]
Continue Reading...Implementing User Selectable Themes In JSF
Prerequisites Install Maven Install the Knappsack Archetypes Many web applications offer users the option to change the appearance of user interface. One of the easiest ways to implement this is by offering different page color schemes by selecting different css style sheets. This article describes how to implement themes in JSF using CDI backing beans […]
Continue Reading...Using Composition in Object Modeling
Using composition over inheritance is a common design pattern that is often discussed in terms of designing business logic components. However, composition can solve a number of problems in domain object modeling that are created by relying on inheritance to share interface or functionality. Composition is used to delegate implementation in logical units by enlisting […]
Continue Reading...Codeless Ajax Ordered and Paginated Tables in Seam
(Update : fixed some of the missing images) One common code pattern that we find ourselves writing time and again is the ability to display tables which are paginated and sortable. Ideally, this is something we should try and be able to re-use throughout our application. Current Situation Let’s start by looking at where we […]
Continue Reading...Using Session Scoped Entities Locally in Seam
One of the problems faced by Seam users is the disconnect between the session scoped entity instances and using them in more local scopes. A good example is a session scoped User instance that is loaded when the user logs in and is outjected into the session scope. This user instance is available for the […]
Continue Reading...