[prev in list] [next in list] [prev in thread] [next in thread] 

List:       taglibs-user
Subject:    AW: [datagrid] Cannot use EL in attribute items
From:       "Olaf Bergner" <Olaf.Bergner () de ! easynet ! net>
Date:       2004-12-30 9:33:45
Message-ID: PMEMJIBHGBFBGEPPHBMLCELGCAAA.Olaf.Bergner () de ! easynet ! net
[Download RAW message or body]

Hi Néstor,

Thanks for your efforts. That would be great.

Regards,

Olaf

> -----Ursprüngliche Nachricht-----
> Von: Néstor Boscán [mailto:nestor.boscan@tcs.com.ve]
> Gesendet: Donnerstag, 30. Dezember 2004 01:05
> An: Olaf.Bergner@de.easynet.net; taglibs-user@jakarta.apache.org
> Betreff: RV: [datagrid] Cannot use EL in attribute items
>
>
>
>
> -----Mensaje original-----
> De: Néstor Boscán [mailto:nestor.boscan@tcs.com.ve]
> Enviado el: Miércoles, 29 de Diciembre de 2004 07:59 p.m.
> Para: 'Tag Libraries Users List'; 'Olaf.Bergner@de.easynet.net'
> Asunto: RE: [datagrid] Cannot use EL in attribute items
>
> Hi Olaf
>
> You're doing everything right. The problem is that the datagrid
> tag was made
> for JSP 1.2 working with JSTL 1.0. I will try to modify the tag
> to see if I
> can make it work with JSP 2.0. It shouldn't be a lot of work.
>
> Regards,
>
> Néstor Boscán
>
> -----Mensaje original-----
> De: Olaf Bergner [mailto:Olaf.Bergner@de.easynet.net]
> Enviado el: Miércoles, 29 de Diciembre de 2004 05:36 p.m.
> Para: taglibs-user@jakarta.apache.org
> Asunto: [datagrid] Cannot use EL in attribute items
>
> I am currently evaluating the datagrid tag and in the process of porting a
> simple homegrown pager. Our environment:
>
> JBoss 3.2.6
> JSTL 1.1
> standard-1.1.2.jar
> Java 1.4.2.
>
> The list to be displayed is stored in session scope in the property
> 'filteredOrganizations' of the form-bean
> 'organizationSearchForm', i.e. the
> following struts tag
>
> <logic:iterate name="organizationSearchForm"
> property="filteredOrganizations" ...></logic:iterate>
>
> works.
>
> My first problem was JBoss complaining that according to the TLD the
> attribute 'items' does not accept an EL expression, so that compilation
> failed. I modified the datagrid TLD so that the rtexprvalue attribute now
> reads 'true'.
>
> Now, a
>
> <ui:dataGrid items="${organizationSearchForm.filteredOrganizations}" ...>
>
> gives me an
>
> java.lang.IllegalArgumentException
> at org.apache.taglibs.datagrid.DataGridTag.setItems(DataGridTag.java:928).
>
> The collection stored in
> organizationSearchForm.filteredOrganizations is of
> type java.util.List, a java.util.ArrayList, to be exact. Since our web.xml
> declares version 2.4 I understand that EL is enabled by default and any EL
> expression is evaluated by the web container, so that the datagrid tag
> should be passed a java.util.List instance. Is this assumption
> correct? What
> am I doing wrong here?
>
> Any help would be greatly appreciated, since this beast looks
> just like what
> we need.
>
> - Olaf -
> --------------------------------------------
> Easynet GmbH (http://www.de.easynet.net) Olaf Bergner, System Integrations
> Harburger Schlossstrasse 1, D-21079 Hamburg
> fon: +49-40-77175-434, fax: +49-40-77175-519 # Easynet is part of the
> easynet group plc (www.Easynetgroup.net)
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic