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!

Best way to obtain the client id in JavaScript for the panel group layout component given its id

BilalAug 25 2020 — edited Aug 27 2020

Hi All,

Oracle Jdeveloper 12.2.1.3.

I was using div component (named gmapsPanel) inside oracle ADF page to render google maps but recently I noticed that div is messing with the layout arrangement of Alta UI tabletFirstTemplate. I found that the panel group layout with the vertical layout is also translated into div by the renderer so I replaced HTML div with the panel group layout but the map stopped showing up as the actual id i.e. gmapsPanel becomes r1:0:gmapsPanel when the page is run.

My question is what is the best way to get the client id (which in this case is r1:0:gmapsPanel) in JavaScript given the id of the component (which is gmapsPanel).

I came across these articles:

  1. https://blogs.oracle.com/groundside/pattern-for-obtaining-adf-component-id-for-javascript
  2. http://dkleppinger.blogspot.com/2010/12/accessing-adf-components-using-client.html
  3. https://blogs.oracle.com/groundside/locating-jsf-components-by-id

Most of the solutions involve quite some work. Is there a shorter way to achieve it.

Any response will be much appreciated.

Many Thanks and

Kind Regards,

Bilal

This post has been answered by Timo Hahn on Aug 25 2020
Jump to Answer
Comments
Post Details
Added on Aug 25 2020
2 comments
216 views