Hi,

On Sat, Aug 27, 2016 at 9:10 PM, Michał Szwaczko <[email protected]> wrote:

> Hello
>
> I have a simple repeater that dynamically assemblies a row of a table from
> default  components (labels, panels, buttons etc) The row is part of the
> dataview.
>
>
>         RepeatingView row = new RepeatingView("row");
>
>         [in Dataview's populateItem I set components]
>         row.add(some_component);
>

Actually here you need something like:
WebMarkupContainer td = new WebMarkupContainer(row.newChildId());
td.add(some_component);
...

So you can do: td.add(AttributeModifier.append(...));
or even override its #onComponentTag()


>         row.add(some_other_component);
>         [..]
>
>
>
> Markup is this:
>
> <tr wicket:id="dataview">
>         <td wicket:id="row"></td>
> <tr>
>
> Now, in the dataview's onPopulateItem, i'd like to set attribute to the
> <td> tag based on some property of the populated object.
>
> Sadly there's no markup id for the <td>, nor any accessible component in
> that tag that I could handle with AttributeAppender.
> Is there any other way to do that? Can I somehow get the <td> handle?
>
> Regards
> Michal
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to