-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: No Longer Reproducible
-
Affects Version/s: liferay-faces-4.2.5-ga6
-
Component/s: Liferay Faces Alloy / Showcase / Tests
-
Labels:None
{markdown}
When using `alloy:button` or `alloy:commandButton` the text which appears inside the button can be specified like so:
<alloy:button>
button text
</alloy:button>
However, when the `button` is rendered as a `SplitButton` (i.e. it has `alloy:menu` as a child), the text does not appear unless it is contained in an `outputText` component.
The following code will render an empty button:
<alloy:button>
button text
<alloy:menu>
<alloy:link value="link" />
</alloy:menu>
</alloy:button>
The button will render correctly when the following code is used:
<alloy:button>
<alloy:outputText value="button text" />
<alloy:menu>
<alloy:link value="link" />
</alloy:menu>
</alloy:button>{markdown}
When using `alloy:button` or `alloy:commandButton` the text which appears inside the button can be specified like so:
<alloy:button>
button text
</alloy:button>
However, when the `button` is rendered as a `SplitButton` (i.e. it has `alloy:menu` as a child), the text does not appear unless it is contained in an `outputText` component.
The following code will render an empty button:
<alloy:button>
button text
<alloy:menu>
<alloy:link value="link" />
</alloy:menu>
</alloy:button>
The button will render correctly when the following code is used:
<alloy:button>
<alloy:outputText value="button text" />
<alloy:menu>
<alloy:link value="link" />
</alloy:menu>
</alloy:button>{markdown}