---------- Forwarded message ----------
From: Martin Marinschek <[EMAIL PROTECTED]>
Date: Nov 7, 2005 9:21 AM
Subject: Re: <t:buffer> as variable
To: Dave <[EMAIL PROTECTED]>


something like this:

<t:aliasBean alias="#{xxxvalue}" value="#{backBean.valueFromDB}">

<h:graphicImage url="a.jpg" rendered="#{xxxvalue=='a'}"/>

<h:graphicImage url="b.jpg" rendered="#{xxxvalue=='b'}"/>

</t:aliasBean>

regards,

Martin




On 11/7/05, Dave <[EMAIL PROTECTED]> wrote:
> I am not quite understanding how aliasBean can be used as variable. an
> example will be helpful. Thanks.
>
> Supporting variables in JSF will help greatly in terms of performance.
>
> Martin Marinschek <[EMAIL PROTECTED]> wrote:
> Not being the definite expert on buffer, I would have said now.
>
> 'Buffer' buffers the output of the component rendering, afaik. Have
> you tried aliasBean for achieving this? With aliasBean, the value is
> retrieved once and set into the session - and is later recollected
> when the aliasBean is closed.
>
> regards,
>
> Martin
>
> On 11/4/05, Dave wrote:
> >
> >
> > Can be used as variable to hold data to avoid multiple backing
> > bean calls ?
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > It looks not very nice.
> >
> > I tried it in dataTable, but the page becomes blank without any error
> > message.
> >
> > ________________________________
> > Yahoo! FareChase - Search multiple travel sites in one click.
> >
> >
>
>
> --
>
> http://www.irian.at
> Your JSF powerhouse -
> JSF Trainings in English and German
>
>
>  ________________________________
>  Yahoo! FareChase - Search multiple travel sites in one click.
>
>


--

http://www.irian.at
Your JSF powerhouse -
JSF Trainings in English and German


--

http://www.irian.at
Your JSF powerhouse -
JSF Trainings in English and German

Reply via email to