Solved it. 
It turns out that a flash object is always rendered on the topmost layer of
a page regardless of the z-index order.
To be able to place the flash object underneath a popup you need to add a
param to the SWFObject :
swfObj.addParam("wmode", "opaque");

I've added this in SWFObject.java class (I'm using the SWFObject.java
attached here https://issues.apache.org/jira/browse/WICKET-309). Just add 

      response.write(swfVar + ".addParam('wmode', 'opaque');");
before line
     response.write(swfVar + ".write('" + id + "');");

so the flash object will become blocked by the popup dialog as expected.
I got the idea from here (check the last section):
http://pipwerks.com/lab/swfobject/

florin


Al Maw wrote:
> 
> bebetu wrote:
>> Hi,
>> I am experiencing a strange issue with a ModalWindow behavior (I'm using
>> wicket 1.3 beta3). The main page content contains a flash object (I'm
>> using
>> a SWFObject to render it) and when a ModalWindow pops-up over this
>> content,
>> the flash object is still visible below. in Firefox the flash content
>> becomes clickable once I drag the ModalWindow clear from the flash object
>> rendered below. In IE the flash object is visible and clickable the whole
>> time after the ModalWindow is displayed.
>> 
>> Has anyone experienced this issue? Any advice is appreciated.
> 
> Yeah. :-(
> 
> It's a bug in Internet Explorer. You could probably work around it by 
> hiding the whole of the Flash object while the window is popped up. We 
> already have JS code that does this for drop-down <select> boxes (which 
> exhibit the same problem in IE). You might be able to crib the code from 
> that. Patches are welcome. ;)
> 
> Regards,
> 
> Al
> 
> -- 
> Alastair Maw
> Wicket-biased blog at http://herebebeasties.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Flash-object-still-visible-underneath-a-ModalWindow-tf4409822.html#a12640052
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to