Thanks mate, thats PERFECT! haha.. i just found attributeModifier setup!!!
lol rad!!!


Martijn Dashorst wrote:
> 
> Create a YouTubePanel:
> 
> class YouTubePanel extends Panel {
>     private int width;
>     private int height;
> 
>     public YouTubePanel(String id, IModel src) {
>         super(src);
>         add(new AttributeModifier("width", true, new
> PropertyModel(this, "width")));
>         add(new AttributeModifier("height", true, new
> PropertyModel(this, "height")));
>         add(new WebMarkupContainer("movie").add(new
> AttributeModifier("value", true, src)));
>         add(new WebMarkupContainer("embed").add(new
> AttributeModifier("src", true, src)));
>     }
>     /* add component tag check for object */
> }
> 
> <html>
> <body>
> <wicket:panel>
>     
>     
>     
> </wicket:panel>
> 
> On 10/1/07, Ballist1c <[EMAIL PROTECTED]> wrote:
>>
>> Hey guys,
>>
>> Right now I am attempting to setup a mechanism which allows users to
>> submit
>> there own youtube video links and getting them to display in an embedded
>> fashion.
>>
>> e.g.  (ignore the dashes in HTML)
>> <obj-ect width="425" height="350">
>>   <par-am name="movie"
>> value="http://www.youtube.com/v/Z3ClCwcCvdQ";></pa-ram>
>>   <par-am name="wmode" value="transparent"></pa-ram>
>>   <emb-ed src="http://www.youtube.com/v/Z3ClCwcCvdQ";
>> type="application/x-shockwave-flash"
>>                 wmode="transparent" width="425" height="350"></em-bed>
>> </obj-ect>
>>
>>
>> There are some non-standard HTML tags and attributes in use and from what
>> I
>> can tell, it looks like I would have to write my own wicket component. 
>> The
>> bit that throws me off, is the HTML to embed youtube videos is nested
>> with
>> multiple levels...
>>
>> Any advice on this matter would be appreciated, i am stuck for a starting
>> point on how to tackle nested HTML and there respective components
>>
>> Thanks guys,
>> Have a great day :)
>> --
>> View this message in context:
>> http://www.nabble.com/Setting-up-ComponentTags-for-user-submitted-youtube-links-tf4546357.html#a12973665
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> Buy Wicket in Action: http://manning.com/dashorst
> Apache Wicket 1.3.0-beta3 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Setting-up-ComponentTags-for-user-submitted-youtube-links-tf4546357.html#a12974702
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to