Search code examples
cssjsfrichfaces

fixed panels with scrollable content RICHFACES


Please tell me how can I create a Richfaces page where I want to keep the collapsible panels fixed and below that I have another form. As the form is very large. So I want to put a scroller. Do I need to use frameset or is there any support for that in Richfaces


Solution

  • Nothing jsf-specific. That is usually done via CSS:

    • create a <div class="limitedHeightDiv">
    • define the css class in a css file:

      .limitedHeightDiv {
         height: 100px;
         overflow: scroll;
      }
      

    (You can define these styles inline, using style=".." as well)