TSS has excerpted a sample chapter from the 'Building Portals with the Java Portlet API' book, by Jeff Linwood and David Minter. The chapter discusses how a portlet interacts with a portal, from initialization to removal, provides examples that walk you through the stages of the portlet life cycle and illustrate the issues of multithreaded portlet applications.
Read The Portlet LifeCycle
I downloaded the zip file but it seems the PDF is corrupted.
Is it ok for you?
I had the same problem just viewing the PDF on-line.
Kito D. Mann
Author, JSF in Actionhttp://www.JSFCentral.com
- JSF FAQ, news, and info
Sorry about that. The PDF originally required Adobe 6 to open but it's been reformatted to open in Adobe 4 and up.
Please let us know if you're still having problems opening it.
The downloaded zip file can be extracted, but the extracted PDF file is broken.
Why not try Advanced PDF Repair at http://www.datanumen.com/apdfr
/ ? It recovers several important PDF files for me and is really helpful!
Hope this will help.
Even i wasn't able to download the complete document. The pdf in the zip file contained only six chapters. If anyone of you were able to successfully download the entire document then please share it with me at vs_ashvin at yahoo dot com.
The current Portlet API is a good start, but one of the problems of the current incarnation is actually the lack of lifecycle management for instances of portlets. The current lifecycle only manages the lifecycle of the portlet implementation, whereas I'd really like to see stuff like create/clone/remove added as well, in order to properly handle how physical instances of portlets are handled.
Pretty much all of our portlets have references to persistent objects, and when a portlet instance is cloned it needs to know this in order to be able to clone the persistent objects and update the references to these objects. Currently that is impossible, but since we wrote the portlet container we added support for it ourselves.
Still can't access the document.
If you login first and then click on the document link it works.
Everytime a sample chapter or a book is put online, people can get it. I wonder why? Is it the people? or is it the readers?
Well, that seems to be a bug in their software. When you click on the link and get redirected to the login and then get redirected to the chapter, something goes wrong.
And the comment count is always one too high. A new article has "1 Comments". Who cares anyway...
Sorry to post ist here, but I did not find any place to comment the pdf. On page 89 you mention "The versioning information belongs in the WEB-INF\MANIFEST.MF file in the WAR archive." But I think it must be "... in the META-INF\..."
I'm interested reading the rest of the book, but amazon tells me it's not published yet :-(
Yes, that's a typo; we'll make sure that gets listed in the errata.
I'm expecting to receive my first printed copy today (Jeff had his on Friday), and I believe the publication date is 23rd August, so you shouldn't have much of a wait if you were to order now.
Alternatively, we've created a site to support the book at http://portalbook.com/
and we'll certainly post a notice there as soon as it's published. That site's a little sparse at the moment, but if you have any questions, wishlists, or other feedback, we'll be delighted to start expanding the content.
PHP site for promoting a Java portlet API book while many open source portals are available.... must be a joke !!!! :)
Why's that ?
JSR168 is a new standard. Portlets are a fairly new technology. There are quite a few open source portals, but a smaller number that fully support JSR 168 right now. The only forum software that I know of which is available as a portlet is the one we create as an example in the book, and that's really not ready for primetime yet, although we're working on that.
Whereas PostNuke is here right now, and provides the specific functions that we need to promote and support the book.
Portlets are more versatile, and we obviously believe they have a future. But they are not yet the right software for us to build this site. I don't see any inconsistency here.
I disagree :)
JSR 168 were released in november 2003 with first compliance announcement made by Sun and eXo platform in december 2003....8 months ago which is long period in our industry.
The first portlet book was then released on february 2004 (6 months ago :) )and we know many projects using open source portals to build web sites exactly the way you use Postnuke.
The number of certified Open Source portlets is big too with forum and wiki portlets bundled in each.
Of course you can use the portal you want but better eat your own dog food!
I think we documented someone else's dogfood ;-)
Which fully featured JSR168 compliant forum portlet(s) would you recommend ? I've evidently missed a trick here - if you can suggest one or more to take for a test drive, I'll give them a whirl and a write up.
Thanks for noticing :)
We run PostNuke because we're using a basic PHP/MySQL web hosting package, and portalbook.com is lumped in with a few other domains (like my mozillatips.com).
It would be nice to host portalbook.com on my own computer, but I like not having to worry about administration.
This one is a good explanation :)
That's true that java hosting is not that simple and portal hosting will even be worse as each portlet is deployed as a single war.
Hope hosting services will come with a solution soon, there is a real market.
I've been unable to reach the site. Has it moved, or is it no longer available?
I just got mz book, tried to access portalbook.com, but it's down, why?
Anyway the reason for me to access portalbook.com is that I have problems with pluto rc1, and pluto rc2 and the examples from the book, not to mention that i have a proble with the example from chapter 2 FirstPortlet.
Where can I acces a forum to ask about these problems..
Liferay, another J2ee open source portal that is JSR-168 compliant, offers built in message boards, email, calendar, wiki, and other group ware portlets.
Liferay also provides a built in portal hosting solution that is available right now with over 60 portlets.
You can demo it at http://demo.liferay.net
and compare it to our other running instances, all sharing the same wars, and ejbs, athttp://my.3sixteen.com
(another church site)
An overview of the Liferay architecture is available athttp://www.liferay.com/documentation/architecture_overview.jsp#vi
We've also been hosting other portals for over 4 years now.
I was just now looking at this chapter and noticed the XDoclet bug mentioned. Good catch! (BTW, thanks for mentioning my name!).
I've been somewhat busy for the last few months and just now noticed the issue in XDoclet's JIRA. I can't guarantee when an XDoclet release will include this, but I'll certainly fix it when I get home tonight.
Excellent! We'll make a note that its fixed on our web site.
And I promised I'd put your name in :)
If anyone of you were able to successfully download the entire document then please share it with me at [email protected]