Midway between border and listview

View: New views
2 Messages — Rating Filter:   Alert me  

Midway between border and listview

by CarlosJP :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Hi all,
how can I write a container with associated markup that takes some
markup (as a border) and repeats it (as a repeater). If I use a
ListView I lose the associated markup. If I use a Border I don't know
how to get its body repeated (a Border body inside a ListView doesn't
seem to work). For now I'm passing a fragment factory to the
container, so it can add a new fragment to every item of an internal
ListView, that's fine but it's just a bit cumbersome.
Thank you in advance.
Cheers,
Carlos

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Wicket-user mailing list
Wicket-user@...
https://lists.sourceforge.net/lists/listinfo/wicket-user

Re: Midway between border and listview

by Eelco Hillenius :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

On 7/24/07, Carlos Pita <carlosjosepita@...> wrote:

> Hi all,
> how can I write a container with associated markup that takes some
> markup (as a border) and repeats it (as a repeater). If I use a
> ListView I lose the associated markup. If I use a Border I don't know
> how to get its body repeated (a Border body inside a ListView doesn't
> seem to work). For now I'm passing a fragment factory to the
> container, so it can add a new fragment to every item of an internal
> ListView, that's fine but it's just a bit cumbersome.
> Thank you in advance.
> Cheers,
> Carlos

Sounds difficult. :) I would start making a clone of border and
building in that it renders itself X times, probably as part of
onComponentTagBody.

Just curious... what is your use case?

Eelco

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: "users-subscribe at wicket.apache.org" and follow the instructions.
_______________________________________________
Wicket-user mailing list
Wicket-user@...
https://lists.sourceforge.net/lists/listinfo/wicket-user