Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Moved to the Liferay Faces - English category.
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
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
Powered by Liferay™