Button/Link
Data
Input
Miscellaneous
Multimedia
Output
Panel
Select
JSTL
Faces Core
Facelets
Extensions

alloy:button

Button is a UIOutput component that renders a styleable HTML <button> element. The default type is button. Since it extends HtmlOutcomeTargetButton, it supports all the features of h:button. The component does not need to be a child of h:form since the outcome attribute is designed to navigate via HTTP GET.

Param Usage

URL parameters can be specified via f:param child tags. Setting includeViewParams=true will automatically include all of the f:viewParam tags (view parameters) as URL parameters.

Source Code

<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:alloy="http://liferay.com/faces/alloy"
xmlns:f="http://xmlns.jcp.org/jsf/core" xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
<!-- Implicit navigation back to /views/component.xhtml -->
<alloy:button includeViewParams="true" outcome="component">
<!-- Override the value of the componentUseCase view parameter in order to navigate to a -->
<!-- different view. -->
<f:param name="componentUseCase" value="navigation" />
<f:param name="foo" value="1234" />
<alloy:icon name="arrow-left" />
<alloy:outputText value=" #{i18n['back-to-navigation-with']} foo=1234" />
</alloy:button>
</ui:composition>
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Liferay Faces Alloy 4.1.1 + Liferay Faces Bridge Implementation 5.0.0 + Showcase Common 4.0.0 + Liferay Faces Util 3.4.1 + Mojarra 2.2.20