Alexandre-Michael Neubert escribió:
Hello All,
I use WSRP4J for a while now and I read the WSRP specification
carefully, but I still have some points which are not very clear to me.
More specially, my questions are:
* What is the difference between a POP (Producer offered portlet)
and a CCP (Consumer configured portlet)?
The WSRP specification says: /“//The Portlets a Producer publishes as
available for all Consumers to interact with are called Producer Offered
Portlets. Producer Offered Portlets are pre-configured and not
modifiable by Consumers. If the Producer chooses to expose the Portlet
Management interface, it is allowing Consumers to clone the Portlets
offered by the Producer and customize those cloned Portlets. Such a
uniquely configured Portlet is called a Consumer Configured Portlet”/
/ /
But, how can I choose to make portlets available to all customers? Is
this configured in the producer? In the portlet itself ? Is there a
property in wsrp4j-producer to set (and if yes which one and where)?
Can I forbid cloning of my portlets simply by not exposing the Portlet
Management interface?
We did some tests on WSRP4J and it appears that:
o Before the first request, all exposed portlets are POP
o After the first request on a portlet, this portlet becomes CCP
Is this correct?
* We have some trouble with the <portletStateChange> attribute in
the SOAP message. We want to have it positioned to “readWrite”,
but sometimes the passed attribute is “cloneBeforeWrite” or
“ReadOnly”.
Can we ourselves set this attribute? If yes, who is in charge of doing
so (producer or consumer)? And where does it have to be done?
* Finally, I wonder about the signification of the term “Portlet
preferences”. In the JSR 168 portlet specification, portlet
preferences are attributes which can be set and manipulated by the
portlet itself.
In the WSRP specification though, portlet preferences are manipulated by
the consumer and producer each time the portlet needs to change its
persistent state.
Although the term portlet preference is used in both cases, I have the
feeling that this refers not to the same object, does it?
We also did some tests on sample WSRP portlets and it seems that each
time a form is submitted, the persistent state of the portlet needs to
be changed.
What is exactly this persistent state and where is it stored?
Does this automatically mean that the portlet has to be cloned if
several users access it at the same time?
I know these are a lot of questions, but I couldn’t get more information
from the specification and I have hard time to understand all these
concepts.
Thanks a lot,
Regards
Alex
*-----------------------*
*Alexandre Neubert*
*/Edifixio/*
[EMAIL PROTECTED]
Hi both Elliot and Alexander, I'm sorry I can't devote much time to this
interesting discussion, but if you haven't read it, you will get lots of
your questions answered on the WSRP 1.0 Primer, which includes some
examples of the communication involved and when and how portlet cloning
occurs. It's very important the difference between navigationalState and
interactionState.
http://www.oasis-open.org/committees/download.php/21178/wsrp-primer-1.0.html
Regards.
Diego.