diff --git a/config/alfresco/messages/webclient.properties b/config/alfresco/messages/webclient.properties
index bb8b45192f..4371b70c0a 100644
--- a/config/alfresco/messages/webclient.properties
+++ b/config/alfresco/messages/webclient.properties
@@ -871,6 +871,7 @@ dashlet_btn_select=Add
dashlet_btn_remove=Remove
selected_dashlets=Selected Components
dashboard_column=Column
+column_max_components=this column can display {0} components
# My Alfresco Layouts messages
layout_single_label=Single Column
diff --git a/config/alfresco/web-client-config.xml b/config/alfresco/web-client-config.xml
index f4f1690fd2..414d73b66b 100644
--- a/config/alfresco/web-client-config.xml
+++ b/config/alfresco/web-client-config.xml
@@ -169,12 +169,12 @@
-
+
@@ -184,9 +184,20 @@
-
-
+
+
+
+
+
+
+
diff --git a/source/java/org/alfresco/web/bean/dashboard/DashboardManager.java b/source/java/org/alfresco/web/bean/dashboard/DashboardManager.java
index 920510b8e0..bea7e5f967 100644
--- a/source/java/org/alfresco/web/bean/dashboard/DashboardManager.java
+++ b/source/java/org/alfresco/web/bean/dashboard/DashboardManager.java
@@ -71,6 +71,7 @@ public class DashboardManager
public void initDashboard()
{
this.renderingList = null;
+ this.titleList = null;
}
/**
@@ -157,9 +158,6 @@ public class DashboardManager
pageConfig.addPage(page);
}
}
-
- // persist the initial config for this user
- //PreferencesService.getPreferences().setValue(PREF_DASHBOARD, pageConfig.toXML());
}
this.pageConfig = pageConfig;
@@ -174,6 +172,11 @@ public class DashboardManager
public void savePageConfig(PageConfig config)
{
this.pageConfig = config;
+
+ // reset cached values
+ initDashboard();
+
+ // persist the changes
PreferencesService.getPreferences().setValue(PREF_DASHBOARD, this.pageConfig.toXML());
}
diff --git a/source/java/org/alfresco/web/bean/dashboard/DashboardWizard.java b/source/java/org/alfresco/web/bean/dashboard/DashboardWizard.java
index 6f1c0aa433..615570d480 100644
--- a/source/java/org/alfresco/web/bean/dashboard/DashboardWizard.java
+++ b/source/java/org/alfresco/web/bean/dashboard/DashboardWizard.java
@@ -155,6 +155,14 @@ public class DashboardWizard extends BaseWizardBean
return DashboardManager.getDashboardConfig().getLayoutDefinition(getLayout()).Columns;
}
+ /**
+ * @return the number of components per column supported in the selected page layout
+ */
+ public int getColumnMax()
+ {
+ return DashboardManager.getDashboardConfig().getLayoutDefinition(getLayout()).ColumnLength;
+ }
+
/**
* @return the array of UI select items representing the columns that can be configured
*/
@@ -171,11 +179,20 @@ public class DashboardWizard extends BaseWizardBean
return columns;
}
+ /**
+ * @return the index of the column being edited in the columns wizard page
+ */
public int getColumn()
{
return this.column;
}
+ /**
+ * Set the index of the column being edited in the columns wizard page. This value is
+ * set when the Columns drop-down value is changed by the user.
+ *
+ * @param column Column index
+ */
public void setColumn(int column)
{
if (column != this.column)
@@ -186,6 +203,9 @@ public class DashboardWizard extends BaseWizardBean
}
}
+ /**
+ * @return The SelectItem List of all available dashlets
+ */
public List getAllDashlets()
{
if (this.dashlets == null)
@@ -265,6 +285,10 @@ public class DashboardWizard extends BaseWizardBean
return this.layoutIcons;
}
+ /**
+ * Build the cached list of values for the layout page. The lists are used by the
+ * image radio picker and dynamic description components.
+ */
private void buildLayoutValueLists()
{
List icons = new ArrayList(4);
@@ -319,14 +343,33 @@ public class DashboardWizard extends BaseWizardBean
// get the IDs of the selected Dashlet definitions
Object[] selected = dashletPicker.getSelectedValues();
- // get the column to add the dashlets too
- DashboardsConfigElement config = DashboardManager.getDashboardConfig();
- LayoutDefinition layoutDef = this.editConfig.getCurrentPage().getLayoutDefinition();
- Column column = this.editConfig.getCurrentPage().getColumns().get(this.column);
- // add each selected dashlet to the column
- for (int i=0; i
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %>
+<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
+
+
diff --git a/source/web/jsp/dashboards/dashlets/calculator.png b/source/web/jsp/dashboards/dashlets/calculator.png
new file mode 100644
index 0000000000..4cc80aeba9
Binary files /dev/null and b/source/web/jsp/dashboards/dashlets/calculator.png differ
diff --git a/source/web/jsp/dashboards/dashlets/calendar.jsp b/source/web/jsp/dashboards/dashlets/calendar.jsp
new file mode 100644
index 0000000000..90ebf9ae5a
--- /dev/null
+++ b/source/web/jsp/dashboards/dashlets/calendar.jsp
@@ -0,0 +1,22 @@
+<%--
+ Copyright (C) 2006 Alfresco, Inc.
+
+ Licensed under the Mozilla Public License version 1.1
+ with a permitted attribution clause. You may obtain a
+ copy of the License at
+
+ http://www.alfresco.org/legal/license.txt
+
+ 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.
+--%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %>
+<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
+
+
diff --git a/source/web/jsp/dashboards/dashlets/calendar.png b/source/web/jsp/dashboards/dashlets/calendar.png
new file mode 100644
index 0000000000..7ce352135e
Binary files /dev/null and b/source/web/jsp/dashboards/dashlets/calendar.png differ
diff --git a/source/web/jsp/dashboards/dashlets/content-checkedout.jsp b/source/web/jsp/dashboards/dashlets/content-checkedout.jsp
new file mode 100644
index 0000000000..a70b1fb3e0
--- /dev/null
+++ b/source/web/jsp/dashboards/dashlets/content-checkedout.jsp
@@ -0,0 +1,22 @@
+<%--
+ Copyright (C) 2006 Alfresco, Inc.
+
+ Licensed under the Mozilla Public License version 1.1
+ with a permitted attribution clause. You may obtain a
+ copy of the License at
+
+ http://www.alfresco.org/legal/license.txt
+
+ 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.
+--%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %>
+<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
+
+
diff --git a/source/web/jsp/dashboards/dashlets/content-checkedout.png b/source/web/jsp/dashboards/dashlets/content-checkedout.png
new file mode 100644
index 0000000000..8063f8b4a5
Binary files /dev/null and b/source/web/jsp/dashboards/dashlets/content-checkedout.png differ
diff --git a/source/web/jsp/dashboards/dashlets/my-completed-tasks.png b/source/web/jsp/dashboards/dashlets/my-completed-tasks.png
new file mode 100644
index 0000000000..f53c1bbd04
Binary files /dev/null and b/source/web/jsp/dashboards/dashlets/my-completed-tasks.png differ
diff --git a/source/web/jsp/dashboards/dashlets/tasklist.jsp b/source/web/jsp/dashboards/dashlets/my-docs.jsp
similarity index 93%
rename from source/web/jsp/dashboards/dashlets/tasklist.jsp
rename to source/web/jsp/dashboards/dashlets/my-docs.jsp
index 74ac3923e7..e79ba1c20a 100644
--- a/source/web/jsp/dashboards/dashlets/tasklist.jsp
+++ b/source/web/jsp/dashboards/dashlets/my-docs.jsp
@@ -19,4 +19,4 @@
<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %>
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
-
+
diff --git a/source/web/jsp/dashboards/dashlets/my-tasks-todo.png b/source/web/jsp/dashboards/dashlets/my-tasks-todo.png
new file mode 100644
index 0000000000..e34ceee2aa
Binary files /dev/null and b/source/web/jsp/dashboards/dashlets/my-tasks-todo.png differ
diff --git a/source/web/jsp/dashboards/dashlets/tasklist-completed.jsp b/source/web/jsp/dashboards/dashlets/tasklist-completed.jsp
new file mode 100644
index 0000000000..8ce35a5ae2
--- /dev/null
+++ b/source/web/jsp/dashboards/dashlets/tasklist-completed.jsp
@@ -0,0 +1,22 @@
+<%--
+ Copyright (C) 2006 Alfresco, Inc.
+
+ Licensed under the Mozilla Public License version 1.1
+ with a permitted attribution clause. You may obtain a
+ copy of the License at
+
+ http://www.alfresco.org/legal/license.txt
+
+ 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.
+--%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %>
+<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
+
+
diff --git a/source/web/jsp/dashboards/dashlets/tasklist-todo.jsp b/source/web/jsp/dashboards/dashlets/tasklist-todo.jsp
new file mode 100644
index 0000000000..22d7f0c020
--- /dev/null
+++ b/source/web/jsp/dashboards/dashlets/tasklist-todo.jsp
@@ -0,0 +1,22 @@
+<%--
+ Copyright (C) 2006 Alfresco, Inc.
+
+ Licensed under the Mozilla Public License version 1.1
+ with a permitted attribution clause. You may obtain a
+ copy of the License at
+
+ http://www.alfresco.org/legal/license.txt
+
+ 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.
+--%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %>
+<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
+
+
diff --git a/source/web/jsp/dashboards/layouts/narrow-left-2column.jsp b/source/web/jsp/dashboards/layouts/narrow-left-2column.jsp
index b542179227..37a2f2f8c7 100644
--- a/source/web/jsp/dashboards/layouts/narrow-left-2column.jsp
+++ b/source/web/jsp/dashboards/layouts/narrow-left-2column.jsp
@@ -24,25 +24,28 @@
<% Application.getDashboardManager().initDashboard(); %>
-
+
-
+
+
-
+
-
+
@@ -50,25 +53,28 @@
-
-
+
-
+
-
+
diff --git a/source/web/jsp/dashboards/layouts/narrow-right-2column.jsp b/source/web/jsp/dashboards/layouts/narrow-right-2column.jsp
index d587b95438..d56814c8ca 100644
--- a/source/web/jsp/dashboards/layouts/narrow-right-2column.jsp
+++ b/source/web/jsp/dashboards/layouts/narrow-right-2column.jsp
@@ -24,25 +24,28 @@
<% Application.getDashboardManager().initDashboard(); %>
-
-
+
-
+
-
+
@@ -50,25 +53,28 @@
-
-
+
-
+
-
+
diff --git a/source/web/jsp/dashboards/layouts/single-column.jsp b/source/web/jsp/dashboards/layouts/single-column.jsp
index 3f66dd56b7..c9c597bdab 100644
--- a/source/web/jsp/dashboards/layouts/single-column.jsp
+++ b/source/web/jsp/dashboards/layouts/single-column.jsp
@@ -23,31 +23,31 @@
<% Application.getDashboardManager().initDashboard(); %>
-
-
-
-
-
diff --git a/source/web/jsp/dashboards/layouts/three-column.jsp b/source/web/jsp/dashboards/layouts/three-column.jsp
index 677b41158f..586705cbe0 100644
--- a/source/web/jsp/dashboards/layouts/three-column.jsp
+++ b/source/web/jsp/dashboards/layouts/three-column.jsp
@@ -21,28 +21,31 @@
<%@ page import="org.alfresco.web.app.Application" %>
-
+
<% Application.getDashboardManager().initDashboard(); %>
-
-
+
-
+
-
+
@@ -50,53 +53,59 @@
-
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
+
-
+
-
+
-
+
-
+
-
+
-
+
diff --git a/source/web/jsp/dashboards/wizard/columns.jsp b/source/web/jsp/dashboards/wizard/columns.jsp
index 7b0017d07b..eb34724772 100644
--- a/source/web/jsp/dashboards/wizard/columns.jsp
+++ b/source/web/jsp/dashboards/wizard/columns.jsp
@@ -40,6 +40,10 @@
+
+
+
+