Moved to the Liferay Faces - English category.

Péter Jaloveczki, modified 7 Years ago. New Member Posts: 5 Join Date: 6/3/18 Recent Posts

Hi,

 

I am having trouble with preferences (edit) xhtml in liferay 7 and jsf 2.2.

What i am see is is that I click on preferences for my portlet.

edit.xhtml renders nicely, but as soon as i hit submit nothing happens, view mode reloads. Method in the edit.xhtml's submit action never called.

URL when i hit preference:

:7002/web/guest/jsf2?p_p_id=MyPortlet_WAR_MYPortlet&p_p_lifecycle=0&p_p_state=normal&p_p_mode=edit

URL when i hit submit: (should stay on edit page and should call submit action)

:7002/web/guest/jsf2?p_auth=KofvMMWh&p_p_id=MyPortlet_WAR_CACWelcomePortlet&p_p_lifecycle=1&p_p_state=normal&p_p_mode=edit&p_p_col_id=column-1&p_p_col_count=1&_MyPortlet_WAR_MYPortlet__facesViewIdRender=%2FWEB-INF%2Fpages%2Fedit.jsf

In the URL i can see edit.jsf but it still show view mode.

I've already added 

<requires-namespaced-parameters>false</requires-namespaced-parameters>

to my liferay-portlet.xml

Version used:

Liferay version: DXP Digital Enterprise 7.0.10 GA1
Weblogic: 12.2.1.3.0

RichFaces 4.5.17
com.liferay.faces.bridge.impl 4.1.1
com.liferay.faces.bridge.ext 5.0.2
com.liferay.faces.bridge.api 4.1.0
com.liferay.faces.util 3.1.0
javax.faces 2.2.14

 

Am I missing some dependencies?

Any help would be greatly appreciated.

Peter

thumbnail
Kyle Joseph Stiemann, modified 7 Years ago. Liferay Master Posts: 760 Join Date: 1/14/13 Recent Posts

Hi Péter, can you provide more information here? Are there multiple portlets on the page? What does your view look like? Please provide the shortest, simplest code that reproduces your issue so we can test it locally.

- Kyle

thumbnail
Kyle Joseph Stiemann, modified 7 Years ago. Liferay Master Posts: 760 Join Date: 1/14/13 Recent Posts
Moved to the Liferay Faces - English category.