Installation:
|
Note: This version will only work with Bugs Dashboard v3.2.2 and up due to the use of the "params" parameter.
To use the BarChart Portlet, do the following:
- Copy the BarChart.class, BarChartImage$CustomBarRenderer3D.class and BarChartImage.class files from com/wmpnj/bugz/portlets into the deployed web application directory; i.e. /webapps/bugs/WEB-INF/classes/com/wmpnj/bugz/portlets. This may require that you also copy the directory "portlets" if this is the first portlet you are deploying.
- Update the dwr.xml file in the deployed web application WEB-INF directory; i.e. /webapps/bugs/WEB-INF. Edit the file with a text editor and add the following after the last </create> statement:
<create creator="new" javascript="BarChart">
<param name="class" value="com.wmpnj.bugz.portlets.BarChart" />
</create>
- Update the web.xml file in the deployed web application WEB-INF directory; i.e. /webapps/bugs/WEB-INF. Edit the file with a text editor and add the following after the last </servlet> statement, changing the number for the "load-on-startup" value to one more than the last servlet in the list above the point you paste the following:
<servlet>
<servlet-name>BarChartImage</servlet-name>
<servlet-class>com.wmpnj.bugz.portlets.BarChartImage</servlet-class>
<load-on-startup>26</load-on-startup>
</servlet>
Move further down the file to the last </servlet-mapping> tag and paste the following in:
<servlet-name>BarChartImage</servlet-name>
<url-pattern>/barchart</url-pattern>
</servlet-mapping>
- Update the appropriate portlets.properties file in the deployed web application classes directory; i.e. /webapps/bugs/WEB-INF/classes/projectA_portlets_en_US.properties or 2080_portlets_en_US.properties:
You may change the title and column, but do NOT change the package, className,or method!
|