-
1. Re: JSF 2: f:ajax render="@all" not updating (RF 4 skin switcher)
pvito Dec 7, 2011 3:45 AM (in response to kwutzke)Hi, Karsten
Try this solution:
<h:form style="float: right;">
oncomplete="location.reload();"
<h:outputText value="Skin: " />
<h:selectOneMenu value="#{skinBean.skin}" id="skin-selector">
<f:ajax event="change" execute="@form" listener="#{skinBean.listener}"/>
<f:selectItem itemValue="DEFAULT" itemLabel="Default" />
<f:selectItem itemValue="classic" itemLabel="Classic" />
<f:selectItem itemValue="blueSky" itemLabel="Blue Sky" />
<f:selectItem itemValue="deepMarine" itemLabel="Deep Marine" />
<f:selectItem itemValue="emeraldTown" itemLabel="Emerald Town" />
<f:selectItem itemValue="japanCherry" itemLabel="Japan Cherry" />
<f:selectItem itemValue="ruby" itemLabel="Ruby" />
<f:selectItem itemValue="wine" itemLabel="Wine" />
</h:selectOneMenu>
</h:form> -
2. Re: JSF 2: f:ajax render="@all" not updating (RF 4 skin switcher)
kwutzke Dec 7, 2011 8:16 AM (in response to pvito)Note, only a4j:ajax has oncomplete. This basically works, but:
Since I'm using @ViewScoped beans all over the place using a full request isn't desired as this recreates new beans when changing skins.
Shouldn't it work as posted? Maybe there's a misunderstanding on my side... maybe it's another JSF 2.0 bug?
Karsten