Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-2787

Empty <li> in alloy:menu with children marked as unrendered

    Details

      Description

      When rendering an alloy:menu which children marked as unrendered (rendered="false") empty <li> tags are rendered. In my understanding nothing should be rendered here.

      			<alloy:button includeViewParams="true">
      				<alloy:icon name="user" />
      				<alloy:outputText value="#{i18n['user']}" />
      				<f:param name="menuItem" value="view" />
      				<alloy:menu>
      					<alloy:link includeViewParams="true" rendered="false">
      						<alloy:icon name="pencil" />
      						<alloy:outputText value="#{i18n['edit']}" />
      						<f:param name="menuItem" value="edit" />
      					</alloy:link>
      					<hr />
      					<alloy:link includeViewParams="true">
      						<alloy:icon name="ok-sign" />
      						<alloy:outputText value="#{i18n['enable']}" />
      						<f:param name="menuItem" value="enable" />
      					</alloy:link>
      					<alloy:link includeViewParams="true" rendered="false">
      						<alloy:icon name="minus-sign" />
      						<alloy:outputText value="#{i18n['disable']}" />
      						<f:param name="menuItem" value="disable" />
      					</alloy:link>
      					<hr />
      					<alloy:link includeViewParams="true">
      						<alloy:icon name="trash" />
      						<alloy:outputText value="#{i18n['delete']}" />
      						<f:param name="menuItem" value="delete" />
      					</alloy:link>
      				</alloy:menu>
      			</alloy:button>
      
      <div id="yui_patched_v3_11_0_1_1467280558301_787" role="presentation" class="yui3-menu-content">
        <ul id="yui_patched_v3_11_0_1_1467280558301_786" class="first-of-type" role="presentation">
          <li id="yui_patched_v3_11_0_1_1467280558301_788" role="presentation" class="yui3-menuitem"/>
          <li id="yui_patched_v3_11_0_1_1467280558301_798" role="presentation" class="yui3-menuitem">
            <hr/>
          </li>
          <li id="yui_patched_v3_11_0_1_1467280558301_800" role="presentation" class="yui3-menuitem">
            <a id="yui_patched_v3_11_0_1_1467280558301_803" role="menuitem" href="http://localhost:8080/media/en_US/web/guest/home?p_p_id=up2date3liferayordermanager_WAR_up2date3liferayordermanagerportlet&amp;p_p_lifecycle=0&amp;p_p_state=normal&amp;p_p_mode=view&amp;p_p_col_id=column-2&amp;p_p_col_count=2&amp;p_p_col_pos=1&amp;_up2date3liferayordermanager_WAR_up2date3liferayordermanagerportlet__facesViewIdRender=%2Fviews%2Fview.xhtml&amp;_up2date3liferayordermanager_WAR_up2date3liferayordermanagerportlet_menuItem=enable" class="yui3-menuitem-content alloy-link">
              <span id="_up2date3liferayordermanager_WAR_up2date3liferayordermanagerportlet_:businessProcessForm:j_idt510" class="icon-ok-sign alloy-icon"/>
              <span id="yui_patched_v3_11_0_1_1467280558301_807" class="alloy-output-text">enable</span>
            </a>
          </li>
          <li role="presentation" class="yui3-menuitem"/>
          <li role="presentation" class="yui3-menuitem">
            <hr/>
          </li>
          <li role="presentation" class="yui3-menuitem">
            <a role="menuitem" href="http://localhost:8080/media/en_US/web/guest/home?p_p_id=up2date3liferayordermanager_WAR_up2date3liferayordermanagerportlet&amp;p_p_lifecycle=0&amp;p_p_state=normal&amp;p_p_mode=view&amp;p_p_col_id=column-2&amp;p_p_col_count=2&amp;p_p_col_pos=1&amp;_up2date3liferayordermanager_WAR_up2date3liferayordermanagerportlet__facesViewIdRender=%2Fviews%2Fview.xhtml&amp;_up2date3liferayordermanager_WAR_up2date3liferayordermanagerportlet_menuItem=delete" class="yui3-menuitem-content alloy-link">
              <span id="_up2date3liferayordermanager_WAR_up2date3liferayordermanagerportlet_:businessProcessForm:j_idt15" class="icon-trash alloy-icon"/>
              <span class="alloy-output-text">Delete</span>
            </a>
          </li>
        </ul>
      </div>
      

        Attachments

          Activity

            People

            Assignee:
            neil.griffin Neil Griffin
            Reporter:
            ralf.haller@kumasoft.de Ralf Haller
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                alloy-2.0.0
                alloy-3.0.0