InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

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

Posted by Ryan Slobojan on Aug 11, 2008

Sections
Development,
Operations & Infrastructure
Topics
Java ,
Portal/CMS
Tags
JBoss Portal ,
JBoss Portlet Container ,
JBoss Portlet Bridge ,
JSF ,
JSR 301

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
Re: Fatal Error by Wesley Hales Posted
Re: Fatal Error by Roel Slieker Posted
Getting Build Errors by J Crisp Posted
Re: Getting Build Errors by mei xuesong Posted
Re: Getting Build Errors by Wesley Hales Posted
  1. Back to top

    Fatal Error

    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

    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

    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

    by mei xuesong

    Yes, I have the same problem.

  5. Back to top

    Re: Fatal Error

    by Roel Slieker

    For some reason the automated downloading gets abrupted, and it's not due to bad network.
    Just download the files downloads.sourceforge.net/jboss/jboss-portletco... and
    downloads.sourceforge.net/jboss/jboss-portal-2.... 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

    by Wesley Hales

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

Educational Content

Jesper Boeg on Priming Kanban

In this interview, Jesper Boeg, author of the new InfoQ book – Priming Kanban, discusses the keys to using Kanban effectively, and how to get started if you are currently using other approaches.

New-age Transactional Systems - Not Your Grandpa's OLTP

John Hugg discusses high volume transaction processing applications with high and low frequency profiles, and how VoltDB can be used for that purpose.

Cool Code

Kevlin Henney examines code samples to see what can be learned from them starting from the premise that one won’t write great code unless he knows how to read it.

Collaboration: At the Extremities of Extreme

Jason Ayers share the observations he made watching a team of developers collaborating in real time on the same code base, pushing XP, pair programming and continuous integration to their extremes.

Yesod Web Framework

Michael Snoyman presents Yesod, a web framework written in Haskell and containing a web server, templating, ORM, libraries (templating, gravatar, etc.).

Transactions without Transactions

Richard Kreuter and Kyle Banker on how to avoid classical RDBMS transactional systems by using compensation mechanisms, transactional messaging or transactional procedures.

Attila Szegedi on JVM and GC Performance Tuning at Twitter

Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.