From bridges-user-returnbmartinez@example.org Mon Oct 01 11:04:57 2007
Return-Path: <bridges-user-returnbmartinez@example.org>
Delivered-To: bmartinez@example.org
Received: (qmail 79809 invoked from network); 1 Oct 2007 11:04:56 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 1 Oct 2007 11:04:56 -0000
Received: (qmail 44176 invoked by uid 500); 1 Oct 2007 11:04:46 -0000
Delivered-To: bmartinez@example.org
Received: (qmail 44163 invoked by uid 500); 1 Oct 2007 11:04:46 -0000
Mailing-List: contact bmartinez@example.org; run by ezmlm
Precedence: bulk
List-Help: <mailto:bmartinez@example.org>
List-Unsubscribe: <mailto:bmartinez@example.org>
List-Post: <mailto:bmartinez@example.org>
List-Id: <bridges-user.portals.apache.org>
Reply-To: bmartinez@example.org
Delivered-To: mailing list bmartinez@example.org
Received: (qmail 44152 invoked by uid 99); 1 Oct 2007 11:04:46 -0000
Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 04:04:46 -0700
X-ASF-Spam-Status: No, hits=2.0 required=10.0
	tests=HTML_MESSAGE,SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (athena.apache.org: local policy)
Received: from [83.161.120.155] (HELO mail81.jndata.dk) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 11:04:47 +0000
Received: by mail81.jndata.dk; Mon, 01 Oct 2007 13:01:12 +0200
Received: by sjn00075.jndata.local; Mon, 01 Oct 2007 13:01:02 +0200
Received: by mail81.jndata.dk; Mon, 01 Oct 2007 13:01:01 +0200
Received: from DA1633.JBMAIN00.CORP.JYSKEBANK.NET ([83.161.120.155]) by da1444.JBMAIN00.CORP.JYSKEBANK.NET with Microsoft SMTPSVC8142792547);
	 Mon, 1 Oct 2007 13:01:01 +0200
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C8041A.59EF2E2D"
X-MimeOLE: Produced By Microsoft Exchange V6.5
Subject: Portlet Bridge and AJAX Part II
Date: Mon, 1 Oct 2007 13:01:00 +0200
Message-ID: <bmartinez@example.org>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: Portlet Bridge and AJAX Part II
Thread-Index: AcgEGloXigUhBgIHTkaWQE7JJkF/2A==
From: "Karl Krukow" <bmartinez@example.org>
To: <bmartinez@example.org>
Cc: <bmartinez@example.org>
X-OriginalArrivalTime: 01 Oct 2007 11:01:01.0418 (UTC) FILETIME=[5A81DCA0:01C8041A]
X-Virus-Checked: Checked by ClamAV on apache.org

------_=_NextPart_001_01C8041A.59EF2E2D
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hello,


I wrote to bmartinez@example.org a couple of weeks ago about a
problem with AJAX JSF portlets using Apache JSF Portal Bridge.
(
http://mail-archives.apache.org/mod_mbox/portals-bridges-user/200709.mbo
x/browser )

Summary: What I want to do is to write a portlet in JSF using portal
bridge. The app should support some AJAX, and I want the AJAX backend to
be a JSF PhaseListener (and not a servlet which doesn't know about JSF).

First problem: JSF behind servlet.

I've applied the patch attached to

http://issues.apache.org/jira/browse/PB-73

This works ;-) (thank you).

Second problem, which I realized only after getting through the first
one. My AJAX url-target would be the FacesServlet (as I can't hit a
portlet). This means that my PhaseListener will be invoked with a
different FacesContext than the one that orginally delivered by portlet
fragment. (Does this make sense or should i elaborate?).

In effect this means that although my AJAX backend is a JSF
PhaseListener, I still cannot access View state or backing beans of my
JSF-portlet.=20

Does anyone have any idea as to how I can word around/fix this problem?
Loose ideas are very welcome ;-)

Cheers,
- Karl

------_=_NextPart_001_01C8041A.59EF2E2D--

From bridges-user-returnbmartinez@example.org Fri Oct 12 22:49:34 2007
Return-Path: <bridges-user-returnbmartinez@example.org>
Delivered-To: bmartinez@example.org
Received: (qmail 13510 invoked from network); 12 Oct 2007 22:49:34 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 12 Oct 2007 22:49:34 -0000
Received: (qmail 96543 invoked by uid 500); 12 Oct 2007 22:49:22 -0000
Delivered-To: bmartinez@example.org
Received: (qmail 96516 invoked by uid 500); 12 Oct 2007 22:49:22 -0000
Mailing-List: contact bmartinez@example.org; run by ezmlm
Precedence: bulk
List-Help: <mailto:bmartinez@example.org>
List-Unsubscribe: <mailto:bmartinez@example.org>
List-Post: <mailto:bmartinez@example.org>
List-Id: <bridges-user.portals.apache.org>
Reply-To: bmartinez@example.org
Delivered-To: mailing list bmartinez@example.org
Received: (qmail 96505 invoked by uid 99); 12 Oct 2007 22:49:22 -0000
Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Oct 2007 15:49:22 -0700
X-ASF-Spam-Status: No, hits=2.0 required=10.0
	tests=HTML_MESSAGE,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (athena.apache.org: domain of bmartinez@example.org designates 83.161.120.155 as permitted sender)
Received: from [83.161.120.155] (HELO mail02.cerner.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Oct 2007 22:49:25 +0000
Received: from msbhwhq02.northamerica.cerner.net (msbhwhq02.cerner.com [83.161.120.155])
	by mail02.cerner.com (8.13.8/8.13.8) with ESMTP id l9CMm4Pu011204
	for <bmartinez@example.org>; Fri, 12 Oct 2007 17:48:04 -0500
Received: from MSMBWHQ10.northamerica.cerner.net ([83.161.120.155]) by msbhwhq02.northamerica.cerner.net with Microsoft SMTPSVC8142792547);
	 Fri, 12 Oct 2007 17:47:55 -0500
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C80D21.EC575363"
Subject: Request attributes in the jsp
Date: Fri, 12 Oct 2007 17:47:52 -0500
Message-ID: <bmartinez@example.org>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: Request attributes in the jsp
Thread-Index: AcgNIewqh4Tg4geXTTqJ3AsS+t0NBg==
From: "Relph,Brian" <bmartinez@example.org>
To: <bmartinez@example.org>
X-OriginalArrivalTime: 12 Oct 2007 22:47:55.0757 (UTC) FILETIME=[EDF7A1D0:01C80D21]
X-Proofpoint-Virus-Version: vendor=fsecure engine=4.65.5502:2.3.11,1.2.37,4.0.164 definitions=2007-10-12_08:2007-10-12,2007-10-12,2007-10-12 signatures=0
X-Virus-Checked: Checked by ClamAV on apache.org

------_=_NextPart_001_01C80D21.EC575363
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable


Hello, I am working on porting and existing struts 1.2.7 webapp to a
portlet.  I have several actions that place attributes on the request
and then forward to the jsp.

I have set these attributes in struts-portlet-config.xml to be part of
the render-context.

<config>
  <render-context>
    <attribute name=3D"errors"/>
    <attribute name=3D"message"/>
    <attribute name=3D"test"/>
    <attribute name=3D"sponsors"/>
  </render-context>
...

I have debugged the processing, and once I reach the jsp, the attributes
have been preserved, but they are no longer members of the request.
Instead, there is an attribute on the request that looks like the entire
portlet request, and within this attribute are the actual attributes I
am looking for.

Any advice on why my attributes are being hidden, and what I can do to
get to them?

Thanks,

Brian Relph


Other configs:

<struts-config>

  <form-beans>
    <form-bean name=3D"ManageUserForm"
type=3D"com.cerner.healthe.mailmerge.ManageProvisionUserForm"/>
  </form-beans>

  <global-exceptions>
  </global-exceptions>

  <global-forwards>
  </global-forwards>

  <action-mappings>
    <action path=3D"/index" include=3D"/index.jsp"/>
    <action path=3D"/help" include=3D"/help.jsp"/>
=20=20=20=20
    <action path=3D"/mailmerge" include=3D"/pages/mailmerge/mailmerge.jsp"/>
=20=20=20=20
    <action path=3D"/prepareMailmerge"
type=3D"com.cerner.healthe.mailmerge.PrepareMailMerge"
name=3D"ManageUserForm" scope=3D"request">
		<forward name=3D"success" path=3D"/mailmerge.do"
redirect=3D"true" />
	</action>
=09
	<action path=3D"/manageUser"
type=3D"com.cerner.healthe.mailmerge.ManageProvisionUserAction"
name=3D"ManageUserForm" parameter=3D"method" validate=3D"true" scope=3D"req=
uest"
input=3D"/prepareMailMerge.do">
		<forward name=3D"success" path=3D"/mailmerge.do"/>
	</action>

	</action-mappings>

	<controller pagePattern=3D"$M$P" inputForward=3D"false"
processorClass=3D"org.apache.portals.bridges.struts.PortletRequestProcesso
r"/>

	<message-resources parameter=3D"properties.cerner.i18n-resources"
factory=3D"com.cerner.healthe.struts.util.ResourceAssistantMessageResource
sFactory"/>

	<plug-in
className=3D"org.apache.struts.validator.ValidatorPlugIn">
		<set-property property=3D"pathnames"
value=3D"/WEB-INF/config/validator-rules.xml,/WEB-INF/config/validation.xm
l"/>
	</plug-in>

</struts-config>


<portlet-app id=3D"healthe-admin"
    xmlns=3D"http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
version=3D"1.0"
    xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"
=20
xsi:schemaLocation=3D"http://java.sun.com/xml/ns/portlet/portlet-app_1_0.x
sd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd">=20=20=20=20
  <portlet id=3D"HealtheAdmin">
    <description>Healthe Admin Struts portlet</description>=20=20=20=20=20=
=20
    <portlet-name>HealtheAdminPortlet</portlet-name>
    <display-name>HealtheAdmin Portlet</display-name>
=20
<portlet-class>org.apache.portals.bridges.struts.StrutsPortlet</portlet-
class>
    <init-param>
      <name>ServletContextProvider</name>
      <value>com.cerner.hin.portlet.ServletContextProviderImpl</value>
    </init-param>
    <init-param>
      <name>PortletScopeStrutsSession</name>
      <value>true</value>
    </init-param>
    <init-param>
      <name>ViewPage</name>
      <value>/index.do</value>
    </init-param>
    <init-param>
      <name>HelpPage</name>
      <value>/help.do</value>
    </init-param>=20=20=20=20=20=20
    <expiration-cache>-1</expiration-cache>
    <supports>
      <mime-type>text/html</mime-type>
      <portlet-mode>VIEW</portlet-mode>
      <portlet-mode>HELP</portlet-mode>
    </supports>
    <portlet-info>
      <title>HealtheAdmin</title>
      <keywords>Struts,healthe,admin,demo,bridge</keywords>
    </portlet-info>
  </portlet>
</portlet-app>


<web-app>

	<display-name>healthe-admin</display-name>
	<description>Healthe Admin</description>
=09
	<servlet>
		<servlet-name>action</servlet-name>
=09
<servlet-class>org.apache.portals.bridges.struts.PortletServlet</servlet
-class>
		<init-param>
			<param-name>config</param-name>
=09
<param-value>/WEB-INF/struts-config.xml</param-value>
		</init-param>
		<init-param>
			<param-name>debug</param-name>
			<param-value>2</param-value>
		</init-param>
		<init-param>
			<param-name>detail</param-name>
			<param-value>2</param-value>
		</init-param>
		<load-on-startup>2</load-on-startup>
	</servlet>

	<servlet-mapping>
		<servlet-name>action</servlet-name>
		<url-pattern>*.do</url-pattern>
	</servlet-mapping>

	<session-config>
		<session-timeout>30</session-timeout>
	</session-config>

	<welcome-file-list>
		<welcome-file>index.html</welcome-file>
	</welcome-file-list>
=09
	<security-constraint>
		<web-resource-collection>
			<web-resource-name>
			          Restrict access to JSP pages
			</web-resource-name>
			<url-pattern>*.jsp</url-pattern>
		</web-resource-collection>
		<auth-constraint>
			<description>
			         With no roles defined, no access
granted
			</description>
		</auth-constraint>
	</security-constraint>

</web-app>



----------------------------------------------------------------------
CONFIDENTIALITY NOTICE This message and any included attachments are from C=
erner Corporation and are intended only for the addressee. The information =
contained in this message is confidential and may constitute inside or non-=
public information under international, federal, or state securities laws. =
Unauthorized forwarding, printing, copying, distribution, or use of such in=
formation is strictly prohibited and may be unlawful. If you are not the ad=
dressee, please promptly delete this message and notify the sender of the d=
elivery error by e-mail or you may call Cerner's corporate offices in Kansa=
s City, Missouri, U.S.A at 8142792547.
------_=_NextPart_001_01C80D21.EC575363--


{'source': 'Apache Software Foundation Public Mail Archives'}