mercredi févr. 25, 2009

JavaFX within WebSpace Portlets

I am attending a WebSpace bootcamp this week, which gives me some extra time to discover Sun's new Identity Based Content Portal.

I couldn't resist to try to deploy my JavaFX PieChart application in a JSR 268 portlet.

Here is the result



Here are a few caveats / things to know

  • Use NetBeans' project properties on the JavaFX side to generate the required HTML and proper embedding of the JavaFX librairies. Choose “Run” category, then specify “Run in a browser”. This will generate the HTML for you

  • Create a Web Application / JSR 268 Portlet project and copy/paste the HTML from the previous step to the portlet view JSP

  • Deploy the WAR file using Web Space admin tool (the web based Control Panel – Plugin Installer)

  • Add the portlet to an organization / community / user page.

Be careful about the path to your JAR file, it must be downloadable from your client browser. WebSpace overwrites the main context-root “/” and redirects everything to its own pages. I was lazy and just pointed to a file:/// URL :-(

Have Fun !


mardi mai 13, 2008

AJAX Portlets with Google Web Toolkit

I had the pleasure to present a Hands-on-Lab during this year's JavaONE conference.  My lab teaches attendees how to develop an AJAX portlet with the NetBeans IDE, Google Web Toolkit and the Open-Source Portlet Conainer.

Beside some frustrations to actually install the environment required for the lab, all went well and most of the attendees managed to finish the exercises on time.

The good news today is that all JavaONE 2008 Hands-on-Lab are now available for free on Sun Developer's Network, you just need to register to get access to the site.

The AJAX Portlet lab is available as well as a couple of slides giving a high level overview of the lab.

As usual, feel free to share your comments and suggestions.

Enjoy !

 

About

Sébastien Stormacq is a Senior Software Architect at Sun Microsystems. He uses his 15+ years of professional experience to design large scale, secured and highly transactional architectures based on Sun's middleware solutions.

Search

Archives
« avril 2014
lun.mar.mer.jeu.ven.sam.dim.
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today