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

Blog Entries by Topic

• Accessibility • Ajax • Blogging • Business • Community 
• Databases • Deployment • Distributed • Eclipse • Education 
• EJB • Extreme Programming • Games • GlassFish • Grid 
• GUI • IDE • Instant Messaging • J2EE • J2ME 
• J2SE • Jakarta • JavaFX • JavaOne • Jini 
• JSP • JSR • JXTA • LDAP • Linux 
• Mobility • NetBeans • Open Source • OpenSolaris • OSGi 
• P2P • Patterns • Performance • Porting • Programming 
• Research • RMI • RSS Feeds • Search • Security 
• Servlets • Struts • Swing • Testing • Tools 
• Virtual Machine • Web Applications • Web Design • Web Development Tools • Web Services and XML 


J2EE

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

Programming

My very first programming language was BASIC.  But the first time I ever thought I could do this for a living was when I discovered LOGO.  While the language itself didn't interest me in particular, I was fascinated by Turtle Graphics. If you're unfamiliar with Turtle Graphics, it's a pretty simple concept:  while traditional graphics paradigms involve an x/y coordinate system, where each pixel...
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

Databases

        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
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
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

JavaOne

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
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
Monday at JavaOne 2012 was a day of conversation for me - more listening than talking. As often happens at JavaOne, I heard lots, took lots of notes, launched the new Java.net "Lightning Interviews" series (tiny interviews suited for people who have only a minute or two to spare - see the first two, featuring Sven Reimers and Anton Epple), and spoke somewhat at length with Juggy (who was...
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

Community

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

J2ME

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