Forums de discussion
<alloy:menu> and <alloy:link> with rendered="false" renders empty <li>
Ralf Haller, modifié il y a 7 années.
<alloy:menu> and <alloy:link> with rendered="false" renders empty <li>
Junior Member Publications: 54 Date d'inscription: 13/05/13 Publications récentes
Hi community,
I found a strange effect with <alloy:menu> that might be a bug. When setting some <alloy:link> components to rendered="false" an empty <li> is rendered with no content. In my understanding nothing at all should be rendered.
Ralf
I found a strange effect with <alloy:menu> that might be a bug. When setting some <alloy:link> components to rendered="false" an empty <li> is rendered with no content. In my understanding nothing at all should be rendered.
<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" rendered="false">
<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>
Ralf
Kyle Joseph Stiemann, modifié il y a 7 années.
RE: <alloy:menu> and <alloy:link> with rendered="false" renders empty <li>
Liferay Master Publications: 760 Date d'inscription: 14/01/13 Publications récentes
Kyle Joseph Stiemann, modifié il y a 7 années.