سؤال

I have a problem working with <tr:inputDate> and Internet Explorer 9. The calendar for picking the date it's not showing. With Chrome/Firefox and previous versions of IE and IE compatibility mode works fine. I disabled the pop-up blocker but still not working. Any suggestion?

i'm working with:

  • MyFaces v2.1.1
  • Trinidad v2.0.0

Thanks...

هل كانت مفيدة؟

المحلول 2

Finally I solved it by adding in the my implementation of the PhaseListener this code:

@Override
public void beforePhase(PhaseEvent event){
FacesContext context = event.getFacesContext();
final HttpServletResponse response = (HttpServletResponse);
context.getExternalContext().getResponse();
response.addHeader("X-UA-Compatible", "IE=EmulateIE8");
}

I got solution here.

نصائح أخرى

Either you used the wrong doctype, or it's a bug in the HTML/CSS generated by <tr:inputDate>. As I've never used Trinidad, I can't confirm either of those possible causes.

After you've reported this issue to the Trinidad guys, in the meanwhile your best bet is to force IE9 to render in IE8 compatibility mode by adding the following meta tag to the HTML head:

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top