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

Writing you own converter is a pretty straight forward process. It really comes down to implementing the Converter API. Say you want to write a converter that will convert colors. Lets assume we support, "Red", "Green" and "Blue".   package color;  public class ColorConverter implements Converter {    public Object getAsObject(FacesContext context, UIComponent...
on Oct 4, 2012
How would you use the JSF DateTimeConverter? If you are working with dates you probably have had a need to display them in the correct format, or even had to parse them? Well, lets start off with using dateStyle. The example below will use the "long" date style as defined by the server Locale. Valid values are "default", "short", "medium", "long", and "full". <html xmlns:h="http...
on Oct 3, 2012
How do you use the JSF NumberConverter? If you are outputting a value, how would you show a currency code along with it? <html xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core">  <h:outputText value="#{user.income}">   <f:convertNumber currencySymbol="USD" type="currency"/...
on Oct 2, 2012
See what the JSF Validator API is about! The definition of a Converter according to the Converter interface:   Object getAsObject(FacesContext context, UIComponent component, String value)  String getAsString(FacesContext context, UIComponent component, Object value) The Faces Context is passed in so the converter can introspect various aspects of the request and response. The UI...
on Sep 21, 2012
Introduction to JSF Converters During the JSF lifecycle each input value needs to be converted. As such the JSF runtime allows you to write converters that will take care of that during request processing. Several standard converters are part of the standard JSF runtime. Note that the specification has been written with extension in mind so it is also possible to write your own converter...
on Sep 21, 2012
The following blog articles are part of the JSF Validator series Introduction to JSF Validators The JSF Validator API The LengthValidator The LongRangeValidator The DoubleRangeValidator The RegexValidator The RequiredValidator Writing your own Validator Packaging your JSF Validator Multiple component validation The BeanValidator The FacesValidator annotation
on Sep 17, 2012
In the previous blog entry titled "Writing your own validator" you learned how to write a validator and hook it up for validation. At that time we made it all work using the faces-config.xml file. There is however another way, which we will describe below!   package nohelloworld;  @FacesValidator(value="NoHelloWorldValidator")  public class NoHelloWorldValidator...
on Sep 17, 2012
Since JSF 2 it is also possible to use BeanValidation as specified in JSR 303. The following blog article describes how this JSR has been integrated within JSF 2. With the following JSF managed bean. public class UserInfo {    /**     * Stores the username.     */    private String username;    /** ...
on Sep 17, 2012

Java Patterns

        Launched the latest Easy-cassandra version, that come with improvements to manage multi-nodes. Use many node is very usefully in Cassandra because avoid bottlenecks, fault tolerance, elasticity.     After have multi-nodes in Cassandra, the next step is divide task between their. Secondly join the databases like only one ( reply all information among their...
on Oct 3, 2012
As this JavaRanch article by Mark Spritzler proofs, there seem to be some people that like to have a generic visitor pattern, so I decided to open source mine (LGPL), which lies around here on my disk for some time. Have fun using it, it is as simple as linking to: <dependency>    <groupId>eu.headcrashing.treasure-chest</groupId> ...
on Oct 3, 2012

Java User Groups

Much of my Tuesday at JavaOne 2012 was spent thinking about questions to ask the people I was going to interview, conducting the interviews, and trying to set up interviews for Wednesday. Late in the afternoon I attended the 2012 Duke's Choice Award Winners JavaOne BOF session, followed by the Duke's Choice Award Winners dinner. Today I interviewed: Mattias Karlsson, Java Champion, Stockholm...
on Oct 2, 2012
Oracle just give free ADF Essential on Glassfish, a streamline edition of ADF. An interesting thing is there are also OEPE (Oracle Eclipse Plugins) that have ADF inside. which the Jdeveloper edition is far more complete and rich. www.oracle.com/technetwork/developer-tools/adf ADF Essential is free for glassfish deployment, and with support US$ 1250/server (/core??), and you will get the source....
on Sep 29, 2012
Meruvian's blog is here.. yes, in java.net now. This is because we believe that we will get more attraction if blog here. and we are blogging in English here. We also have our own blog server power by Apache Roller, take a look http://blogs.mervpolis.com. The main reason we blog here, to promote what is Meruvian and the work around Meruvian. A lot of friends asked about how can Meruvian survive...
on Sep 21, 2012

Java Web Services and XML

SOAP and/or REST and/or WebSockets Table of Contents 1 Intro 1.1 BOF6984 : SOAP and/or REST and/or WebSockets 1.2 disclaimer 1.3 JavaOne / Oracle 1.4 other WebSockets presentations 1.5 other WebSockets presentations 1.6 other SOAP presentations 1.7 other REST presentations 1.8 other REST presentations 1.9 discussion points 1.10 discussion points 1.11 discussion points 1.12 discussion points...
on Oct 2, 2012

NetBeans

STUPIDITY is the next level to INTELLIGENCE Anonymous INTRODUCTION Ladies and Gentlemen, right now the web is really living an exciting time. Even in my craziest dreams, I would have never thought that one day I would have the chance to write this blog post and to share with you the story of how I was able to build for my web application, a virtual editor that can run in the cloud and that can...
on Oct 1, 2012
I chatted briefly with consultant Anton Epple (@monacotoni) at JavaOne 2012 on the topic "Java/JVM technologies and your involvement in them": Kevin: What's great that's happened recently? Anton: JavaFX Canvas and NetBeans Project EASEL Kevin: What are you working on right now that's exciting? Anton: Angry Nerds for JavaFX Kevin: Some months from now I hope/plan to: Anton: Release a nice...
on Oct 1, 2012
I chatted briefly with Sven Reimers at JavaOne 2012 on the topic "Java/JVM technologies and your involvement in them": Kevin: What's great that's happened recently? Sven Reimers: JavaFX running on Raspberry Pi! Kevin: What are you working on right now that's exciting? Sven Reimers: FX UI for NetBeans Platform Kevin: Some months from now I hope/plan to: Sven Reimers: Release FX UI for...
on Oct 1, 2012

Embedded

A simple question that immediately responds: “No, we do not need it.” If it is possible, however, is quite another matter. Really, it is an interesting challenge changing the interface of the calculator in a way that can attract and impress the user of perhaps one of the most widely used and useful software in an operational environment. Over the years, the calculator’s user interface has...
on Sep 28, 2012

Java Desktop

by Raymond Roestenburg and Rob Bakker, authors of Akka in Action Save 40% on Akka in Action and other selected books. ScalaTest is a xUnit style testing framework. An actor is an object that can be reached through an address, processes messages from a mailbox and sends messages to other actors using the same type of addresses. An actor encapsulates state; it does not share this state with...
on Sep 28, 2012

Java Communications

by Florian Müller, Jay Brown, and Jeff Potts, authors of CMIS and Apache Chemistry in Action Save 40% on CMIS and Apache Chemistry in Action. Use promo code 12netja when you check out at manning.com Enterprise Content Management (ECM) repositories often have a lot of types defined, sometimes hundreds in extreme cases. This means that there needs to be a way to organize and retrieve them in a...
on Sep 19, 2012