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

General Usage

The image and value attributes can be specified for styling purposes.

Source Code

<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:f="http://xmlns.jcp.org/jsf/core" xmlns:ui="http://xmlns.jcp.org/jsf/facelets">

	<!-- Example 1: Styling via image attribute -->
		<h:button includeViewParams="true" image="#{resource['images:jsf-logo-small.png']}"
			 value="1234" />

	<!-- Example#2: Styling via value attribute (Note: This can only be used if the component does not have any -->
	<!-- children and the component does not specify an image) -->
		<h:button includeViewParams="true" 
			value="1234" />

Liferay Faces Bridge Implementation 5.0.0 + Showcase Common 3.1.1 + Liferay Faces Util 3.4.1 + Mojarra 2.2.20