f:setPropertyActionListener

f:setPropertyActionListener makes it easier to do a common task in JSF application development: set a value when executing an UICommand.

General Usage

To set the target UIComponent implementing ActionSource, use for attribute (this can be avoided if nested to another UICommand Facelet element). For specifying the bean value to be set, use target attribute, and use value for getting the same that will be used into target. This Facelet will then add a new dynamic ActionListener to the parent component (or the one set in forattribute). This ActionListener will set the target value obtained from value expression.

                   

Source Code

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