-
1. Re: How to add scrol bar in rich faces modelpanel
alexguru Feb 6, 2008 12:09 PM (in response to engashish)You can get scrollBars so:
<rich:panel style="overflow:auto;width:400px;height:350px">
-
2. Re: How to add scrol bar in rich faces modelpanel
sergeysmirnov Feb 6, 2008 12:13 PM (in response to engashish)it might be better to add the scrollable capability to the body of the panel. Otherwise, the header will be scrolled if exists. Ie. use bodyClass, not just style of styleClass
-
3. Re: How to add scrol bar in rich faces modelpanel
engashish Feb 7, 2008 3:33 AM (in response to engashish)Hi,
I am not using rich:panel.
I am using rich:modelPanel to open a pop up where I need scroll bar.
see my code -
<rich:modalPanel xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich"
xmlns:opm="http://caf.opm.preclosing/jsf" id="createProspectMP"
minHeight="750" minWidth="850" height="730" width="850" left="100"
top="0" autosized="true">
using this I am able to see pop up with the size mentoned above but as i told I have more content to display then page size for that i need a vertical scroll bar same as we have in internet explorer. -
4. Re: How to add scrol bar in rich faces modelpanel
moldovan Feb 7, 2008 4:17 AM (in response to engashish)One solution:
surround the content of the modalPanel with a div, and then set the style of the div:
- set the width to with of the modalPanel
- set the height to the height of the modalPanel
- set overflow-attribute. Possibilities are visible (if you always want to have the scrollbars) or auto (therefore the scrollbars only appear, if the content of the div would be wider/higher as the setted div-size)
Hope, this helps! -
5. Re: How to add scrol bar in rich faces modelpanel
engashish Feb 8, 2008 5:47 AM (in response to engashish)Hello friends,
It is not working.
Please help.
Regards,
Ashish