You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Paulo <pa...@link3.com.br> on 2005/08/15 23:22:58 UTC
panelGrid and iterator
Hi,
How use a panelGrid with iterator?
example:
<h:panelGrid columns="2">
<f:facet name="header">
<h:outputText value="Resumo das NotÃcias" />
</f:facet>
<(loop for iterator)>
<h:outputText value="#{var.atribute}" />
</(end loop for iterator)>
<f:facet name="footer">
<h:panelGroup>
<h:outputText value="Veja mais..." />
</h:panelGroup>
</f:facet>
</h:panelGrid>
I try use a datable or datalist but not work.
tanks,
--
Paulo Cordeiro
paulo@link3.com.br
ICQ 55815884
Link3 Tecnologia Ltda
71 2102-6000
Re: panelGrid and iterator
Posted by Paulo <pa...@link3.com.br>.
Dear Mathias,
It functioned.
tanks.
--
Paulo Cordeiro
paulo@link3.com.br
ICQ 55815884
Link3 Tecnologia Ltda
71 2102-6000
Em Ter 16 Ago 2005 09:24, Mathias Broekelmann escreveu:
> you should try t:newspaperTable:
>
> <t:newspaperTable value="#{data.list}" var="var" newspaperColumns="2">
> <h:column>
> <h:outputText value="#{var.attribute}" />
> </h:column>
> </t:newspaperTable>
>
> see http://myfaces.apache.org/tomahawk/newspaperTable.html
> for documentation
>
> Regards,
>
> Mathias
>
> Paulo schrieb:
> > Tanks Mathias.
> >
> > I need one panelGrid for put data in horizontal line and sequence
> > columns.
> >
> > <h:panelGrid columns="2" footerClass="subtitle"
> >
> > headerClass="subtitlebig" styleClass="medium"
> >
> > columnClasses="subtitle,medium">
> >
> > <f:facet name="header">
> >
> > <h:outputText value="Table with numbers"/>
> >
> > </f:facet>
> >
> > <h:outputText value="1" /> |
> >
> > <h:outputText value="2" /> | ----> iterator (variable)
> >
> > <h:outputText value="3" /> |
> >
> > <f:facet name="footer">
> >
> > <h:panelGroup>
> >
> > <h:outputText value="one row" />
> >
> > <h:outputText value=" " />
> >
> > <h:outputText
> >
> > value="grouped with panelGroup" />
> >
> > </h:panelGroup>
> >
> > </f:facet>
> >
> > </h:panelGrid>
> >
> > --
> >
> > Paulo Cordeiropaulo@link3.com.br
> >
> > ICQ 55815884
> >
> > Link3 Tecnologia Ltda
> >
> > 71 2102-6000
> >
> > Em Ter 16 Ago 2005 04:23, Mathias Broekelmann escreveu:
> > > You have to use the datatable or t:datalist component:
> > >
> > >
> > >
> > > <h:datatable value="#{data.list}" var="var">
> > >
> > > <h:column>
> > >
> > > <f:facet name="header">
> > >
> > > <h:outputText value="Resumo das Notícias" />
> > >
> > > </f:facet>
> > >
> > > <h:outputText value="#{var.atribute}" />
> > >
> > > <f:facet name="footer">
> > >
> > > <h:outputText value="Veja mais..." />
> > >
> > > </f:facet>
> > >
> > > </h:column>
> > >
> > > </h:datatable>
> > >
> > >
> > >
> > > Regards,
> > >
> > > Mathias
> > >
> > > Paulo schrieb:
> > > > Hi,
> > > >
> > > >
> > > >
> > > > How use a panelGrid with iterator?
> > > >
> > > >
> > > >
> > > > example:
> > > >
> > > >
> > > >
> > > > <h:panelGrid columns="2">
> > > >
> > > >
> > > >
> > > > <f:facet name="header">
> > > >
> > > >
> > > >
> > > > <h:outputText value="Resumo das Notícias" />
> > > >
> > > >
> > > >
> > > > </f:facet>
> > > >
> > > >
> > > >
> > > > <(loop for iterator)>
> > > >
> > > >
> > > >
> > > > <h:outputText value="#{var.atribute}" />
> > > >
> > > >
> > > >
> > > > </(end loop for iterator)>
> > > >
> > > >
> > > >
> > > > <f:facet name="footer">
> > > >
> > > >
> > > >
> > > > <h:panelGroup>
> > > >
> > > >
> > > >
> > > > <h:outputText value="Veja mais..." />
> > > >
> > > >
> > > >
> > > > </h:panelGroup>
> > > >
> > > >
> > > >
> > > > </f:facet>
> > > >
> > > >
> > > >
> > > > </h:panelGrid>
> > > >
> > > >
> > > >
> > > > I try use a datable or datalist but not work.
> > > >
> > > >
> > > >
> > > > tanks,
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > >
> > > >
> > > > Paulo Cordeiro
> > > >
> > > >
> > > >
> > > > paulo@link3.com.br
> > > >
> > > >
> > > >
> > > > ICQ 55815884
> > > >
> > > >
> > > >
> > > > Link3 Tecnologia Ltda
> > > >
> > > >
> > > >
> > > > 71 2102-6000
Re: panelGrid and iterator
Posted by Mathias Broekelmann <mb...@PSI.DE>.
you should try t:newspaperTable:
<t:newspaperTable value="#{data.list}" var="var" newspaperColumns="2">
<h:column>
<h:outputText value="#{var.attribute}" />
</h:column>
</t:newspaperTable>
see http://myfaces.apache.org/tomahawk/newspaperTable.html
for documentation
Regards,
Mathias
Paulo schrieb:
> Tanks Mathias.
>
> I need one panelGrid for put data in horizontal line and sequence columns.
>
> <h:panelGrid columns="2" footerClass="subtitle"
>
> headerClass="subtitlebig" styleClass="medium"
>
> columnClasses="subtitle,medium">
>
> <f:facet name="header">
>
> <h:outputText value="Table with numbers"/>
>
> </f:facet>
>
> <h:outputText value="1" /> |
>
> <h:outputText value="2" /> | ----> iterator (variable)
>
> <h:outputText value="3" /> |
>
> <f:facet name="footer">
>
> <h:panelGroup>
>
> <h:outputText value="one row" />
>
> <h:outputText value=" " />
>
> <h:outputText
>
> value="grouped with panelGroup" />
>
> </h:panelGroup>
>
> </f:facet>
>
> </h:panelGrid>
>
> --
>
> Paulo Cordeiropaulo@link3.com.br
>
> ICQ 55815884
>
> Link3 Tecnologia Ltda
>
> 71 2102-6000
>
> Em Ter 16 Ago 2005 04:23, Mathias Broekelmann escreveu:
>
> > You have to use the datatable or t:datalist component:
>
> >
>
> > <h:datatable value="#{data.list}" var="var">
>
> > <h:column>
>
> > <f:facet name="header">
>
> > <h:outputText value="Resumo das Notícias" />
>
> > </f:facet>
>
> > <h:outputText value="#{var.atribute}" />
>
> > <f:facet name="footer">
>
> > <h:outputText value="Veja mais..." />
>
> > </f:facet>
>
> > </h:column>
>
> > </h:datatable>
>
> >
>
> > Regards,
>
> > Mathias
>
> >
>
> > Paulo schrieb:
>
> > > Hi,
>
> > >
>
> > > How use a panelGrid with iterator?
>
> > >
>
> > > example:
>
> > >
>
> > > <h:panelGrid columns="2">
>
> > >
>
> > > <f:facet name="header">
>
> > >
>
> > > <h:outputText value="Resumo das Notícias" />
>
> > >
>
> > > </f:facet>
>
> > >
>
> > > <(loop for iterator)>
>
> > >
>
> > > <h:outputText value="#{var.atribute}" />
>
> > >
>
> > > </(end loop for iterator)>
>
> > >
>
> > > <f:facet name="footer">
>
> > >
>
> > > <h:panelGroup>
>
> > >
>
> > > <h:outputText value="Veja mais..." />
>
> > >
>
> > > </h:panelGroup>
>
> > >
>
> > > </f:facet>
>
> > >
>
> > > </h:panelGrid>
>
> > >
>
> > > I try use a datable or datalist but not work.
>
> > >
>
> > > tanks,
>
> > >
>
> > > --
>
> > >
>
> > > Paulo Cordeiro
>
> > >
>
> > > paulo@link3.com.br
>
> > >
>
> > > ICQ 55815884
>
> > >
>
> > > Link3 Tecnologia Ltda
>
> > >
>
> > > 71 2102-6000
>
Re: panelGrid and iterator
Posted by Paulo <pa...@link3.com.br>.
Tanks Mathias.
I need one panelGrid for put data in horizontal line and sequence columns.
<h:panelGrid columns="2" footerClass="subtitle"
headerClass="subtitlebig" styleClass="medium"
columnClasses="subtitle,medium">
<f:facet name="header">
<h:outputText value="Table with numbers"/>
</f:facet>
<h:outputText value="1" /> |
<h:outputText value="2" /> | ----> iterator (variable)
<h:outputText value="3" /> |
<f:facet name="footer">
<h:panelGroup>
<h:outputText value="one row" />
<h:outputText value=" " />
<h:outputText
value="grouped with panelGroup" />
</h:panelGroup>
</f:facet>
</h:panelGrid>
--
Paulo Cordeiropaulo@link3.com.br
ICQ 55815884
Link3 Tecnologia Ltda
71 2102-6000
Em Ter 16 Ago 2005 04:23, Mathias Broekelmann escreveu:
> You have to use the datatable or t:datalist component:
>
> <h:datatable value="#{data.list}" var="var">
> <h:column>
> <f:facet name="header">
> <h:outputText value="Resumo das NotÃcias" />
> </f:facet>
> <h:outputText value="#{var.atribute}" />
> <f:facet name="footer">
> <h:outputText value="Veja mais..." />
> </f:facet>
> </h:column>
> </h:datatable>
>
> Regards,
> Mathias
>
> Paulo schrieb:
> > Hi,
> >
> > How use a panelGrid with iterator?
> >
> > example:
> >
> > <h:panelGrid columns="2">
> >
> > <f:facet name="header">
> >
> > <h:outputText value="Resumo das NotÃcias" />
> >
> > </f:facet>
> >
> > <(loop for iterator)>
> >
> > <h:outputText value="#{var.atribute}" />
> >
> > </(end loop for iterator)>
> >
> > <f:facet name="footer">
> >
> > <h:panelGroup>
> >
> > <h:outputText value="Veja mais..." />
> >
> > </h:panelGroup>
> >
> > </f:facet>
> >
> > </h:panelGrid>
> >
> > I try use a datable or datalist but not work.
> >
> > tanks,
> >
> > --
> >
> > Paulo Cordeiro
> >
> > paulo@link3.com.br
> >
> > ICQ 55815884
> >
> > Link3 Tecnologia Ltda
> >
> > 71 2102-6000
Re: panelGrid and iterator
Posted by Mathias Broekelmann <mb...@PSI.DE>.
You have to use the datatable or t:datalist component:
<h:datatable value="#{data.list}" var="var">
<h:column>
<f:facet name="header">
<h:outputText value="Resumo das Notícias" />
</f:facet>
<h:outputText value="#{var.atribute}" />
<f:facet name="footer">
<h:outputText value="Veja mais..." />
</f:facet>
</h:column>
</h:datatable>
Regards,
Mathias
Paulo schrieb:
> Hi,
>
> How use a panelGrid with iterator?
>
> example:
>
> <h:panelGrid columns="2">
>
> <f:facet name="header">
>
> <h:outputText value="Resumo das Notícias" />
>
> </f:facet>
>
> <(loop for iterator)>
>
> <h:outputText value="#{var.atribute}" />
>
> </(end loop for iterator)>
>
> <f:facet name="footer">
>
> <h:panelGroup>
>
> <h:outputText value="Veja mais..." />
>
> </h:panelGroup>
>
> </f:facet>
>
> </h:panelGrid>
>
> I try use a datable or datalist but not work.
>
> tanks,
>
> --
>
> Paulo Cordeiro
>
> paulo@link3.com.br
>
> ICQ 55815884
>
> Link3 Tecnologia Ltda
>
> 71 2102-6000
>