Foros de discusión

WSRP primefaces portlet with portlet-preferences not loaded

greg 007, modificado hace 10 años.

WSRP primefaces portlet with portlet-preferences not loaded

New Member Mensajes: 6 Fecha de incorporación: 22/01/13 Mensajes recientes
Hi,

I plan to expose my primefaces portlets instances through the WSRP protocol.
At this time, I try to configure a producer and a consumer on the same liferay portal instance for testing purpose.

Here is my config :
Liferay 6.2 CE GA1 with Tomcat 7
liferay-faces 3.2.4-ga5-SNAPSHOT
WSRP CE 2.0.0 for Liferay Portal 6.2 CE GA1+

On WSRP, my portlet-preferences are never loaded.


portletPreferences.getValue("requestDefDN", "")


portlet.xml :


<portlet>
		<portlet-name>test</portlet-name>
		<display-name>test</display-name>
		<portlet-class>
			javax.portlet.faces.GenericFacesPortlet
		</portlet-class>
		<init-param>
			<name>javax.portlet.faces.defaultViewId.view</name>
			<value>/views/test/start/view.xhtml</value>
		</init-param>
		<init-param>
			<name>javax.portlet.faces.defaultViewId.edit</name>
			<value>/views/test/start/edit.xhtml</value>
		</init-param>
		<init-param>
			<name>javax.portlet.faces.defaultViewId.help</name>
			<value>/views/test/start/help.xhtml</value>
		</init-param>
		<expiration-cache>0</expiration-cache>
		<supports>
			<mime-type>text/html</mime-type>
			<portlet-mode>view</portlet-mode>
			<portlet-mode>edit</portlet-mode>
			<portlet-mode>help</portlet-mode>
		</supports>
		<portlet-info>
			<title>test</title>
			<short-title>test</short-title>
			<keywords>test</keywords>
		</portlet-info>
		<portlet-preferences>
			<preference>
				<name>debug</name>
				<value>false</value>
			</preference>
			<preference>
				<name>provProxyDN</name>
				<value>xxx</value>
			</preference>
			<preference>
				<name>provProxyPass</name>
				<value>xxx</value>
			</preference>
			<preference>
				<name>provEndPointURL</name>
				<value>http://xxx.xxx.xxx.xxx:8180/IDMProv/provisioning/service</value>
			</preference>
			<preference>
				<name>vdxEndPointURL</name>
				<value>http://xxx.xxx.xxx.xxx:8180/IDMProv/vdx/service</value>
			</preference>
			<preference>
				<name>startAsProxy</name>
				<value>false</value>
			</preference>
			<preference>
				<name>proxy</name>
				<value>self</value>
			</preference>
			<preference>
				<name>requestDefDN</name>
				<value>xxx</value>
			</preference>
			<preference>
				<name>ldapProxyDN</name>
				<value>xxx</value>
			</preference>
			<preference>
				<name>ldapProxyPass</name>
				<value>xxx</value>
			</preference>
			<preference>
				<name>ldapServerIp</name>
				<value>xxx.xxx.xxx.xxx</value>
			</preference>
			<preference>
				<name>ldapServerPort</name>
				<value>389</value>
			</preference>
			<preference>
				<name>entityDefsBaseDN</name>
				<value>xxx</value>
			</preference>
		</portlet-preferences>
		<security-role-ref>
			<role-name>administrator</role-name>
		</security-role-ref>
		<security-role-ref>
			<role-name>guest</role-name>
		</security-role-ref>
		<security-role-ref>
			<role-name>power-user</role-name>
		</security-role-ref>
		<security-role-ref>
			<role-name>user</role-name>
		</security-role-ref>
	</portlet>


liferay-portlet.xml :


<portlet>
		<portlet-name>test</portlet-name>
		<icon>/icon.png</icon>
		<control-panel-entry-category>
			test
		</control-panel-entry-category>
		<control-panel-entry-weight>1.5</control-panel-entry-weight>
		<instanceable>true</instanceable>
		<remoteable>true</remoteable>
		<scopeable>true</scopeable>
		<requires-namespaced-parameters>false</requires-namespaced-parameters>
	</portlet>


Thank you for any informations provided
thumbnail
Vernon Singleton, modificado hace 10 años.

RE: WSRP primefaces portlet with portlet-preferences not loaded

Expert Mensajes: 315 Fecha de incorporación: 14/01/13 Mensajes recientes
greg 007:
I plan to expose my primefaces portlets instances through the WSRP protocol.
At this time, I try to configure a producer and a consumer on the same liferay portal instance for testing purpose.

Here is my config :
Liferay 6.2 CE GA1 with Tomcat 7
liferay-faces 3.2.4-ga5-SNAPSHOT
WSRP CE 2.0.0 for Liferay Portal 6.2 CE GA1+

On WSRP, my portlet-preferences are never loaded.


Hi greg 007,

Could you try this with the primefaces3-portlet demo snapshot instead of your portlet, and see if it is able to load its preferences?

Let us know if that portlet it working with its preferences correctly under WSRP.

- Vernon
greg 007, modificado hace 10 años.

RE: WSRP primefaces portlet with portlet-preferences not loaded

New Member Mensajes: 6 Fecha de incorporación: 22/01/13 Mensajes recientes
Once again thank you Vernon.

So I gave a try to primefaces3 portlet demo and the same behaviour occured.
I want also to mention that the portlet preferences are also not loaded/commited in Edit mode.
thumbnail
Vernon Singleton, modificado hace 10 años.

RE: WSRP primefaces portlet with portlet-preferences not loaded

Expert Mensajes: 315 Fecha de incorporación: 14/01/13 Mensajes recientes
greg 007:
So I gave a try to primefaces3 portlet demo and the same behaviour occured.
I want also to mention that the portlet preferences are also not loaded/commited in Edit mode.

Hi greg 007,

I was also able to reproduce the issue. You will be able to track our progress with this issue here:
https://issues.liferay.com/browse/FACES-1824

Thanks for your help!

Vernon
thumbnail
Vernon Singleton, modificado hace 10 años.

RE: WSRP primefaces portlet with portlet-preferences not loaded

Expert Mensajes: 315 Fecha de incorporación: 14/01/13 Mensajes recientes
Please click on the "watch" link for FACES-1824 in order to track our progress.
greg 007, modificado hace 10 años.

RE: WSRP primefaces portlet with portlet-preferences not loaded

New Member Mensajes: 6 Fecha de incorporación: 22/01/13 Mensajes recientes
Thank you to you, Vernon !
Thank you to Liferay and espacially to Liferay-faces project's members.
Such kind of projects makes my working's life so interresting, passionfull, productive and effective.
thumbnail
Vernon Singleton, modificado hace 9 años.

RE: WSRP primefaces portlet with portlet-preferences not loaded

Expert Mensajes: 315 Fecha de incorporación: 14/01/13 Mensajes recientes
In case you are still having an issue with this, I posted a workaround here:
https://issues.liferay.com/browse/LPS-44770#comment-451009

Hope that helps,
Vernon