Attention: This component is still under progress and experimental.
b:defaultAction The default action tag renders an HTML script element after component that contains default action tag. It is necessary to add an id to ambient form.
Tag attributes
rendered
                            <!DOCTYPE html> 
<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:h="http://xmlns.jcp.org/jsf/html" 
      xmlns:f="http://xmlns.jcp.org/jsf/core" 
      xmlns:b="http://butterfaces.org/components"> 
<h:head /> 
<body>
    <h:form id="formId">
        <b:text value="#{myBean.value}" />

        <b:commandLink id="input"
                       action="#{myBean.submit}"
                       value="click me"
                       styleClass="btn btn-primary">
            <f:ajax execute="@form" render="@form"/>
            <b:defaultAction rendered="true"/>
        </b:commandLink>
    </h:form> 
</body> 
</html>
                        
                            package de.larmic.defaultaction.demo;

@ViewScoped
@Named
public class MyBean implements Serializable {

    private String value;

    public void submit() {
        // implement me
    }

    // getter and setter

}