InfoQ

News

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

Posted by Ryan Slobojan on Aug 11, 2008 04:00 AM

Community
Java
Topics
Portal/CMS
Tags
JBoss Portlet Container ,
JBoss Portal ,
JSR 301 ,
JBoss Portlet Bridge ,
JSF

This article, the first in a three-part series by Wesley Hales, lays the framework for the rest of the series. It covers setting up a new project using JBoss Portlet Container and JBoss Portlet Bridge, configuring a JSF application to use JBoss Portlet Bridge, and the capabilities that JBoss Portlet Bridge provides to a JSF application.

From the article:

Portals have gained a lot of ground over the past few years, both in the enterprise and with the new enhancements of the portlet 2.0 (JSR 286) specification. The new 2.0 portlets allow you many freedoms in aggregating different applications and presenting them in different windows on one page. And of course, you get authentication, sophisticated personalization features, and better ways of handling AJAX out of the box.

With the JSR 301 portlet bridge specification, we now have a standard way of running JSF applications as both 1.0 and 2.0 portlets. The portlet bridge handles the portal Action/Render paradigm to properly handle the JSF lifecycle. While this tutorial is mainly to show you how easy it is to configure and develop a JSF portlet, I will also be revealing the new JBoss Portlet Container 2.0 and some of it’s cool new features.

Read the full article here.

Fatal Error by Venkat Kodali Posted Oct 6, 2008 8:38 AM
Re: Fatal Error by Wesley Hales Posted Oct 7, 2008 4:13 PM
Re: Fatal Error by Roel Slieker Posted Dec 8, 2008 5:05 AM
Getting Build Errors by J Crisp Posted Nov 17, 2008 10:33 AM
Re: Getting Build Errors by xuesong mei Posted Dec 2, 2008 10:45 AM
Re: Getting Build Errors by Wesley Hales Posted Jan 9, 2009 10:34 AM
  1. Back to top

    Fatal Error

    Oct 6, 2008 8:38 AM by Venkat Kodali

    Hi Wesley, Nice article, I am getting this error while build. Appreciate your help thanks

    [INFO] [cargo:start] [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error while expanding C:\test\jboss\DashboardPortal\DashboardPortal\targe t\installs\jboss-portletcontainer-2.0.0-jbossas42.tar.gz Unexpected end of ZLIB input stream [INFO] ------------------------------------------------------------------------ [INFO] Trace in cargo code: Error while expanding C:\test\jboss\DashboardPortal\DashboardPort al\target\installs\jboss-portletcontainer-2.0.0-jbossas42.tar.gz

  2. Back to top

    Re: Fatal Error

    Oct 7, 2008 4:13 PM by Wesley Hales

    Looks like your download probably died early (reset) or it was corrupt for some reason. Just run 'mvn clean' and go through the process again.

  3. Back to top

    Getting Build Errors

    Nov 17, 2008 10:33 AM by J Crisp

    I am trying to work through the article but getting an error: C:\>mvn install cargo:start -Premote-portal -Dpc20 [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'cargo'. [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] The plugin 'org.apache.maven.plugins:maven-cargo-plugin' does not exist o r no valid version could be found I setup Maven as instructed above. Am I missing something else?

  4. Back to top

    Re: Getting Build Errors

    Dec 2, 2008 10:45 AM by xuesong mei

    Yes, I have the same problem.

  5. Back to top

    Re: Fatal Error

    Dec 8, 2008 5:05 AM by Roel Slieker

    For some reason the automated downloading gets abrupted, and it's not due to bad network. Just download the files http://downloads.sourceforge.net/jboss/jboss-portletcontainer-2.0.0-jbossas42.tar.gz and http://downloads.sourceforge.net/jboss/jboss-portal-2.6.5.SP1-bundled.zip manually and put in ./target/installs Run "mvn install cargo:start -Premote-portal -Dpc20" again and it will work.

  6. Back to top

    Re: Getting Build Errors

    Jan 9, 2009 10:34 AM by Wesley Hales

    Make sure you are in the archetype directory that has been created.

Educational Content

Bindings, Platforms, and Innovation

This presentation focuses on the Internet and separating myth from fact, history from the future, and the mundane from the imaginative. Bob Frankston presents a vision of what could and should be.

Orchestrating Long Running Activities with JBoss / JBPM

This article explores the use of JBoss and jBPM to implement design solutions that effectively address the issue of orchestrating long running activities.

Neo4j - The Benefits of Graph Databases

This presentation covers the use of graph databases as an optimal solution for data that is difficult to fit in static tables, rapidly evolving data or data that has a lot of optional attributes.

Realistic about Risk: Software development with Real Options

This session introduces Real Options and shows how it can help in running your project. Real Options is a decision-making process that can be used to manage risk.

Communication Flexibility Using Bindings

This article discusses the use of bindings on services and references (including the instance of non-configured bindings) as the means to implement SCA communications in a Web and SOA environment.

Writing DSLs in Groovy

After a short introduction to DSLs, Scott Davis plays with the keyboard showing how to approach the creation of a DSL by typing working snippets of Groovy code that get executed.

Scaling Agile with C/ALM (Collaborative Application Lifecycle Management)

IBM Rational and InfoQ present, Scaling Agile with C/ALM, an eBook showing organizations how to become “finely tuned software delivery machines” by enabling team integration and scaling.

Concurrent Programming with Microsoft F#

Amanda Laucher presents a real life enterprise application written in F#. She shows actual code snippets, explaining design decisions and suggesting how to use some of the F# constructs.