Hidden Division, <DIV> tag, In WSRP Portlet Causes JavaScript Error (Doc ID 1134703.1)

Last updated on NOVEMBER 22, 2016

Applies to:

Oracle WebCenter - Version: 11.1.1.2.0 and later   [Release: and later ]
Information in this document applies to any platform.

Symptoms

If a portlet is added to WebCenter which has a hidden division <DIV> tag with some form fields, WebCenter gives the following JavaScript error in Internet Explorer :-

Message: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.
Line: 814
Char: 17
Code: 0
URI: http://host:port/webcenter/afr/partition/ie/default/opt/_AdfRichPortlet-SHEPHERD-PS1-9296.js

Steps to reproduce:

1. Create a WSRP portlet with the following code included:

<?xml version='1.0' encoding='windows-1252'?>
 <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
 xmlns:f="http://java.sun.com/jsf/core"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=windows-1252"/>

<f:view>
<af:document>
<af:form>
   This page contains hidden div.
   <div id="hd" style="display:none">
     <input type="text" value="error"/>
  </div>

</af:form>
</af:document>
</f:view>
</jsp:root>

2. Add it to a Webcenter page
3. The error is produced

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms