It is possible to use javascript variable of custom function for the 'value' attribute. In this case the 'noEscape' attribute should be set to true. When noEscape="true", the 'value' can contain any javascript expression or javascript function invocation and the result of them will be send to the server as a value of a4j:actionparam. The following example demonstrates how to assign the backing bean with browser screen size values.