0 Replies Latest reply on Mar 14, 2013 11:47 PM by 996879

    Adding Javascript to pages


      I'm trying to add Javascript-function to the standard OIM-catalog-page. But I haven't had any success yet.

      I'm trying to do this by adding <ad:resource type=""javascript>MyJavaScript< ad:resource>in an exported sandbox. When I import the sandbox and activate it, the page crashes saying Stream Closed - ADF_Faces-60096 Server Exception during PPR#21

      What am I doing wrong? I have tried to remove everything within ad:resource. But I still get the same exception.

      Here is the xml.

      +<?xml version='1.0' encoding='UTF-8'?>+
      +<mds:customization version="" xmlns:mds="http://xmlns.oracle.com/mds" motype_local_name="root" motype_nsuri="http://java.sun.com/JSP/Page">+
      +<mds:insert parent="pgl2" position="first">+
      +<af:inputText xmlns:af="http://xmlns.oracle.com/adf/faces/rich" label="Label" id="e9368104424" visible="true" value="#{pageFlowScope.catStateBean.searchExpr}"/>+
      +<mds:insert parent="pgl2" position="first">+
      +<af:resource type="javascript">+
      function handleBlur(componentEvent)
      var blurComp = componentEvent.getSource();
      var updateComp = AdfPage.PAGE.findComponentByAbsoluteLocator("e9368104424");
      +     </af:resource>+

      +<mds:modify element="ph1">+
      +<mds:attribute name="text" value="#{catalogResolverBean.kekst}"/>+