Fix NPE when pressing change scenario button

The zscript declaration had ben moved causing templateCtrl to not be
defined when doing the apply for the div.

FEA : ItEr64S03BugFixing
This commit is contained in:
Óscar González Fernández 2010-12-09 18:14:52 +01:00
parent 75059af8c1
commit 6c57bbcdf7

View file

@ -28,11 +28,6 @@
<zk>
<div xmlns:n="http://www.zkoss.org/2005/zk/native" apply="${templateCtrl}" height="100%">
<borderlayout height="100%" width="100%" >
<north border="none">
<n:div>
<zscript>
<![CDATA[
contextPath = Executions.getCurrent().getContextPath();
@ -40,6 +35,12 @@
]]>
</zscript>
<div xmlns:n="http://www.zkoss.org/2005/zk/native" apply="${templateCtrl}" height="100%">
<borderlayout height="100%" width="100%" >
<north border="none">
<n:div>
<scripts />
<n:table width="100%" border="0" cellpadding="0" cellspacing="0">