Thanks for the answers guys, getting some ideas here that might be helpful. In a way what our backend allows us to do is define a (specific) form and store it in our database. So, when you call the backend service, it returns and array declaring all the components that will make up the final form. A single entry on this array would be something like:
Component: TextField Required: True Type: String Length: 30 Order: 2 (The order in which it needs to be displayed on the form) Defaul Value: "some value" ....and so on. An entry can also define a compound component (like a Wicket panel component made up of simple components). So for each entry in the array,the Swing app instantiates, configures, and adds each component on a Swing Panel. So I'm sure this can be done in Wicket but I would need to wrap every possible component (and compound component) on a Wicket panel in order to be able to do that. (AFAIK WicketWebBeans does exactly that). I could also use a RepeatingView I guess, but a RepeatingView expects to have a pre-defined html file with the html elements (or compound components) that you're going to be repeating, no? Thing is that in my case we don't know up ahead what kind of components we are goingt to get from the backend service, nor the number of them, or the order for that matter. I will keep on researching the ideas you guys have provided so far. Thanks again...and Happy Holidays! -- View this message in context: http://www.nabble.com/Dynamic-Simple-%28html%29-Components-tp21108904p21119250.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
