Re: How to add an unspecified number of components

2011-05-06 Thread James Carman
Use a repeater.  And, wasn't this question just asked recently?

On Wed, May 4, 2011 at 7:54 PM, wmike1...@gmail.com  wrote:
> Hi,
>
> I'm gathering information from a database that I want to display on my page.
> My query to this DB could result any number of rows. I'd like to build a
> panel to represent the information from a row and then just add a bunch of
> panels to my page. To add a panel or component though, I need an html
> element with a wicket:id attribute in the container's markup. So my question
> is: if I don't know how many panels I'm going to be adding (uncertain of the
> # of rows I'll get), how can I prepare the markup to have enough wicket:ids
> to accommodate them?
>
> Or am I going about this all wrong?
> Thanks, Mike
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/How-to-add-an-unspecified-number-of-components-tp3497096p3497096.html
> Sent from the Users forum 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



How to add an unspecified number of components

2011-05-06 Thread wmike1...@gmail.com
Hi,

I'm gathering information from a database that I want to display on my page.
My query to this DB could result any number of rows. I'd like to build a
panel to represent the information from a row and then just add a bunch of
panels to my page. To add a panel or component though, I need an html
element with a wicket:id attribute in the container's markup. So my question
is: if I don't know how many panels I'm going to be adding (uncertain of the
# of rows I'll get), how can I prepare the markup to have enough wicket:ids
to accommodate them?

Or am I going about this all wrong?
Thanks, Mike

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-add-an-unspecified-number-of-components-tp3497096p3497096.html
Sent from the Users forum 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



Re: How to add an unspecified number of components

2011-05-04 Thread wmike1...@gmail.com
thank you very much 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-add-an-unspecified-number-of-components-tp3497096p3497312.html
Sent from the Users forum 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



Re: How to add an unspecified number of components

2011-05-04 Thread jcgarciam
What you want to achieve is a very common usecase in wicket,
play around with a ListView component and then move to a suitable component
for database like that provide  like DataView

https://cwiki.apache.org/WICKET/listview-and-other-repeaters.html

<https://cwiki.apache.org/WICKET/listview-and-other-repeaters.html>
http://wicket.apache.org/apidocs/1.4/org/apache/wicket/markup/repeater/data/DataView.html
<http://wicket.apache.org/apidocs/1.4/org/apache/wicket/markup/repeater/data/DataView.html>

On Wed, May 4, 2011 at 8:54 PM, wmike1...@gmail.com [via Apache Wicket] <
ml-node+3497096-2083856505-65...@n4.nabble.com> wrote:

> Hi,
>
> I'm gathering information from a database that I want to display on my
> page. My query to this DB could result any number of rows. I'd like to build
> a panel to represent the information from a row and then just add a bunch of
> panels to my page. To add a panel or component though, I need an html
> element with a wicket:id attribute in the container's markup. So my question
> is: if I don't know how many panels I'm going to be adding (uncertain of the
> # of rows I'll get), how can I prepare the markup to have enough wicket:ids
> to accommodate them?
>
> Or am I going about this all wrong?
> Thanks, Mike
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-wicket.1842946.n4.nabble.com/How-to-add-an-unspecified-number-of-components-tp3497096p3497096.html
>  To start a new topic under Apache Wicket, email
> ml-node+1842946-398011874-65...@n4.nabble.com
> To unsubscribe from Apache Wicket, click 
> here<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1842946&code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=>.
>
>



-- 

JC


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-add-an-unspecified-number-of-components-tp3497096p3497198.html
Sent from the Users forum 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