Why would you want to do that differently than you could do with dreamweaver? Plain dynamic html. But if you do want to do it differently use e.g. jquery (with richfaces)
Ronald, I'm developing with JBoss Tools and don't want to mix pure html code or Java Script code due to Standardization. It's a kind of exercise too.
P.S. I need some tips to work with the jQuery and RicFaces too.