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 change panelGroup layout property with javascript?

2898158Jun 5 2015 — edited Jun 5 2015

hi guys,

when browser resized, I want to change layout property to PanelGroupLayout using javascript. When firstly page opened layout='vertical'. This my codes,

view codes,

<af:panelGroupLayout clientComponent="true" layout="vertical" inlineStyle="margin-top:30px;" id="pnlGroupCell">

js codes,

var region = AdfPage.PAGE.findComponentByAbsoluteId('pt1:r1');

if (region != null) {

  var panelGroup = region.findComponent('pnlGroupCell');

  panelGroup.setLayout('horizontal'); //This don't work

  }

Thanks.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 3 2015
Added on Jun 5 2015
6 comments
1,047 views