The simplest thing is just to put the embed / object tags into the your HTML file and then adding a wicket:id to the tags that need dynamic parameters. Then use a WebMarkupContainer and AttributeModifier to insert the appropriate values.
Also, to make it reusable, it could be a panel that takes a couple of IModel<String> instances for the source and vars, etc. Something like this: <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="97%" height="275" id="theMovie"> <param wicket:id="flashParamTag" name="FlashVars" value="someVar=someValue" /> <param wicket:id="flashSrcTag" name="SRC" value="foobar.swf" /> <embed wicket:id="flashEmbedTag" flashvars="someVar=someValue" src="foobar.swf" menu="false" pluginspage=" http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" width="97%" height="275" name="theMovie"></embed> </object> Obviously, the IModel values below would come from some dynamic source: WebMarkupContainer flashParam = new WebMarkupContainer("flashParamTag"); WebMarkupContainer flashSrc = new WebMarkupContainer("flashSrcTag"); WebMarkupContainer flashEmbed = new WebMarkupContainer("flashEmbedTag"); IModel flashImages = new AbstractReadOnlyModel<String>(){ @Override public String getObject() { return "var1=foo&var2=foo"; } }; IModel flashFile = new AbstractReadOnlyModel<String>(){ @Override public String getObject() { return "foobar.swf"; } }; flashParam.add(new AttributeModifier("value", flashImages)); flashSrc.add(new AttributeModifier("value", flashFile)); flashEmbed.add(new AttributeModifier("flashvars", flashImages)); flashEmbed.add(new AttributeModifier("src", flashFile)); add(flashParam); add(flashSrc); add(flashEmbed); -- Jeremy Thomerson http://www.wickettraining.com On Fri, Oct 3, 2008 at 8:25 AM, newbie_to_wicket <[EMAIL PROTECTED]>wrote: > > Hi all, > > In our application I've to add Adobe media player to play some video clips. > > can any body worked on this, if you worked this kind of situations , please > give me some small examples . > > I'm very glad if you help in this regard. > > Thanks > J > > > -- > View this message in context: > http://www.nabble.com/Adding-Adobe-Media-Player-in-wicket-tp19797690p19797690.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] > >
