Skip to main content

Blog Archive for mriem during November 2013

Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog In JSF 2.2 you have the ability to define a resource library contract so you can deliver a different experience on the basis of which user visits your website. This blog entry shows you how you can switch between a resource library contract on the basis of an EL expression. To show this off we define 2 CSS styles...
Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog Creating and using a composite component is very straightforward. 1. Creating the composite component 2. Using the composite component Creating the composite component <?xml version='1.0' encoding='UTF-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN...
Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog How can you create a custom validator and use it? See below! Creating the custom validator class package customvalidator;import javax.faces.application.FacesMessage;import javax.faces.component.UIComponent;import javax.faces.context.FacesContext;import javax.faces.validator.FacesValidator;import javax.faces....
Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog Last week I posted a blog entry where I urged people to join the JCP process to further JavaEE. In this blog entry I will list ways you can participate with a specification that could be part of the next JavaEE release (note the table below lists the specifications that were part of JavaEE 7). Spec Website...
Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog Jersey 2.4.1 has been released! See the release notes for more information. Or download it from here.
Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog Wondering how you programmatically create a flow and use it? 1. Create the Java annotated flow 2. Create the pages package flow;import java.io.Serializable;import javax.enterprise.inject.Produces;import javax.faces.flow.Flow;import javax.faces.flow.builder.FlowBuilder;import javax.faces.flow.builder....
Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog When I posted JSF Tip #32 - Override a JSF renderer Twitter user @john_waterwood asked me how you would define a new tag for an existing component and the overridden renderer. Well it is fairly easy, see the 2 steps below! 1. Create your renderer 2. Register it Creating your renderer package org.glassfish.jsf....
Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog In a previous blog entry I blogged about stateless JSF before, this time I will include the entire page so you can see how silly simple it actually is. And you can also go directly to Subversion to get the sample there. The entirely stateless page <?xml version='1.0' encoding='UTF-8'?...
Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog Say you have a problem with how a particular component renders and you want to do it a bit different. Well in JSF that is not a problem there is a hook-in that you can use to override how a renderer does it rendering. The sample below shows you how to do it. You will have to do 2 things. 1. Register your own...
Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog JavaEE 7 and Glassfish 4.0 were released a little while ago. What is in the future? Well, see the Aquarium blog for the latest Glassfish Roadmap. And that is it. Enjoy!