Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to stretch a Dynamic Region?

ross_cJan 23 2012 — edited Jan 24 2012
Hello,
I'm having some layout problems when using Dynamic Regions <af:region />.

I want to essentially have a three row template (header, body content, footer) with the middle row to expand vertically as the content fills it. The problem I'm having is that the body content row is a dynamic region and when I put large amounts of content in there the region size doesn't expand. From what I can see, when the <af:region> element renders in the HTML it renders like:
<div id="pt1:regionModel:0:pt1:wizRegn" class="af_region">
		<div id="pt1:regionModel:0:pt1:wizRegn:0:pt1:pt_pslMainPage" class="af_panelStretchLayout">&nbsp;
			<div id="pt1:regionModel:0:pt1:wizRegn:0:pt1:pt_pslMainPage::c" style="position:absolute;overflow:hidden;top:0px;left:0px;bottom:0px;right:0px">
				<div id="pt1:regionModel:0:pt1:wizRegn:0:pt1:pt_pglContentPanel" class="af_panelGroupLayout" style="position:absolute;width:auto;height:auto;top:0px;left:0px;bottom:0px;right:0px;overflow:auto;width:100%;height:100%;">
					<div>PROFILE BTF PLACEHOLDER</div>
				</div>
			</div>
		</div>
		<div style="display:none">
			<a id="pt1:regionModel:0:pt1:wizRegn:0:_afrCommandDelegate" class="af_commandLink" onclick="return false;" href="#"></a>
		</div>
	</div>
The hardcoded styling on the third div above is part of the problem. If I use chrome or firebug etc to remove the overflow property or change it to visible then the content renders. Doing this though still doesn't push the footer down though. Its like the region isn't displayed as a block element or something. The other thing with the third div is that it is ADF generated markup with no class or anything so I can't even style it in the CSS.

Has anyone created a layout whereby you can get a dynamic region to expand based on its content and to work like a block element, pushing content below it down?

Help would be much appreciated!

Cheers,
Ross

Edited by: Ross on 23-Jan-2012 16:33
P.S. Sorry about the double post - when I created it the first time none of my message came up. Can't find a way to delete my thread either...

Edited by: Ross on 23-Jan-2012 16:33
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 21 2012
Added on Jan 23 2012
6 comments
865 views