Skip to main content

Blog Archive for driscoll during September 2009

Just a reminder that while you are developing a JSF 2.0 project, you really, really, really should enable the Development Project Stage. Doing this enables better error messages, including in the client side JavaScript, at the cost of some performance. Enabling this is as simple as putting the below into your web.xml: <context-param>   <param-name>javax.faces.PROJECT_STAGE...
Today we're going to talk about two features of JSF 2.0's f:ajax tag: the event attribute and the listener attribute. The use of both of these is really, really simple - so I'll just briefly cover the basics, and then launch directly into the sample code. The "event" attribute of the ajax tag indicates which event to use to trigger the ajax request. There are any number of possible events...
I'll be speaking at the Herbstcampus next week, on topics such as JSF 2, JSF and Ajax, and Comet. If you're in Nuremburg next week, or just want to be, the conference looks pretty cool, come join us.
Even though it's considered bad practice, it's often handy to eval code in JavaScript.  And in my case, it was simply necessary, since the JSF specification requires eval of scripts. And it's also necessary to execute those evaluated scripts in the global scope. It's not as easy as it first looks. For our first naive implementation, we'd simply used eval(src) in our first pass at the...
The Open Ajax Alliance is a standards organization with the mission of ensuring interoperability within Web based Ajaxified applications. One of their standards relates to intercomponent communication - the ability to subscribe and publish messages which can then be picked up by code written by other authors. Please note that if you don't have an interest in Open Ajax, this post may not be...
I've had a few requests on how to write a busy status indicator - 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 about two hours today, and did just that - including putting it into a component so it's reusable. As usual, it involved no Java, and only a minimal amount of JavaScript. First, I needed...
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. So, instead of having to either bundle code into an <eval> tag, or using an event to execute it later, you can now simply say something like: <script type="text/...