But I don't want to replace the body content of the markup container. I want to add additional tags at the bottom of the container's body.
<applet wicket:id="applet"> <!-- put more params dynamically here --> </applet> Something like this: /** * @param extraParams a Map<String,IModel> which will be rendered as additional parameters * within the applet tag at runtime. */ public Chart(String id, Map extraParams) { Make more sense? mike igor.vaynberg wrote: > > class applet extends webcomponent { > oncomponenttagbody(tag) { > strinbuilder b=new stringbuilder(); > b.append(""); > ... > 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 > > -- View this message in context: http://www.nabble.com/Adding-markup-dynamically-to-a-container--tf4112871.html#a11695730 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