Skip to main content
View by: Most Recent | Topic | Community | Webloggers   
Monthly Archives:    

Blogs by Community: Java Enterprise

• Adopt a JSR  • Embedded  • GlassFish  
• Global Education and Learning  • Identity Management  • IoT  
• Java Communications  • Java Desktop  • Java Enterprise  
• Java Patterns  • Java Tools  • Java User Groups  
• Java Web Services and XML  • JavaFX  • JCP  
• JDDAC  • Jini  • JXTA  
• Mac Java  • NetBeans  • Open JDK  
• Portlet  • Robotics  • Sun Grid  
• Sun RFID and Sensor  • [no association]  


Java Enterprise

Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog In the previous blog entry a single resource library contract was applied. However did you know that you can stack them? We are going to add the following 3 layout contracts, desktop, tablet and phone. The desktop contract <?xml version='1.0' encoding='UTF-8'?><!DOCTYPE html...
on Nov 14, 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...
on Nov 14, 2013
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...
on Nov 12, 2013
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....
on Nov 11, 2013
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.
on Nov 9, 2013
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....
on Nov 8, 2013
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....
on Nov 7, 2013
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'?...
on Nov 6, 2013
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...
on Nov 5, 2013
Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog If you read the blog entry about migrating to @Named annotation you might wonder how you would migrate your @ManagedProperty annotations. Since CDI is a specification on its own, it does not deal with JSF specific artifacts. However with very little work you can have a very similar setup. First we define our own...
on Nov 1, 2013
Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog See the release notes for what was fixed. If you want to download it, see this page for more information. Enjoy!
on Oct 31, 2013
One of the newer features introduced in JAX-RS 2.0 is the support for validating resource classes with Bean Validation Bean Validation support comes in Jersey 2.x by adding jersey-bean-validation module to the class-path. The following sample shows how to use Bean Validation with JAX-RS 2.0. I show how to define a custom constraint which will validate any Enum class. Additionally I will show...
on Oct 30, 2013
Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog Since Mojarra is available as a standalone JAR you can opt to update your Glassfish installation with a newer version. How would you do that? Well it is simple. Make sure your Glassfish container is not running Grab the latest JAR from http://repo1.maven.org/maven2/org/glassfish/javax.faces/ Replace the javax....
on Oct 29, 2013
Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog Sometimes when you are working with JSF you might need to understand what is happening beneath the covers. It could be because you think a component is misbehaving and you want to make sure that is the case before you file a bug. To facilitate this you can turn the logging up and in Mojarra there are several...
on Oct 28, 2013
Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog If you are having a problem with your JPA queries and you are trying to understand what SQL queries it actually sends below the covers you can configure the JPA runtime to show the actual SQL statements it sends over. How? Well for EclipseLink you would add the following to your persistence.xml file.   &...
on Oct 27, 2013
Developing RESTful Services with JAX-RS 2.0, WebSockets, and JSON is the new book which Masoud Kalali and I have worked on and recently published. As the technology landscape moves focus towards smaller devices, the need for building scalable, flexible, lightweight, and real-time communications-based applications grows. HTML 5 and Java EE 7 provide a new synthesis of technologies that...
on Oct 18, 2013
I’ve been talking about JSF 2.2 new features out on the conference trail for quite a while now. I usually talk about the big three: Flows, Resource Library Contracts, and HTML5 Friendly Markup. This blog entry talks about another, mostly behind-the-scenes, feature: ClientWindow. I introduce the concept of ClientWindow and give a simple example illustrating one solution to a common web...
on Oct 7, 2013

JCP

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...
on Nov 10, 2013

Java User Groups

a little discussion in a television series here that i am the speaker. the topic is Java. The host, TV Excelence, said any update for Java and why Java is silence now. I said there are Java worlds which use Java but we cannot said it is Java, but use Java. 1. BigData with Hadoop under Apache , is a new ecosystem that based on Java. 2. Smartphone/Gadget with Android under Google with Apache...
on Oct 19, 2013
Silicon Valley Code Camp is one of the best known secrets and one of the best organized conferences in the Bay Area. I have the pleasure to speak at this conference for the past two years and am amazed at its growing popularity. Here are some statistics for this year 4500 registrations and registration was closed 230 sessions The Code Camp consists of these points: By and for the developer...
on Oct 6, 2013