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

alloy:button and alloy:commandButton do not render inner text as labels when they are SplitButtons

    Details

      Description

      {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}

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                liferay-faces-2.1.6-ga7
                liferay-faces-2.2.6-ga7
                liferay-faces-3.0.6-legacy-ga7
                liferay-faces-3.0.6-ga7
                liferay-faces-3.1.6-ga7
                liferay-faces-3.2.6-ga7
                liferay-faces-4.2.6-ga7