Laurentiu Trica schrieb: > Hi Werner > > As far as I read, the <ui:repeat> iterates a list and puts a value at a > time in the var. > Should this work in my case? I just need to make an alias for a bean on > my page. > I didn't quite understood how to push the component definition into the > xml. > > Thank you for your time. >
Ok I am somewhat sorry, you have to get the code out of your file, I just looked over the facelet docs again, as it seems there is no way to extract parts of the page as components from a page only one xml file per component is allowed. I personally see it is a minor inconvenience if aliasbean does not work for you. Rip out your reusable code into a separate xml file doing a ui:composition add an entry to your facelet xml for the component so that you get your own tag and have the aliases as attributes here is an example doing exactly this (in the second part of the article-Breaking the DRY principle) http://www-128.ibm.com/developerworks/java/library/j-facelets/

