This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes JSF and the fly likes jsf richfaces rich, a4j tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "jsf richfaces rich, a4j tags" Watch "jsf richfaces rich, a4j tags" New topic

jsf richfaces rich, a4j tags

Mathew Lee
Ranch Hand

Joined: Jun 08, 2009
Posts: 238

I have not clearly understood the difference between

rich: and a4j: tags used in JSF richfaces. where we use which one and how. Any ideas, suggestions, links, resources, sample code highlyappreciated. tahnsk in advance.
Greg Charles

Joined: Oct 01, 2001
Posts: 2963

Hi ... you. Actually I don't know if I should call you gudim or gudi.

The rich: tags and a4j: tags are quite a bit different. The rich: tags provide GUI widgets like a calendar, menues, a pick list, suggestion boxes, modal dialogs, etc. The a4j: tags are involved with capturing events, creating AJAX requests, and rendering AJAX responses. There's really not much overlap between the two tag sets.

For links, I have the JBoss RichFaces Developer's Reference bookmarked, and I refer to it often. I also have the book "Practical RichFaces" by Max Katz, but I don't find that as useful as the online documentation. You can also Google for the Exadel RichFaces Demo pages, which show you some of the tags in action. I believe you have to register for the site, but it's free.

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17257

a4j and RichFaces started out as separate products. These days they are distributed as a unit. RichFaces functionality is built on the a4j infrastructure.

"a4j" stands for "AJAX for Java". Tags belonging to this namespace handle mostly low-level AJAX support. That is, they tend to be more functional than graphic. RichFaces is primarily about the UI. Aside from that, the only other difference is that the a4j tag chapters precede the rich tag chapeters in the RichFaces user's manual.

An IDE is no substitute for an Intelligent Developer.
wood burning stoves
subject: jsf richfaces rich, a4j tags
It's not a secret anymore!