Thanks Jeremy, I'll try on this..
once again thank u.
Cheers
J
Jeremy Thomerson-5 wrote:
>
> 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:
>
>
>
>
>
>
>
> 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]
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/Adding-Adobe-Media-Player-in-wicket-tp19797690p19827296.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]