Skip to main content

Blog Archive for jhook during December 2006

I'm finding so much of Java's APIs to be extremely literal and long-winded at times. While this produces self documenting code, I'd still like to see some better ideas for the getter/setter shorthand than '->'. More on the topic here: Dion's Blog I'm of the opinion that if you are willing to make a commitment to closures, then we do the same for properties-- something similar to C#. Spending...
A lot of frameworks are building off of simple Annotations or dynamic invocation, basically extensions per Class instance. To avoid re-mining this data, we attempt to cache it. This works fine, except when we deal with hot deploys or restarts with statically scoped caches. Keeping reference to some classes/ClassLoaders after repeated restarts could quickly gobble resources. So I've been...
StateSaving in JSF is the uncle no one wants to talk about. You get a lot of things for 'free' with JSF, but for the most part, these features end up adversely affecting the state size of the view. JSF has two options for StateSaving: client and server (actually pluggable for anything you want). The basic rule of thumb is if you want to save memory, you go with client state saving-- pushing...
Part of Avatar for JSF was being able to make a single, lightweight request to the Server and actually receive multiple elements at once in a single HTTP Response. An example would be a single button that would force re-rendering of 5 different parts of the page with one AJAX request. IMHO, this approach is MUCH more efficient that all of these client-side event/observer systems that produce 4...
Facelets 1.1.12 was just uploaded to Java.net and includes many small bug fixes for JSF 1.1 (MyFaces 1.1.4) and JSF 1.2 (RI 1.2_03b5). Download Here This release is considered 'draft' until users call it stable for production use. More information is found over at Facelets' web site. Please give it a whirl and post any issues to the tracker or dev/user lists so we can push for another stable...