I am following:
https://4.docs.plone.org/develop/plone/forms/z3c.form.html#embedding-z3c-form-forms-in-portlets-viewlets-and-views
I have a portlet with a form inside. The form is for a dexterity object. The problem is that whenever this portlet is visible it makes the 'edit bar' on the main page disappear.. it will reappear if the portlet is hidden. Whether the portlet is available or not makes no difference.
For the form I am using plone.dexterity.browser.add.DefaultAddForm.
And I am using plone.z3cform.layout.FormWrapper for the view.
Here is the code in my portlet Renderer returning the view.
def create_form(self):
ctx = self.context.aq_inner
ADR = Address("Address")
form = AddressAddForm(ctx,self.request,ADR)
view = PortletFormView(ctx, self.request)
view = view.__of__(ctx)
view.form_instance = form
return view