Juergen Donnerstag wrote:

Keijo,

by means of a ListView you can add 0..n components, which by the way
don't have to be all of the same type.

Especially when you mix that with Panels.

Q: the example is about CSS, but where comes the unknown number of
forms into the play?

I don't understand you question too. For Wicket, your elements don't have to have id's. wicket:id is in a different namespace and thus is something completely different. You could have elements like <input wicket:id="foo" id="bar" ... /> If you want to dynamically control which id's are attached to those tags, you can attach AttributeModifiers to those elements ( comp.add(new AttributeModifier("id", true, new Model("bar"))); )

I don't know about your specific requirements, but usually it is a better idea to work with CSS classes instead of id's.

Eelco

Juergen

On 7/10/05, Keijo Tuomainen <[EMAIL PROTECTED]> wrote:
Hi,

I'd like to create forms dynamically and let CSS take care of the layout
(see http://www.themaninblue.com/experiment/InForm/vertical.htm for an
example). The problem is that all Components require a unique non-null
id that references an element of the underlying HTML page. When creating
a form dynamically, I don't have those HTML elements available.

Is there a simple way to create forms dynamically with Wicket?

Best regards,
Keijo




-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to