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

Blogs by topic: Java Enterprise

• 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

Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog The definition of a StateHolder according to the StateHolder interface:   boolean isTransient()  void restoreState(FacesContext context, Object state)  Object saveState(FacesContext context)  void setTransient(boolean newTransient) Each of the methods mentioned above have a particular...
on Oct 17, 2012
Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog Since state saving happens as part of the JSF lifecycle a component, validator, converter, etcetera that wants to participate in state saving can do so by implementing or using one or all of the below mentioned APIs. StateHolder PartialStateHolder StateHelper StateHolder This is the original API that a...
on Oct 16, 2012
Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog During the JSF lifecycle state will be restored at the beginning of a request (if any state is available) and state will be saved at the end of a request (if any state is available). Why is it important to know what happens during request processing? Well, if you know how JSF state saving works you can...
on Oct 16, 2012
Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog The following blog articles are part of the JSF Converter series Introduction to JSF Converters The JSF Converter API The NumberConverter The DateTimeConverter Writing your own Converter Packaging your JSF Converter
on Oct 11, 2012
Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog In the previous blog entry you learned how to write your own converter. Say you want to distribute this converter to others. How can you make sure the JSF runtime knows about the converter without needing to add it to the faces-config.xml of the web application. As described in the previous blog entry you need...
on Oct 5, 2012
Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog 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 {...
on Oct 4, 2012
Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog 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...
on Oct 3, 2012
Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog 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}"> ...
on Oct 2, 2012
Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog 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...
on Sep 21, 2012
Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog 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...
on Sep 21, 2012
Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog 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...
on Sep 17, 2012
Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog 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(...
on Sep 17, 2012
Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog 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.  ...
on Sep 17, 2012

Community

    Nowadays there are too many NOSQL database, with different architecture and data structure. However with much variety they share one thing in common: Only search information from the keys. A good option is uses other service to help the NOSQL databases. In this post will how the Lucene does work together a NOSQL database, join two world in one application.     The...
on Oct 13, 2012
Searching at Scale by Trey Grainger and Timothy Potter, authors of Solr in Action One of the most appealing aspects of Solr, beyond its speed, relevancy, and powerful text searching features, is how well it scales. In this article, based on chapter 3 of Solr in Action, the authors explain how Solr is able to scale to handle billions of documents while still maintaining lightning-fast search...
on Oct 12, 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

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

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

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