I created a portlet (parent) that shows as the content of accordion an embedded portlet (also created by me).
As context, below the JSP (view mode) of the parent portlet:
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<%@ taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet" %>
<jsp:useBean id="titulo" class="java.lang.String" scope="request" />
<portlet:defineObjects />
<%! String idPortlet="test_WAR_boxportlet_INSTANCE_fadewsio22a"; %>
<div class="root-accordion">
<div class="accordion" id="accordion<%= idPortlet %>">
<div class="accordion-group accordion-caret">
<div class="accordion-group accordion-caret">
<div class="accordion-heading accordion-cabecalho">
<a href="#conteudoac<%= idPortlet %>" data-parent="#accordion<%= idPortlet %>" data-toggle="collapse" class="accordion-toggle collapsed">
<%= titulo %>
</a>
</div>
<div class="accordion-body collapse" id="conteudoac<%= idPortlet %>">
<div class="accordion-inner accordion-conteudo">
<liferay-portlet:runtime portletName="<%= idPortlet %>" />
</div>
</div>
</div>
</div>
</div>
</div>
The parent portlet has preferences (edit mode) as well as the embedded portlet. But, when I try to save the preferences of the embedded portlet, the page reloads but doesn't manage to exit of the edit mode of the embedded portlet. The setting of preferences works well for the portlet used as embedded when it used standalone (not embedded). The edit of "Preferences" in the parent portlet is OK in both scenarios.
Are there restrictions when the parent and the embedded portlet have both "Preferences" options?
What I must do for edit (save) preferences work in the embedded portlet?
Here is the LPS explaining why such way isn't it possible at the moment and won't be fixed for current version https://issues.liferay.com/browse/LPS-33767
However, the way I can suggest you is to define these preferences by part of code added to tag. I don't know if this will solve your scenario, still is the best idea I think at the moment. Here is some example which isn't prettiest one but still.