tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Néstor Boscán <nestor.bos...@tcs.com.ve>
Subject RE: Datagrid problem
Date Thu, 24 Feb 2005 17:14:25 GMT
Hi Maikel
 
In the presente the datagrid tag only works with fixed columns not dynamic
columns.

Regards,
 
Néstor Boscán

  _____  

De: Maikel Sibbald [mailto:m.sibbald@tfe.nl] 
Enviado el: Jueves, 24 de Febrero de 2005 10:19 a.m.
Para: nestor.boscan@tcs.com.ve
Asunto: Datagrid problem 


If got this problem:
I've got a collection which I use in the ui:dataGrid:  --> works fine
But now I want to use a colection of field I want to show in the datagrid.
So what I did is use a c:forEach for every column, but the problem is dat I
cant use this within the ui:dataGrid.
 
 
Code:
<ui:dataGrid items="${collection}" var="item" name="datagrid1"
cellPadding="0" cellSpacing="0"> 

<columns>

<c:forEach var="field" items="${requestScope.fields}" start="1" end="10">

<column width="100" order="true">

<header value="${field}" hAlign="center" styleClass="header1"/>

<item value="${item.name}" hAlign="left" hyperLink="/*.do?methodToCall=edit"
styleClass="item1"/>

</column>

</c:forEach>

</columns>

<header show="true"/>

<footer show="true"/>

<rows styleClass="rows" hiliteStyleClass="hiliterows"/>

<paging size="${pages}" nextUrlVar="next" previousUrlVar="previous"
pagesVar="pages"/>

</ui:dataGrid>

 

Is there something I'm missing. Or do you got a solution??

Thanx in advance!!


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message