David Chandler's Journal of Java Web and Mobile Development

  • David M. Chandler

    Web app developer since 1994 and Google Cloud Platform Instructor now residing in Colorado. Besides tech, I enjoy landscape photography and share my work at ColoradoPhoto.gallery.

  • Subscribe

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 223 other followers

  • Sleepless Nights…

    May 2006
    S M T W T F S
  • Blog Stats

    • 1,029,897 hits

Archive for May 24th, 2006

Real-World JSF Training Sep 25-26 Atlanta

Posted by David Chandler on May 24, 2006

I’ll be offering Real World JSF with Facelets in Atlanta this Fall, tentatively Sep 25-26 in Alpharetta. The two-day course is hands-on with your own laptop and limited to 15 students. The course will get you started building JSF apps with myFaces and facelets using Eclipse with Exadel Studio (free plug-in).

We’ll move quickly through JSF basics (which will be very familiar to Struts developers) and on to solving real-world problems including

  • how best to use and scope managed beans as view controllers
  • best practices for implementing conditional UI controls
  • minimizing redundant code and improving safety with rich type converters
  • how to validate at the data type, component, form, or page level
  • dealing with the back button
  • securing your app against parameter tampering and forced browsing
  • writing custom tags and converters using facelets auto-wiring
  • adding components to the view programatically
  • exporting files from JSF views
  • using an action listener to implement method security checks
  • how to nest and validate form controls within data table rows
  • building a site layout with facelets templates
  • creating custom tags with facelets tag files
  • adding indirection to custom tags using composition components

If you want to be notified when the course is open for registration, please e-mail turbomanage@gmail.com. The cost will be $900, including materials and lunch both days. You should have some prior background in MVC Web applications development to get the most from the course.


Posted in JavaServer Faces | Leave a Comment »

JSF Tip of the Day: EL Conditional Operator

Posted by David Chandler on May 24, 2006

Do you ever need to convert a boolean value for output to Yes/No (in any language) as opposed to the default true or false that JSF renders? Here’s a nifty way to do it with a properties file and the JSF EL conditional operator. Create a properties file with keys for “true” and “false”. Example:


Then, in your view

<f:loadBundle basename=”path.to.your.properties.file” var=”msgs” />

<h:outputText value=”#{ (myBean.someBoolean==true) ? msgs[‘true’] : msgs[‘false’] }” />

Nifty, huh?


Posted in JavaServer Faces | 7 Comments »

%d bloggers like this: