Thursday, March 4, 2010

New Richfaces examples

We have created some new Richfaces examples for people to get started with. We had very simple goal in our mind when we created these example applications that the examples should be easy enough for people to understand and to see some most popular Richfaces components in use. We did not want to bore you all with yet another set of manuals. Instead there is a simple README if needed. All of these apps are tested with Richfaces 3.3.3.CR1 which has a partial support for JSF2. Richfaces 4.x series will have full JSF2 support.

Tic-Tac-Toe hardly needs an explanation and is the simplest of three examples. Please get the code from Pavol-Tictactoe-Code/ Here you see a4j:support and a4j:params in use with graphicImage and selectBooleanCheckbox and as well as examples of a4j:commandButton and Richfaces's Tab Panel, DataTable. This is JSF1.2 based and should run fine on both JBoss AS5 and Tomcat6.

Richrates converts Euros to about 30 foreign currencies and vice versa. The application gets data from European Central Bank on the fly. It is based on JSF2 and has been tested on JBoss AS6 M2 but it should run fine on Tomcat6 as well with proper jsf jars. Here you can see some JSF2 features in action such as bean annotation, implicit navigation. Richfaces components in use are Graph Validator, Calendar, Datagrid, Drag Indicator etc. Please see the code at Pavol-Richrates-Code/.



Ribber is Richfaces XMPP client. It is based on JSF2, Weld and Smack and has been tested on JBoss AS6 M2. Grab the code from Lukas-Ribber-Code Here you will see some JEE6 features in use such as javax.enterprise.event.*, javax.inject.* and Richfaces components in use are rich:tree, rich:jquery, rich:hotkey, rich:message, a4:push, a4j:poll. This app is quite cutting edge and if you have just started on CDI, this example will serve you well as well.

The complete credit for these apps goes to my team members Lukas Fryc and Pavol Pitonak. If you have any question, please free to join Richfaces User Forum.

5 comments:

Thomas Heute said...

Yes I have a question ;)

Do they work in a portal environment ? wink ;) wink ;)

Lukáš Vlček said...

Can I find any ExtendedDataTable example in any of these samples?

Prabhat Jha said...

Thomas,
I was going to write another blog on that. The last two examples (Richrate and Ribber) are JSF2 based and since PortletBrige's JSF2 support is still a WIP, it can not run at the moment but I will have the portlet versions as well.

Tic-Tac-Toe however works perfectly in JBoss Portal & EPP 4.3 but there seems some problem with a4j:loadStyle in GateIn which makes it work but looks ugly (cannot load css). I will post the example as soon as I have a work around.

Prabhat Jha said...

Lukas, these examples don't use EDT. Your names sounds familiar. ;-) What problem are you having and have you already tried forum?

Pavol Pitoňák said...

Hi, I put some screenshots of Tic-tac-toe and RichRates on my blog http://blog.pavol.pitonak.com/2010/03/new-richfaces-sample-applications.html.