Marco Walther's Weblog

« I'm still here;-) | Main | Java Studio Creator... »

20051124 Thursday November 24, 2005

My Adventure in Component Land

I found a post on the Creator forum asking how to integrate a embedded Windows Media Player into a Creator project.

So I thought, that would be a good time to try and write some custom components.

You could add some elements as static HTML but then the JSF framework would not know anything about it and you would not be able to to change the parameter programatically from the application. So that's not a good idea.

Edwin has kind of a tutorial on how to write a component library at his wiki page.  So I took some time and played with it.

That's a screen shot of the result;-)


I would not try to put both, an embedded Windows Media Player and a Real Player onto the same page;-) That might get a bit noisy.

Here is a link to my components. They are not fully tested and might not be complete, but I hope they can work as a starting point for somebody;-)  The download contains all the sources and a prebuild complib in the dist directory.  Just import that complib into a Creator 2 EA with the Component Library Manager and you should be ready to play with it.

I'm normally working more on the backend of Creator, so maybe on Monday our component guys will tell me what I did wrong;-)  But I think the results are not that bad for five hours play time;-) Especially given that I normally don't even work on Windows;-)

Have fun & a good turkey ;-)
-- Marco

( Nov 24 2005, 05:54:11 PM PST ) Permalink Comments [9]

Trackback URL: http://blogs.sun.com/marcoscorner/entry/my_adventure_in_component_land
Comments:

Really cool, thanks!
Works like a charm.

Posted by Alexis MP on November 25, 2005 at 03:13 AM PST #

so cool , so so good. i am loving it

Posted by sattra on November 26, 2005 at 04:22 AM PST #

Cool Marco! Great example too.

Posted by Edwin Goei on November 28, 2005 at 01:35 AM PST #

Hi Marco, Is it possible to display media from blob or byte data in db table? Thank you.

Posted by Sheng Gu on October 10, 2006 at 09:24 AM PDT #

It should be possible but not that easy. The players expect some URL where to fetch the media. So your app would have to the data on a certain URL. That should work for smaller media stuff but don't expect any container to be a good streaming server.

Posted by Marco Walther on October 10, 2006 at 11:36 AM PDT #

Hi Marco, I will try to work on it to display media from byte data, but why do you think "it should work for smaller media stuff but don't expect any container to be a good streaming server". Thank you.

Posted by Sheng Gu on October 12, 2006 at 11:14 AM PDT #

As long as you stay with http transport, the container will probably be OK. But it does not support real streaming like RTSP etc.

Posted by Marco Walther on October 12, 2006 at 01:04 PM PDT #

Just tried to get this to work with NetBeans 6.7. The component drops just fine but does not display at runtime.

Any thoughts?

Posted by Darrin on July 23, 2009 at 04:31 PM PDT #

Darrin, I don't know. This was written against JSF 1, possibly even prerelease versions. I moved far away from that area now, so I can't help you much here.

Posted by Marco Walther on July 23, 2009 at 08:08 PM PDT #

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed