File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes dropDownMenu z-index IE bug with RichFaces Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "dropDownMenu z-index IE bug with RichFaces" Watch "dropDownMenu z-index IE bug with RichFaces" New topic

dropDownMenu z-index IE bug with RichFaces

Akaine Harga
Ranch Hand

Joined: Nov 03, 2009
Posts: 79


There is a famous IE z-index bug affecting some elements generated by richFaces, like dropDownMenu for ex. when some elements (comboBox, fixed calendar, etc.) overlaps the drop-down menus. Officially RichFaces recognizes the bug and says to screw ourselves. I also know how to solve this in a normal html environment when I have access to every element. The problem is RichFaces which generates tons of additional stuff to render its components and direct CSS alteration through the template doesn't work.

Is there any proven jQuery/JS/CSS solution to this for RichFaces?

Wanna install linux on a vacuum cleaner. Could anyone tell me which distro sucks better?
willCodeForFood("Java,PHP,C#,XML,VBS,XHTML,CSS,JavaScript,SQL"); //always looking for job opportunities in AU/NZ/US/CA/Europe :P
Akaine Harga
Ranch Hand

Joined: Nov 03, 2009
Posts: 79

Suddenly after hours of experiments I've solved my problem just by wrapping the menu inside div with CSS params typical for this bug solution.

<div style="position: relative; z-index: 50;">

alf ace

Joined: Mar 27, 2012
Posts: 1
I fixed the problem by adding following attributes to these two CSS classes

.rf-ddm-unsel {
position: relative;
z-index: 0;

.rf-ddm-sel {
position: relative;
z-index: 99;
It is sorta covered in the JavaRanch Style Guide.
subject: dropDownMenu z-index IE bug with RichFaces
Similar Threads
Remove spacing before the label for menu item
GWT 2.0 PopupPanel with GXT
Rich dropDownMenu using style: rich-menu-list-border
displaying image embedded in frame on browser
DHTML Drop Down Menu's, IE, and Form Elements