Page 1 of 1

Trouble with sidebar and template

Posted: 01 May 2018, 19:25
by tom_t
I am using the template.xhtml and sidebar.xhtml to try out Omega in my project. I get this error:

MenuItem must be inside a form element

Looking at the Omega demo, I can't figure out where the form tag is. The template does not reference a form, and neither does sidebar. When you go to the Omega demo page, the dashboard is the first page that appears, along with the sidebar. In what demo file is the form tag?

Re: Trouble with sidebar and template

Posted: 01 May 2018, 19:50
by tom_t
I figured it out. The template.xhtml file that is included in the Omega download package is missing the form tag. I added it, and now it works.

<div class="menu">
<h:form>
<po:menu>
.....
</po:menu>
</h:form>

Re: Trouble with sidebar and template

Posted: 02 May 2018, 08:25
by kubrasulukan
Glad to hear!

Best Regards