File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes GWT and the fly likes GWT 2.0 PopupPanel with GXT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "GWT 2.0 PopupPanel with GXT" Watch "GWT 2.0 PopupPanel with GXT" New topic
Author

GWT 2.0 PopupPanel with GXT

Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3697
    
    5

Upgrading to GWT 2.0 broke the GWT PopupPanel displaying over a GXT form. Right now when the popup displays, the text of FormPanel objects is visible on top of the popup window. Also if you click the TextField super-imposed over the popup it moves into focus.

I'm assuming GXT will release a fix for this eventually, anyone have a solution in the meantime? I've tried putting pictures, images, and panels filled with background color but either way the text form the forms displays as an overlay over images, panels, etc.


My Blog: Down Home Country Coding with Scott Selikoff
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 917

to be honest i do not have much idea about 2.0 and GXT,

If I was you, I would also try a css solution:z-index
http://www.w3schools.com/Css/pr_pos_z-index.asp

just a suggestion....


My Website: [Salvin.in] Cool your mind:[Salvin.in/painting] My Sally:[Salvin.in/sally]
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3697
    
    5

Hey Salvin,

That worked! My guess is the GWT update lowered the z-index value of the PopupPanel such that background elements were able to be placed on top. I just created a new style in my css file was set with a high z-index value, then called popup.setStyle(...).

Thanks!
-Scott
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3697
    
    5

Actually with a bit of testing I discovered the value has to be "z-index: 2" or higher. Though, given that its a popup a much higher value should work since you always want it on top of everything.
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3697
    
    5

Another note: If you had Flash SWF in the background you need to set the property "wmode = transparency". For whatever reason, this was not needed previously, but in 2.0 is needed else Flash in the background will appear above any PopupPanel objects.
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 917

Scott Selikoff wrote:Hey Salvin,

That worked! My guess is the GWT update lowered the z-index value of the PopupPanel such that background elements were able to be placed on top. I just created a new style in my css file was set with a high z-index value, then called popup.setStyle(...).

Thanks!
-Scott

cool!

I am glad i could be of service..

As a side note, the wmode= transparent basically removes the background of the flash file and makes it transparent. this is what i did to make that watch in my site,
take care when using flash within components such as splitter panels....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: GWT 2.0 PopupPanel with GXT
 
Similar Threads
paint method
New GXT for GWT 2.0 Released
SmartGWT & The CardLayout from GWT-Ext - Any Substitute or Equivalent for Migration?
Context Menu not dispalyed on the Text area of the TinyMCE WYSIWYG editor in GWT
Scheduling and Gantt chart for GWT