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

Blog Posts by Community

• 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

When you developed a composite component the namespace you would be seeing would look like "http://java.sun.com/jsf/composite/xxxxxx". But what if you are not allowed to use it that way or you just do not like it, is it possible to change that? Yes it is possible. This blog entry shows you how. The composite component <?xml version='1.0' encoding='UTF-8' ?><!...
on Nov 22, 2013
In the previous blog entry we set the stage on how to package a composite component in a JAR. Now we are going to use it! Add the dependency to the POM         <dependency>            <groupId>org.glassfish-samples.jsf</groupId>        ...
on Nov 21, 2013
If you want to share a composite component between projects you should package it in a JAR. But how would you do it? Well it is pretty easy. First include the resources in the META-INF/resources directory. E.g. <?xml version='1.0' encoding='UTF-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/...
on Nov 20, 2013
In JSF 2.2 it is has been made easier to work together with a HTML designer. The page below exposes a traditional h:inputText and a h:commandButton using a more HTML 5 friendly way of doing this. <?xml version='1.0' encoding='UTF-8'?><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"      xmlns:jsf="http...
on Nov 19, 2013
In JSF 2.2 it is possible to define flows, one of the things you would want to do is to be able enter and to exit a flow. This blog entry shows you a sample on how you can enter a flow and also how to exit it properly. The page below uses a commandButton to enter the flow "enterexit" <?xml version='1.0' encoding='UTF-8' ?><!DOCTYPE html><...
on Nov 18, 2013
On the #jsf IRC channel Ryan asked how you can get it so the JSF runtime loads resource library contracts from the filesystem. This blog entry will show you how. BE AWARE this code is a proof of concept. To make it production ready make sure you sanitize incoming resource URLs thoroughly! The FilesystemResourceHandler public class FilesystemResourceHandler extends ResourceHandlerWrapper {...
on Nov 15, 2013
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><html xmlns="http://www.w3.org/1999/xhtml"   ...
on Nov 14, 2013
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, blue and red. The blue style body {    background-color: blue;} The...
on Nov 14, 2013
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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><...
on Nov 12, 2013
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.validator.Validator;import javax.faces.validator.ValidatorException;@FacesValidator(value...
on Nov 11, 2013
Jersey 2.4.1 has been released! See the release notes for more information. Or download it from here.
on Nov 9, 2013

Java Desktop

SBT in Action by Joshua Suereth and Matthew Farwell has been updated! Save 45% and just enter promo code 112113jn at manning.com. What else is new? Chapter 6, "Process & IO with sbt's libraries" has been added to the MEAP (Manning Early Access Program). Chapter 6 takes a look at how sbt allows you to run external processes easily, and how to combine them in a shell-like manner. You’ll also...
on Nov 21, 2013
In the previous post in this mini-series regarding the work I do on NASA Ground Systems, I showed some screenshots demonstrating data visualization.  The basic tech stack involves combining the NetBeans Platform with custom JavaFX views. This pattern provides some very useful "At-a-Glance" (AoG) displays associated with daily data product generation. AoG is typically appropriate, especially...
on Nov 20, 2013
So you need to build a visualization of data that must loaded and interface dynamically.  Good looks are important so you chose JavaFX but you are starting from an existing Swing based application.  No problem right?  But what if you have a lot of data to load into your Scene? How do you maintain a positive User Experience? Maybe you are using the NetBeans Platform because... well...
on Nov 13, 2013
As I get closer to deploying our 4th Operational Release of the Duke's Choice award winning GEONS Ground System Software I'm combining the NetBeans Platform with custom JavaFX views. This pattern provides some very useful "At-a-Glance" displays associated with daily data product generation. I'm fortunate to have access to quite a bit of complex and timely data much of which is custom to the...
on Nov 10, 2013

Global Education and Learning

This post introduces a new Java actor based open source sub-project of the project "Learning Actors in Java". This work will develop a premises guardian system. A premises guardian system is a distributed application whose purpose is to support the physical protection of premises such as office buildings, campuses, apartment complexes, shopping malls, etc. Protecting information...
on Nov 20, 2013
Remote systems cannot be ignored. They are the heart of actor programming. The ability of an actor application to smoothly scale out geographically is a tremendous advantage in meeting the challenges of growth. Today we will learn the basics of setting up for remote interaction between actors. If you wish to set up to try coding a set of remote actor systems and do not as yet have a...
on Nov 10, 2013

Embedded

In a just-completed poll, the Java.net developer community indicated that, while the Internet of Things (IoT) is something most have heard about, people are still evaluating what its impact is likely to be in the coming years and decades. A total of 124 votes were cast in the poll. The exact question and results were: What's your view on the 'Internet of Things'? 35% (43 votes) - It's going...
on Nov 15, 2013

Open JDK

Operators in Java work much like they do in mathematics, producing a value from one or more operands. An operand is any quantity on which an operation can be performed and in Java these include primitives and objects. Basic arithmetic operators in Java include addition (+), subtraction (-), multiplication (*), division (/) and the assignment operator (=), all of which constitute the binary...
on Nov 11, 2013

JCP

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 Mailing lists Issue tracker JavaEE spec tracker View View https://java.net/jira/browse/...
on Nov 10, 2013