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

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 role to fulfill during the JSF lifecycle. Transient or not The setTransient method can...
on Oct 17, 2012
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 component needs to implement if it wants to participate in what is now considered full state...
on Oct 16, 2012
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 optimize your application to perform better. The next blog entry will describe one of...
on Oct 16, 2012
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
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 to register the converter in a faces-config.xml. To make it a redistributable...
on Oct 5, 2012
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

JavaOne

Mattias Karlsson (@matkar) is a Java Champion, JUG leader, speaker, consultant, software vagabond, and founder of the Jfokus Conference (@Jfokus, which will take place February 4-6 in Stockholm, Sweden). At JavaOne 2012, I had an opportunity to chat with Mattias about Jfokus, Java User Groups, and the state of Java in Sweden. My first question was something I've actually wondered about for...
on Oct 14, 2012
At JavaOne this year, I experimented with a new way of experiencing the conference. Rather than attending as many interesting sessions as I could fit in (as I've done in the past), I chose to focus on talking with some of Java's innovators and organizers who were present at the conference, and taking copious notes as the conversations proceeded. The result is that I now have in my possession a...
on Oct 10, 2012
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

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
Has been 1 year, after the Oracle vs Google saga, and I hear there will be appeal.. I am personally dunno what is appeal mean, i know sex appeal. huahua.. yes, I try to learn another tech and dedicate my time less to Java, touching NodeJS, try-ing Cloud, and yes, spending my time to my old hobbyes far become computer came to my life, fish tropical breeding. I live in emerging country, which...
on Oct 12, 2012
Meruvian is founded as a mix need between a legal entity for JUG Indonesia movement and also JENI (Java Education program founded by Ministery of Education) and a small project between Frans Thamura and Kompas (the biggest newspaper in the country, regarding OpenSource alternative to Microsoft solution which it is Sharepoint, we use Alfresco - the project lead by Rene -- and cannot related to my...
on Oct 12, 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
R and Streaming by Alex Holmes, author of Hadoop in Practice A data scientist needs a way to be able to use R in conjunction with Hadoop and bridge the gap between Hadoop and the huge database of learnings that exist in R. In this article, based on chapter 8 of Hadoop in Practice, author Alex Holmes shows how you can use R in combination with Hadoop Streaming. With Hadoop Streaming, you can...
on Oct 10, 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