2009-11-25 2 views
0

ICEFaces + Liferay : war 파일 인 firstApp.war 및 secondApp.war 파일을 두 개 만들고 liferay에 배포했습니다. firstApp.war 응용 프로그램의 페이지에서 submit 버튼을 클릭하면 firstAppBacking bean이 public-render-parameter에 값을 설정하여 IPC와 같은 secondApp.war 응용 프로그램에서 해당 값을 가져올 수 있도록 구현하려고합니다. 제발 최선을 다해 제가 firstAppText에서 가치를 설정할 수 있습니다.ICEFaces + Liferay : public-render-parameter 값을 설정하는 방법

<portlet-app ....> 
<portlet> 
    <portlet-name>firstApp</portlet-name> 
    <display-name>First App</display-name> 
    <portlet-class>com.icesoft.faces.webapp.http.portlet.MainPortlet</portlet-class> 
    <init-param> 
     <name>com.icesoft.faces.VIEW</name> 
     <value>/jsp/firstApp.iface</value> 
    </init-param> 
    .... 
    **<supported-public-render-parameter>firstAppText</supported-public-render-parameter>** 
</portlet> 
<public-render-parameter> 
    <identifier>firstAppText</identifier> 
    <qname xmlns:x="http://www.liferay.com/public-render-parameters">x:firstAppText</qname> 
</public-render-parameter> 

답변

1

그렇게하는 방법은 여러 가지가 있습니다. 우선, 기본 개념은 잘 설명되어 있습니다 here.

보시다시피, 다른 "컨텍스트"에서 데이터를 공유 할 수 있습니다. 한 가지 방법은 portlet.xml에서 shared-portlet-session-attribute를 선언하여 세션을 통해 데이터를 공유하는 것입니다. 데이터를 공유 할 수

<shared-portlet-session-attribute> 
    <name>someName</name> 
    <java-class>com.some.class</java-class> 
<shared-portlet-session-attribute> 

다른 방법은 다음과 같습니다 - PortletSession - PortletContext - 페이지 매개 변수 - 포틀릿 이벤트

여러 가지 방법이 this book에 설명되어 있습니다

. 나는 아직 모든 것을 시도하지 않았으므로 더 자세한 내용을 말할 수는 없다.

관련 문제