[
https://issues.apache.org/jira/browse/TRINIDAD-1340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12655924#action_12655924
]
Bruno Marti commented on TRINIDAD-1340:
---------------------------------------
I've got a workaround in the meantime.
I'm executing a little javascript, which sets the correct style in IE on the
drop-down box.
JS (dialogRefresh.js):
------------------------------
function dialogDropDownComponentRefresh() {
var allSelectElements = document.getElementsByTagName("select");
if (allSelectElements) {
for (var i=0; i < allSelectElements.length; i++ ) {
var tr = allSelectElements[i];
tr.style.cssText = 'display:inline !important; visibility: visible
!important;';
}
}
}
Dialog-JSP (append at the end ):
---------------------------------------------
<trh:script source="/js/dialogRefresh.js"/>
...
<trh:script rendered="#{myBean.agentIE}"
text="setTimeout('dialogDropDownComponentRefresh();', 100);"/>
JAVA-Bean (myBean):
------------------------------
public boolean isAgentIE() {
RenderingContext renderCtx = RenderingContext.getCurrentInstance();
if (renderCtx != null) {
Agent agent = renderCtx.getAgent();
if (agent != null) {
if (Agent.AGENT_IE.equals(agent.getAgentName())) {
return true;
}
getLog().debug("current RenderingContext agent is not IE, returning
false");
return false;
}
getLog().info(
"current RenderingContext agent is null, cannot evaluate browser,
returning false");
return false;
}
getLog().warn("current RenderingContext is null, cannot evaluate browser
agent, returning false");
return false;
}
> IE6 with tr:table with multiple pages (pagging) does not display dropdown-box
> on first load
> -------------------------------------------------------------------------------------------
>
> Key: TRINIDAD-1340
> URL: https://issues.apache.org/jira/browse/TRINIDAD-1340
> Project: MyFaces Trinidad
> Issue Type: Bug
> Affects Versions: 1.0.10-core
> Environment: myfaces 1.1.5, trinidad 1.0.10
> Reporter: Bruno Marti
>
> I've detected the same dialog problem in IE6 with a tr:table with multiple
> pages (pagging) as it is described in
> http://www.nabble.com/Re%3A-Light-Weight-Dialog-is-not-rendering-Select-Boxes-on-initial-rendering-on-IE-6-but-works-on-IE-7-td20507796.html#a20507796
> The page chooser (drop-down box) isn't displayed on first load of dialog, but
> the links "prev/next" besides the drop-down box are displayed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.