Inter Portlet Communication JSR286 chnages

page.xml
<cross-page-wire action="update" domain="rel" immediate-switch="true" objectid="10_I8AA1AO0GGD4D0I983LEVI3002" ordinal="0" source-pageref="6_I8AA1AO0G81VF0IU4TPL3530G0" source-portletinstanceref="5_I8AA1AO0G81VF0IU4TPL3530G5" source-property="publish.{http:bluf.com/events}ExceptionEvent" target-action="process.{http:bluf.com/events}ExceptionEvent" target-pageref="6_2A5IGJG0GOUJ10IIFCH4V42084" target-param="process.{http:bluf.com/events}ExceptionEvent" target-portletinstanceref="5_2A5IGJG0GGDJ40IASDNVIN2007" user="anonymous portal user"/>
        <cross-page-wire action="update" domain="rel" immediate-switch="true" objectid="10_I8AA1AO0GGD4D0I983LEVI3001" ordinal="0" source-pageref="6_2A5IGJG0GOUJ10IIFCH4V42084" source-portletinstanceref="5_2A5IGJG0GGDJ40IASDNVIN2007" source-property="publish.{http:bluf.com/events}backToException" target-action="process.{http:bluf.com/events}backToException" target-pageref="6_I8AA1AO0G81VF0IU4TPL3530G0" target-param="process.{http:bluf.com/events}backToException" target-portletinstanceref="5_I8AA1AO0G81VF0IU4TPL3530G5" user="anonymous portal user"/>
PortletNo1 portlet.xml
<supported-processing-event>
            <qname xmlns:x="http:bluf.com/events">x:backToException</qname>
        </supported-processing-event>
        <supported-publishing-event>
            <qname xmlns:x="http:bluf.com/events">x:ExceptionEvent</qname>
        </supported-publishing-event> 


 PortletNo2 portlet.xml
<supported-processing-event>
            <qname xmlns:x="http:bluf.com/events">x:ExceptionEvent</qname>
        </supported-processing-event>
        <supported-publishing-event>
            <qname xmlns:x="http:bluf.com/events">x:backToException</qname>
        </supported-publishing-event>


Add Event info to the portlet.xml
<default-namespace>http://target/</default-namespace>
    <event-definition>
        <qname xmlns:x="http:jpmc.com/events">x:ExceptionEvent</qname>
        <value-type>com.jpmc.gap.event.WrapperEvent</value-type>
    </event-definition>
    <event-definition>
        <qname xmlns:x="http:jpmc.com/events">x:backToException</qname>
    </event-definition>



0 comments: