Trouble with sidebar and template

Post Reply
tom_t
Posts: 17
Joined: 01 Apr 2016, 21:36

01 May 2018, 19:25

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?

tom_t
Posts: 17
Joined: 01 Apr 2016, 21:36

01 May 2018, 19:50

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>

kubrasulukan
Posts: 83
Joined: 10 Jan 2018, 16:04

02 May 2018, 08:25

Glad to hear!

Best Regards

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest