1 Reply Latest reply on Apr 17, 2009 4:10 PM by ilya_shaikovsky

    Toggle Panel Appearance

    oyesiji77

      I have this requirement . Initially when a page is loaded the rich:Panel would not be rendered but it becomes rendered once i click a button how do i implement this

        • 1. Re: Toggle Panel Appearance
          ilya_shaikovsky

          in this case you even not need for special component. just use rendered attribute bound to some model boolean property. and manage this property in the button action.

          B.t.w. do not forget that reRendering of conditionally rendered component is forbidden and should be performed by reRendering its parent (e.g. a4j:outputPanel)
          Also the bean which kepts such properties should be session scoped.

          For sure you could use togglePanel for that. Just define to facets empty and with required content and place corresponding toggleControl on the page.