For starters please don't post your question twice.
Secondly, this is the
SEAMforum not Richfaces.
Ask your question on the Richfaces forum
The example in your link is good enough to do exactly what you want.
Also read this link
Spend a bit more time reading and you'll be able to do it. Learning your component library is much more valuable in the long run then having one of us just answer your question for you. You want to get to the point where you can answer your own questions because you understand what you are doing.