You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Daniele Dellafiore <il...@gmail.com> on 2008/11/26 13:35:34 UTC

obtain the wicket-modal id in java code

Hi all.

I want to implement a fade effect for the wicket modal window.
What I miss is the id of the div of the modal that has class="wicket-modal".
The id of that div is generated dynamically. When this happens for a
wicket Component I can get it in the code via the getId method but I
do not have a reference in java code to the wicket-modal as a
component.

I have tryed to understand where the id is generated looking in the
javascript code in ModalWindow class but I am not able to figure out
where the id is generated.

Can anyone help?

Without the id I have to traverse the DOM and this can be difficoult
to do in an easy way for all browser. At least, I think so, I am a
little confused about xpath and javascript that is cross browser, I
accept any kind of advice.

Thanks.

-- 
Daniele Dellafiore
http://blog.ildella.net/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org