Skip navigation

 

Earlier I promised to make the source code from my JavaOne talk available. Well, I'm going to go back on my promise but provide something that I think is much better. You see, the example I showed was really crappy and I'm not sure it would be easy to follow even if I did make this embarassing code public. I have decided instead to write a couple of tutorials on the MyFaces wiki that show the techniques I described in the talk.

 

 

 

Tutorial #1: How to tell if your MyFaces application is running as a portlet

 

Tutorial #2: How to extend MyFaces portlets to use modes (EDIT, VIEW, and HELP)

 


Stan

 

Whew. Another year, another JavaOne. This was seven in a row for me. I guess after six times, they let you speak.

 

I was really blown away by the number of people who attended my session entitled, "Building Killer Portlets with Java Server Faces". Those two technologies must be even hotter than I thought. Several people told me that they were either unable to get in or unwilling to stand in the long line. Many also asked me about the slides and the demo code.

 

Sun owns the slides. They usually make all the general sessions available on the web but it takes awhile. In the mean time, TSS has a nice summary here. Scroll down near the bottom of the page or search for "Stan". BTW, that's the first time anyone ever used the words "brilliant" and "Stan" in the same sentance. I'm incredibly full of myself at the moment.

 

As for the demo code, I don't think that there is any problem with releasing that. I just need to clean it up and figure out how I will make it available. Check back here and I will give an update in the next few days.

 

In the mean time, here are a few things you need to know if you are going to try this stuff at home:

  • The first demo included two JSF applications available from other sources. The car demo comes with the JSF reference implementation, but I'm pretty sure we also ship it as an example with JBoss Portal. The other application on the screen came from David Geary's book, Core JSF.
  • The 1.0 release of JBoss Portal has a bug that crops up if you try to put two JSF applications on the same page. It is now fixed, so if you build JBoss Portal from head then you will not see this problem.
  • Integration of portlet modes with JSF is not yet supported by JSF itself. I talked briefly with the JSF spec lead about this and I will try to come up with a way to add this in JSF 2.0.
  • JSF 2.0 won't be done for quite some time, so for now we are stuck with the hack that I showed in the second demo of the session. That hack is the code I will make available.


 

Stan

Filter Blog

By date: