Tag Archives: JSF

New book on Apache MyFaces coming up!

For over a year I have been working on a book about the Apache MyFaces project for Packt Publishing. The book is nearing completion and is expected to be released February 2010. The book will be covering the Tomahawk, Trinidad, … Continue reading

Leave a Comment

Oracle ADF: set focus to input field in data table

At my current client we had the first user acceptance test of a new Oracle ADF application. We have a lot of data entry pages in our application, where database records are presented in editable tables. Each table has a tool bar, with a “Create new record” button on it. One of the things the users noticed during the test, is that when they created a new record, the new record showed up in the table and was selected, but the first input field in the record didn’t have the input focus. I looked for a setting in ADF to set the input focus after creating a new record, but didn’t find anything. So I created my own solution…

Continue reading

Leave a Comment

Apache MyFaces Extensions Validator introduced

In a typical Java EE web application, there’s almost always the problem of where to put the validation. Of course there’s only one place where validation belongs: in the model. So if you’re e.g. using EJB as persistence layer, the EJB Entities is where the validation code belongs. However, from a usability point of view, one never wants to leave all validation out of the UI code. This often leads to duplicate validation code. While not ideal, duplicate validation code is often considered as inevitable.

Yesterday I stumled upon Apache MyFaces Extensions Validator (a.k.a. ExtVal, formerly sev-en), a JSF based solution that looks very promising. I did not have a chance to try it myself yet, but it promises some nice things:

Continue reading

Leave a Comment

Patch for debug bug in Facelets

Are you still using JSP as view technology for you JSF pages? You shouldn’t! Although not an official standard (yet), Facelets offers many advantages over JSP. Facelets adds templating and an easy way to create ‘composition components’, just to name two of the most important benefits.

Another very useful feature is the debug option. By just adding something like

<ui:debug hotkey="p" rendered="true"/>

to your page, you can now display a debug window at runtime by just pressing CTRL + SHIFT + P in your browser window. Unfortunately, there’s a little bug in this debug window, preventing one of the expandable sections to expand.
Continue reading

Leave a Comment