when this code is run in a browser:
<rich:modalPanel id="changePwdPanel" onshow="alert(this.id)">
...
</rich:modalPanel>
it outputs the following:
changePwdPanelContainer
and the resulting html code looks like this:
<div id="changePwdPanel" style="display: none;"><input autocomplete="off" id="changePwdPanelOpenedState" name="changePwdPanelOpenedState" type="hidden" /><div class="rich-modalpanel " id="changePwdPanelContainer" ...
if you want to get the actual modalPanel coded id, i.e. changePwdPanel, you can e.g. do this:
<rich:modalPanel id="changePwdPanel" onshow="alert((this.id).replace(/Container/,''))">
...
</rich:modalPanel>
IT, computer and programming tutorials and tips that i couldnt find anywhere else using google, from my daily work as a Senior Developer of solutions using Java and Linux.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment