Update of /var/cvs/applications/editwizard/templates/jsp
In directory james.mmbase.org:/tmp/cvs-serv31412/jsp
Modified Files:
list.jsp
Log Message:
Use different way to turn on linking in lists: use <action type="link" /> in
wizard (similar to action type unlink to turn on unlinking).
The relationOrigNode paramter now defaults to origin.
See also: http://cvs.mmbase.org/viewcvs/applications/editwizard/templates/jsp
Index: list.jsp
===================================================================
RCS file: /var/cvs/applications/editwizard/templates/jsp/list.jsp,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -b -r1.73 -r1.74
--- list.jsp 7 Jul 2007 13:32:38 -0000 1.73
+++ list.jsp 13 Feb 2008 13:21:09 -0000 1.74
@@ -1,11 +1,11 @@
-<%@ include file="settings.jsp"%><mm:content type="text/html" expires="0"
language="<%=ewconfig.language%>"><mm:cloud method="$loginmethod"
jspvar="cloud" sessionname="$loginsessionname"><mm:log jspvar="log"><[EMAIL
PROTECTED]
import="org.mmbase.bridge.*,org.mmbase.bridge.util.*,org.mmbase.util.functions.Parameters,javax.servlet.jsp.JspException"
+<%@ include file="settings.jsp"%><mm:content type="text/html" expires="0"
language="<%=ewconfig.language%>"><mm:cloud method="$loginmethod"
loginpage="login.jsp" jspvar="cloud" sessionname="$loginsessionname"><mm:log
jspvar="log"><[EMAIL PROTECTED]
import="org.mmbase.bridge.*,org.mmbase.bridge.util.*,org.mmbase.util.functions.Parameters,javax.servlet.jsp.JspException"
%><%@ page import="org.w3c.dom.Document"
%><%
/**
* list.jsp
*
* @since MMBase-1.6
- * @version $Id: list.jsp,v 1.73 2007/07/07 13:32:38 michiel Exp $
+ * @version $Id: list.jsp,v 1.74 2008/02/13 13:21:09 pierre Exp $
* @author Kars Veling
* @author Michiel Meeuwissen
* @author Pierre van Rooden
@@ -93,6 +93,7 @@
boolean deletable = false;
+boolean linkable = false;
boolean unlinkable = false;
boolean creatable = false;
String deletedescription = "";
@@ -106,6 +107,7 @@
Wizard wiz = null;
wiz = new Wizard(request.getContextPath(), ewconfig.uriResolver,
listConfig.wizard, null, cloud);
deletable = (Utils.selectSingleNode(wiz.getSchema(), "/*/[EMAIL
PROTECTED]'delete']")!=null);
+ linkable = (Utils.selectSingleNode(wiz.getSchema(), "/*/[EMAIL
PROTECTED]'link']")!=null);
unlinkable = (Utils.selectSingleNode(wiz.getSchema(), "/*/[EMAIL
PROTECTED]'unlink']")!=null);
creatable = (Utils.selectSingleNode(wiz.getSchema(), "/*/[EMAIL
PROTECTED]'create']")!=null);
@@ -332,9 +334,7 @@
pages.appendChild(pagenode);
}
-
-java.util.Map<String, Object> params = listConfig.getAttributes();
-
+java.util.Map params = listConfig.getAttributes();
params.put("start", String.valueOf(start));
@@ -346,7 +346,9 @@
params.put("sessionid", ewconfig.sessionId);
params.put("deletable", deletable+"");
params.put("unlinkable", unlinkable +"");
+params.put("linkable", linkable +"");
params.put("creatable", creatable+"");
+params.put("cloud", cloud);
params.put("popupid", popupId);
if (roleStr != null) params.put("relationRole", roleStr);
@@ -369,7 +371,7 @@
log.trace("Doing the transformation for " + listConfig.template);
-Utils.transformNode(doc, listConfig.template, ewconfig.uriResolver, out,
params, cloud);
+Utils.transformNode(doc, listConfig.template, ewconfig.uriResolver, out,
params);
if (log.isDebugEnabled()) log.trace("ready: " + ewconfig.subObjects);
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs