OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

wsrp message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [no subject]


confusion. Below is a list of questions:
=20
1.      HandleEventResponse and BlockingInteractionResponse are identical, =

but defined as two distinct types, why is this?

<rdt>Opened issue #43</rdt>
=20
2.      According to paragraph 6.4.2.1 Event Handling, the Consumer may=20
invoke handleEvent() on different Portlets simultaneously. But if the=20
event handling has the same Producer-side semantics as processing user=20
interaction, all the restrictions described in paragraph 6.4.1 must be=20
applicable as well. Which means that all the operations on the page must=20
be blocked until handleEvent() either returns or fails.

<rdt>My understanding from the discussion to-date is that handleEvent=20
invocations may happen in parallel, but that other processing is blocked=20
until the Consumer decides it has no more events for a particular portlet. =

The Consumer may then start a getMarkup on that portlet. I'm sure we need=20
to be more explicit about this ... do people think that the Consumer must=20
wait for all portlets to exit the event distribution step before starting=20
to collect markup? </rdt>
=20
3.      What if HandleEventResponse contains events? Must they be=20
processed by the Consumer?=20
Let?s consider a Consumer processing a page which contains two portlets:=20
P1 and P2.
a.      Consumer calls P1.performBlockingInteraction(), and gets event E1
b.      Consumer propagates the event to the Portlets:
                                                               i.     =20
Question: should the consumer invoke P1.handleEvent(E1)? I guess no?
<rdt>The Consumer is not bound to send the event to any portlets and I=20
expect most will explicitly exclude the source portlet. Should we make=20
this explicit in the spec so that portlets design for it?</rdt>
                                                             ii.     =20
Consumer calls P2.handleEvent(E1) and gets another event E2 in the=20
response.
                                                            iii.      Must =

the Consumer call P1.handleEvent(E2)? If yes, there could be an endless=20
loop; if no, the HandleEventResponse should not contain events?
<rdt>The Consumer is free to exit the event distribution step whenever it=20
wants to. As part of loop prevention, Consumers should have a limit on the =

number of generations of events they distribute ...</rdt>
=20
Regards,
Artem
Artem Spector | Portal Platform Infrastructure | NetWeaver Application=20
Platform | SAP Labs Israel| (+972-9) 7779567
=20

--=_alternative 005F418C85256FBD_=
Content-Type: text/html; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable


<br><font size=3D2 color=3Dblue face=3D"sans-serif">Comments inline</font>
<br><font size=3D2 face=3D"sans-serif"><br>
Rich </font>
<br>
<br>
<br>
<table width=3D100%>
<tr valign=3Dtop>
<td width=3D40%><font size=3D1 face=3D"sans-serif"><b>&quot;Spector, Artem&=
quot;
&lt;artem.spector@sap.com&gt;</b> </font>
<p><font size=3D1 face=3D"sans-serif">03/06/05 12:29 PM</font>
<td width=3D59%>
<table width=3D100%>
<tr>
<td>
<div align=3Dright><font size=3D1 face=3D"sans-serif">To</font></div>
<td valign=3Dtop><font size=3D1 face=3D"sans-serif">&lt;wsrp@lists.oasis-op=
en.org&gt;</font>
<tr>
<td>
<div align=3Dright><font size=3D1 face=3D"sans-serif">cc</font></div>
<td valign=3Dtop>
<tr>
<td>
<div align=3Dright><font size=3D1 face=3D"sans-serif">Subject</font></div>
<td valign=3Dtop><font size=3D1 face=3D"sans-serif">[wsrp] spec-2.0-draft-0=
5:
events and blocking actions</font></table>
<br>
<table>
<tr valign=3Dtop>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=3D2 face=3D"Arial">&nbsp;</font>
<br><font size=3D2 face=3D"Arial">From the Producer point of view, handling
the user interactions and the events are very similar tasks. The spec descr=
ibes
an interaction as an &#8220;encodable event&#8221; (6.4.2), which points ou=
t that
interactions and events are just two different ways to invoke the same
Portlet logic.</font>
<br><font size=3D2 face=3D"Arial">This idea however is not expressed strong=
ly
in the spec, which causes some confusion. Below is a list of questions:</fo=
nt>
<br><font size=3D2 face=3D"Arial">&nbsp;</font>
<br><font size=3D2 face=3D"sans-serif">1. &nbsp; &nbsp; &nbsp; &nbsp;</font=
><font size=3D2 face=3D"Arial">HandleEventResponse
and BlockingInteractionResponse are identical, but defined as two distinct
types, why is this?</font>
<br>
<br><font size=3D2 color=3Dblue face=3D"Arial">&lt;rdt&gt;Opened issue #43&=
lt;/rdt&gt;</font>
<br><font size=3D2 face=3D"Arial">&nbsp;</font>
<br><font size=3D2 face=3D"sans-serif">2. &nbsp; &nbsp; &nbsp; &nbsp;</font=
><font size=3D2 face=3D"Arial">According
to paragraph 6.4.2.1 Event Handling, the Consumer may invoke handleEvent()
on different Portlets simultaneously. But if the event handling has the
same Producer-side semantics as processing user interaction, all the restri=
ctions
described in paragraph 6.4.1 must be applicable as well. Which means that
all the operations on the page must be blocked until handleEvent() either
returns or fails.</font>
<br>
<br><font size=3D2 color=3Dblue face=3D"Arial">&lt;rdt&gt;My understanding =
from
the discussion to-date is that handleEvent invocations may happen in parall=
el,
but that other processing is blocked until the Consumer decides it has
no more events for a particular portlet. The Consumer may then start a
getMarkup on that portlet. I'm sure we need to be more explicit about this
... do people think that the Consumer must wait for all portlets to exit
the event distribution step before starting to collect markup? &lt;/rdt&gt;=
</font>
<br><font size=3D2 face=3D"Arial">&nbsp;</font>
<br><font size=3D2 face=3D"sans-serif">3. &nbsp; &nbsp; &nbsp; &nbsp;</font=
><font size=3D2 face=3D"Arial">What
if HandleEventResponse contains events? Must they be processed by the Consu=
mer?
<br>
Let&#8217;s consider a Consumer processing a page which contains two portle=
ts:
P1 and P2.</font>
<br><font size=3D2 face=3D"sans-serif">a. &nbsp; &nbsp; &nbsp; &nbsp;</font=
><font size=3D2 face=3D"Arial">Consumer
calls P1.performBlockingInteraction(), and gets event E1</font>
<br><font size=3D2 face=3D"sans-serif">b. &nbsp; &nbsp; &nbsp; &nbsp;</font=
><font size=3D2 face=3D"Arial">Consumer
propagates the event to the Portlets:</font>
<br><font size=3D1 face=3D"Times New Roman">&nbsp; &nbsp; &nbsp; &nbsp; &nb=
sp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=3D2 face=3D"Arial">i.</=
font><font size=3D1 face=3D"Times New Roman">
&nbsp; &nbsp; &nbsp;</font><font size=3D2 face=3D"Arial">Question: should t=
he
consumer invoke P1.handleEvent(E1)? I guess no&#8230;</font>
<br><font size=3D2 color=3Dblue face=3D"Arial">&lt;rdt&gt;The Consumer is n=
ot
bound to send the event to any portlets and I expect most will explicitly
exclude the source portlet. Should we make this explicit in the spec so
that portlets design for it?&lt;/rdt&gt;</font>
<br><font size=3D1 face=3D"Times New Roman">&nbsp; &nbsp; &nbsp; &nbsp; &nb=
sp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;</font><font size=3D2 face=3D"Arial">ii.</font><=
font size=3D1 face=3D"Times New Roman">
&nbsp; &nbsp; &nbsp;</font><font size=3D2 face=3D"Arial">Consumer calls P2.=
handleEvent(E1)
and gets another event E2 in the response.</font>
<br><font size=3D1 face=3D"Times New Roman">&nbsp; &nbsp; &nbsp; &nbsp; &nb=
sp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; </font><font size=3D2 face=3D"Arial">iii.</font><font =
size=3D1 face=3D"Times New Roman">
&nbsp; &nbsp; &nbsp;</font><font size=3D2 face=3D"Arial">Must the Consumer
call P1.handleEvent(E2)? If yes, there could be an endless loop; if no,
the HandleEventResponse should not contain events&#8230;</font>
<br><font size=3D2 color=3Dblue face=3D"Arial">&lt;rdt&gt;The Consumer is f=
ree
to exit the event distribution step whenever it wants to. As part of loop
prevention, Consumers should have a limit on the number of generations
of events they distribute ...&lt;/rdt&gt;</font>
<br><font size=3D2 face=3D"Arial">&nbsp;</font>
<br><font size=3D2 face=3D"Arial">Regards,</font>
<br><font size=3D2 face=3D"Arial">Artem</font>
<br><font size=3D1 color=3D#999999 face=3D"Verdana"><b>Artem Spector</b> | =
Portal
Platform Infrastructure | NetWeaver Application Platform | SAP Labs Israel|
(+972-9) 7779567</font>
<br><font size=3D2 face=3D"Arial">&nbsp;</font>
<br>
--=_alternative 005F418C85256FBD_=--


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]