Author: xlawrence
Date: Tue Jan 10 16:56:32 2006
New Revision: 12748
URL: https://jahia.mine.nu/websvn/listing.php?sc=1&rev=12748&repname=jahia
Log:
Added 2 tags in order to use Zimbra's AjaxTK and the ComplexTree Component.
ComplexTreeInclude.java still needs some work to be used in other cases than in
the W-flow engine
Added:
trunk/core/src/java/org/jahia/taglibs/ajax/
trunk/core/src/java/org/jahia/taglibs/ajax/ComplexTreeInclude.java
trunk/core/src/java/org/jahia/taglibs/ajax/ZimbraInclude.java
Added: trunk/core/src/java/org/jahia/taglibs/ajax/ComplexTreeInclude.java
URL:
https://jahia.mine.nu/websvn/filedetails.php?path=/trunk/core/src/java/org/jahia/taglibs/ajax/ComplexTreeInclude.java&rev=12748&repname=jahia
==============================================================================
--- trunk/core/src/java/org/jahia/taglibs/ajax/ComplexTreeInclude.java (added)
+++ trunk/core/src/java/org/jahia/taglibs/ajax/ComplexTreeInclude.java Tue Jan
10 16:56:32 2006
@@ -0,0 +1,345 @@
+/*
+ * ____.
+ * __/\ ______| |__/\. _______
+ * __ .____| | \ | +----+ \
+ * _______| /--| | | - \ _ | : - \_________
+ * \\______: :---| : : | : | \________>
+ * |__\---\_____________:______: :____|____:_____\
+ * /_____|
+ *
+ * . . . i n j a h i a w e t r u s t . . .
+ *
+ *
+ *
+ * ----- BEGIN LICENSE BLOCK -----
+ * Version: JCSL 1.0
+ *
+ * The contents of this file are subject to the Jahia Community Source License
+ * 1.0 or later (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.jahia.org/license
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the rights, obligations and limitations governing use of the contents
+ * of the file. The Original and Upgraded Code is the Jahia CMS and Portal
+ * Server. The developer of the Original and Upgraded Code is JAHIA Ltd. JAHIA
+ * Ltd. owns the copyrights in the portions it created. All Rights Reserved.
+ *
+ * The Shared Modifications are Jahia View Helper.
+ *
+ * The Developer of the Shared Modifications is Jahia Solution S�rl.
+ * Portions created by the Initial Developer are Copyright (C) 2002 by the
+ * Initial Developer. All Rights Reserved.
+ *
+ * ----- END LICENSE BLOCK -----
+ */
+package org.jahia.taglibs.ajax;
+
+import org.jahia.params.ProcessingContext;
+import org.jahia.resourcebundle.JahiaResourceBundle;
+import org.jahia.services.sites.SiteLanguageSettings;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.jsp.JspException;
+import javax.servlet.jsp.JspWriter;
+import javax.servlet.jsp.tagext.TagSupport;
+import java.util.List;
+
+/**
+ * Simple Tag that should be called in the body of the HTML page. It prints
out all the imports and
+ * javascript includes in order to use the ComplexTree component. It also sets
all the parameters needed by
+ * the component. <br>
+ * <p/>
+ * <b>Note:</b> Don't forget to call zimbraInclude in the header before
calling this tag.
+ *
+ * @author Xavier Lawrence
+ */
+public class ComplexTreeInclude extends TagSupport {
+
+ private static final org.apache.log4j.Logger logger =
+ org.apache.log4j.Logger.getLogger(ComplexTreeInclude.class);
+
+ /**
+ * Default Workflow URL to get the EntryPoint (root) object for the
ComplexTree.
+ */
+ public static final String WORKFLOW_ENTRYPOINT_URL =
"/ajaxaction/GetWorkFlowChildObjectsEntryPoint";
+ /**
+ * Default Sitemap URL to get the EntryPoint (root) object for the
ComplexTree.
+ */
+ public static final String PAGES_ENTRYPOINT_URL =
"/ajaxaction/GetChildPagesEntryPoint";
+ /**
+ * Default Workflow URL to get the child objects of a given ContentObject.
+ */
+ public static final String GET_WORKFLOW_OBJECTS_URL =
"/ajaxaction/GetWorkFlowChildObjects";
+ /**
+ * Default Sitemap URL to get the child objects of a given ContentPage