class applet extends webcomponent { oncomponenttagbody(tag) { strinbuilder b=new stringbuilder(); b.append("<param name="foo" value="bar"/>"); ... replacecomponenttagbody(tag, b.tostring()); } }
-igor On 7/19/07, mperham <[EMAIL PROTECTED]> wrote: > > > I'd like to build a dynamic charting applet component so that the page can > hardcode some presentation params but other params are generated > dynamically. For instance: > > <applet wicket:id="applet"> > > > > > > </applet> > > The params above are presentation and page-specific so they belong in the > page's HTML. However I also need to emit several params which are > data-driven and contain the actual data to render in the chart. I want > the > applet component to automatically inject any number of additional params > at > runtime. How can I do this mix of static and dynamic markup? Can the > component subclass WebMarkupContainer and override onComponentTagBody() to > do this somehow? Any pointers and examples would be appreciated. I'm > using > 1.2.6. > > mike > -- > View this message in context: > http://www.nabble.com/Adding-markup-dynamically-to-a-container--tf4112871.html#a11695022 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user