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:
- https://blogs.oracle.com/groundside/pattern-for-obtaining-adf-component-id-for-javascript
- http://dkleppinger.blogspot.com/2010/12/accessing-adf-components-using-client.html
- 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