Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsf richfaces rich, a4j tags

 
Mathew Lee
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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
Sheriff
Posts: 2989
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Greg
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic