You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Carlos Ortiz <co...@coral-technologies.com> on 2007/05/08 16:09:11 UTC
A Repeater Control
Hi I like to know if in Myfaces (or any compatible lib) exist something
like this( or how i do make ):
<t:repeater var ="myVar" value="#{MyVarArray}" ....>
<p>
<h1>............</h1>
<h:outputtext value="#{myVar.Text}" />
<div>
<h:outputtext value="#{myVar.Text2}" />
</div>
</t:repeater>
the idea is this control will "draw" Size of MyVarArray the text
<p>
<h1>............</h1>
<h:outputtext value="#{myVar.Text}" />
<div>
<h:outputtext value="#{myVar.Text2}" />
</div>
Example MyVarArray.size =2 then the HTML Result Will be
<p>
<h1>............</h1>
TEXTA1
<div>
TEXTA2
</div>
<p>
<h1>............</h1>
TEXTB1
<div>
TEXTB2
</div>
similar to datatable but no in a table ...
thanks
Re: A Repeater Control
Posted by Josué Alcalde González <ja...@csa.es>.
Replace t:repeater by t:dataList and you have it :)
http://myfaces.apache.org/tomahawk/dataList.html
El mar, 08-05-2007 a las 08:09 -0600, Carlos Ortiz escribió:
> Hi I like to know if in Myfaces (or any compatible lib) exist something
> like this( or how i do make ):
>
> <t:repeater var ="myVar" value="#{MyVarArray}" ....>
>
> <p>
>
> <h1>............</h1>
> <h:outputtext value="#{myVar.Text}" />
>
> <div>
> <h:outputtext value="#{myVar.Text2}" />
> </div>
>
>
> </t:repeater>
>
> the idea is this control will "draw" Size of MyVarArray the text
>
> <p>
>
> <h1>............</h1>
> <h:outputtext value="#{myVar.Text}" />
>
> <div>
> <h:outputtext value="#{myVar.Text2}" />
> </div>
>
> Example MyVarArray.size =2 then the HTML Result Will be
>
> <p>
>
> <h1>............</h1>
> TEXTA1
>
> <div>
> TEXTA2
> </div>
>
> <p>
>
> <h1>............</h1>
> TEXTB1
>
> <div>
> TEXTB2
> </div>
>
>
>
> similar to datatable but no in a table ...
>
> thanks
>
>
>
--
_______________________________________________
Josué Alcalde González
jalcalde@csa.es
Dpto. Desarrollo
CSA - Centro Regional de Servicios Avanzados
C/ López Bravo, 1
Pol. Ind. Villalonquéjar (Burgos)
Tel. (+34) 947 256 250
Fax. (+34) 947 256 583
Web: http://www.csa.es