We've created a grid with dynamic columns similar to
org.apache.wicket.extensions.markup.html.repeater.data.grid.AbstractDataGridView,
except, of course, that the cell populators (the columns) don't come from
a fixed array, but from a (dynamic) list.

On Wed, Mar 25, 2009 at 1:35 PM, rora <tempma...@go2.pl> wrote:
>
> Hello,
> my goal is to display a table with dynamic number of columns (and of course
> rows) based on my EntryData class.
>
> ArrayList<EntryData> entries = ...;
>
> public class EntryData implements Serializable
> {
>    private String                     entryID;
>    private ArrayList<FieldData> entryFields;
> [...]
> }
>
> where
>
> public class FieldData implements Serializable
> {
>    private int       fieldId;
>    private String   fieldLabel;
>    private String   fieldValue;
> [...]
> }
>
> I would like to have a table presenting entryID and values of all the fields
> for each entry on the list.
>
> Entry ID              | entryFields[0].fieldLabel                 | ... |
> entryFields[x].fieldLabel
> ------------------------------------------------------------------------------------------------
> entries[0].entryID | entries[0].entryFields[0].fieldValue  | ... |
> entries[0].entryFields[x].fieldValue
> ...
> entries[y].entryID | entries[y].entryFields[x].fieldValue  | ... |
> entries[y].entryFields[x].fieldValue
>
> I am not really experienced in Wicket and tried to find some Repeater class
> example to use it as a base for building my own solution. Unfortunately I
> didn't find anything that suits my needs.
> I would like to know if it would be possible at all to use one of the
> repeater control family member to display such data structure. I'll
> appreciate any help and sample code.
>
> Kind regards
> R
> --
> View this message in context: 
> http://www.nabble.com/Repeater-component-with-dynamic-column-list-tp22700806p22700806.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to