Simple ADF Client-Side Component Use Cases: Kaleidoscope ’09 Report IV

Last week, I talked about the essentials for doing any client-side component manipulation, as described in Lucas Jellema‘s ODTUG Kaleidoscope 2009 talk, “That’s Rich! Putting a smile on ADF Faces.” This week, I’m going to talk about a couple of simple use cases for client-side programming that he demonstrated.

Before I do that, though, I should mention what I think is currently the most important resource for client-side programming: Frank NimphiusJavaScript Programming Nuggets page. That contains a lot of tips about ADF Faces RC client-side programming, and goes into a considerably higher level of sophistication than Lucas’ talk did (or this post will). But in case you find that a bit intimidating to start out with, here are three very simple use cases for client-side programming.

Continue reading Simple ADF Client-Side Component Use Cases: Kaleidoscope ’09 Report IV

How to Use ADF Client-Side Components: Kaleidoscope ’09 Report III

Two weeks ago, I compared a pair of talks I saw at ODTUG Kaleidoscope 2009, “That’s Rich! Putting a smile on ADF Faces,” by Lucas Jellema, and “Fusion Design Fundamentals,” by Duncan Mills. In particular, I contrasted the two opinions given of ADF Faces RC client-side (that is, Javascript) programming, and came down on Lucas’ side: Adding Javascript to ADF Faces RC applications, though it shouldn’t be overdone, can be very useful, and the usual risks attendant on Javascript programming are significantly mitigated if you develop exclusively to the ADF Faces RC Client-Side API (rather than attempting direct access to/manipulation of the DOM) and understand what validation in Javascript can and can’t do (provide convenience for the user and protection against honest user error and provide real enforcement of data integrity, respectively).

What I didn’t get a chance to do in that post was talk about the actual tips for client-side component manipulation that Lucas provided. I’m going to do this over the next couple of weeks. This week, I’m going to talk about the essentials for doing any client-side component manipulation. Next week, I’ll talk about some specific component manipulation use cases that Lucas went over in his talk.

Continue reading How to Use ADF Client-Side Components: Kaleidoscope ’09 Report III

Vote for my Oracle OpenWorld Presentation on Oracle Mix

So, I submitted a presentation, “The Rich Get Richer: Ultimate RIA with Oracle ADF Faces RC Client-Side Objects” to Oracle OpenWorld 2009, in San Francisco this October. The presentation is about performing tasks that usually require a partial round-trip, such as cascading dropdowns, conditionally visible content, etc., with no server round-trip at all. I talk a bit about this, on a very theoretical level, here (in the section, “Consider a Javascript-Only Solution,”) but I plan to go into considerably more detail, giving practical examples and advice, in the presentation.

The presentation did not make the cut of abstracts selected by Oracle. But if you want to see it at OOW, there’s still a chance! Just vote for the presentation on Oracle Mix (you’ll need to create an Oracle Mix account if you don’t already have one, but it’s free and a good way to meet people in the ADF community).

See you at ODTUG and/or OOW!

Shared Application Module Instance Tricks, Part II: Displaying Data

This is the second part of a two-part series about undocumented tricks with shared application module instances. Last week, I talked about calling methods (at the application module, view object, or view row level) from shared application module instances. This week, I’m going to talk about displaying data (in a non-LOV context) out of them. If you want a general overview of what shared application module instances are and why I think using them is a good idea (particularly at the application scope), look here.

Continue reading Shared Application Module Instance Tricks, Part II: Displaying Data

From Backing Bean to Managed Bean

What is a backing bean? Getting a consistent answer can be harder than you might think. For example, the NetBeans JSF tutorial claims that the two terms are synonyms. And NetBeans had its origin at Sun, so they ought to know, right? On the other hand, the official Java EE 5 Tutorial says that a backing bean “is a JavaServer Faces managed bean that is associated with the UI components used in a particular page.” That suggests that backing beans are a proper subclass of managed beans. And that’s straight from the horse’s mouth, at java.sun.com.

I think that the distinction made by the Java EE tutorial–that a backing bean is a particular sort of managed bean distinguished by its association with a particular page’s components–is a very useful one. But the tutorial also states that “A typical JavaServer Faces application couples a backing bean with each page in the application.” And that is where we part company.

Continue reading From Backing Bean to Managed Bean