From do-not-reply at jboss.org Wed Nov 30 13:02:56 2011 Content-Type: multipart/mixed; boundary="===============0747235863135642784==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: gatein-commits at lists.jboss.org Subject: [gatein-commits] gatein SVN: r8166 - portal/trunk/docs/reference-guide/en-US/modules. Date: Wed, 30 Nov 2011 13:02:56 -0500 Message-ID: <201111301802.pAUI2ubg010930@svn01.web.mwc.hst.phx2.redhat.com> --===============0747235863135642784== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: chris.laprun(a)jboss.com Date: 2011-11-30 13:02:55 -0500 (Wed, 30 Nov 2011) New Revision: 8166 Modified: portal/trunk/docs/reference-guide/en-US/modules/WSRP.xml Log: - GTNWSRP-267: Added section on using pages.xml and to add a remote = portlet to a page. Modified: portal/trunk/docs/reference-guide/en-US/modules/WSRP.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- portal/trunk/docs/reference-guide/en-US/modules/WSRP.xml 2011-11-30 17:= 11:28 UTC (rev 8165) +++ portal/trunk/docs/reference-guide/en-US/modules/WSRP.xml 2011-11-30 18:= 02:55 UTC (rev 8166) @@ -778,8 +778,7 @@ = = - Here is an example of a WSRP descriptor with registratio= n data and cache expiring every minute: - + Here is an example of a WSRP descriptor with registratio= n data and cache expiring every minute: = @@ -841,6 +840,109 @@ + + + Adding remote portlets to pages + + Since remote portlets can be manipulated just like regular por= tlets, you can add them to pages just like you + would do for a regular portlet. Please refer to the appropriat= e section of the documentation for how to do + so. + + + Of note, though, is that, starting with version 3.2 of GateIn = (5.2 of EPP), it is now possible to also add a + remote portlet to a + pages.xml + configuration file. + This is accomplished using the + <wsrp> + element instead of the + <portlet> + element in your + pages.xml + document. While + <portlet> + references a local portlet using the name of the application i= n which the portlet is contained and the + portlet name itself to identify which portlet to use, + <wsrp> + references a remote portlet using a combination of the consume= r identifier for the producer publishing the + portlet and the portlet handle identifying the portlet within = the context of the producer. + + + The format for such a reference to a remote portlet is a follo= ws: first, the identifier of the + consumer that accesses the remote producer publishing the remo= te portlet, then a separator (currently a + period (.)) and finally the portlet handle = for that + portlet, which is a string provided by the producer to identif= y the portlet. + + + Since there currently is no easy way to determine the correct = portlet handle, we recommend that you use the + graphical user interface to add remote portlets to pages inste= ad of using + pages.xml. + + + + For remote portlets published by &PRODUCT_NAME;'s WSRP prod= ucer, the portlet handles are, at + the time of this writing, following the + /<portlet application name>.<portlet name= > + format. + + + + Example + + In the following example, we define 2 portlets for a page n= amed + Test + in our + pages.xml + configuration. They are actually references to the same por= tlet, albeit one accessed locally and the + other + one accessing it via the + selfv2 + consumer which consumes &PRODUCT_NAME;'s WSRP producer. You= can see that the first one is local (the + <portlet-application> + with the + 'Added locally' + title) and follows the usual declaration. The second portle= t (the one with the + 'Added from selfv2 consumer' + title) comes from the + selfv2 + consumer and uses the + <wsrp> + element instead of + <portlet> + element and follows the format for portlets coming from the= &PRODUCT_NAME;'s WSRP producer. + + + + + Test + + ... + + + + richFacesPortlet + richFacesPortlet + + Added locally + + ... + + + + + selfv2./richFacesPortlet.richFacesPortlet + Added from selfv2 consumer + + ... + + +]]> + + + + + = --===============0747235863135642784==--