Bug 810505

Summary: a4j:push not working in RichFaces demo packaged with EPP
Product: [JBoss] JBoss Enterprise Portal Platform 5 Reporter: Miroslav Cupák <mcupak>
Component: PortletBridgeAssignee: Nobody <nobody>
Status: VERIFIED --- QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: 5.2.1.ER03CC: epp-bugs, tkyjovsk
Target Milestone: ---   
Target Release: 5.2.2.ER01   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Miroslav Cupák 2012-04-06 13:21:16 UTC
Description of problem:
The following part of web.xml of the RichFaces demo is required for a4j:push to work over Portlet Bridge:

<context-param>
    <param-name>A4J.AJAX.Push.URL</param-name>
    <param-value>/richFacesPortlet/faces/a4j.push</param-value>
</context-param>

The value of the parameter needs to point to the web app context. In this case the value is set to "richFacesPortlet", which is the default name of the war file for Portlet Bridge, but the demo is bundled with EPP as "richFacesPortlet-[Portlet Bridge version].war" and thus a4j:push doesn't work by default.

Two possible ways to fix this:
1, Distribute the example as "richFacesPortlet.war".
2, Alter web.xml of the example before it's packaged with EPP.

Since we already dropped the version in the name of the Seam example for a similar reason, I'd suggest going with the first option and get rid of the version in the name of all the bridge examples.

Comment 1 hfnukal@redhat.com 2012-06-21 08:42:14 UTC
Renaming examples removing version.

Comment 2 Miroslav Cupák 2012-08-27 16:10:38 UTC
Verified again with 5.2.2.CR01.