title: How to add a link to <p:submenu>?
body: <p>How can I add links to <code>&lt;p:submenu /&gt;</code> for use with <code>&lt;p:megaMenu&gt;</code>?</p>
  
  <p>For example:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;ui:composition xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      template="/pages/template/homeTemplate.xhtml"&gt;
  
      &lt;ui:define name="content"&gt;
          &lt;p:megaMenu&gt;
              &lt;p:submenu label="Home" url="/" /&gt;
              &lt;p:submenu label="Category" url="/cats"&gt;
                  &lt;p:column&gt;
                      &lt;p:submenu label="Category 1" url="/cats/cat1"&gt;
                          &lt;p:menuitem value="Item 1" url="/cats/cat1/item1"/&gt;
                          &lt;p:menuitem value="Item 2" url="/cats/cat1/item2"/&gt;
                          &lt;p:menuitem value="Item 3" url="/cats/cat1/item3"/&gt;
                      &lt;/p:submenu&gt;
                  &lt;/p:column&gt;
              &lt;/p:submenu&gt;
          &lt;/p:megaMenu&gt;  
      &lt;/ui:define&gt;
  
  &lt;/ui:composition&gt;
  </code></pre>
  
  <p>The <code>&lt;p:submenu /&gt;</code> doen't have the <code>url</code> attribute, so it will be ignored, what can I do instead?</p>