0 Replies Latest reply: Mar 14, 2013 6:47 PM by 996879 RSS

    Adding Javascript to pages

    996879
      Hi,

      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="11.1.1.61.92" 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>+
      +<mds:insert parent="pgl2" position="first">+
      +<af:resource type="javascript">+
      function handleBlur(componentEvent)
      +{+
      var blurComp = componentEvent.getSource();
      var updateComp = AdfPage.PAGE.findComponentByAbsoluteLocator("e9368104424");
      updateComp.setValue(blurComp.getValue());
      +}+
      +     </af:resource>+
      +</mds:insert>+

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

      Regards,
      Kenneth