Focus not working in Chrome when set from FacesContext

95 views Asked by At

Am focusing element from server side using FacesContext like below,

FacesContext fc = FacesContext.getCurrentInstance();
fc.getExternalContext().getRequestMap().put("focus", "addform:elementid");

XHtml look like below,

<h:form id="addform">
<t:panelGrid id="elementid" columns="1" width="280">
   <t:column colspan="4"></t:column>
</t:panelGrid>
</h:form>

Its working fine in IE 11. But not getting focused in Chrome Version 73.0. Why am facing this issue in chrome.?

0

There are 0 answers