JSF ajax reload whole page from dropdown

ajax, drop-down-menu, jsf

Solution

You're not clear on if you would like to perform it synchronously or asynchronously.

If asynchronously, specify a render of `@all`.

<f:ajax ... render="@all" />

If synchronously, replace `<f:ajax>` by JS `form.submit()` call.

<h:selectOneMenu ... onchange="this.form.submit()">

Problem

``` <h:selectOneMenu id="dropdownDevice" value="#{skinningBean.currentDevice}" converter="SkinConverter"> <f:selectItems value="#{skinningBean.myDevicesSI}" var="c" itemValue="#{c}" /> <f:ajax event="change" render="preview" /> </h:selectOneMenu> ``` Is it possible to reload the whole page within this dropdown? i need this because, I also need to reload a javascript when another device was selected.

Original source