I've been neglecting my blog, but just a quick note to mention that my latest talk at JavaOne, DSLs with Groovy, is posted up on Slideshare.
The talk's designed for someone with no significant Groovy experience (unlike most Groovy DSL talks), so if it's interesting to you, check it out.
I'm hoping (but not promising) to turn the talk into a series of Blog entries in the coming weeks. So if you...
Over the weekend, I was reading Mark Pilgrim's great book on HTML5 - and when I got to the part about the semantic tags, I thought it might be worth a quick mention.
In case you've missed out on HTML5 in general (and don't want to take the time to read that book I linked above), the idea behind semantic tags is that many sites use div blocks to mark out the same kinds of content, over and over....
JSF supplies progressive enhancement out of the box for many purposes. Here’s a quick tip on how you can enhance it.
In talking with Andy Schwartz before our recent talk together at Oracle Open World, Andy mentioned that he'd like to see some new components make it in to JSF 2.1.
I'd like to see that too - but what new components? To aid the discussion, I thought it might be handy to make up a list of components that I think would be handy for JSF - but please, don't take this as an endorsement of any...
I've had a few requests for request aggregation, ala RichFaces queues, in JSF 2.
This was deliberately not included in JSF 2.0, but it will be considered for JSF 2.1.
However, adding this functionality yourself isn't actually very hard. Here's an example of how.
How to write a Java-based custom JSF component that responds to the Ajax tag. Composite Components is still my favorite way to do things, but there are times when a custom Java component is the best strategy.
I've placed my slides for my JSF 2 and Ajax talk up on slideshare.
Check 'em out, and ask questions in the comments.
Just a short post to note that we've now shipped Mojarra 2.0.1. This version fixes a very serious bug when running on Tomcat. You can pick up the files from the usual places, see the release notes for more information.
If you're using GlassFish, and already running 2.0.0 (you leading edge adopter!), there's probably no reason to upgrade - though the new v3 (b69) has the updated jar, and it will...
Enabling this is as simple as putting the below into your web.xml:
In this entry, I discuss two more features of JSF Ajax support: the f:ajax tag's event attribute and listener attribute.
Web Development Tools
I've posted the slides for the talk that Andy Schwartz and I did at Oracle Open World up on Slideshare.
Check 'em out.
OpenAjax is an organization which has a specification detailing a standard way to do intercomponent communication on the client side of Web applications. While JSF 2 didn't adopt this standard into it's specification, it's easy enough to bridge the two. Here's some demo code that does just that.
I've had a few requests on how to write a busy status indicator in JSF 2 - you know, the little spinning ball that's there while an Ajax call is active, and which goes away once the request is complete. So, I spent a bit less than a couple hours today, and did just that - including putting it into a component so it's reusable.
A few weeks ago, I blogged about ways to execute scripts on the client which you were writing out from the server via Ajax. By popular demand, the latest build of Mojarra now allows execution of inline scripts.