"Simple Software"

OcpSoft

» How to JSF 2.0: – render components outside of the form

May 10th, 2010 by Lincoln

Here’s a simple tip for all of you AJAX lovers using JSF 2.0. It is possible to render components that live outside of the form where your AJAX tag lives; actually, it’s possible to render any component by using it’s fully-qualified component ID.

Just prefix the target ID with the naming-container separator character, usually “:”, and provide the full name of the component as it is rendered on the HTML page.

<f:ajax execute="validatePasswords password @this" render=":messages" />

Continue reading this article »

Posted in JSF2, Seam | 12 Comments »

» JSF 2.0 Cross-field Form Validation – Simple in Reality

May 5th, 2010 by Lincoln

I’d like to start by saying that using JSF by itself can sometimes feel trying to pull your own teeth out with a pair of tweezers, but there’s hope. JSF was designed to be a platform of extensions – a foundation for building web-frameworks, and that it’s done very well. JSF 2.0 addresses most of the concerns about usability (so there’s less tooth pulling,) and provides even more extensibility. That’s where Seam Faces comes in, that’s where PrettyFaces comes in.

On many occasions you might find yourself needing to compare the values of multiple input fields on a given page submit: confirming a password; re-enter password; address lookups; and so on. Performing cross-field form validation is simple – just place Seam’s <s:validateForm> component in the form you wish to validate, then attach your custom Validator.
Continue reading this article »

Posted in Java, OpenSource, Seam | 4 Comments »

» Seam Faces 3.0.0.Alpha3 – JSF 2.0 just got even easier!

April 23rd, 2010 by Lincoln

Ever wondered why JSF doesn’t support bean @Inject-ion in Converters or Validators? Ever wondered how to listen to a single PhaseEvent or ComponentSystemEvent, or filter on events by componentId, or view? Ever wondered why you can’t just @Inject FacesContext, or NavigationHandler?

Well… now you can, with the brand-new, just-out release of Seam Faces — 3.0.0.Alpha3

<dependency>
 <groupid>org.jboss.seam.faces</groupid>
 <artifactid>seam-faces</artifactid>
 <version>3.0.0.Alpha3</version>
</dependency>

Continue reading this article »

Posted in Java, Seam | 45 Comments »

» PrettyTime 1.0.6 Released – New Languages, Thread-Safety

April 20th, 2010 by Lincoln

OcpSoft PrettyTime is an open-source time-formatting library for creating human-readable timestamps like, “in 3 minutes,” or “moments ago.” — intuitive, easy, extendable. Visit the home page to download and learn more about using PrettyTime. New features in this release: Thread Safety, Java 1.5 compatibility, extra languages. Continue reading this article »

Posted in Java | 2 Comments »

» Using Embedded Glassfish with Maven

March 23rd, 2010 by Lincoln

Three steps to add Embedded GlassFish to any existing project POM.

The Embedded Glassfish project is hosted on java.net, and as it is described, is very simple: “This project develops APIs and tools around “embedded GlassFish v3″. Embedded GFv3 is a delivery vehicle of GFv3 so that applications and tools can use GFv3 just as a library, inside their JVM, instead of having GFv3 as the overload of the entire JVM process. (And no, embedded GFv3 is not meant to be run on JavaME.)”
Continue reading this article »

Posted in Java, OpenSource | 10 Comments »

» Why doesn’t (JPA, JMS, JTA, EJB, JSF, CDI) work? JEE is “Too Complicated”

March 17th, 2010 by Lincoln

First, before reading this – you’re going to be upset with me. You’re going to disagree. I know — it’s OK. You may not even believe me, but you might keep reading because anger inspires action.

Continue reading this article »

Posted in Java | 82 Comments »

» One year’s time

January 28th, 2010 by Derek

It is amazing what can be done in exactly one year’s time.  January 17th will have been the 2nd anniversary since Lincoln Baxter and I started OcpSoft.  It’s been one seriously fun, and wild, ride with JavaServer Faces and the open-source community.  I want to take a moment to talk about my partner’s success story and what he has accomplished in just one short year.

Continue reading this article »

Posted in JSF, JSF2, OCPSoft, OpenSource, PrettyFaces | 1 Comment »

» JSF 1.2 Components (Book Review)

January 20th, 2010 by Lincoln

As a vocal blogger, I feel responsible for promoting and sharing the good work of others, whether that be technology, creative work, or in this case: a book. I will take no exception to that philosophy when it comes to the JavaServer Faces framework. For a quick read, try the summary. If you are intrigued, read on! I hope you find this review valuable.
Continue reading this article »

Posted in JSF2, OpenSource, Technology | 1 Comment »

» What a wild ride – My journey through OpenSource / JSF

December 19th, 2009 by Lincoln

It was about one year prior to this article that I wrote “JSF2 is in good hands”, in which I spoke about the upcoming release of JavaServer™ Faces 2, and how the community had changed immensely in the few years I’d been using the tool. There were changes I wanted to make, and started making them by publishing an open source extension called PrettyFaces.

PrettyFaces lets you map Pretty URLs to any resource within a JSF-based web-application (eg: /example -> /faces/examples/page.xhtml). While this is stuff that other web-frameworks have been doing for years, (WordPress, Rails/Grails, etc) it’s stuff that has traditionally been hard using JavaServer Faces – until around November 2008, when the first release was published.

Now, I’m relatively new to this arena – I entered the open source community for the first time about four years ago, working on PHP and Perl modules. I’ve been using it, and appreciating it, for almost my entire life in the industry, but never giving back. I suppose one question that many people ask is, “Will working on open source software get me anywhere in my career?”
Continue reading this article »

Posted in JSF2, OpenSource | 5 Comments »

» A winter tale of Java Server Faces

December 14th, 2009 by Lincoln

As a member of the JSF 2 expert group, I’ve stated that my primary goal is to make JSF, and J2EE, more accessible to the community at large, to reach out and make sure that people’s voices are heard, and that what we are doing makes sense. I’ve only been part of the group for a little under a year, but I’ve met some pretty cool people, and you’d be surprised at how interested they all are to hear your story.

Here’s an email from David Geary (a long-time EG member) to the Expert Group, that I think paints a very nice picture of people’s reaction to JSF and JSF2, author of Core Java Server Faces (Core JSF):
Continue reading this article »

Posted in JSF2 | 2 Comments »

| Older Entries »

Search

Recent Posts

Recent Comments

OcpSoft Agile Management

Recent Tweets:

Posting tweet...

Sponsored By:

Resources

Meta