If the cause of the error truly is multiple datagrids with the same
name, then a simple fix would be to allow the name attribute to use
request time values.  Then one could use ${container.index} as part of
the inner datagrid's name to prevent it from colliding with another
iteration's.

Ben

-----Original Message-----
From: Eddie O'Neil [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 25, 2007 12:32 PM
To: Beehive Users
Subject: Re: Nested Data Grid

Ben--

  Sadly, this is a known issue with the data grid that is tracked here:

    http://issues.apache.org/jira/browse/BEEHIVE-515

Until this is fixed, I think your best bet for displaying nested
tabular data is to use a repeater or JSTL forEach tag inside of a
template cell.

Cheers,
Eddie



On 1/25/07, Burgess, Benjamin <[EMAIL PROTECTED]> wrote:
> Is it possible to nest a data grid tag inside of another one?  I tried
> using a templateCell like this:
>
>
>
> <netui-data:dataGrid name="outerListGrid"
> dataSource="pageInput.outerList">
>
>       <netui-data:configurePager disableDefaultPager="true" />
>
>       <netui-data:header>
>
>             <netui-data:headerCell headerText="Field 1" />
>
>       </netui-data:header>
>
>       <netui-data:rows>
>
>             <netui-data:spanCell value="${container.item.field1}" />
>
>             <netui-data:templateCell>
>
>                   <netui-data:dataGrid name="innerListGrid"
> dataSource="container.item.innerList">
>
>                         ...
>
>
>
> But this throws an exception: Unable to find a dataGridModel in the
> JspContext
>
>
>
> I am thinking this is because there would be multiple datagrids
created
> with the same name.  So I tried to change the inner name to
> "innerListGrid${container.index}" to guarantee uniqueness, but it
> complains that "This attribute does not support request time values."
>
>
>
> Is it possible?  Or if I want to nest, do I just have to settle with
the
> repeater tag (which nests just fine)?
>
>
>
> Thanks,
>
> Ben Burgess
>
>
>
> **************************************************************
> This message, including any attachments, contains confidential
information intended for a specific individual and purpose, and is
protected by law.  If you are not the intended recipient, please contact
sender immediately by reply e-mail and destroy all copies.  You are
hereby notified that any disclosure, copying, or distribution of this
message, or the taking of any action based on it, is strictly
prohibited.
> TIAA-CREF
> **************************************************************
>
>
>

Reply via email to