<%@  page import="com.novell.webaccess.common.JSPConduit, com.novell.emframe.dev.eMFrameUtils" %>
<%   JSPConduit c = JSPConduit.getJSPConduit(request); 
   c.stringTable("DevResources"); 
   c.stringTable("FwResources"); %>
<HTML>
<HEAD>
    <TITLE><%= c.var("bookTitle") %></TITLE>
    <LINK rel='stylesheet' href='<%= c.getModulesUrl() + "/dev/css/hf_style.css" %>'>
    <jsp:include page='<%= c.getPath("dev/PageScripts_inc.jsp") %>' flush="true" />
    <jsp:include page='<%= c.getPath("dev/eMFrameScripts_inc.jsp") %>' flush="true" />
	<script language="JavaScript">
        function isPageValid()   // called before isPageValid - set dirty variable
        {
            if(document.Form.pageValid.selectedIndex == 0)
            {
                return true;
            }
            else
            {
                alert('Invalid Page!');
                return false;
            }
        }
        function launchTask(taskid, strTarget, newInstance)
        {
            var list = new Array();
            list[0] = strTarget;
            strTarget = pack(list);
            myWindow = window.open("webacc?taskId=" + taskid + "&User.context=<%= c.var("User.context") %>&onComplete=close&nextState=initialState&newInstance=" + newInstance + "&eDir$target=" + strTarget,"","HEIGHT=600,WIDTH=700,resizable,scrollbars");
        }
	</script>
</HEAD>


<BODY TOPMARGIN=5 TEXT="#000000" LINK="#000000" VLINK="#000000" ALINK="#000000" bgcolor="#FFFFFF" onLoad="">
   <FORM name="Form" method=post action="webacc">
   <jsp:include page='<%= c.getPath("dev/Messagebar_inc.jsp") %>' flush="true" />
   <jsp:include page='<%= c.getPath("dev/BookVars_inc.jsp") %>' flush="true" />
   <input type=hidden name="myAction" value="">
   
   <a href="Javascript: launchTask('matt.book_ok', 'matt.novell', false);">Launch XML configured Book: Ok</A><BR>
   <a href="Javascript: launchTask('matt.book_noClass', 'matt.novell', false);">Launch XML configured Book: no page class</A><BR>
   <a href="Javascript: launchTask('matt.book_noTemplate', 'matt.novell', false);">Launch XML configured Book: no template file</A><BR>
   <a href="Javascript: launchTask('matt.book_noTargetType', 'matt.novell', false);">Launch XML configured Book: no target type</A><BR>
   <a href="JavaScript: launchTask('fw.ModifyObject', 'matt.Novell', true);" >Launch Super Property Book</A><BR><BR>
   
   <a href="JavaScript: document.forms[0].myAction.value='PageException';showCurrentPage();" >Throw PageException</A><BR>
   <a href="JavaScript: document.forms[0].myAction.value='FatalPageException';showCurrentPage();" >Throw FatalPageException</A><BR><BR>
   
   <a href="JavaScript: document.forms[0].myAction.value='NullInShow';showCurrentPage();" >Throw NullPointer in Show</A><BR>
   <a href="JavaScript: document.forms[0].myAction.value='NullInSave';showCurrentPage();" >Throw NullPointer in Save</A><BR>
   <a href="JavaScript: document.forms[0].myAction.value='NullInApply';parent.bookHeader.apply();" >Throw NullPointer in Apply</A><BR>
   <a href="JavaScript: document.forms[0].myAction.value='PageExInApply';parent.bookHeader.apply();" >Throw PageException in Apply</A><BR><BR>
   
   <a href="JavaScript: toggleDiv('myDiv');" >Toggle div</A><BR><BR>

   Throw Exception in Page.apply: <input type=text name="throwInApply" value="<%= c.var("throwInApply") %>"> (true or false)<BR>
   
   
   
   Valid Page: 
   <SELECT name="pageValid">
      <OPTION value="true">Yes
      <OPTION value="false">No
   </SELECT><BR><BR>
    
</FORM>

<%= c.dumpAll() %>

<DIV id=myDiv style="position:absolute; background-color:#0000FF; visibility:hidden; top:<%= c.var("contentY") %>; left:10; width:200; height:200;">
hi from divs
</DIV>

</BODY>
</HTML>
