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:[EMAIL PROTECTED] 
Enviado el: Jueves, 24 de Febrero de 2005 10:19 a.m.
Para: [EMAIL PROTECTED]
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!!

Reply via email to