Skip to main content

Blog Archive for driscoll during August 2009

A nice feature of Facelets is the ui:repeat tag, which iterates over a supplied list of values to do a full list on your page. One problem: it'll add an index to the generated id's, which can make using it with Ajax a bit of a drag. But if you're just using the f:ajax tag, that index is detected automatically, making ajaxifying the tag relatively easy. Here's a quick example: Say you want to...
A recent user question, which has been repeated enough times to warrant a blog posting. In short: Why am I losing focus when I use the <f:ajax> tag? Let's imagine you have a form, with two input fields and two output fields: <pre>   1 &lt;h:form&gt;   2 &lt;f:ajax event=&quot;blur&quot; render=&quot;@form&quot;&gt;   3...
In my last blog entry, I went over getting a YUI widget working on JSF2. This time, let's go over what's required to move that widget into a JSF component. No Java required, but a fair bit of JavaScript. In a lot of ways, this is just like other components that I've written about. The tricks are much the same - saving values into a JavaScript context. Including scripts into the component,...
If you're not developing JSF with third party component libraries, you're really missing out on the best part of JSF. But there's lots of Ajax widgets out there, which contain all kinds of useful functionality. Wouldn't it be useful to use those within your JSF pages? The Yahoo UI library is pretty nifty stuff, and the Calendar widget is useful, pretty, and powerful. Let's wire it into a JSF...
About a year ago, I gave a talk at JavaOne (and blogged about) writing a Comet powered TicTacToe (naughts and crosses to you Anglophones) game using the Grizzly Comet APIs. In preparation for writing a Comet app with JSF 2, I thought I'd revisit that application and update it to use the newest Atmosphere APIs. Atmosphere is a multiplatform Comet framework that allows you to write once, run...