Category: Tutorials
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...Binding Dynamic Multi-select Checkboxes with JSF
This tutorial looks at how JSF makes it easy to create a dynamic list of checkboxes that can be used to select values on the server. Given a list of strings, we want to display the list of values, each with a check box and be able to select or deselect that item from inclusion […]
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...CDI Conversations part 2
This article will look at using the Conversation scope defined in JSR 299 (Java Contexts and Dependency Injection), and released as part of Java EE 6. For now, we’ll stick to non-data driven examples as we explore the ins and outs of the Conversation scope. We’ll finish up by creating a workspace manager so we […]
Continue Reading...JSF Basics
This is a brief tutorial that takes a quick look at some of the very basics of JSF, how we define pages and hook them up to server side objects. Rather than cover the fundamentals of starting a new JSF application, I’m going to start from one of the Knappsack archetypes which can provide you […]
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...Create A New Project With Maven Archetypes
Prerequisites Install Maven In this tutorial, we will create a new project using the Knappsack Archetypes and compile and deploy it. For this example, we will use the jee6-basic-archetype. Before you begin, you will need to have installed Maven, but you no longer need to manually install the Knappsack Archetypes as they are in the […]
Continue Reading...Installing the Knappsack Archetypes
This is a brief guide to downloading and installing the Knappsack Maven Archetypes for Java EE 6.
Continue Reading...Accessing and Paginating CSV Files with DataValve
Prerequisites Install Maven Installing DataValve Into Maven While DataValve is mostly used with database driven back ends, this tutorial shows you how DataValve can turn a comma delimited file into a paginated list of objects that the user can page through. We will then use this data provider in a console application, a Swing application […]
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...