Linked Questions

Popular Questions

When checking the h:selectBooleanCheckBox the first time, the listener is not fired. Checking it again, does fire the listener. I've also tried doing a valueChangeListener="selectRoleCheckboxChangeListener" attribute for the h:selectBooleanCheckBox with the same result. It will work on the 2nd and subsequent clicks. I'd like to have this fire on the first click. Ideas? Thanks

<rich:dataTable id="roleTable" 
    value="#{roleBean.displayedRoles}" 
    var="roleItem"  
>
    <rich:column 
        id="selectRoleCheckboxColumn" 
    >
        <f:facet name="header">Select Role</f:facet>
        <h:selectBooleanCheckbox
            id="selectRoleCheckbox" 
            value="#{roleItem.selectRole}" 
            binding="#{roleBean.selectRoleCheckbox}"
        >
            <a4j:ajax 
                event="click" 
                listener="#{authorizationBean.selectRoleCheckboxListener}"
            /> 
        </h:selectBooleanCheckbox>
    </rich:column>
</rich:dataTable>

Related Questions