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 


Web Applications

If you want to make sure a value is within given Long range then the LongRangeValidator is for you! Say you want to make sure your users are at least 13 but at most 18. <html xmlns:h="http://java.sun.com/jsf/html"  xmlns:f="http://java.sun.com/jsf/core">  <h:inputText value="#{user.age}">   <f:validateLongRange...
on Sep 5, 2012

J2EE

The LengthValidator is one of the standard validators that is specified by the JavaServerFaces specification. It allows you to verify (validate) if the proposed input (submitted value) on a given component is valid. Say you want to make sure the minimum length of a password is 6 characters and up to 12 characters. The example below describe how you would put this into a JSF page to make that...
on Sep 4, 2012
During the JSF lifecycle each input value can be validated. As such the JSF runtime allows you to write validators that will take care of that during request processing. Several standard validators 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 validator and hook it up for request processing...
on Sep 1, 2012
While I don't normally blog about the exiting world of JVM command line options, this new 7.0 option, which allows you to rotate to a new GC log file, was just so exciting... err... not so widely published that I decided to share. Of course these options only apply when you've used the -Xloggc: option. The settings are; UseGCLogFileRotation, default value: false NumberOfGCLogsFiles, default value...
on Aug 20, 2012

Programming

JSR 359 has been accepted by Java SE/EE executive committee a month back. Please see the specification request for the content of this revision of SIP Servlet 2.0 specification. We have established a java.net project for cordinating and communicating the progress of the specification. The work is about to get started. At the moment, the expert group is being formed and some of the leading...
on Sep 3, 2012

Web Design

The definition of a Validator according to the Validator interface: void validate(FacesContext context, UIComponent component, Object value) throws ValidatorException The Faces Context is passed in so the validator can introspect various aspects of the request and response. The UI component is passed in because the actual value will be stored in that UI component after it has been...
on Sep 3, 2012

Community

It eventually happened that I had to ensure that a class of mine is annotated in a particular way (I didn't want to bind the whole framework that uses the annotation just to ensure this single issue, as this was a unit test but not an integration test). So I wrote my own Hamcrest matcher with few pieces of reflection inside. Short time later I noticed that Hamcrest co-owner Nat PRYCE already did...
on Sep 1, 2012
10 years ago, we began our journey into the world of Java and "J2EE". It was a big risk for my company, Amway Corp, to do this. We had no in-house expertise and we had critical applications to migrate to the new technology. From the beginning, we were determined to succeed. Today, 10 years after; I can say our Java adventure has been very successful. We have created two complex applications and...
on Aug 17, 2012
A few years ago, we met with our business analysts to discuss security for our application. Our goal was to implement our own authentication mechanism for the web-based or user-interface portion of the application. We defined authentication security as "access rights to resources of the application". After some initial discussion, one of our business analysts suggested we look for an industry...
on Aug 14, 2012
When my company, Amway Corp, makes a sale; somewhere, somehow a computerized transaction of that sale is created. This transaction is sent to a number of applications at Amway for processing. One such destination is our Java application. We created a capability, called the Transaction Monitor (or TM) to deliver transactions to our app. Our initial version of the TM worked well, but it was still...
on Aug 10, 2012
During our 10 years of using Java at Amway Corp., some of our solutions required us to think a little "outside of the box". Our application had a reporting requirement. It had to generate reports from the application's various batch processes as they were running. These batch processes performed transaction processing, data purging and data exporting functions. The reports would not be used by...
on Jul 30, 2012
It never ceases to amaze me where some solutions in application development come from. We had a requirement for our application to allow a user to print pages of text. The user would bring up a web page, from our app, and then create & print a list of customer names. The list of names would be created by executing a SQL query against the database, using a variety of search criteria. The users...
on Jul 23, 2012
I’m someone who came to this field from a management, as opposed to technical, background. In an effort to understand this website and its users more fully, I am (slowly and painfully) teaching myself basic Java, reading every book handed to me, and jumping at the chance to attend any conference the Oracle Powers That Be will allow. One of my biggest hurdles has been the special technical...
on Jul 23, 2012

JavaOne

JavaOne 2012 is just 19 business days away! In previous years I spent the time to extract an HTML view from my google calendar to show where I would be during the week of JavaOne 2012. This year, I don't have the time to do that so I'm going to just post an image. Sorry for the degradation in usefulness. In previous years, I would have made this an image map with links to the actual sessions...
on Aug 31, 2012

Performance

In this post I introduce Samplr: an open source, intelligent sampling profiler that can be embedded in any Java application for automatic identification of performance bottlenecks Tools of the Trade If you read the Developer Power story in the July/August issue of Oracle Java Magazine, you already know that I love VisualVM. It is the best tool I know for inspecting the inner workings of a...
on Aug 6, 2012

J2SE

In a previous post I outlined some of the problems one has dealing with real-time, asynchronous data. Since I have been working on a library to handle those issues, I'll start to go through some of the design. The library is open source, and available at http://pvmanager.sourceforge.net. It's being developed and used in the EPICS accelerator control community, which comprises various...
on Aug 3, 2012

Accessibility

We began creating our second Java application five years after we began the first app. We were hoping the second application would give us a chance to use additional Java technologies. We began by gathering all of the known functional requirements and matched them to the various Java-related technologies we knew of. The result was a high-level technical architecture of the application. This...
on Aug 3, 2012

GUI

How many lines of Java do you need to create the following JavaFX application? (Answer: About 30, as seen in Hello World, JavaFX Style) And how many lines of (http://fxjs.java.net/) would you need? (Answer: See below) {T: fxStage, title: 'Hello World!',  scene: {T: fxScene, width: 300, height: 250,    root: {T: fxStackPane,      children...
on Aug 3, 2012
I am pleased to announce the release of SwingX 1.6.4. This release is small, fixing a few critical items and following the standard process of removing deprecated code. The main cause for this release was that SwingX 1.6.3 failed to correctly build the swingx-all sources and javadoc jars. Please let us know if you have any issues or concerns with this release. Karl
on Jul 23, 2012