what you need is a lsitview in a listview
the first outputs the date row, and then a listview that outputs rows for
that date.
makes sense?
-igor
On 5/2/07, Tauren Mills [EMAIL PROTECTED] wrote:
I'm using a custom ListView to generate a table. The content of the
table consists of four
Igor,
Yes, that makes sense. However, I get the data for the list using a
single HQL query with joins and such. If I changed to a ListView
within a ListView, then wouldn't I also need to change to do many HQL
queries to build a bunch of small lists within a big list? I don't
know what the
you can still have only one list. then have an imodel implementation that
filters that list on the fly.
-igor
On 5/3/07, Tauren Mills [EMAIL PROTECTED] wrote:
Igor,
Yes, that makes sense. However, I get the data for the list using a
single HQL query with joins and such. If I changed to a
Igor,
Upon further thought, how can a ListView inside a ListView solve this?
Wouldn't the hierarchy cause the html to be messed up? I can't have
TRs within TRs. The inner listview isn't putting child data inside of
the TR, it needs to make TRs that are siblings of the outer listview.
The
you dont have to attach the listview to the trs though
in 1.2.6
you can attach it to span and do dataview.newitem(..) { return super.newitem
(..).setrenderbodyonly(true);
table
span wicket:id=groupView --- Outer listview
tr
td wicket:id=groupTitle/td
/tr
span
Sweet! I do have it working with an extra tag (where you use the
span), but I didn't like that it rendered invalid html. Didn't know
about setrenderbodyonly. Thanks for the tip! When I move to 1.3,
I'll use the container approach.
Thanks Igor!
Tauren
On 5/3/07, Igor Vaynberg [EMAIL