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]  


Global Education and Learning

In this post we will be looking at code for a system designed to integrate all of the devices used to provide surveillance and security to extensive physical premises such as malls, campuses, and industrial parks. The approach I am taking involves the actor paradigm and the Java programming language. The selection of actors for this type of application is based on a number of...
on Nov 30, 2013
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

Java Tools

If the results of the just-completed Java.net poll are at all representative of the broader Java/JVM community (our polls are not scientific, of course), the indication is that Java/JVM developers like staying pretty much up to date when it comes to their IDE. A total of 159 votes were cast in the poll, which ran for two weeks. The exact question and results were: How frequently do you...
on Nov 29, 2013

Java Enterprise

In the previous blog entry we touched upon packaging a custom converter. Now we'll describe what you need to do to use it. Add the maven dependency to your project.         <dependency>            <groupId>org.glassfish-samples.jsf</groupId>      ...
on Nov 27, 2013
Just like a composite component you might want to distribute a converter, but how would you package it? Easy, read the rest down below! The converter package customconverter;import javax.faces.component.UIComponent;import javax.faces.context.FacesContext;import javax.faces.convert.Converter;import javax.faces.convert.FacesConverter;@FacesConverter(value = "customConverterId")public...
on Nov 26, 2013
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

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

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