Hello,
currently I have the following task: I wanna change the (CSS-defined) size of some panels with Ajax and do that the usual way:
An a4j:form and an a4j:commandButton for a partial submit, the things to be rerendered in an a4j:outputPanel and than something like
<rich:panel styleClass="#{bean.someStyle}" ...
The problem: with styleClass it doesn't work but with style it works.
How do I get this to work with styleClass instead of style:
<a4j:form> <a4j:region renderRegionOnly="true"> <a4j:outputPanel id="panel" style="#{ctrl.style}" layout="block" > <a4j:commandButton value="Switch!" action="#{ctrl.switchPanel}" reRender="panel" ajaxSingle="true" /> </a4j:outputPanel> </a4j:region> </a4j:form>