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: Re: [Fwd: Re: Question on Container Events]


Just redirecting to the OASIS WSRP alias.

To summarize the issue

The JSR 286 spec point to the WSRP spec for Container Events. i.e Container Events(PLT.15.3)�points to WSRP spec (5.11)

Here is the snippet from WSRP spec

5.11 Defined Events
�This specification defines the following events in the interest of
�promoting interoperability on a set of commonly encountered scenarios.
�All of these are defined within the WSRP types namespace (i.e.
urn:oasis:names:tc:wsrp:v2:types).

�---------------------------------------------------

Based on the above the following declaration the following in portlet.xml:

�<portlet-app>
�� �<portlet>
�� � � �..............
�� � � � <supported-processing-event>
�� � � � � � <qname xmlns:x="urn:oasis:names:tc:wsrp:v2:types">
�� � � � � � � � x:wsrp:eventHandlingFailed
�� � � � � � </qname>
�� � � � </supported-processing-event>
�� �</portlet>
�</portlet-app>

results in a schema validation exception:

�org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1:
�'x:wsrp:eventHandlingFailed' is not a valid value for 'QName'


Discussion on the JSR286 EG says:

depends on how we read this, it should just indicate that the event is in the wsrp namespace.

i.e intepert the above as � x:eventHandlingFailed �i.e drop wsrp: �since its not a valid QNAME


But this quite confusing since the WSRP spec in all the places uses string like wsrp:view ,�
wsrp:edit literally.

Comments ?

regards
Rajesh T�

On 14-Feb-08, at 7:29 PM, Deepak Gothe wrote:



From: Stefan Hepper <STHEPPER@de.ibm.com>
Date: 14 February 2008 6:38:07 PM GMT+05:30
Subject: Re: Question on Container Events



I think that is a discussion you should have on the WSRP mailing list.
I agree that it is a bit confusing, for the mode you need to include the wsrp: prefix, for the events not.

Regards,
� �Stefan




[email protected] wrote on 13.02.2008 12:00:45:

> In the rest of the WSRP spec, the items are interpreted literally, say
> for example "wsrp:view", "wsrp:edit" are the strings that represent the
> modes of the portlet in WSRP. Do you mean to say that we should
> interpret these also the same way?
>
> The above are not an issue because they are not used in namespace,
> rather as Strings. If you look at the WSRP webservice SOAP dump, you can
> see the above strings be passed as is.
>
> Thanks,
> Deepak
>
> Stefan Hepper wrote:
> > Depends on how you read this, it should just indicate that the event is in
> > the wsrp namespace.
> >
> >
> > Regards,
> > � � Stefan
> >
> >
> >
> >
> > Java Community Process JSR #286 Expert List <[email protected]> wrote on
> > 08.02.2008 04:54:20:
> >
> > �
> >> Thanks. This means the event name(wsrp:eventHandlingFailed) defined in
> >> PLT.15.3 and that defined in WSRP spec 5.11 is incorrect.
> >>
> >> Regards,
> >> Deepak
> >>
> >> Stefan Hepper wrote:
> >> � �
> >>> ":" is not allowed in a local part of the namespace, it needs to be:
> >>>
> >>> <qname xmlns:x="urn:oasis:names:tc:wsrp:v2:types">
> >>> � � � � � � � � x:eventHandlingFailed
> >>> </qname>
> >>>
> >>> Regards,
> >>> � � Stefan
> >>>
> >>>
> >>>
> >>>
> >>> Java Community Process JSR #286 Expert List <[email protected]> wrote
> >>> � � �
> > on
> > �
> >>> 07.02.2008 11:41:53:
> >>>
> >>>
> >>> � � �
> >>>> Hi,
> >>>> � I have a question regarding Container Events(PLT.15.3). �Following
> >>>> � � � �
> > is
> > �
> >>>> the snippet from WSRP spec (5.11)
> >>>> ---------------------------------------------------
> >>>> 5.11 Defined Events
> >>>> This specification defines the following events in the interest of
> >>>> promoting interoperability on a set of commonly encountered scenarios.
> >>>> All of these are defined within the WSRP types namespace (i.e.
> >>>> urn:oasis:names:tc:wsrp:v2:types).
> >>>> ---------------------------------------------------
> >>>>
> >>>> Based on the above i declared the following in portlet.xml:
> >>>>
> >>>> <portlet-app>
> >>>> � �<portlet>
> >>>> � � � �..............
> >>>> � � � � <supported-processing-event>
> >>>> � � � � � � <qname xmlns:x="urn:oasis:names:tc:wsrp:v2:types">
> >>>> � � � � � � � � x:wsrp:eventHandlingFailed
> >>>> � � � � � � </qname>
> >>>> � � � � </supported-processing-event>
> >>>> � �</portlet>
> >>>> </portlet-app>
> >>>>
> >>>> Schema validation fails with the following message:
> >>>>
> >>>> org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1:
> >>>> 'x:wsrp:eventHandlingFailed' is not a valid value for 'QName'
> >>>>
> >>>>
> >>>> Am i missing something? or can wsrp:eventHandlingFailed be a valid
> >>>> � � � �
> > name
> > �
> >>>> for the event or should it be something else?
> >>>>
> >>>>
> >>>> Thanks,
> >>>> Deepak
> >>>>
> >>>> � � � �
>



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