jsf 2.2 - Change Skin of Richfaces Application without reloading the page -
i have jsf 2.2 , richfaces 4 application , in application have à h:selectonemeun have a4j:ajax event: on change , listner et status attribute. want when change value of selectonemenu change them or skin of page whitout reloading page (ajax).
<h:selectonemenu value="#{managcontroller.selectedprodgroup}" class="validate[required] text-input" requiredmessage="#{messages['group.product.required']}" style=" width : 285px;" converter="omnifaces.selectitemsconverter"> <f:selectitem itemlabel="#{messages['productgroup.noselection']}" itemvalue="" /> <f:selectitems value="#{bmanager.productgrouplist}" var="productgroupvar" itemlabel="#{productgroupvar.label}" /> <a4j:ajax status="loading" execute="@this" listener="#{managcontroller.getproductlistbyproductgroup()}" onbegin="#{managcontroller.getproductlistbyproductgroup()}" render="mattable,productlist,mform" event="change" /> </h:selectonemenu>
you need reload page with:
onchange="this.form.submit()"
Comments
Post a Comment