Using the f:ajax tag can make doing ajax with a repeating tag like ui:repeat considerably easier.

More...