BT

Article: Developing Portlets using JSF, Ajax, and Seam (Part 3 of 3)

by Ryan Slobojan on Sep 24, 2008 |

This article, the last in a three-part series by Wesley Hales, expands upon the previous articles by introducing Seam. It covers integrating Seam into the previous sample application, deploying a Seam portlet, Bridgelets, Single-sign on between Seam and JBoss Portal, and several new features and capabilities of JBoss Portlet Bridge.

From the article:

[...] The portlet bridge community has already started contributing patches and other help to the project in its early beta stages. Although the core of the project is the JSR-301 specification, there is limitless potential to integrating Seam, Richfaces, and Portal with Bridgelets and other supporting enhancements. There are several developers contributing to the project and we extend a special thanks to all of the people who have already contributed patches, enahncements, and helped answer questions on the forums.

In the end, this is a community based project, and the more developers that offer help and feedback, the faster we will get new releases out with better code and enhancements. The GA release is expected in early '09.

Read the full article here.

Hello stranger!

You need to Register an InfoQ account or to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

SSO In booking portlet throws exception after clicking search by David Paterson

So I've got the SSO bridgelet B6 working with the booking demo. The SSO piece seems to be working. As soon as I click search in the search form I get the following exception, appears related to AJAX call perhaps. Do you have the same problem when you deploy the Booking portlet? Perhaps I've got something configured incorrectly? Seems like some kind of infinite loop is happening:


12:59:33,046 INFO [STDOUT] 2009-01-28 12:59:33,046 INFO [org.jboss.portletbridge.bridge] - Finish rendering portletbridge for namespace jbpns_2fdefault_2fSeamB
ooking_2fseamBookingPortletWindowsnpbj
12:59:38,000 WARN [lifecycle] phase(RESTORE_VIEW 1,org.jboss.portletbridge.context.FacesContextImpl@17627b7) threw exception: java.lang.StackOverflowError null
java.lang.ThreadLocal.getMap(ThreadLocal.java:177)
java.lang.ThreadLocal.get(ThreadLocal.java:125)
javax.faces.context.FacesContext.getCurrentInstance(FacesContext.java:392)
org.jboss.portletbridge.extension.seam.PortalIdentity.getPrincipal(PortalIdentity.java:113)
org.jboss.seam.web.IdentityRequestWrapper.getUserPrincipal(IdentityRequestWrapper.java:33)
org.jboss.portletbridge.context.ServletExternalContextImpl.getUserPrincipal(ServletExternalContextImpl.java:387)
org.jboss.portletbridge.extension.seam.PortalIdentity.getPrincipal(PortalIdentity.java:113)
org.jboss.seam.web.IdentityRequestWrapper.getUserPrincipal(IdentityRequestWrapper.java:33)
org.jboss.portletbridge.context.ServletExternalContextImpl.getUserPrincipal(ServletExternalContextImpl.java:387)
org.jboss.portletbridge.extension.seam.PortalIdentity.getPrincipal(PortalIdentity.java:113)
....

Re: SSO In booking portlet throws exception after clicking search by Wesley Hales

There is a new identity model in Seam 2.1.x and this bridgelet is for the pre 2.1 versions of Seam. It is a known issue and we should have it working in the next bridge release.

Seam Booking Demo not working by Philip Puthenvila

Hi
I am trying t run the seam booking demo. I changed the url to to point to the demo source. repeated all other steps for seamproject, at the end I got the same seamproject portlet. I want to develop an application ,So i decide to go with seam and jsf . what I have to do get the seam hotel booking to run.Please help
Regards
Philip

Re: Seam Booking Demo not working by Mahesh Lavannis

Hi Philip,
FYI - Here is how I got it to work:
I downloaded the Booking example from labs.jboss.com/portletbridge/downloads/ - it is part of the src download for JBoss Portlet Bridge. I ran mvn install in the 'booking' directory, copied the SeamEAR.ear into the server/default/deploy of the JBoss portal server and it works.

Hope this helps,
Mahesh

Re: Seam Booking Demo not working by Mahesh Lavannis

You can also get a maven setup archetype for Seam Portlet here:

www.jboss.org/files/portletbridge/docs/1.0.0.CR...

But I haven't tried it out myself yet.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

5 Discuss

Educational Content

General Feedback
Bugs
Advertising
Editorial
InfoQ.com and all content copyright © 2006-2013 C4Media Inc. InfoQ.com hosted at Contegix, the best ISP we've ever worked with.
Privacy policy
BT