Thanks.  Let me expand on it to see if I understand. 

I'd create a Panel for each SurveyElement type, adding them to the Form as needed.  And I'm assuming I can add Panels as ListItems? 

Suppose I have a Survey with two TextFields.  In the TextFieldPanel the wicket:id would be something clever like "textField".  Will I run into problems with unique names?  Probably not, as long as I give each Panel a unique name, right?



On 9/13/05, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
Use Panels. By using panels, you can defer any concrete markup until
you actually need it.

Eelco


On 9/13/05, Nick Heudecker <[EMAIL PROTECTED]> wrote:
> First it was dynamic forwards; now the question is about dynamic form
> markup.  It's like this...
>
>  My users can define a Survey object that has text fields, drop-downs, radio
> buttons, etc.  When I present the Survey to another user, I need to render
> those objects in the markup.  However, since there are a variable number of
> SurveyElements, I don't really know what to do with the markup.
>
>  I was thinking I could just make a ListView with all of the SurveyElements
> and iterate over it inside the Form markup.  I'm not sure this would work
> because of the variability of the SurveyElement subclasses.
>
>  Any thoughts on how to address this?  I'm still coding the business side of
> this and wanted to get the discussion going before I got to the web side.
> Thanks for your time.
>


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to