| <!-- |
| Copyright 2004 The Apache Software Foundation |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <span jwcid="$content$"> |
| <html jwcid="@Shell" title="Exception" stylesheet="asset:stylesheet" |
| disableCaching="true" doctype="ognl:''"> |
| <body> |
| |
| <span jwcid="@If" condition="ognl:dynamic" renderTag="false"> |
| <style jwcid="@Style" href="asset:dynamicStylesheet"/> |
| </span> |
| |
| <span class="exception-top"> |
| <span class="exception-header"> |
| An exception has occurred. |
| </span> |
| |
| <p>You may continue by <b><a jwcid="restart">restarting</a></b> the session.</p> |
| </span> |
| |
| <span jwcid="@ExceptionDisplay" exceptions="ognl:exceptions"/> |
| |
| <span jwcid="@RequestDisplay"/> |
| |
| <script type="text/javascript"> |
| dojo.require("dojo.html.style"); |
| |
| var blockCount=0; |
| |
| function toggleLink(link){ |
| if(!link){return;} |
| if(dojo.html.hasClass(link, "toggleSelected")){ |
| dojo.html.removeClass(link, "toggleSelected"); |
| return; |
| } else { |
| dojo.html.addClass(link, "toggleSelected"); |
| return; |
| } |
| } |
| |
| function toggleDisplay(id, link){ |
| dojo.html.toggleShowing(dojo.byId(id)); |
| toggleLink(link); |
| return false; |
| } |
| |
| (function(){ |
| var elms=dojo.html.getElementsByClass('toggleContent'); |
| if(elms && elms.length > 0){ |
| for(var i=0;i<elms.length;i++){ |
| toggleDisplay(elms[i]); |
| } |
| } |
| elms=dojo.html.getElementsByClass('exception-display'); |
| if(elms && elms.length > 0){ |
| toggleDisplay(elms[elms.length-1]); |
| } |
| })(); |
| </script> |
| |
| </body> |
| </html> |
| </span> |