Subversion Repositories general

Rev

Rev 1014 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.util.*,ak.hostadmiral.core.model.*" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld"      prefix="bean"     %>
<%@ taglib uri="/WEB-INF/struts-logic.tld"     prefix="logic"    %>
<%@ taglib uri="/WEB-INF/struts-html.tld"      prefix="html"     %>
<%@ taglib uri="/WEB-INF/ak-backpath.tld"      prefix="backpath" %>
<%@ taglib uri="/WEB-INF/ak-strutsx.tld"       prefix="strutsx"  %>
<%@ taglib uri="/WEB-INF/hostadmiral-core.tld" prefix="core"     %>
<html>

<head>
        <meta http-equiv="expires" content="0">
        <title><bean:message key="ak.hostadmiral.page.deleting.title" /></title>
        <link rel="stylesheet" type="text/css" href="<strutsx:root />/style/general.css">
</head>

<body>

<h1><bean:message key="ak.hostadmiral.page.deleting.title" /></h1>

<p>
        Deleting <strutsx:message name="object" property="typeKey" />
        <em><strutsx:message name="object" property="identKey" valuesProperty="identParams" /></em>
</p>

<p>
        Following changes will be done is system as cascade effect of deleting the object:
</p>
<ul>
<%
        Collection cascade = (Collection)request.getAttribute("cascade");

        Stack stack = new Stack();
        Iterator i = cascade.iterator();

        while(true) {
                if(!i.hasNext()) {
                        if(stack.isEmpty()) {
                                break;
                        }
                        else {
                                i = (Iterator)stack.pop();
                                %></ul><%
                                continue;
                        }
                }

                CascadeDeleteElement e = (CascadeDeleteElement)i.next();

        pageContext.setAttribute("e", e);
                %><li>
                        <logic:equal name="e" property="effect" value="1">
                                FORBIDDEN
                        </logic:equal>
                        <logic:equal name="e" property="effect" value="2">
                                delete
                        </logic:equal>
                        <logic:equal name="e" property="effect" value="3">
                                change
                        </logic:equal>
                        <strutsx:message name="e" property="object.typeKey" />
                        <em><strutsx:message name="e" property="object.identKey" valuesProperty="object.identParams" /></em>
                </li><%

                if(e.getCascade() != null) {
                        stack.push(i);
                        i = e.getCascade().iterator();
                        %><ul><%
                }
        }
%>
</ul>

<br>
<backpath:currentlink action="<%= (String)request.getAttribute("action") %>" paramId="id" paramName="object" paramProperty="id"><bean:message key="ak.hostadmiral.page.deleting.delete" /></backpath:currentlink>
<backpath:backlink><bean:message key="ak.hostadmiral.page.deleting.back" /></backpath:backlink>

<p>
        <bean:message key="ak.hostadmiral.page.general.version" />:
        <bean:write name="projectVersion" />
</p>

</body>

</html>