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 


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

Databases

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
by Dan McCreary and Ann Kelly, Authors of Making Sense of NoSQL Bigtable systems are important NoSQL data architecture patterns because they can quickly scale to manage large data volumes. They are also known to be closely tied with many MapReduce systems. In this article from Making Sense of NoSQL, the authors discuss how Bigtable systems store data using row and column keys and how they...
on Sep 10, 2012

Community

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
Creating a Reusable Service (by Jos Dirksen, Author of "SOA Governance") August 29, 2012 Manning Publications Co. Having a standard-based search engine as an access point to your service is a good way to improve the reusability of your service. In this article based on chapter 4 of SOA Governance in Action, author Jos Dirksen presents you with a couple of guidelines that can help you in...
on Sep 5, 2012

J2EE

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
Writing your own validator is a straightforward process. It involves implementing the Validator API and making sure you register it properly. Say you want to write a validator that will not allow you to use the string "Hello World" as a value.   package nohelloworld;  public class NoHelloWorldValidator implements Validator {        public void...
on Sep 9, 2012
Say you want to make sure that a value is required. <html xmlns:h="http://java.sun.com/jsf/html"  xmlns:f="http://java.sun.com/jsf/core">  <h:inputText value="#{user.firstName}">   <f:validateRequired/>  </h:inputText> </html> If you want to disable the RequiredValidator on a page you can...
on Sep 7, 2012
If you want to validate input against a regular expression then you would use the RegexValidator. Say you want to make sure only letters are used for a name. <html xmlns:h="http://java.sun.com/jsf/html"  xmlns:f="http://java.sun.com/jsf/core">  <h:inputText value="#{user.firstName}">   <f:validateRegex pattern=...
on Sep 6, 2012
Just like the LongRangeValidator before the DoubleRangeValidator validates if the given value is within the given range, but then a range of doubles. Say you want to make sure your donors can donate as little as 1.00 but at most 250.00. <html xmlns:h="http://java.sun.com/jsf/html"  xmlns:f="http://java.sun.com/jsf/core">  <h:inputText value=...
on Sep 5, 2012

Testing

Acceptance Test Driven Development (ATDD) is a very effective development practice that essentially involves writing specifications in the form of documented and automated examples. These automated examples become automated acceptance tests that validate the features being delivered. The process of writing these examples encourages teams to focus on where the business value of a feature is coming...
on Sep 12, 2012

Programming

I hate adding lots of huge multi-JAR all-purpose common libraries to rather small projects! Huge footprint just for a single class is a side effect of many popular frameworks, unfortunately, due to rather coarse-grained modularity. So I started to publish some of my commons (LPGL'ed) code as single-class self-contained artifacts on The Maven Central Repository. You simple need a Range<T>...
on Sep 7, 2012

GUI

Swing is not dead, still. While a whole lot of evangelists try to talk it dead, it is still part of the JRE. While SWT is not, still. And while JavaFX is not, still. Dispite all hypes and rumors. It is not even declared to be deprecated or obsolete. So in fact, there is no other real alternative to Swing as long as the GUI must work solely with JRE means (I won't say AWT is an alternative). And...
on Sep 7, 2012

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. &lt;html xmlns:h="http://java.sun.com/jsf/html"  xmlns:f="http://java.sun.com/jsf/core">  &lt;h:inputText value="#{user.age}">   &lt;f:validateLongRange...
on Sep 5, 2012