I am currently studying a migration to RichFaces 4. From my JS, I have have to get DOM elements using
document.getElementById('myParent:myElement').
From the JBoss migration guide, I understood that "document.getElementById" can no longer be used : https://community.jboss.org/wiki/RichFacesMigrationGuide33x-4xMigration-CommonComponentsChanges.
Can somebody explain me why, and how can I (simply) change all my calls to this function - over a thousand - to something else ?
Thanks.
I suggest you to read this article: RichFaces built-in client functions
To summarize, there are 4 built in function:
#{rich:clientId('id')}
#{rich:element('id')}
#{rich:component('id')}
#{rich:findComponent('id')}
Explanation:
getElementById
(HTML Element)getElementById
(JavaScript Component)If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With