Added MyFaces example for question
http://stackoverflow.com/questions/25180621/jsf-uirepeat-issue-with-adding-an-object-to-cart