myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Marinschek" <martin.marinsc...@gmail.com>
Subject Re: Problems using <t:aliasBean
Date Wed, 07 Mar 2007 07:08:20 GMT
I wonder why you do an aliasBean on the same page beforehand - why
don't you just factor out the stuff into a separate facelets
component?

regards,

Martin

On 3/5/07, Werner Punz <werner.punz@gmail.com> wrote:
> 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/
>
>
>


-- 

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Mime
View raw message