if it only needs to live during render there is IComponentResolver if you need it to have a normal lifecycle you can analyze the markup and add the component if not already added. in 1.5 you can use getmarkup in onmarkupattached() or oninitialize()
-igor On Fri, Jan 28, 2011 at 2:11 PM, Benedikt Rothe <benedikt.ro...@qleo.de> wrote: > Hi everybody > > Is it possible to add a Wicket-Component depending on the existence of a > wicket:id > in the Markup? Something like > > // Code with adding Components > if there is a Markup-Element with WicketId "Submit" then > this.add(new Button("Submit",...)); > > As far as I understood, it is not possible in this way. But maybe there's > an # > equivalent solution? > > Bye > Benedikt > > --------------------------------------------------------------------- > 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