0 Replies Latest reply on Nov 1, 2007 1:25 PM by Florian Marwede

    ajax rerender styleClass does not work

    Florian Marwede Expert

      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>
      


      What is wrong? Perhaps I misunderstood the meaning of some a4j-components...