开发者

h:selectOneMenu is always enable when a p:dialog's modal attribute was set true. IE6

h:selectOneMenu is always ena开发者_JS百科ble when a p:dialog shows (the dialog's modal attribute was set true.) IE6

But, in IE8 or other browsers, it works well.


hm, sounds like you are refering to the select menu is visible even though it should be hidden behind other elements?

it is an ie6 problem with select boxes (and not a jsf problem), the solution i use is a component that contains the code below, that i include in any menus etc that might appear on top of select boxes

    <!-- hack: make the selectBoxes behind the div really hidden -->
<script>
document.write('&lt;!--[if lte IE 6.5]&gt;&lt;iframe src="javascript:false;"       
                   class="hiddenIframeMenu"&gt;&lt;/iframe&gt;&lt;![endif]--&gt;');
</script>

the css:

.hiddenIframe { display:none; display:block; position:absolute; top:0; left:0;z-index:-1; filter:mask(); width:3210px; height:3210px; }

more info about the bug + solution can be found here:

http://www.targetprocess.com/agileproductblog/2006/07/ie6-select-and-z-index-problem.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜