1

我的onload事件没有被触发。这是代码:

<html xmlns="http://www.w3.org/1999/xhtml" 
  xmlns:f="http://java.sun.com/jsf/core" 
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:p="http://primefaces.org/ui"
  xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head>
    <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"/>
    <title>#{txt.TXT_TITLE_WATCHFOLDERS}</title>
    <link rel="stylesheet" type="text/css" href="scripts/styles.css"/>       
    <link rel="shortcut icon" href="./images/favicon.ico"></link>
    <script src="./scripts/scripts.js" type="text/javascript"></script>

    <script type="text/javascript">
    function onLoadCallback(data) 
    {
        alert(data.status);
    }
    </script>

</h:head>

<h:body>

<f:ajax event="load" onevent="onLoadCallback"/>

<f:view>
    <h:form id="wfMgtForm" target="_top">
    ...

什么可能是错的,为什么onLoadCallback永远不会被执行?

4

0 回答 0