My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
BBCWeatherDashlet  
Describes the BBC Weather Dashlet add-on for Alfresco Share
Addon-Dashlet, AlfrescoVersion-3.x
Updated Nov 29, 2011 by will.abson

Introduction

This add-on project for Alfresco Share defines a simple dashlet to display current weather observations and a three day forecast for over 9,000 locations across the world. Data is sourced from the BBC Weather RSS feeds.

Installation

The dashlet is packaged as a single JAR file for easy installation into Alfresco Share.

To install the dashlet, simply drop the bbc-weather-dashlet.jar file into the tomcat/shared/lib folder within your Alfresco installation, and restart the application server. You might need to create this folder if it does not already exist.

Building from Source

Check out the project if you have not already done so

svn checkout http://share-extras.googlecode.com/svn/trunk/BBC%20Weather%20Dashlet

Change into the new directory

cd "BBC Weather Dashlet"

An Ant build script is provided to build a JAR file containing the custom files, which can then be installed into the tomcat/shared/lib folder of your Alfresco installation.

To build the JAR file, run the following command from the base project directory.

ant clean dist-jar

The command should build a JAR file named bbc-weather-dashlet.jar in the dist directory within your project, which you can then copy into the tomcat/shared/lib folder of your Alfresco installation.

Alternatively, you can use the build script to hot deploy the JAR file directly into a local Tomcat instance for testing. You will need to use the hotcopy-tomcat-jar task and set the tomcat.home property in Ant.

ant -Dtomcat.home=C:/Alfresco/tomcat clean dist-jar hotcopy-tomcat-jar

After you have deployed the JAR file you will need to restart Tomcat to ensure it picks up the changes.

Usage

  1. Log in to Alfresco Share and navigate to your user dashboard.
  2. Click the Customize Dashboard button to edit the contents of the dashboard and drag the dashlet into one of the columns from the list of dashlets.
Comment by salazz...@gmail.com, Feb 28, 2011

Hi, I don't know why first time "configure" button works, then if you want to change your location again, nothing happen when you click the "configure" button, a workaround is to add the RSS Feed dashlet to your dashboard, I tested in firefox and IE and it works.

Comment by project member will.abson, Mar 4, 2011

salazzari - I've tried to reproduce this in my own environment but I cannot do so, the config dialogue displays fine each time.

If you have a test case that you can use to trigger this reliably, please can you post a defect report in the Issues section? It would be useful if you could include any errors that are thrown (Firebug should give you a good run-down), as well as the names of the locations you are configuring at each step.

Comment by adispi...@gmail.com, May 24, 2011

alfresco 3.4d - i do not have the configure button at all. tested on 2 browsers (firefox and chromium) i belive that this error in boot is to blame: ERROR: org.springframework.web.servlet.DispatcherServlet? - Context initialization failed org.springframework.extensions.config.ConfigException?: 04240000 Unable to locate evaluator implementation for 'model-type' for org.springframework.extensions.config.ConfigSectionImpl?@3e043340 (evaluator=model-type condition=pm:poll replace=false)

at org.springframework.extensions.config.BaseConfigService?.processSection(BaseConfigService?.java:457) at org.springframework.extensions.config.BaseConfigService?.getConfig(BaseConfigService?.java:223) at org.springframework.extensions.config.BaseConfigService?.getConfig(BaseConfigService?.java:165) at org.springframework.extensions.webscripts.connector.ConnectorService?.onApplicationEvent(ConnectorService?.java:106) at org.springframework.context.event.SimpleApplicationEventMulticaster?.multicastEvent(SimpleApplicationEventMulticaster?.java:97) at org.springframework.context.support.AbstractApplicationContext?.publishEvent(AbstractApplicationContext?.java:294) at org.springframework.context.support.AbstractApplicationContext?.finishRefresh(AbstractApplicationContext?.java:858) at org.springframework.context.support.AbstractApplicationContext?.refresh(AbstractApplicationContext?.java:419) at org.springframework.web.servlet.FrameworkServlet?.createWebApplicationContext(FrameworkServlet?.java:443) at org.springframework.web.servlet.FrameworkServlet?.createWebApplicationContext(FrameworkServlet?.java:459) at org.springframework.web.servlet.FrameworkServlet?.initWebApplicationContext(FrameworkServlet?.java:340) at org.springframework.web.servlet.FrameworkServlet?.initServletBean(FrameworkServlet?.java:307) at org.springframework.web.servlet.HttpServletBean?.init(HttpServletBean?.java:127) at javax.servlet.GenericServlet?.init(GenericServlet?.java:212) at org.apache.catalina.core.StandardWrapper?.loadServlet(StandardWrapper?.java:1173) at org.apache.catalina.core.StandardWrapper?.load(StandardWrapper?.java:993) at org.apache.catalina.core.StandardContext?.loadOnStartup(StandardContext?.java:4187) at org.apache.catalina.core.StandardContext?.start(StandardContext?.java:4496) at org.apache.catalina.core.ContainerBase?.addChildInternal(ContainerBase?.java:791) at org.apache.catalina.core.ContainerBase?.addChild(ContainerBase?.java:771) at org.apache.catalina.core.StandardHost?.addChild(StandardHost?.java:546) at org.apache.catalina.startup.HostConfig?.deployWAR(HostConfig?.java:905) at org.apache.catalina.startup.HostConfig?.deployWARs(HostConfig?.java:740) at org.apache.catalina.startup.HostConfig?.deployApps(HostConfig?.java:500) at org.apache.catalina.startup.HostConfig?.start(HostConfig?.java:1277) at org.apache.catalina.startup.HostConfig?.lifecycleEvent(HostConfig?.java:321) at org.apache.catalina.util.LifecycleSupport?.fireLifecycleEvent(LifecycleSupport?.java:119) at org.apache.catalina.core.ContainerBase?.start(ContainerBase?.java:1053) at org.apache.catalina.core.StandardHost?.start(StandardHost?.java:785) at org.apache.catalina.core.ContainerBase?.start(ContainerBase?.java:1045) at org.apache.catalina.core.StandardEngine?.start(StandardEngine?.java:443) at org.apache.catalina.core.StandardService?.start(StandardService?.java:519) at org.apache.catalina.core.StandardServer?.start(StandardServer?.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:581) at sun.reflect.NativeMethodAccessorImpl?.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl?.invoke(NativeMethodAccessorImpl?.java:39) at sun.reflect.DelegatingMethodAccessorImpl?.invoke(DelegatingMethodAccessorImpl?.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

Comment by project member will.abson, May 24, 2011

Hi, normally that issue is due to Web Quick Start not being able to parse the Share configuration. Please post a defect issue in the Issues section if you have problems and we can discuss the best way to resolve this for you.

Comment by patomari...@gmail.com, Jul 25, 2011

i'm not able to get configure link...is this a known issue?

Comment by NovaMu...@gmail.com, Apr 5, 2012

I had this problem and solved it by retriving sources of this dashlet, and adding ml-ant-http-1.1.1.jar to /lib directory. Then, just build it (ant), and that's it !


Sign in to add a comment
Powered by Google Project Hosting