On Java Development

All things related to Java development, from the perspective of a caveman.

Archive for the ‘Java Server Faces’ Category

Use Spring to load a SelectOneMenu

without comments

Introduction

This post shows how to use Spring to load a JSF SelectOneMenu component. The values for the menu are placed into a simple POJO by Spring which is then referenced by the SelectOneMenu component for loading.
Read the rest of this entry »

Written by admin

December 10th, 2014 at 11:17 am

RichFaces Data Tables

without comments

Introduction

This post presents information about the coding needed to present data using a RichFaces Data Table.
Read the rest of this entry »

Written by admin

November 21st, 2014 at 9:09 am

A ManagedBean Class Template

without comments

Introduction

This post presents what amounts to being an empty Java class designed to act as a starting template for a Managed Bean that is associated with a JSF page. This post highlights the parts that are common to classes of this nature and a few of the not-so-obvious aspects of coding Managed Bean classes.
Read the rest of this entry »

Written by admin

July 2nd, 2014 at 8:55 am

Display Pop-up Dialog on Table Record Select

without comments

Introduction

This post illustrates how to present a Rich Faces popup panel when a record in a Rich Faces data table is selected. There’s a lot going on in this process. This post will break down the events that occur to show it isn’t all that complicated.
Read the rest of this entry »

Written by admin

May 29th, 2014 at 5:02 am

Properly Displaying Messages Using an Error Message Dialog

without comments

Introduction

This post illustrates the use of the error message dialog that is contained in baseproject. It is designed to be displayed when exceptions occur during processing.
Read the rest of this entry »

Written by admin

March 31st, 2014 at 4:57 am

Using the RichFaces Calendar

without comments

Introduction

The calendar component ensures error free entry of dates in a predictable way. This post presents two examples of using the RichFaces calendar component with its dedicated managed bean, included in baseproject.
Read the rest of this entry »

Written by admin

March 27th, 2014 at 10:51 am

JSF 2.0 Page Navigation

without comments

Introduction

This post shows how to perform page navigation using JSF 2.0 and above, which is much easier than it was using earlier versions.
Read the rest of this entry »

Written by admin

March 26th, 2014 at 9:56 am

Facelets Templating

without comments

Introduction

This post is about Facelet templates that are used to define page composition. Templates makes it possible to reuse page segments such as the page’s banner or header. When used throughout the web application’s pages, Facelets simplifies the task of page design, provides the means to apply changes in a single place that can propagate across all pages and helps to ensure a consistent layout from page-to-page.
Read the rest of this entry »

Written by admin

February 1st, 2014 at 10:25 am

JSF Resources

without comments

Introduction

Since the release of JSF 2.0 in July of 2009, JavaScript files, Cascading Style Sheets (CSS), images, and other files are placed into a resources directory in the root of the web application. For a Maven based application, this is the src/main/webapp/ directory. Sub-directories under this directory are referred to as libraries. Any library can be created there, and the libraries for css, images, and javascript are the common ones.
Read the rest of this entry »

Anatomy of a Web Application

without comments

Introduction

This post is for the reader who is curious about the architecture, components and technologies that make up a web application.
Read the rest of this entry »