You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ha...@apache.org on 2009/10/15 06:48:58 UTC
svn commit: r825391 [18/18] - in /ofbiz/branches/addBirt/framework:
base/config/ webapp/lib/ webapp/src/org/ofbiz/webapp/control/ webtools/
webtools/config/ webtools/data/helpdata/ webtools/servicedef/
webtools/src/org/ofbiz/birt/ webtools/src/org/ofbi...
Added: ofbiz/branches/addBirt/framework/webtools/webapp/webtools/WEB-INF/birt.tld
URL: http://svn.apache.org/viewvc/ofbiz/branches/addBirt/framework/webtools/webapp/webtools/WEB-INF/birt.tld?rev=825391&view=auto
==============================================================================
--- ofbiz/branches/addBirt/framework/webtools/webapp/webtools/WEB-INF/birt.tld (added)
+++ ofbiz/branches/addBirt/framework/webtools/webapp/webtools/WEB-INF/birt.tld Thu Oct 15 04:48:28 2009
@@ -0,0 +1,1157 @@
+<?xml version='1.0' encoding='ISO-8859-1' ?>
+<!DOCTYPE taglib
+ PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
+ "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
+<taglib>
+ <tlib-version>1.0</tlib-version>
+ <jsp-version>1.2</jsp-version>
+ <short-name>BIRT Tag Library</short-name>
+ <uri>http://www.eclipse.org/birt/taglibs/birt.tld</uri>
+ <description>
+ This Tag Library makes user develope JSP with BIRT Viewer component easily.
+ </description>
+
+ <!--**********************************************-->
+ <!-- Viewer Tag -->
+ <!--**********************************************-->
+ <tag>
+ <name>viewer</name>
+ <tag-class>org.eclipse.birt.report.taglib.ViewerTag</tag-class>
+ <body-content>JSP</body-content>
+ <description>
+ The viewer tag is to specify how to import and control BIRT Report Viewer into JSP page.
+ This tag will use Ajax framework to retrieve report content.
+ </description>
+
+ <attribute>
+ <name>id</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the current viewer id. It should be unique.
+ It can contain number,letter or underline.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>pattern</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies which servlet pattern to be used to preview report.
+ Default value is frameset.
+ ( frameset or run )
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>baseURL</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies base URL of BIRT viewer.
+ Default to the current context.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>title</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the report title displayed at the top.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>isHostPage</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies whether the viewer occupies the whole page.
+ Default to false.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>scrolling </name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Sets the IFrame style "scrolling ".
+ If isHostPage is true, ignore this attribute.
+ ( auto | yes | no )
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>position</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Sets the style "position" of report container.
+ If isHostPage is true, ignore this attribute.
+ ( static | absolute | fixed | relative )
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>style</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Sets the style of report container.
+ If isHostPage is true, ignore this attribute.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>height</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Sets the height of report container in pixels.
+ If isHostPage is true, ignore this attribute.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>width</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Sets the width of report container in pixels.
+ If isHostPage is true, ignore this attribute.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>top</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Sets the top of report container in pixels.
+ If isHostPage is true, ignore this attribute.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>left</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Sets the left of report container in pixels.
+ If isHostPage is true, ignore this attribute.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>frameborder</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies whether displays the iframe border.
+ Default to no.
+ If isHostPage is true, ignore this attribute.
+ ( Yes | No )
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>reportDesign</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the report design file name.
+ ( Absolute path, relative path or URL )
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>reportDocument</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the report document file name.
+ Noted: only support "file:" URL format.
+ ( Absolute path, relative path or URL )
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>reportletId</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the instance id of reportlet.
+ The "reportDocument" attribute should be required.
+ Noted: frameset pattern doesn't support reportlet.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>bookmark</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the targeted bookmark name.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>locale</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the Locale information.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>timeZone</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies a time zone id. For example: "America/Los_Angeles" or "GMT+1" or "GMT+01:00".
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>svg</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies whether supports the SVG output format or not.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>format</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the output format of report.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>emitterId</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the emitter id for the report output.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>pageOverflow</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the page overflow setting for the PDF format.
+ One of the following values:
+ 0 for "auto", 1 for "actual size", 2 for "fit to page".
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>rtl</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies whether supports rtl page or not.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>pageNum</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies output page number when render document file.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>pageRange</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies page range when render document file.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>resourceFolder</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the referenced resource folder.
+ Default value is defined in web.xml.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>forceOverwriteDocument</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies whether forces to overwrite the generated document.
+ If allowPageBreak is false,ignore this attribute.
+ Default value is defined in web.xml.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>showTitle</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies whether shows the report title.
+ Default to true.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>showToolBar</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies whether shows the toolbar.
+ Default to true.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>showNavigationBar</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies whether shows the Navigation Bar.
+ If allowPageBreak is false,ignore this attribute.
+ Default to true.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>showParameterPage</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies whether show the parameter dialog or not.
+ Default to true.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>isReportlet</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies whether render reportlet by bookmark.
+ Default to false.
+ </description>
+ </attribute>
+
+ </tag>
+
+ <!--**********************************************-->
+ <!-- Report Tag -->
+ <!--**********************************************-->
+ <tag>
+ <name>report</name>
+ <tag-class>org.eclipse.birt.report.taglib.ReportTag</tag-class>
+ <body-content>JSP</body-content>
+ <description>
+ The report tag can provide fast report preview without Ajax framework.
+ The report content can be output to web browser directly.
+ </description>
+
+ <attribute>
+ <name>id</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the current viewer id. It should be unique.
+ It can contain number,letter or underline.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>baseURL</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies base URL of BIRT viewer.
+ Default to the current context.
+ If report container is DIV, ignore this attribute.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>isHostPage</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies whether the viewer occupies the whole page.
+ Default to false.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>scrolling </name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Sets the DIV/IFrame style "scrolling ".
+ If isHostPage is true, ignore this attribute.
+ ( auto | yes | no )
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>position</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Sets the style "position" of report container.
+ If isHostPage is true, ignore this attribute.
+ ( static | absolute | fixed | relative )
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>style</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Sets the style of report container.
+ If isHostPage is true, ignore this attribute.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>height</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Sets the height of report container in pixels.
+ If isHostPage is true, ignore this attribute.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>width</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Sets the width of report container in pixels.
+ If isHostPage is true, ignore this attribute.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>top</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Sets the top of report container in pixels.
+ If isHostPage is true, ignore this attribute.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>left</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Sets the left of report container in pixels.
+ If isHostPage is true, ignore this attribute.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>frameborder</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies whether displays the iframe border.
+ Available when user IFrame.
+ Default to no.
+ ( Yes | No )
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>reportDesign</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the report design file name.
+ ( Absolute path, relative path or URL )
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>reportDocument</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the report document file name.
+ Noted: only support "file:" URL format.
+ ( Absolute path, relative path or URL )
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>reportletId</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the instance id of reportlet.
+ The "reportDocument" attribute should be required.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>bookmark</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the targeted bookmark name.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>locale</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the Locale information.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>timeZone</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies a time zone id. For example: "America/Los_Angeles" or "GMT+1" or "GMT+01:00".
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>svg</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies whether supports the SVG output format or not.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>format</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the output format of report.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>emitterId</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the emitter id for the report output.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>pageOverflow</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the page overflow setting for the PDF format.
+ One of the following values:
+ 0 for "auto", 1 for "actual size", 2 for "fit to page".
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>rtl</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies whether supports rtl page or not.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>showParameterPage</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies whether show the parameter dialog or not.
+ Default to true.
+ If report container is DIV, ignore this attribute.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>resourceFolder</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the referenced resource folder.
+ Default value is defined in web.xml.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>reportContainer</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies iframe or div as report container.
+ Default to iframe.
+ ( iframe | div )
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>pageNum</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies output page number when render document file.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>pageRange</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies page range when render document file.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>isReportlet</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies whether render reportlet by bookmark.
+ Default to false.
+ </description>
+ </attribute>
+
+ </tag>
+
+ <!--**********************************************-->
+ <!-- Report Parameter Tag -->
+ <!--**********************************************-->
+ <tag>
+ <name>param</name>
+ <tag-class>org.eclipse.birt.report.taglib.ParamTag</tag-class>
+ <body-content>JSP</body-content>
+ <description>
+ The param tag specifies the parameters defined in report design file.
+ </description>
+ <attribute>
+ <name>name</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the report parameter name.
+ </description>
+ </attribute>
+ <attribute>
+ <name>pattern</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the report parameter pattern format.
+ </description>
+ </attribute>
+ <attribute>
+ <name>value</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the report parameter value. If doesn't set, value is null.
+ </description>
+ </attribute>
+ <attribute>
+ <name>displayText</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the report parameter display text.
+ </description>
+ </attribute>
+ <attribute>
+ <name>delim</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the delimiter for multiple values.
+ Defaults to pipe "|".
+ </description>
+ </attribute>
+ <attribute>
+ <name>isLocale</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies whether the report parameter value is a locale/format related string.
+ </description>
+ </attribute>
+ </tag>
+
+ <!--**********************************************-->
+ <!-- Report Parameter Value Tag -->
+ <!--**********************************************-->
+ <tag>
+ <name>value</name>
+ <tag-class>org.eclipse.birt.report.taglib.ParamValueTag</tag-class>
+ <body-content>JSP</body-content>
+ <description>
+ The param value tag specifies multiple values for a given param tag.
+ </description>
+ <attribute>
+ <name>value</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the report parameter value. If doesn't set, value is null.
+ </description>
+ </attribute>
+ <attribute>
+ <name>displayText</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the report parameter display text.
+ </description>
+ </attribute>
+ </tag>
+
+ <!--**********************************************-->
+ <!-- ParameterPage Tag -->
+ <!--**********************************************-->
+ <tag>
+ <name>parameterPage</name>
+ <tag-class>org.eclipse.birt.report.taglib.RequesterTag</tag-class>
+ <body-content>JSP</body-content>
+ <description>
+ The parameterPage tag can help developers to display BIRT parameter page or create a user-defined parameter page.
+ This tag can collect these parameters and submit to BIRT servlet to handle request.
+ </description>
+
+ <attribute>
+ <name>id</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the parameter page id.It should be unique.
+ It can contain number,letter or underline.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>name</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the parameter page name.
+ If attribute 'isCustom' is true, this name should be required and unique.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>isCustom</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies whether uses the user-defined parameter page.
+ If false, use the BIRT parameter dialog.
+ Default to false.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>title</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the report title displayed at the top.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>baseURL</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies base URL of BIRT viewer.
+ Default to the current context.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>scrolling </name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Sets the DIV/IFrame style "scrolling ".
+ ( auto | yes | no )
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>position</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Sets the style "position" of parameter page.
+ ( static | absolute | fixed | relative )
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>style</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Sets the style of parameter page.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>height</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Sets the height of parameter page in pixels.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>width</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Sets the width of parameter page in pixels.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>top</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Sets the top of parameter page in pixels.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>left</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Sets the left of parameter page in pixels.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>frameborder</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies whether displays the iframe border.
+ Default to no.
+ If set "isCustom" to true, ignore this attribute.
+ ( Yes | No )
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>reportDesign</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the report design file name.
+ ( Absolute path, relative path or URL )
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>reportDocument</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the report document file name.
+ Noted: only support "file:" URL format.
+ ( Absolute path, relative path or URL )
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>reportletId</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the instance id of reportlet.
+ The "reportDocument" attribute should be required.
+ Noted: frameset pattern doesn't support reportlet.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>pattern</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the servlet pattern for request submit.
+ BIRT supports three patterns: frameset, run and preview.
+ Can refer to the user-defined servlet pattern.
+ Default to frameset.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>target</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the target window for request submit.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>bookmark</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the targeted bookmark name.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>locale</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the Locale information.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>timeZone</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies a time zone id. For example: "America/Los_Angeles" or "GMT+1" or "GMT+01:00".
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>svg</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies whether supports the SVG output format or not.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>format</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the output format of report.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>emitterId</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the emitter id for the report output.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>pageOverflow</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the page overflow setting for the PDF format.
+ One of the following values:
+ 0 for "auto", 1 for "actual size", 2 for "fit to page".
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>rtl</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies whether supports rtl page or not.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>resourceFolder</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the referenced resource folder.
+ Default value is defined in web.xml.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>forceOverwriteDocument</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies whether forces to overwrite the generated document.
+ If allowPageBreak is false,ignore this attribute.
+ Default value is defined in web.xml.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>showTitle</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies whether shows the report title.
+ Default to true.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>showToolBar</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies whether shows the toolbar.
+ Default to true.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>showNavigationBar</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies whether shows the Navigation Bar.
+ If allowPageBreak is false,ignore this attribute.
+ Default to true.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>isReportlet</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies whether render reportlet by bookmark.
+ Default to false.
+ </description>
+ </attribute>
+
+ </tag>
+
+ <!--**********************************************-->
+ <!-- Report Parameter Definition Tag -->
+ <!--**********************************************-->
+ <tag>
+ <name>paramDef</name>
+ <tag-class>org.eclipse.birt.report.taglib.ParamDefTag</tag-class>
+ <body-content>JSP</body-content>
+ <description>
+ The param tag is used to generate html code for defined parameter in ParameterPage tag.
+ </description>
+ <attribute>
+ <name>id</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the id of parameter control.It should be unique.
+ It can contain number,letter or underline.
+ </description>
+ </attribute>
+ <attribute>
+ <name>name</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the report parameter name.
+ </description>
+ </attribute>
+ <attribute>
+ <name>pattern</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the report parameter pattern format.
+ It is used to parse defined parameter value string.
+ </description>
+ </attribute>
+ <attribute>
+ <name>value</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the report parameter value. If doesn't set, use default value.
+ </description>
+ </attribute>
+ <attribute>
+ <name>displayText</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the report parameter display text.
+ </description>
+ </attribute>
+ <attribute>
+ <name>isLocale</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies whether the report parameter value is a locale/format related string.
+ It is used to parse defined parameter value string.
+ </description>
+ </attribute>
+ <attribute>
+ <name>title</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the title attribute of parameter control.
+ </description>
+ </attribute>
+ <attribute>
+ <name>cssClass</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the css class attribute of parameter control.
+ </description>
+ </attribute>
+ <attribute>
+ <name>style</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <description>
+ Specifies the parameter control style.
+ </description>
+ </attribute>
+ </tag>
+</taglib>
\ No newline at end of file
Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/webtools/WEB-INF/birt.tld
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/webtools/WEB-INF/birt.tld
------------------------------------------------------------------------------
svn:keywords = "Date Rev Author URL Id"
Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/webtools/WEB-INF/birt.tld
------------------------------------------------------------------------------
svn:mime-type = text/xml
Modified: ofbiz/branches/addBirt/framework/webtools/webapp/webtools/WEB-INF/controller.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/addBirt/framework/webtools/webapp/webtools/WEB-INF/controller.xml?rev=825391&r1=825390&r2=825391&view=diff
==============================================================================
--- ofbiz/branches/addBirt/framework/webtools/webapp/webtools/WEB-INF/controller.xml (original)
+++ ofbiz/branches/addBirt/framework/webtools/webapp/webtools/WEB-INF/controller.xml Thu Oct 15 04:48:28 2009
@@ -24,6 +24,7 @@
<include location="component://commonext/webapp/WEB-INF/controller.xml"/>
<include location="component://common/webcommon/WEB-INF/tempexpr-controller.xml"/>
<include location="component://testtools/webapp/testtools/WEB-INF/controller.xml"/>
+ <include location="component://webtools/webapp/birt/WEB-INF/controller.xml"/>
<description>WebTools Site Configuration File</description>
<owner>Copyright 2001-2009 The Apache Software Foundation</owner>
Added: ofbiz/branches/addBirt/framework/webtools/widget/BirtForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/addBirt/framework/webtools/widget/BirtForms.xml?rev=825391&view=auto
==============================================================================
--- ofbiz/branches/addBirt/framework/webtools/widget/BirtForms.xml (added)
+++ ofbiz/branches/addBirt/framework/webtools/widget/BirtForms.xml Thu Oct 15 04:48:28 2009
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
+
+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.
+-->
+
+<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
+
+ <form name="EditMail" type="single" target="sendBirtMail">
+ <field name="sendFrom"><text/></field>
+ <field name="sendTo"><text/></field>
+ <field name="subject"><text/></field>
+ <field name="birtReportLocation" tooltip="Example is component://webtools/webapp/birt/report/product.rptdesign"><text/></field>
+ <field name="birtContentType">
+ <drop-down>
+ <option key="text/html" description="text/html"/>
+ <option key="application/pdf" description="application/pdf"/>
+ <option key="application/vnd.ms-excel" description="application/vnd.ms-excel"/>
+ <option key="application/vnd.ms-word" description="application/vnd.ms-word"/>
+ <option key="application/vnd.ms-powerpoint" description="application/vnd.ms-powerpoint"/>
+ </drop-down>
+ </field>
+ <field name="attachmentName"><text/></field>
+ <field name="sendButton" widget-style="smallSubmit"><submit button-type="button"/></field>
+ </form>
+</forms>
Propchange: ofbiz/branches/addBirt/framework/webtools/widget/BirtForms.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: ofbiz/branches/addBirt/framework/webtools/widget/BirtForms.xml
------------------------------------------------------------------------------
svn:keywords = "Date Rev Author URL Id"
Propchange: ofbiz/branches/addBirt/framework/webtools/widget/BirtForms.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: ofbiz/branches/addBirt/framework/webtools/widget/BirtScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/addBirt/framework/webtools/widget/BirtScreens.xml?rev=825391&view=auto
==============================================================================
--- ofbiz/branches/addBirt/framework/webtools/widget/BirtScreens.xml (added)
+++ ofbiz/branches/addBirt/framework/webtools/widget/BirtScreens.xml Thu Oct 15 04:48:28 2009
@@ -0,0 +1,93 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
+
+ <screen name="main">
+ <section>
+ <actions>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonBirtDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <section>
+ <widgets>
+ <label text="BIRT is an open source Eclipse-based reporting system that integrates with your Java/J2EE application to produce compelling reports."/>
+ </widgets>
+ </section>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+
+ <screen name="Viewer">
+ <section>
+ <actions>
+ <set field="tabButtonItem" value="Viewer"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonBirtDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <section>
+ <widgets>
+ <screenlet title="Using viewer tag">
+ <platform-specific>
+ <html>
+ <html-template location="component://webtools/webapp/birt/WEB-INF/birt/viewer.ftl"/>
+ </html>
+ </platform-specific>
+ </screenlet>
+ </widgets>
+ </section>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+
+ <screen name="Report">
+ <section>
+ <actions>
+ <set field="tabButtonItem" value="Report"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonBirtDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <section>
+ <widgets>
+ <screenlet title="Using report tag">
+ <platform-specific>
+ <html>
+ <html-template location="component://webtools/webapp/birt/WEB-INF/birt/report.ftl"/>
+ </html>
+ </platform-specific>
+ </screenlet>
+ </widgets>
+ </section>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+
+ <screen name="EditMail">
+ <section>
+ <actions>
+ <set field="tabButtonItem" value="Mail"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonBirtDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <section>
+ <widgets>
+ <screenlet title="Send BIRT report by mail">
+ <include-form location="component://webtools/widget/BirtForms.xml" name="EditMail"/>
+ </screenlet>
+ </widgets>
+ </section>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+</screens>
\ No newline at end of file
Propchange: ofbiz/branches/addBirt/framework/webtools/widget/BirtScreens.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: ofbiz/branches/addBirt/framework/webtools/widget/BirtScreens.xml
------------------------------------------------------------------------------
svn:keywords = "Date Rev Author URL Id"
Propchange: ofbiz/branches/addBirt/framework/webtools/widget/BirtScreens.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Modified: ofbiz/branches/addBirt/framework/webtools/widget/CommonScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/addBirt/framework/webtools/widget/CommonScreens.xml?rev=825391&r1=825390&r2=825391&view=diff
==============================================================================
--- ofbiz/branches/addBirt/framework/webtools/widget/CommonScreens.xml (original)
+++ ofbiz/branches/addBirt/framework/webtools/widget/CommonScreens.xml Thu Oct 15 04:48:28 2009
@@ -226,4 +226,32 @@
</widgets>
</section>
</screen>
+
+ <screen name="CommonBirtDecorator">
+ <section>
+ <actions>
+ <set field="headerItem" value="birt"/>
+ <property-map resource="BirtUiLabels" map-name="uiLabelMap" global="true"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <section>
+ <!-- do check for WEBTOOLS, _VIEW permission -->
+ <condition>
+ <if-has-permission permission="ENTITY_MAINT"/>
+ </condition>
+ <widgets>
+ <include-menu name="birtTabBar" location="component://webtools/widget/Menus.xml"/>
+ <decorator-section-include name="body"/>
+ </widgets>
+ <fail-widgets>
+ <label style="h3">${uiLabelMap.WebtoolsPermissionError}</label>
+ </fail-widgets>
+ </section>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
</screens>
Modified: ofbiz/branches/addBirt/framework/webtools/widget/Menus.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/addBirt/framework/webtools/widget/Menus.xml?rev=825391&r1=825390&r2=825391&view=diff
==============================================================================
--- ofbiz/branches/addBirt/framework/webtools/widget/Menus.xml (original)
+++ ofbiz/branches/addBirt/framework/webtools/widget/Menus.xml Thu Oct 15 04:48:28 2009
@@ -48,6 +48,9 @@
<menu-item name="tests" title="Tests">
<link target="selenium"/>
</menu-item>
+ <menu-item name="birt" title="Birt">
+ <link target="birt"/>
+ </menu-item>
</menu>
<menu name="configurationTabBar" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml"
@@ -184,4 +187,10 @@
</menu-item>
</menu>
+ <menu name="birtTabBar" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
+ <menu-item name="Viewer" title="${uiLabelMap.BirtViewer}"><link target="BirtViewer"/></menu-item>
+ <menu-item name="Report" title="${uiLabelMap.BirtReport}"><link target="BirtReport"/></menu-item>
+ <menu-item name="Mail" title="${uiLabelMap.BirtMail}"><link target="BirtMail"/></menu-item>
+ <menu-item name="Export" title="${uiLabelMap.BirtViewHandler}"><link target="BirtViewHandler"/></menu-item>
+ </menu>
</menus>
Modified: ofbiz/branches/addBirt/framework/widget/src/org/ofbiz/widget/screen/ScreenRenderer.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/addBirt/framework/widget/src/org/ofbiz/widget/screen/ScreenRenderer.java?rev=825391&r1=825390&r2=825391&view=diff
==============================================================================
--- ofbiz/branches/addBirt/framework/widget/src/org/ofbiz/widget/screen/ScreenRenderer.java (original)
+++ ofbiz/branches/addBirt/framework/widget/src/org/ofbiz/widget/screen/ScreenRenderer.java Thu Oct 15 04:48:28 2009
@@ -62,6 +62,7 @@
import freemarker.ext.jsp.TaglibFactory;
import freemarker.ext.servlet.HttpRequestHashModel;
import freemarker.ext.servlet.HttpSessionHashModel;
+import freemarker.ext.servlet.ServletContextHashModel;
/**
* Widget Library - Screen model class
@@ -242,6 +243,10 @@
TaglibFactory JspTaglibs = new TaglibFactory(servletContext);
context.put("JspTaglibs", JspTaglibs);
context.put("requestParameters", UtilHttp.getParameterMap(request));
+
+ ServletContextHashModel ftlServletContext = (ServletContextHashModel) request.getAttribute("ftlServletContext");
+ context.put("Application", ftlServletContext);
+ context.put("Request", context.get("requestAttributes"));
// this is a dummy object to stand-in for the JPublish page object for backward compatibility
context.put("page", FastMap.newInstance());