JBoss Tools SVN: r18503 - trunk/jbpm/features/org.jboss.tools.jbpm3.feature.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2009-11-09 13:11:18 -0500 (Mon, 09 Nov 2009)
New Revision: 18503
Modified:
trunk/jbpm/features/org.jboss.tools.jbpm3.feature/.project
Log:
fix .project name
Modified: trunk/jbpm/features/org.jboss.tools.jbpm3.feature/.project
===================================================================
--- trunk/jbpm/features/org.jboss.tools.jbpm3.feature/.project 2009-11-09 17:26:49 UTC (rev 18502)
+++ trunk/jbpm/features/org.jboss.tools.jbpm3.feature/.project 2009-11-09 18:11:18 UTC (rev 18503)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
- <name>org.jboss.tools.jbpm4.feature</name>
+ <name>org.jboss.tools.jbpm3.feature</name>
<comment></comment>
<projects>
</projects>
15 years, 1 month
JBoss Tools SVN: r18502 - trunk/seam/plugins/org.jboss.tools.seam.xml.ui.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-11-09 12:26:49 -0500 (Mon, 09 Nov 2009)
New Revision: 18502
Modified:
trunk/seam/plugins/org.jboss.tools.seam.xml.ui/plugin.xml
Log:
https://jira.jboss.org/jira/browse/JBIDE-1253
Modified: trunk/seam/plugins/org.jboss.tools.seam.xml.ui/plugin.xml
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml.ui/plugin.xml 2009-11-09 17:26:15 UTC (rev 18501)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml.ui/plugin.xml 2009-11-09 17:26:49 UTC (rev 18502)
@@ -97,5 +97,15 @@
</content-type>
</extension>
+ <extension id="ds" name="XML Editors" point="org.jboss.tools.common.model.ui.xmlEditor">
+ <xmlEditor
+ class="org.jboss.tools.jst.web.ui.editors.WebCompoundEditor"
+ contributorClass="org.jboss.tools.common.model.ui.texteditors.MultiPageContributor"
+ entities="FileDSDatasources,FileDSConnectionFactories,FileDSDatasources50d,FileDSConnectionFactories50d"
+ icon="$nl$/images/xstudio/editors/seam-components.gif"
+ name="%editors.spring-beans.name">
+ </xmlEditor>
+ </extension>
+
</plugin>
15 years, 1 month
JBoss Tools SVN: r18501 - in trunk/birt/docs/en: files and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: msorokin
Date: 2009-11-09 12:26:15 -0500 (Mon, 09 Nov 2009)
New Revision: 18501
Added:
trunk/birt/docs/en/files/
trunk/birt/docs/en/files/helloBirt.rptdesign
Log:
https://jira.jboss.org/jira/browse/JBIDE-4779
updated the guide
Added: trunk/birt/docs/en/files/helloBirt.rptdesign
===================================================================
--- trunk/birt/docs/en/files/helloBirt.rptdesign (rev 0)
+++ trunk/birt/docs/en/files/helloBirt.rptdesign 2009-11-09 17:26:15 UTC (rev 18501)
@@ -0,0 +1,554 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.20" id="1">
+ <property name="createdBy">Eclipse BIRT Designer Version 2.5.1.v20090903 Build <2.5.1.v20090922-0630></property>
+ <property name="units">in</property>
+ <property name="iconFile">/templates/first_report.gif</property>
+ <property name="cheatSheet">org.eclipse.birt.report.designer.ui.cheatsheet.firstreport</property>
+ <property name="bidiLayoutOrientation">ltr</property>
+ <template-parameter-definitions>
+ <template-parameter-definition name="NewTemplateParameterDefinition" id="28">
+ <property name="allowedType">Table</property>
+ <text-property name="description">Customer Listing</text-property>
+ <default>
+ <table id="29">
+ <property name="width">100%</property>
+ <property name="pageBreakInterval">50</property>
+ <column id="49"/>
+ <column id="50"/>
+ <column id="51"/>
+ <column id="52"/>
+ <header>
+ <row id="30">
+ <cell id="31">
+ <label id="32">
+ <property name="fontFamily">sans-serif</property>
+ <property name="fontWeight">bold</property>
+ <text-property name="text">Contact</text-property>
+ </label>
+ </cell>
+ <cell id="33">
+ <label id="34">
+ <property name="fontFamily">sans-serif</property>
+ <property name="fontWeight">bold</property>
+ <text-property name="text">First</text-property>
+ </label>
+ </cell>
+ <cell id="35">
+ <label id="36">
+ <property name="fontFamily">sans-serif</property>
+ <property name="fontWeight">bold</property>
+ <text-property name="text">Last</text-property>
+ </label>
+ </cell>
+ <cell id="37">
+ <label id="38">
+ <property name="fontFamily">sans-serif</property>
+ <property name="fontWeight">bold</property>
+ <text-property name="text">Phone</text-property>
+ </label>
+ </cell>
+ </row>
+ </header>
+ <detail>
+ <row id="39">
+ <cell id="40"/>
+ <cell id="41"/>
+ <cell id="42"/>
+ <cell id="43"/>
+ </row>
+ </detail>
+ <footer>
+ <row id="44">
+ <cell id="45"/>
+ <cell id="46"/>
+ <cell id="47"/>
+ <cell id="48"/>
+ </row>
+ </footer>
+ </table>
+ </default>
+ </template-parameter-definition>
+ <template-parameter-definition name="NewTemplateParameterDefinition1" id="78">
+ <property name="allowedType">Table</property>
+ <text-property name="description">Customer Listing Table</text-property>
+ <default>
+ <table id="79">
+ <property name="width">100%</property>
+ <property name="refTemplateParameter">NewTemplateParameterDefinition</property>
+ <property name="pageBreakInterval">50</property>
+ <column id="99"/>
+ <column id="100"/>
+ <column id="101"/>
+ <column id="102"/>
+ <header>
+ <row id="80">
+ <cell id="81">
+ <label id="82">
+ <property name="fontFamily">sans-serif</property>
+ <property name="fontWeight">bold</property>
+ <text-property name="text">Contact</text-property>
+ </label>
+ </cell>
+ <cell id="83">
+ <label id="84">
+ <property name="fontFamily">sans-serif</property>
+ <property name="fontWeight">bold</property>
+ <text-property name="text">First</text-property>
+ </label>
+ </cell>
+ <cell id="85">
+ <label id="86">
+ <property name="fontFamily">sans-serif</property>
+ <property name="fontWeight">bold</property>
+ <text-property name="text">Last</text-property>
+ </label>
+ </cell>
+ <cell id="87">
+ <label id="88">
+ <property name="fontFamily">sans-serif</property>
+ <property name="fontWeight">bold</property>
+ <text-property name="text">Phone</text-property>
+ </label>
+ </cell>
+ </row>
+ </header>
+ <detail>
+ <row id="89">
+ <cell id="90"/>
+ <cell id="91"/>
+ <cell id="92"/>
+ <cell id="93"/>
+ </row>
+ </detail>
+ <footer>
+ <row id="94">
+ <cell id="95"/>
+ <cell id="96"/>
+ <cell id="97"/>
+ <cell id="98"/>
+ </row>
+ </footer>
+ </table>
+ </default>
+ </template-parameter-definition>
+ <template-parameter-definition name="NewTemplateParameterDefinition2" id="132">
+ <property name="allowedType">Table</property>
+ <text-property name="description">Customer Listing Table</text-property>
+ <default>
+ <table id="133">
+ <property name="width">100%</property>
+ <property name="refTemplateParameter">NewTemplateParameterDefinition1</property>
+ <property name="pageBreakInterval">50</property>
+ <column id="157"/>
+ <column id="158"/>
+ <column id="159"/>
+ <column id="160"/>
+ <header>
+ <row id="134">
+ <cell id="135">
+ <label id="136">
+ <property name="fontFamily">sans-serif</property>
+ <property name="fontWeight">bold</property>
+ <text-property name="text">Contact</text-property>
+ </label>
+ </cell>
+ <cell id="137">
+ <label id="138">
+ <property name="fontFamily">sans-serif</property>
+ <property name="fontWeight">bold</property>
+ <text-property name="text">First</text-property>
+ </label>
+ </cell>
+ <cell id="139">
+ <label id="140">
+ <property name="fontFamily">sans-serif</property>
+ <property name="fontWeight">bold</property>
+ <text-property name="text">Last</text-property>
+ </label>
+ </cell>
+ <cell id="141">
+ <label id="142">
+ <property name="fontFamily">sans-serif</property>
+ <property name="fontWeight">bold</property>
+ <text-property name="text">Phone</text-property>
+ </label>
+ </cell>
+ </row>
+ </header>
+ <detail>
+ <row id="143">
+ <cell id="144">
+ <data id="145"/>
+ </cell>
+ <cell id="146">
+ <data id="147"/>
+ </cell>
+ <cell id="148">
+ <data id="149"/>
+ </cell>
+ <cell id="150">
+ <data id="151"/>
+ </cell>
+ </row>
+ </detail>
+ <footer>
+ <row id="152">
+ <cell id="153"/>
+ <cell id="154"/>
+ <cell id="155"/>
+ <cell id="156"/>
+ </row>
+ </footer>
+ </table>
+ </default>
+ </template-parameter-definition>
+ </template-parameter-definitions>
+ <parameters>
+ <scalar-parameter name="reportTitle" id="254">
+ <property name="valueType">static</property>
+ <property name="dataType">string</property>
+ <property name="distinct">true</property>
+ <simple-property-list name="defaultValue">
+ <value type="constant">No Title</value>
+ </simple-property-list>
+ <property name="paramType">simple</property>
+ <property name="controlType">text-box</property>
+ <structure name="format">
+ <property name="category">Unformatted</property>
+ </structure>
+ </scalar-parameter>
+ </parameters>
+ <data-sources>
+ <oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc" name="Data Source" id="248">
+ <text-property name="displayName"></text-property>
+ <property name="odaDriverClass">org.eclipse.birt.report.data.oda.sampledb.Driver</property>
+ <property name="odaURL">jdbc:classicmodels:sampledb</property>
+ <property name="odaUser">ClassicModels</property>
+ </oda-data-source>
+ </data-sources>
+ <data-sets>
+ <oda-data-set extensionID="org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet" name="Data Set" id="249">
+ <list-property name="columnHints">
+ <structure>
+ <property name="columnName">CUSTOMERNAME</property>
+ <text-property name="displayName">CUSTOMERNAME</text-property>
+ </structure>
+ <structure>
+ <property name="columnName">CONTACTLASTNAME</property>
+ <text-property name="displayName">CONTACTLASTNAME</text-property>
+ </structure>
+ <structure>
+ <property name="columnName">CONTACTFIRSTNAME</property>
+ <text-property name="displayName">CONTACTFIRSTNAME</text-property>
+ </structure>
+ <structure>
+ <property name="columnName">PHONE</property>
+ <text-property name="displayName">PHONE</text-property>
+ </structure>
+ </list-property>
+ <structure name="cachedMetaData">
+ <list-property name="resultSet">
+ <structure>
+ <property name="position">1</property>
+ <property name="name">CUSTOMERNAME</property>
+ <property name="dataType">string</property>
+ </structure>
+ <structure>
+ <property name="position">2</property>
+ <property name="name">CONTACTLASTNAME</property>
+ <property name="dataType">string</property>
+ </structure>
+ <structure>
+ <property name="position">3</property>
+ <property name="name">CONTACTFIRSTNAME</property>
+ <property name="dataType">string</property>
+ </structure>
+ <structure>
+ <property name="position">4</property>
+ <property name="name">PHONE</property>
+ <property name="dataType">string</property>
+ </structure>
+ </list-property>
+ </structure>
+ <property name="dataSource">Data Source</property>
+ <list-property name="resultSet">
+ <structure>
+ <property name="position">1</property>
+ <property name="name">CUSTOMERNAME</property>
+ <property name="nativeName">CUSTOMERNAME</property>
+ <property name="dataType">string</property>
+ <property name="nativeDataType">12</property>
+ </structure>
+ <structure>
+ <property name="position">2</property>
+ <property name="name">CONTACTLASTNAME</property>
+ <property name="nativeName">CONTACTLASTNAME</property>
+ <property name="dataType">string</property>
+ <property name="nativeDataType">12</property>
+ </structure>
+ <structure>
+ <property name="position">3</property>
+ <property name="name">CONTACTFIRSTNAME</property>
+ <property name="nativeName">CONTACTFIRSTNAME</property>
+ <property name="dataType">string</property>
+ <property name="nativeDataType">12</property>
+ </structure>
+ <structure>
+ <property name="position">4</property>
+ <property name="name">PHONE</property>
+ <property name="nativeName">PHONE</property>
+ <property name="dataType">string</property>
+ <property name="nativeDataType">12</property>
+ </structure>
+ </list-property>
+ <xml-property name="queryText"><![CDATA[select CLASSICMODELS.CUSTOMERS.CUSTOMERNAME,
+CLASSICMODELS.CUSTOMERS.CONTACTLASTNAME,
+CLASSICMODELS.CUSTOMERS.CONTACTFIRSTNAME,
+CLASSICMODELS.CUSTOMERS.PHONE
+from CLASSICMODELS.CUSTOMERS]]></xml-property>
+ <xml-property name="designerValues"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
+<model:DesignValues xmlns:design="http://www.eclipse.org/datatools/connectivity/oda/design" xmlns:model="http://www.eclipse.org/birt/report/model/adapter/odaModel">
+ <Version>1.0</Version>
+ <design:ResultSets derivedMetaData="true">
+ <design:resultSetDefinitions>
+ <design:resultSetColumns>
+ <design:resultColumnDefinitions>
+ <design:attributes>
+ <design:name>CUSTOMERNAME</design:name>
+ <design:position>1</design:position>
+ <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
+ <design:precision>50</design:precision>
+ <design:scale>0</design:scale>
+ <design:nullability>Nullable</design:nullability>
+ <design:uiHints>
+ <design:displayName>CUSTOMERNAME</design:displayName>
+ </design:uiHints>
+ </design:attributes>
+ <design:usageHints>
+ <design:label>CUSTOMERNAME</design:label>
+ <design:formattingHints>
+ <design:displaySize>50</design:displaySize>
+ </design:formattingHints>
+ </design:usageHints>
+ </design:resultColumnDefinitions>
+ <design:resultColumnDefinitions>
+ <design:attributes>
+ <design:name>CONTACTLASTNAME</design:name>
+ <design:position>2</design:position>
+ <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
+ <design:precision>50</design:precision>
+ <design:scale>0</design:scale>
+ <design:nullability>Nullable</design:nullability>
+ <design:uiHints>
+ <design:displayName>CONTACTLASTNAME</design:displayName>
+ </design:uiHints>
+ </design:attributes>
+ <design:usageHints>
+ <design:label>CONTACTLASTNAME</design:label>
+ <design:formattingHints>
+ <design:displaySize>50</design:displaySize>
+ </design:formattingHints>
+ </design:usageHints>
+ </design:resultColumnDefinitions>
+ <design:resultColumnDefinitions>
+ <design:attributes>
+ <design:name>CONTACTFIRSTNAME</design:name>
+ <design:position>3</design:position>
+ <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
+ <design:precision>50</design:precision>
+ <design:scale>0</design:scale>
+ <design:nullability>Nullable</design:nullability>
+ <design:uiHints>
+ <design:displayName>CONTACTFIRSTNAME</design:displayName>
+ </design:uiHints>
+ </design:attributes>
+ <design:usageHints>
+ <design:label>CONTACTFIRSTNAME</design:label>
+ <design:formattingHints>
+ <design:displaySize>50</design:displaySize>
+ </design:formattingHints>
+ </design:usageHints>
+ </design:resultColumnDefinitions>
+ <design:resultColumnDefinitions>
+ <design:attributes>
+ <design:name>PHONE</design:name>
+ <design:position>4</design:position>
+ <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
+ <design:precision>50</design:precision>
+ <design:scale>0</design:scale>
+ <design:nullability>Nullable</design:nullability>
+ <design:uiHints>
+ <design:displayName>PHONE</design:displayName>
+ </design:uiHints>
+ </design:attributes>
+ <design:usageHints>
+ <design:label>PHONE</design:label>
+ <design:formattingHints>
+ <design:displaySize>50</design:displaySize>
+ </design:formattingHints>
+ </design:usageHints>
+ </design:resultColumnDefinitions>
+ </design:resultSetColumns>
+ </design:resultSetDefinitions>
+ </design:ResultSets>
+</model:DesignValues>
+]]></xml-property>
+ </oda-data-set>
+ </data-sets>
+ <styles>
+ <style name="report" id="110">
+ <property name="fontFamily">sans-serif</property>
+ <property name="fontSize">10pt</property>
+ </style>
+ <style name="crosstab-cell" id="246">
+ <property name="borderBottomColor">#CCCCCC</property>
+ <property name="borderBottomStyle">solid</property>
+ <property name="borderBottomWidth">1pt</property>
+ <property name="borderLeftColor">#CCCCCC</property>
+ <property name="borderLeftStyle">solid</property>
+ <property name="borderLeftWidth">1pt</property>
+ <property name="borderRightColor">#CCCCCC</property>
+ <property name="borderRightStyle">solid</property>
+ <property name="borderRightWidth">1pt</property>
+ <property name="borderTopColor">#CCCCCC</property>
+ <property name="borderTopStyle">solid</property>
+ <property name="borderTopWidth">1pt</property>
+ </style>
+ <style name="crosstab" id="247">
+ <property name="borderBottomColor">#CCCCCC</property>
+ <property name="borderBottomStyle">solid</property>
+ <property name="borderBottomWidth">1pt</property>
+ <property name="borderLeftColor">#CCCCCC</property>
+ <property name="borderLeftStyle">solid</property>
+ <property name="borderLeftWidth">1pt</property>
+ <property name="borderRightColor">#CCCCCC</property>
+ <property name="borderRightStyle">solid</property>
+ <property name="borderRightWidth">1pt</property>
+ <property name="borderTopColor">#CCCCCC</property>
+ <property name="borderTopStyle">solid</property>
+ <property name="borderTopWidth">1pt</property>
+ </style>
+ </styles>
+ <page-setup>
+ <simple-master-page name="Simple MasterPage" id="2">
+ <page-footer>
+ <text id="3">
+ <property name="contentType">html</property>
+ <text-property name="content"><![CDATA[<value-of>new Date()</value-of>]]></text-property>
+ </text>
+ </page-footer>
+ </simple-master-page>
+ </page-setup>
+ <body>
+ <data id="255">
+ <list-property name="boundDataColumns">
+ <structure>
+ <property name="name">reportTitle</property>
+ <expression name="expression">params["reportTitle"].value</expression>
+ <property name="dataType">string</property>
+ </structure>
+ </list-property>
+ <property name="resultSetColumn">reportTitle</property>
+ </data>
+ <table id="163">
+ <property name="width">100%</property>
+ <property name="dataSet">Data Set</property>
+ <property name="refTemplateParameter">NewTemplateParameterDefinition2</property>
+ <list-property name="boundDataColumns">
+ <structure>
+ <property name="name">CUSTOMERNAME</property>
+ <text-property name="displayName">CUSTOMERNAME</text-property>
+ <expression name="expression">dataSetRow["CUSTOMERNAME"]</expression>
+ <property name="dataType">string</property>
+ </structure>
+ <structure>
+ <property name="name">CONTACTLASTNAME</property>
+ <text-property name="displayName">CONTACTLASTNAME</text-property>
+ <expression name="expression">dataSetRow["CONTACTLASTNAME"]</expression>
+ <property name="dataType">string</property>
+ </structure>
+ <structure>
+ <property name="name">CONTACTFIRSTNAME</property>
+ <text-property name="displayName">CONTACTFIRSTNAME</text-property>
+ <expression name="expression">dataSetRow["CONTACTFIRSTNAME"]</expression>
+ <property name="dataType">string</property>
+ </structure>
+ <structure>
+ <property name="name">PHONE</property>
+ <text-property name="displayName">PHONE</text-property>
+ <expression name="expression">dataSetRow["PHONE"]</expression>
+ <property name="dataType">string</property>
+ </structure>
+ </list-property>
+ <property name="pageBreakInterval">50</property>
+ <column id="187"/>
+ <column id="188"/>
+ <column id="189"/>
+ <column id="190"/>
+ <header>
+ <row id="164">
+ <cell id="165">
+ <label id="166">
+ <property name="fontFamily">sans-serif</property>
+ <property name="fontWeight">bold</property>
+ <text-property name="text">Customer</text-property>
+ </label>
+ </cell>
+ <cell id="167">
+ <label id="168">
+ <property name="fontFamily">sans-serif</property>
+ <property name="fontWeight">bold</property>
+ <text-property name="text">First</text-property>
+ </label>
+ </cell>
+ <cell id="169">
+ <label id="170">
+ <property name="fontFamily">sans-serif</property>
+ <property name="fontWeight">bold</property>
+ <text-property name="text">Last</text-property>
+ </label>
+ </cell>
+ <cell id="171">
+ <label id="172">
+ <property name="fontFamily">sans-serif</property>
+ <property name="fontWeight">bold</property>
+ <text-property name="text">Phone</text-property>
+ </label>
+ </cell>
+ </row>
+ </header>
+ <detail>
+ <row id="173">
+ <cell id="174">
+ <data id="250">
+ <property name="resultSetColumn">CUSTOMERNAME</property>
+ </data>
+ </cell>
+ <cell id="176">
+ <data id="251">
+ <property name="resultSetColumn">CONTACTLASTNAME</property>
+ </data>
+ </cell>
+ <cell id="178">
+ <data id="252">
+ <property name="resultSetColumn">CONTACTFIRSTNAME</property>
+ </data>
+ </cell>
+ <cell id="180">
+ <data id="253">
+ <property name="resultSetColumn">PHONE</property>
+ </data>
+ </cell>
+ </row>
+ </detail>
+ <footer>
+ <row id="182">
+ <cell id="183"/>
+ <cell id="184"/>
+ <cell id="185"/>
+ <cell id="186"/>
+ </row>
+ </footer>
+ </table>
+ </body>
+</report>
15 years, 1 month
JBoss Tools SVN: r18500 - in trunk/birt/docs/en/images: hibernate_datasource and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: msorokin
Date: 2009-11-09 12:26:01 -0500 (Mon, 09 Nov 2009)
New Revision: 18500
Modified:
trunk/birt/docs/en/images/birt_integration_with_seam/addingBirtFacet.png
trunk/birt/docs/en/images/birt_integration_with_seam/birtDeploymentSettings.png
trunk/birt/docs/en/images/birt_integration_with_seam/projectBirtConfiguration.png
trunk/birt/docs/en/images/birt_integration_with_seam/seamFacet.png
trunk/birt/docs/en/images/birt_integration_with_seam/testBirtProject.png
trunk/birt/docs/en/images/hibernate_datasource/addingHibernateODADataset.png
trunk/birt/docs/en/images/hibernate_datasource/connectionSuccessful.png
trunk/birt/docs/en/images/hibernate_datasource/hibernateDataSource.png
trunk/birt/docs/en/images/hibernate_datasource/testingQuery.png
Log:
https://jira.jboss.org/jira/browse/JBIDE-4779
updated the guide
Modified: trunk/birt/docs/en/images/birt_integration_with_seam/addingBirtFacet.png
===================================================================
(Binary files differ)
Modified: trunk/birt/docs/en/images/birt_integration_with_seam/birtDeploymentSettings.png
===================================================================
(Binary files differ)
Modified: trunk/birt/docs/en/images/birt_integration_with_seam/projectBirtConfiguration.png
===================================================================
(Binary files differ)
Modified: trunk/birt/docs/en/images/birt_integration_with_seam/seamFacet.png
===================================================================
(Binary files differ)
Modified: trunk/birt/docs/en/images/birt_integration_with_seam/testBirtProject.png
===================================================================
(Binary files differ)
Modified: trunk/birt/docs/en/images/hibernate_datasource/addingHibernateODADataset.png
===================================================================
(Binary files differ)
Modified: trunk/birt/docs/en/images/hibernate_datasource/connectionSuccessful.png
===================================================================
(Binary files differ)
Modified: trunk/birt/docs/en/images/hibernate_datasource/hibernateDataSource.png
===================================================================
(Binary files differ)
Modified: trunk/birt/docs/en/images/hibernate_datasource/testingQuery.png
===================================================================
(Binary files differ)
15 years, 1 month
JBoss Tools SVN: r18499 - in trunk/seam/plugins/org.jboss.tools.seam.xml: resources/meta and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-11-09 12:24:23 -0500 (Mon, 09 Nov 2009)
New Revision: 18499
Added:
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DatasourceImpl.java
Modified:
trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml
trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/ds.meta
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSConstants.java
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSFileLoaderUtil.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-1253
Modified: trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml 2009-11-09 17:24:20 UTC (rev 18498)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml 2009-11-09 17:24:23 UTC (rev 18499)
@@ -389,6 +389,8 @@
class="org.jboss.tools.seam.xml.ds.model.DSEntityRecognizer"/>
<xclass id="org.jboss.tools.seam.xml.ds.model.DSFileLoader"
class="org.jboss.tools.seam.xml.ds.model.DSFileLoader"/>
+ <xclass id="org.jboss.tools.seam.xml.ds.model.DatasourceImpl"
+ class="org.jboss.tools.seam.xml.ds.model.DatasourceImpl"/>
</extension>
</plugin>
Modified: trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/ds.meta
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/ds.meta 2009-11-09 17:24:20 UTC (rev 18498)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/ds.meta 2009-11-09 17:24:23 UTC (rev 18499)
@@ -10,6 +10,9 @@
<PAIR name="DSDatasources1.5" value="FileDSDatasources"/>
<PAIR name="DSDatasources5.0dtd" value="FileDSDatasources50d"/>
</MAPPING>
+ <MAPPING name="Implementations">
+ <PAIR name="DS_Datasource" value="org.jboss.tools.seam.xml.ds.model.DatasourceImpl"/>
+ </MAPPING>
<MAPPING name="Recognizers">
<PAIR name="xml$42" value="org.jboss.tools.seam.xml.ds.model.DSEntityRecognizer"/>
</MAPPING>
@@ -26,13 +29,11 @@
<GROUP name="main">
<GROUP name="ds">
<ICON name="action-mappings" path="images/struts/action_mappings.gif"/>
- <ICON name="application" path="images/jsf/web_application.gif"/>
<ICON name="attribute" path="images/jsf/attribute.gif"/>
<ICON name="bean" path="images/struts/form_bean.gif"/>
<ICON name="component" path="images/struts/plug_in.gif"/>
- <ICON name="components" path="images/struts/plug_in_folder.gif"/>
<ICON name="converter" path="images/jsf/convertor.gif"/>
- <ICON name="data-source" path="images/struts/data_source.gif"/>
+ <ICON name="datasource" path="images/struts/data_source.gif"/>
<ICON name="event" path="images/webxml/listener.gif"/>
<ICON name="exception" path="images/struts/exception.gif"/>
<ICON name="extension" path="images/palette/any-tag.gif"/>
@@ -48,6 +49,258 @@
</GROUP>
</ICONS>
<GlobalActions kind="list"/>
+ <XModelEntity ImplementingClass="%DS_Datasource%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.SeamXMLFormLayoutData"
+ XMLSUBPATH="ha-local-tx-datasource" name="DSHALocalTXDatasource">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.ds.datasource" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="ha local tx datasource"
+ loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;id=true;save=always"
+ name="jndi-name" xmlname="jndi-name.#text"/>
+ <XModelAttribute PROPERTIES="category=advanced"
+ name="use-java-context" xmlname="use-java-context.#text">
+ <Constraint loader="ListString">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;save=always"
+ name="connection-url" xmlname="connection-url.#text"/>
+ <XModelAttribute PROPERTIES="category=general;save=always"
+ name="url-delimiter" xmlname="url-delimiter.#text"/>
+ <XModelAttribute PROPERTIES="category=general;save=always"
+ name="driver-class" xmlname="driver-class.#text">
+ <Editor name="AccessibleJava"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced" name="security-type" xmlname="security-type">
+ <Constraint loader="List">
+ <value/>
+ <value name="application-managed-security"/>
+ <value name="security-domain"/>
+ <value name="security-domain-and-application"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced"
+ name="security-domain" xmlname="security-domain"/>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions">
+ <XActionItemReference entity="ESBAction101" name="AddProperty" path="CreateActions/AddProperty"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="Create" kind="list" name="EditActions"/>
+ <XActionItemReference entity="ESBProperty" name="CopyActions"/>
+ <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
+ <XActionItemReference entity="ESBProperty" name="Properties"/>
+ <XActionItemReference entity="ESBProperty" name="MoveActions"/>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%DS_Datasource%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.SeamXMLFormLayoutData"
+ XMLSUBPATH="ha-local-tx-datasource" name="DSHALocalTXDatasource50">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.ds.datasource" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="ha local tx datasource"
+ loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;id=true;save=always"
+ name="jndi-name" xmlname="jndi-name.#text"/>
+ <XModelAttribute PROPERTIES="category=advanced"
+ name="use-java-context" xmlname="use-java-context.#text">
+ <Constraint loader="ListString">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;save=always"
+ name="connection-url" xmlname="connection-url.#text"/>
+ <XModelAttribute PROPERTIES="category=general;save=always"
+ name="url-delimiter" xmlname="url-delimiter.#text"/>
+ <XModelAttribute PROPERTIES="category=general;save=always"
+ name="driver-class" xmlname="driver-class.#text">
+ <Editor name="AccessibleJava"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced" name="security-type" xmlname="security-type">
+ <Constraint loader="List">
+ <value/>
+ <value name="application-managed-security"/>
+ <value name="security-domain"/>
+ <value name="security-domain-and-application"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced"
+ name="security-domain" xmlname="security-domain"/>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions">
+ <XActionItemReference entity="ESBAction101" name="AddProperty" path="CreateActions/AddProperty"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="Create" kind="list" name="EditActions"/>
+ <XActionItemReference entity="ESBProperty" name="CopyActions"/>
+ <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
+ <XActionItemReference entity="ESBProperty" name="Properties"/>
+ <XActionItemReference entity="ESBProperty" name="MoveActions"/>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%DS_Datasource%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.SeamXMLFormLayoutData"
+ XMLSUBPATH="ha-xa-datasource" name="DSHAXADatasource">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.ds.datasource" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="ha xa datasource" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;id=true;save=always"
+ name="jndi-name" xmlname="jndi-name.#text"/>
+ <XModelAttribute PROPERTIES="category=advanced"
+ name="use-java-context" xmlname="use-java-context.#text">
+ <Constraint loader="ListString">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced;save=always"
+ default="true" name="track-connection-by-tx" xmlname="track-connection-by-tx">
+ <Constraint loader="List">
+ <value name="true"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;save=always"
+ name="xa-datasource-class" xmlname="xa-datasource-class.#text">
+ <Editor name="AccessibleJava"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;save=always"
+ name="url-property" xmlname="url-property.#text"/>
+ <XModelAttribute PROPERTIES="category=general;save=always"
+ name="url-delimiter" xmlname="url-delimiter.#text"/>
+ <XModelAttribute PROPERTIES="category=advanced" name="security-type" xmlname="security-type">
+ <Constraint loader="List">
+ <value/>
+ <value name="application-managed-security"/>
+ <value name="security-domain"/>
+ <value name="security-domain-and-application"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced"
+ name="security-domain" xmlname="security-domain"/>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions">
+ <XActionItemReference entity="ESBAction101" name="AddProperty" path="CreateActions/AddProperty"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="Create" kind="list" name="EditActions"/>
+ <XActionItemReference entity="ESBProperty" name="CopyActions"/>
+ <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
+ <XActionItemReference entity="ESBProperty" name="Properties"/>
+ <XActionItemReference entity="ESBProperty" name="MoveActions"/>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%DS_Datasource%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.SeamXMLFormLayoutData"
+ XMLSUBPATH="ha-xa-datasource" name="DSHAXADatasource50">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.ds.datasource" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="ha xa datasource" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;id=true;save=always"
+ name="jndi-name" xmlname="jndi-name.#text"/>
+ <XModelAttribute PROPERTIES="category=advanced"
+ name="use-java-context" xmlname="use-java-context.#text">
+ <Constraint loader="ListString">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced;save=always"
+ name="track-connection-by-tx" xmlname="track-connection-by-tx">
+ <Constraint loader="List">
+ <value name="true"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;save=always"
+ name="xa-datasource-class" xmlname="xa-datasource-class.#text">
+ <Editor name="AccessibleJava"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;save=always"
+ name="url-property" xmlname="url-property.#text"/>
+ <XModelAttribute PROPERTIES="category=general;save=always"
+ name="url-delimiter" xmlname="url-delimiter.#text"/>
+ <XModelAttribute PROPERTIES="category=advanced" name="security-type" xmlname="security-type">
+ <Constraint loader="List">
+ <value/>
+ <value name="application-managed-security"/>
+ <value name="security-domain"/>
+ <value name="security-domain-and-application"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced"
+ name="security-domain" xmlname="security-domain"/>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions">
+ <XActionItemReference entity="ESBAction101" name="AddProperty" path="CreateActions/AddProperty"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="Create" kind="list" name="EditActions"/>
+ <XActionItemReference entity="ESBProperty" name="CopyActions"/>
+ <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
+ <XActionItemReference entity="ESBProperty" name="Properties"/>
+ <XActionItemReference entity="ESBProperty" name="MoveActions"/>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
<XModelEntity ImplementingClass="%Custom%"
PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.SeamXMLFormLayoutData;saveDefault=false"
XMLSUBPATH="loader-repository" name="DSLoaderRepository">
@@ -101,6 +354,120 @@
</XActionItem>
<XDependencies/>
</XModelEntity>
+ <XModelEntity ImplementingClass="%DS_Datasource%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.SeamXMLFormLayoutData"
+ XMLSUBPATH="local-tx-datasource" name="DSLocalTXDatasource">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.ds.datasource" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="local tx datasource" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;id=true;save=always"
+ name="jndi-name" xmlname="jndi-name.#text"/>
+ <XModelAttribute PROPERTIES="category=advanced"
+ name="use-java-context" xmlname="use-java-context.#text">
+ <Constraint loader="ListString">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;save=always"
+ name="connection-url" xmlname="connection-url.#text"/>
+ <XModelAttribute PROPERTIES="category=general;save=always"
+ name="driver-class" xmlname="driver-class.#text">
+ <Editor name="AccessibleJava"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced" name="security-type" xmlname="security-type">
+ <Constraint loader="List">
+ <value/>
+ <value name="application-managed-security"/>
+ <value name="security-domain"/>
+ <value name="security-domain-and-application"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced"
+ name="security-domain" xmlname="security-domain"/>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions">
+ <XActionItemReference entity="ESBAction101" name="AddProperty" path="CreateActions/AddProperty"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="Create" kind="list" name="EditActions"/>
+ <XActionItemReference entity="ESBProperty" name="CopyActions"/>
+ <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
+ <XActionItemReference entity="ESBProperty" name="Properties"/>
+ <XActionItemReference entity="ESBProperty" name="MoveActions"/>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%DS_Datasource%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.SeamXMLFormLayoutData"
+ XMLSUBPATH="local-tx-datasource" name="DSLocalTXDatasource50">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.ds.datasource" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="local tx datasource" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;id=true;save=always"
+ name="jndi-name" xmlname="jndi-name.#text"/>
+ <XModelAttribute PROPERTIES="category=advanced"
+ name="use-java-context" xmlname="use-java-context.#text">
+ <Constraint loader="ListString">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;save=always"
+ name="connection-url" xmlname="connection-url.#text"/>
+ <XModelAttribute PROPERTIES="category=general;save=always"
+ name="driver-class" xmlname="driver-class.#text">
+ <Editor name="AccessibleJava"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced" name="security-type" xmlname="security-type">
+ <Constraint loader="List">
+ <value/>
+ <value name="application-managed-security"/>
+ <value name="security-domain"/>
+ <value name="security-domain-and-application"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced"
+ name="security-domain" xmlname="security-domain"/>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions">
+ <XActionItemReference entity="ESBAction101" name="AddProperty" path="CreateActions/AddProperty"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="Create" kind="list" name="EditActions"/>
+ <XActionItemReference entity="ESBProperty" name="CopyActions"/>
+ <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
+ <XActionItemReference entity="ESBProperty" name="Properties"/>
+ <XActionItemReference entity="ESBProperty" name="MoveActions"/>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
<XModelEntity ImplementingClass="%Custom%"
PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.SeamXMLFormLayoutData"
XMLSUBPATH="mbean" name="DSMBean">
@@ -154,6 +521,450 @@
</XActionItem>
<XDependencies/>
</XModelEntity>
+ <XModelEntity ImplementingClass="%DS_Datasource%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.SeamXMLFormLayoutData"
+ XMLSUBPATH="no-tx-connection-factory" name="DSNoTXConnectionFactory">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.ds.factory" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="no tx connection factory"
+ loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;id=true;save=always"
+ name="jndi-name" xmlname="jndi-name.#text"/>
+ <XModelAttribute PROPERTIES="category=advanced" name="security-type" xmlname="security-type">
+ <Constraint loader="List">
+ <value/>
+ <value name="application-managed-security"/>
+ <value name="security-domain"/>
+ <value name="security-domain-and-application"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced"
+ name="security-domain" xmlname="security-domain"/>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions">
+ <XActionItemReference entity="ESBAction101" name="AddProperty" path="CreateActions/AddProperty"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="Create" kind="list" name="EditActions"/>
+ <XActionItemReference entity="ESBProperty" name="CopyActions"/>
+ <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
+ <XActionItemReference entity="ESBProperty" name="Properties"/>
+ <XActionItemReference entity="ESBProperty" name="MoveActions"/>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%DS_Datasource%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.SeamXMLFormLayoutData"
+ XMLSUBPATH="no-tx-connection-factory" name="DSNoTXConnectionFactory50">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.ds.factory" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="no tx connection factory"
+ loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;id=true;save=always"
+ name="jndi-name" xmlname="jndi-name.#text"/>
+ <XModelAttribute PROPERTIES="category=advanced" name="security-type" xmlname="security-type">
+ <Constraint loader="List">
+ <value/>
+ <value name="application-managed-security"/>
+ <value name="security-domain"/>
+ <value name="security-domain-and-application"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced"
+ name="security-domain" xmlname="security-domain"/>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions">
+ <XActionItemReference entity="ESBAction101" name="AddProperty" path="CreateActions/AddProperty"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="Create" kind="list" name="EditActions"/>
+ <XActionItemReference entity="ESBProperty" name="CopyActions"/>
+ <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
+ <XActionItemReference entity="ESBProperty" name="Properties"/>
+ <XActionItemReference entity="ESBProperty" name="MoveActions"/>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%DS_Datasource%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.SeamXMLFormLayoutData"
+ XMLSUBPATH="no-tx-datasource" name="DSNoTXDatasource">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.ds.datasource" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="no tx datasource" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;id=true;save=always"
+ name="jndi-name" xmlname="jndi-name.#text"/>
+ <XModelAttribute PROPERTIES="category=advanced"
+ name="use-java-context" xmlname="use-java-context.#text">
+ <Constraint loader="ListString">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;save=always"
+ name="connection-url" xmlname="connection-url.#text"/>
+ <XModelAttribute PROPERTIES="category=general;save=always"
+ name="driver-class" xmlname="driver-class.#text">
+ <Editor name="AccessibleJava"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced" name="security-type" xmlname="security-type">
+ <Constraint loader="List">
+ <value/>
+ <value name="application-managed-security"/>
+ <value name="security-domain"/>
+ <value name="security-domain-and-application"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced"
+ name="security-domain" xmlname="security-domain"/>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions">
+ <XActionItemReference entity="ESBAction101" name="AddProperty" path="CreateActions/AddProperty"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="Create" kind="list" name="EditActions"/>
+ <XActionItemReference entity="ESBProperty" name="CopyActions"/>
+ <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
+ <XActionItemReference entity="ESBProperty" name="Properties"/>
+ <XActionItemReference entity="ESBProperty" name="MoveActions"/>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%DS_Datasource%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.SeamXMLFormLayoutData"
+ XMLSUBPATH="no-tx-datasource" name="DSNoTXDatasource50">
+ <XChildrenEntities>
+ <XChildEntity name="ESBProperty"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.esb.bus" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="no tx datasource" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;id=true;save=always"
+ name="jndi-name" xmlname="jndi-name.#text"/>
+ <XModelAttribute PROPERTIES="category=advanced"
+ name="use-java-context" xmlname="use-java-context.#text">
+ <Constraint loader="ListString">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;save=always"
+ name="connection-url" xmlname="connection-url.#text"/>
+ <XModelAttribute PROPERTIES="category=general;save=always"
+ name="driver-class" xmlname="driver-class.#text">
+ <Editor name="AccessibleJava"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced" name="security-type" xmlname="security-type">
+ <Constraint loader="List">
+ <value/>
+ <value name="application-managed-security"/>
+ <value name="security-domain"/>
+ <value name="security-domain-and-application"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced"
+ name="security-domain" xmlname="security-domain"/>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions">
+ <XActionItemReference entity="ESBAction101" name="AddProperty" path="CreateActions/AddProperty"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="Create" kind="list" name="EditActions"/>
+ <XActionItemReference entity="ESBProperty" name="CopyActions"/>
+ <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
+ <XActionItemReference entity="ESBProperty" name="Properties"/>
+ <XActionItemReference entity="ESBProperty" name="MoveActions"/>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%DS_Datasource%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.SeamXMLFormLayoutData"
+ XMLSUBPATH="tx-connection-factory" name="DSTXConnectionFactory">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.ds.factory" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="tx connection factory" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;id=true;save=always"
+ name="jndi-name" xmlname="jndi-name.#text"/>
+ <XModelAttribute PROPERTIES="category=advanced;save=always"
+ default="local-transaction" name="transaction" xmlname="transaction">
+ <Constraint loader="List">
+ <value name="local-transaction"/>
+ <value name="xa-transaction"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced" default="false"
+ name="track-connection-by-tx" xmlname="track-connection-by-tx">
+ <Constraint loader="List">
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced" name="security-type" xmlname="security-type">
+ <Constraint loader="List">
+ <value/>
+ <value name="application-managed-security"/>
+ <value name="security-domain"/>
+ <value name="security-domain-and-application"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced"
+ name="security-domain" xmlname="security-domain"/>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions">
+ <XActionItemReference entity="ESBAction101" name="AddProperty" path="CreateActions/AddProperty"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="Create" kind="list" name="EditActions"/>
+ <XActionItemReference entity="ESBProperty" name="CopyActions"/>
+ <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
+ <XActionItemReference entity="ESBProperty" name="Properties"/>
+ <XActionItemReference entity="ESBProperty" name="MoveActions"/>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%DS_Datasource%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.SeamXMLFormLayoutData"
+ XMLSUBPATH="tx-connection-factory" name="DSTXConnectionFactory50">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.ds.factory" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="tx connection factory" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;id=true;save=always"
+ name="jndi-name" xmlname="jndi-name.#text"/>
+ <XModelAttribute PROPERTIES="category=advanced;save=always"
+ default="local-transaction" name="transaction" xmlname="transaction">
+ <Constraint loader="List">
+ <value name="local-transaction"/>
+ <value name="xa-transaction"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced" default="false"
+ name="track-connection-by-tx" xmlname="track-connection-by-tx">
+ <Constraint loader="List">
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced" name="security-type" xmlname="security-type">
+ <Constraint loader="List">
+ <value/>
+ <value name="application-managed-security"/>
+ <value name="security-domain"/>
+ <value name="security-domain-and-application"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced"
+ name="security-domain" xmlname="security-domain"/>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions">
+ <XActionItemReference entity="ESBAction101" name="AddProperty" path="CreateActions/AddProperty"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="Create" kind="list" name="EditActions"/>
+ <XActionItemReference entity="ESBProperty" name="CopyActions"/>
+ <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
+ <XActionItemReference entity="ESBProperty" name="Properties"/>
+ <XActionItemReference entity="ESBProperty" name="MoveActions"/>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%DS_Datasource%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.SeamXMLFormLayoutData"
+ XMLSUBPATH="xa-datasource" name="DSXADatasource">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.ds.datasources" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="xa datasource" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;id=true;save=always"
+ name="jndi-name" xmlname="jndi-name.#text"/>
+ <XModelAttribute PROPERTIES="category=advanced"
+ name="use-java-context" xmlname="use-java-context.#text">
+ <Constraint loader="ListString">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced" default="false"
+ name="track-connection-by-tx" xmlname="track-connection-by-tx">
+ <Constraint loader="List">
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;save=always"
+ name="xa-datasource-class" xmlname="xa-datasource-class.#text">
+ <Editor name="AccessibleJava"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced" name="security-type" xmlname="security-type">
+ <Constraint loader="List">
+ <value/>
+ <value name="application-managed-security"/>
+ <value name="security-domain"/>
+ <value name="security-domain-and-application"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced"
+ name="security-domain" xmlname="security-domain"/>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions">
+ <XActionItemReference entity="ESBAction101" name="AddProperty" path="CreateActions/AddProperty"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="Create" kind="list" name="EditActions"/>
+ <XActionItemReference entity="ESBProperty" name="CopyActions"/>
+ <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
+ <XActionItemReference entity="ESBProperty" name="Properties"/>
+ <XActionItemReference entity="ESBProperty" name="MoveActions"/>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%DS_Datasource%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.SeamXMLFormLayoutData"
+ XMLSUBPATH="xa-datasource" name="DSXADatasource50">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.ds.datasource" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="xa datasource" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;id=true;save=always"
+ name="jndi-name" xmlname="jndi-name.#text"/>
+ <XModelAttribute PROPERTIES="category=advanced"
+ name="use-java-context" xmlname="use-java-context.#text">
+ <Constraint loader="ListString">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced" default="false"
+ name="track-connection-by-tx" xmlname="track-connection-by-tx">
+ <Constraint loader="List">
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;save=always"
+ name="xa-datasource-class" xmlname="xa-datasource-class.#text">
+ <Editor name="AccessibleJava"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced" name="security-type" xmlname="security-type">
+ <Constraint loader="List">
+ <value/>
+ <value name="application-managed-security"/>
+ <value name="security-domain"/>
+ <value name="security-domain-and-application"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced"
+ name="security-domain" xmlname="security-domain"/>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions">
+ <XActionItemReference entity="ESBAction101" name="AddProperty" path="CreateActions/AddProperty"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="Create" kind="list" name="EditActions"/>
+ <XActionItemReference entity="ESBProperty" name="CopyActions"/>
+ <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
+ <XActionItemReference entity="ESBProperty" name="Properties"/>
+ <XActionItemReference entity="ESBProperty" name="MoveActions"/>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
<XModelEntity
ImplementationLoadingClass="org.jboss.tools.seam.xml.ds.model.DSFileLoader"
ImplementingClass="org.jboss.tools.common.model.filesystems.impl.SimpleFileImpl"
@@ -163,6 +974,8 @@
<XChildrenEntities>
<XChildEntity maxCount="1" name="DSLoaderRepository" required="yes"/>
<XChildEntity name="DSMBean"/>
+ <XChildEntity name="DSTXConnectionFactory"/>
+ <XChildEntity name="DSNoTXConnectionFactory"/>
</XChildrenEntities>
<XEntityRenderer>
<ICONS>
@@ -240,7 +1053,22 @@
ICON="action.save" displayName="Save" kind="action" name="Save"/>
</XActionItem>
<XActionItem ICON="action.empty" displayName="New" group="1"
- kind="list" name="CreateActions"/>
+ kind="list" name="CreateActions">
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="TX Connection Factory..." kind="action" name="AddTXConnectionFactory">
+ <EntityData EntityName="DSTXConnectionFactory">
+ <AttributeData AttributeName="jndi-name"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="No TX Connection Factory..." kind="action" name="AddNoTXConnectionFactory">
+ <EntityData EntityName="DSNoTXConnectionFactory">
+ <AttributeData AttributeName="jndi-name"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
<XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
<XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
ICON="action.copy" displayName="Copy" kind="action" name="Copy"/>
@@ -277,6 +1105,8 @@
<XChildrenEntities>
<XChildEntity maxCount="1" name="DSLoaderRepository" required="yes"/>
<XChildEntity name="DSMBean"/>
+ <XChildEntity name="DSTXConnectionFactory50"/>
+ <XChildEntity name="DSNoTXConnectionFactory50"/>
</XChildrenEntities>
<XEntityRenderer>
<ICONS>
@@ -354,7 +1184,22 @@
ICON="action.save" displayName="Save" kind="action" name="Save"/>
</XActionItem>
<XActionItem ICON="action.empty" displayName="New" group="1"
- kind="list" name="CreateActions"/>
+ kind="list" name="CreateActions">
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="TX Connection Factory..." kind="action" name="AddTXConnectionFactory">
+ <EntityData EntityName="DSTXConnectionFactory50">
+ <AttributeData AttributeName="jndi-name"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="No TX Connection Factory..." kind="action" name="AddNoTXConnectionFactory">
+ <EntityData EntityName="DSNoTXConnectionFactory50">
+ <AttributeData AttributeName="jndi-name"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
<XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
<XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
ICON="action.copy" displayName="Copy" kind="action" name="Copy"/>
@@ -382,6 +1227,38 @@
</XActionItem>
<XDependencies/>
</XModelEntity>
+ <XModelEntity name="FileDSConnectionFactories50d_EditorActionList">
+ <XChildrenEntities/>
+ <XEntityRenderer/>
+ <XModelAttributes/>
+ <XActionItem kind="list">
+ <XActionItemReference entity="FileDSConnectionFactories50d" name="CreateActions"/>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HIDE="always" HandlerClassName="%Properties%"
+ ICON="action.empty" displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem kind="list" name="VerifyActions">
+ <XActionItem kind="list" name="StaticActions"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity name="FileDSConnectionFactories_EditorActionList">
+ <XChildrenEntities/>
+ <XEntityRenderer/>
+ <XModelAttributes/>
+ <XActionItem kind="list">
+ <XActionItemReference entity="FileDSConnectionFactories" name="CreateActions"/>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HIDE="always" HandlerClassName="%Properties%"
+ ICON="action.empty" displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem kind="list" name="VerifyActions">
+ <XActionItem kind="list" name="StaticActions"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
<XModelEntity
ImplementationLoadingClass="org.jboss.tools.seam.xml.ds.model.DSFileLoader"
ImplementingClass="org.jboss.tools.common.model.filesystems.impl.SimpleFileImpl"
@@ -391,6 +1268,11 @@
<XChildrenEntities>
<XChildEntity maxCount="1" name="DSLoaderRepository" required="yes"/>
<XChildEntity name="DSMBean"/>
+ <XChildEntity name="DSLocalTXDatasource"/>
+ <XChildEntity name="DSNoTXDatasource"/>
+ <XChildEntity name="DSXADatasource"/>
+ <XChildEntity name="DSHALocalTXDatasource"/>
+ <XChildEntity name="DSHAXADatasource"/>
</XChildrenEntities>
<XEntityRenderer>
<ICONS>
@@ -468,7 +1350,54 @@
ICON="action.save" displayName="Save" kind="action" name="Save"/>
</XActionItem>
<XActionItem ICON="action.empty" displayName="New" group="1"
- kind="list" name="CreateActions"/>
+ kind="list" name="CreateActions">
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Local TX Datasource..." kind="action" name="AddLocalTXDatasource">
+ <EntityData EntityName="DSLocalTXDatasource">
+ <AttributeData AttributeName="jndi-name"/>
+ <AttributeData AttributeName="connection-url"/>
+ <AttributeData AttributeName="driver-class"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="XA Datasource..." kind="action" name="AddXADatasource">
+ <EntityData EntityName="DSXADatasource">
+ <AttributeData AttributeName="jndi-name"/>
+ <AttributeData AttributeName="xa-datasource-class"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="No TX Datasource..." kind="action" name="AddNoDatasource">
+ <EntityData EntityName="DSNoTXDatasource">
+ <AttributeData AttributeName="jndi-name"/>
+ <AttributeData AttributeName="connection-url"/>
+ <AttributeData AttributeName="driver-class" Mandatory="no"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="HA Local TX Datasource..." kind="action" name="AddHALocalTXDatasource">
+ <EntityData EntityName="DSHALocalTXDatasource">
+ <AttributeData AttributeName="jndi-name"/>
+ <AttributeData AttributeName="connection-url"/>
+ <AttributeData AttributeName="url-delimiter"/>
+ <AttributeData AttributeName="driver-class" Mandatory="no"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="HA XA Datasource..." kind="action" name="AddHAXADatasource">
+ <EntityData EntityName="DSHAXADatasource">
+ <AttributeData AttributeName="jndi-name"/>
+ <AttributeData AttributeName="xa-datasource-class"/>
+ <AttributeData AttributeName="url-property"/>
+ <AttributeData AttributeName="url-delimiter"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
<XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
<XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
ICON="action.copy" displayName="Copy" kind="action" name="Copy"/>
@@ -505,6 +1434,11 @@
<XChildrenEntities>
<XChildEntity maxCount="1" name="DSLoaderRepository" required="yes"/>
<XChildEntity name="DSMBean"/>
+ <XChildEntity name="DSLocalTXDatasource50"/>
+ <XChildEntity name="DSNoTXDatasource50"/>
+ <XChildEntity name="DSXADatasource50"/>
+ <XChildEntity name="DSHALocalTXDatasource50"/>
+ <XChildEntity name="DSHAXADatasource50"/>
</XChildrenEntities>
<XEntityRenderer>
<ICONS>
@@ -582,7 +1516,54 @@
ICON="action.save" displayName="Save" kind="action" name="Save"/>
</XActionItem>
<XActionItem ICON="action.empty" displayName="New" group="1"
- kind="list" name="CreateActions"/>
+ kind="list" name="CreateActions">
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Local TX Datasource..." kind="action" name="AddLocalTXDatasource">
+ <EntityData EntityName="DSLocalTXDatasource50">
+ <AttributeData AttributeName="jndi-name"/>
+ <AttributeData AttributeName="connection-url"/>
+ <AttributeData AttributeName="driver-class" Mandatory="no"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="XA Datasource..." kind="action" name="AddXADatasource">
+ <EntityData EntityName="DSXADatasource50">
+ <AttributeData AttributeName="jndi-name"/>
+ <AttributeData AttributeName="xa-datasource-class"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="No TX Datasource..." kind="action" name="AddNoDatasource">
+ <EntityData EntityName="DSNoTXDatasource50">
+ <AttributeData AttributeName="jndi-name"/>
+ <AttributeData AttributeName="connection-url"/>
+ <AttributeData AttributeName="driver-class" Mandatory="no"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="HA Local TX Datasource..." kind="action" name="AddHALocalTXDatasource">
+ <EntityData EntityName="DSHALocalTXDatasource50">
+ <AttributeData AttributeName="jndi-name"/>
+ <AttributeData AttributeName="connection-url"/>
+ <AttributeData AttributeName="url-delimiter"/>
+ <AttributeData AttributeName="driver-class" Mandatory="no"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="HA XA Datasource..." kind="action" name="AddHAXADatasource">
+ <EntityData EntityName="DSHAXADatasource50">
+ <AttributeData AttributeName="jndi-name"/>
+ <AttributeData AttributeName="xa-datasource-class"/>
+ <AttributeData AttributeName="url-property"/>
+ <AttributeData AttributeName="url-delimiter"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
<XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
<XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
ICON="action.copy" displayName="Copy" kind="action" name="Copy"/>
@@ -615,7 +1596,7 @@
<XEntityRenderer/>
<XModelAttributes/>
<XActionItem kind="list">
- <XActionItem displayName="New" kind="list" name="CreateActions"/>
+ <XActionItemReference entity="FileDSDatasources50d" name="CreateActions"/>
<XActionItem ICON="action.empty" kind="list" name="Properties">
<XActionItem HIDE="always" HandlerClassName="%Properties%"
ICON="action.empty" displayName="Properties..." kind="action" name="Properties"/>
@@ -631,7 +1612,7 @@
<XEntityRenderer/>
<XModelAttributes/>
<XActionItem kind="list">
- <XActionItem displayName="New" kind="list" name="CreateActions"/>
+ <XActionItemReference entity="FileDSDatasources" name="CreateActions"/>
<XActionItem ICON="action.empty" kind="list" name="Properties">
<XActionItem HIDE="always" HandlerClassName="%Properties%"
ICON="action.empty" displayName="Properties..." kind="action" name="Properties"/>
Modified: trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSConstants.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSConstants.java 2009-11-09 17:24:20 UTC (rev 18498)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSConstants.java 2009-11-09 17:24:23 UTC (rev 18499)
@@ -14,4 +14,9 @@
public String ENT_DATASOURCES_FILE_50_DTD = ENT_DATASOURCES_FILE + SUFF_50_DTD;
public String ENT_CONNECTION_FACTORIES_FILE_50_DTD = ENT_CONNECTION_FACTORIES_FILE + SUFF_50_DTD;
+ public String ATTR_TRACK_CONN = "track-connection-by-tx"; //$NON-NLS-1$
+ public String ATTR_TRANSACTION = "transaction"; //$NON-NLS-1$
+ public String ATTR_SECURITY_TYPE = "security-type"; //$NON-NLS-1$
+ public String ATTR_SECURITY_DOMAIN = "security-domain"; //$NON-NLS-1$
+
}
Modified: trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSFileLoaderUtil.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSFileLoaderUtil.java 2009-11-09 17:24:20 UTC (rev 18498)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSFileLoaderUtil.java 2009-11-09 17:24:23 UTC (rev 18499)
@@ -1,15 +1,29 @@
package org.jboss.tools.seam.xml.ds.model;
+import java.util.Set;
+
import org.jboss.tools.common.meta.XAttribute;
+import org.jboss.tools.common.meta.XModelEntity;
+import org.jboss.tools.common.meta.constraint.impl.XAttributeConstraintAList;
import org.jboss.tools.common.model.XModelObject;
import org.jboss.tools.common.model.util.XModelObjectLoaderUtil;
+import org.jboss.tools.common.xml.XMLUtilities;
import org.w3c.dom.Element;
public class DSFileLoaderUtil extends XModelObjectLoaderUtil implements DSConstants {
public DSFileLoaderUtil() {}
- public boolean save(Element parent, XModelObject o) {
+ protected boolean isSaveable(XModelEntity entity, String n, String v, String dv) {
+ if(v == null) return false;
+ if(v.length() == 0 || v.equals(dv)) {
+ XAttribute attr = entity.getAttribute(n);
+ return (attr != null && "always".equals(attr.getProperty("save"))); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+ return super.isSaveable(entity, n, v, dv);
+ }
+
+ public boolean save(Element parent, XModelObject o) {
if(!needToSave(o)) return true;
boolean b = super.save(parent, o);
//TODO check dtd
@@ -38,4 +52,61 @@
return false;
}
+ public void saveAttribute(Element element, String xmlname, String value) {
+ if(ATTR_TRACK_CONN.equals(xmlname)) {
+ XMLUtilities.createElement(element, xmlname);
+ } else if(ATTR_TRANSACTION.equals(xmlname)) {
+ if(value.length() > 0) XMLUtilities.createElement(element, value);
+ } else if(ATTR_SECURITY_TYPE.equals(xmlname)) {
+ if(value.length() > 0) XMLUtilities.createElement(element, value);
+ } else if(ATTR_SECURITY_DOMAIN.equals(xmlname)) {
+ Element e = XMLUtilities.getUniqueChild(element, "security-domain");
+ if (e == null) e = XMLUtilities.getUniqueChild(element, "security-domain-and-application");
+ if(e != null) super.saveAttribute(e, "#text", value);
+ } else {
+ super.saveAttribute(element, xmlname, value);
+ }
+ }
+
+ public String getAttribute(Element element, String xmlname, XAttribute attr) {
+ if(ATTR_TRACK_CONN.equals(xmlname)) {
+ return (XMLUtilities.getUniqueChild(element, xmlname) != null) ? "true" : "false"; //$NON-NLS-1$ //$NON-NLS-2$
+ } else if(ATTR_TRANSACTION.equals(xmlname) || ATTR_SECURITY_TYPE.equals(xmlname)) {
+ String[] vs = ((XAttributeConstraintAList)attr.getConstraint()).getValues();
+ for (int i = 0; i < vs.length; i++) {
+ if(XMLUtilities.getUniqueChild(element, vs[i]) != null) return vs[i];
+ }
+ return "";
+ } else if(ATTR_SECURITY_DOMAIN.equals(xmlname)) {
+ XAttribute a = attr.getModelEntity().getAttribute(ATTR_SECURITY_TYPE);
+ String[] vs = ((XAttributeConstraintAList)a.getConstraint()).getValues();
+ for (int i = 0; i < vs.length; i++) {
+ if(XMLUtilities.getUniqueChild(element, vs[i]) != null) return super.getAttribute(element, vs[i] + ".#text");
+ }
+ return "";
+ } else {
+ return super.getAttribute(element, xmlname, attr);
+ }
+ }
+
+ protected Set<String> getAllowedChildren(XModelEntity entity) {
+ Set<String> children = super.getAllowedChildren(entity);
+ XAttribute a = entity.getAttribute(ATTR_TRACK_CONN);
+ if(a != null) children.add(a.getXMLName());
+ a = entity.getAttribute(ATTR_TRANSACTION);
+ if(a != null) {
+ String[] vs = ((XAttributeConstraintAList)a.getConstraint()).getValues();
+ for (int i = 0; i < vs.length; i++) {
+ children.add(vs[i]);
+ }
+ }
+ a = entity.getAttribute(ATTR_SECURITY_TYPE);
+ if(a != null) {
+ String[] vs = ((XAttributeConstraintAList)a.getConstraint()).getValues();
+ for (int i = 0; i < vs.length; i++) {
+ children.add(vs[i]);
+ }
+ }
+ return children;
+ }
}
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DatasourceImpl.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DatasourceImpl.java (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DatasourceImpl.java 2009-11-09 17:24:23 UTC (rev 18499)
@@ -0,0 +1,20 @@
+package org.jboss.tools.seam.xml.ds.model;
+
+import org.jboss.tools.common.model.impl.CustomizedObjectImpl;
+
+public class DatasourceImpl extends CustomizedObjectImpl {
+ private static final long serialVersionUID = 1L;
+
+ public DatasourceImpl() {}
+
+ public boolean isAttributeEditable(String name) {
+ boolean b = super.isAttributeEditable(name);
+ if(b && name.equals(DSConstants.ATTR_SECURITY_DOMAIN)) {
+ String type = getAttributeValue(DSConstants.ATTR_SECURITY_TYPE);
+ if(type == null || !type.startsWith("security-domain")) {
+ b = false;
+ }
+ }
+ return b;
+ }
+}
Property changes on: trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DatasourceImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 1 month
JBoss Tools SVN: r18498 - trunk/birt/docs/en/modules.
by jbosstools-commits@lists.jboss.org
Author: msorokin
Date: 2009-11-09 12:24:20 -0500 (Mon, 09 Nov 2009)
New Revision: 18498
Modified:
trunk/birt/docs/en/modules/birt_integration_with_seam.xml
trunk/birt/docs/en/modules/birt_reports_deployment.xml
trunk/birt/docs/en/modules/hibernate_datasource.xml
trunk/birt/docs/en/modules/introduction.xml
trunk/birt/docs/en/modules/tasks.xml
Log:
https://jira.jboss.org/jira/browse/JBIDE-4779
updated the guide
Modified: trunk/birt/docs/en/modules/birt_integration_with_seam.xml
===================================================================
--- trunk/birt/docs/en/modules/birt_integration_with_seam.xml 2009-11-09 17:21:44 UTC (rev 18497)
+++ trunk/birt/docs/en/modules/birt_integration_with_seam.xml 2009-11-09 17:24:20 UTC (rev 18498)
@@ -1,21 +1,16 @@
<?xml version='1.0' encoding='UTF-8'?>
-<chapter id="birt_integration_with_seam" xreflabel="birt_integration_with_seam">
-
- <?dbhtml filename="birt_integration_with_seam.html"?>
- <chapterinfo>
- <keywordset>
- <keyword>JBoss</keyword>
- <keyword>BIRT</keyword>
- <keyword>Seam</keyword>
- </keywordset>
- </chapterinfo>
+<section id="birt_integration_with_seam">
<title>Adding BIRT Functionality to Standard Seam Web Project</title>
- <para>In this chapter you'll know how to create a Seam web project with BIRT
- capabilities included.</para>
+ <para>In this section you'll know how to integrate BIRT into a Seam web project. </para>
<para>You are supposed to have Seam runtime and JBoss Application Server downloaded and
- extracted somewhere on you hard drive.</para>
+ extracted on your hard drive.
+ You can download Seam from the
+ <ulink url="http://seamframework.org/Download">Seam Framework</ulink> web page and
+ JBoss Application Server from <ulink url="http://jboss.org/jbossas/downloads/">JBoss Application Server</ulink> official site.
+
+ </para>
<tip>
<title>Tip:</title>
@@ -29,23 +24,21 @@
<section id="creatin_project_with_birt">
<title>Creating Seam Web Project with Birt Facet</title>
- <para>First, open <property>Seam perspective</property> by going to <emphasis>
- <property>Window > Open Perspective > Other > Seam</property>.
- </emphasis> To create a new Seam Web project follow to <emphasis>
+ <para>We recommend to open <property>Seam perspective</property> by going to <emphasis>
+ <property>Window > Open Perspective > Other > Seam</property></emphasis> , this way you will have all the tools to work with Seam at hand.
+ To create a new Seam Web project navigate to <emphasis>
<property>File > New > Seam Web Project</property>
- </emphasis> (or <emphasis>
+ </emphasis>. Otherwise you should go to <emphasis>
+
<property>File > New > Other > Seam > Seam Web
Project</property>
- </emphasis> if you are not in the <property>Seam perspective</property>).</para>
+ </emphasis> if <property>Seam</property> perspective is not active.</para>
<para>On the first wizard page enter the project name, then specify the target runtime and
- target server. In the <emphasis>
- <property>Configuration</property>
- </emphasis> section click <emphasis>
- <property>Modify</property>
- </emphasis> to configure the project facets.</para>
+ target server. We recommend to use JBoss AS server and runtime environment to ensure best performance.
+ </para>
- <figure>
+ <figure id="CreatingSeamWebProject">
<title>Creating Seam Web Project</title>
<mediaobject>
<imageobject>
@@ -54,11 +47,13 @@
</mediaobject>
</figure>
- <para>Choose the 2.0 version of the <emphasis>
+ <para>In the <emphasis><property>Configuration</property></emphasis> group choose the version of <emphasis>
<property>Seam</property>
- </emphasis> facet and enable the <emphasis>
+ </emphasis> framework you are planning to use in your application. In this guide we used Seam 2.2. </para>
+ <para>Click on the <emphasis><property>Modify</property></emphasis> button
+ and enable the <emphasis>
<property>Birt Reporting Runtime Component</property>
- </emphasis> facet.</para>
+ </emphasis> facet by checking the appropriate option.</para>
<figure>
<title>Adding the Birt Reporting Runtime Component Facet </title>
@@ -69,9 +64,9 @@
</mediaobject>
</figure>
- <para>Or you can just choose the <emphasis>
+ <para>Alternatively you can just choose the <emphasis>
<property>JBoss BIRT Integration Web Project</property>
- </emphasis> configuration.</para>
+ </emphasis> configuration from the drop-down list in the <emphasis><property>Configuration</property></emphasis> group </para>
<figure>
<title>Choosing the JBoss BIRT Integration Web Project Configuration</title>
@@ -83,9 +78,11 @@
</mediaobject>
</figure>
- <para>Next two pages are filled out with defaults, just leave them through by pressing <emphasis>
- <property>Next</property>.</emphasis>
-On the <emphasis><property>Birt Configuration</property></emphasis> page you can modify BIRT Deployment Settings, which also defined in web.xml. Let's keep default values.</para>
+ <para>You may leave the next two pages with default values, just press <emphasis>
+
+ <property>Next</property></emphasis> to proceed.
+
+On the <emphasis><property>Birt Configuration</property></emphasis> page you can modify the BIRT deployment settings, which you can edit afterwards in the web.xml of the generated project. Let's keep the default values for now.</para>
<figure>
<title>Configuring BIRT Deployment Settings</title>
<mediaobject>
@@ -95,11 +92,14 @@
</mediaobject>
</figure>
- <para>Next page is also filled out with default values.
- On the <emphasis>
+ <para>You can also leave the <emphasis><property>JSF Capabilities</property></emphasis> page with default values.
+ On the <emphasis>
<property>Seam Facet</property>
- </emphasis> page you should specify the Seam runtime and Connection profile.</para>
+ </emphasis> page you should specify the Seam runtime and Connection profile. Please note, that the Seam runtime must be of the version you initially specified in the project settings (See the <link linkend="CreatingSeamWebProject">Creating Seam Web Project</link> figure). </para>
+ <para> When creating a Seam project with BIRT capabilities you can use the <property>BIRT Classic Models Sample Database</property> connection profile to work with the BIRT sample database.</para>
+ <para>For more details on how to configure database connection for a Seam project please read the
+ <ulink url="http://docs.jboss.org/tools/3.0.0.GA/en/seam/html_single/index.html#seamF...">Configure Seam Facet Settings</ulink> chapter of Seam Dev Tools Reference Guide.</para>
<figure>
<title>Configuring the Seam Facet settings</title>
<mediaobject>
@@ -111,240 +111,98 @@
<para>Hit <emphasis>
<property>Finish</property>
- </emphasis> to create the project with Birt functionality enabled.</para>
+ </emphasis> to create the project with BIRT functionality enabled.</para>
</section>
<section id="integration">
<title>Integration with Seam</title>
-
- <para>The JBoss BIRT Integration feature contains the BIRT tag that allows the user to add a
- BIRT report to an <emphasis>
- <property>.xhtml</property>
- </emphasis> file:</para>
-
- <programlisting role="XHTML"><![CDATA[<p:birt xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:s="http://jboss.com/products/seam/taglib"
- xmlns:p="http://jboss.com/products/seam/birt"
- designType="run"
- format="pdf"
- designName="test.rptdesign"
- title="JBoss Birt Test">
-
-</p:birt>]]></programlisting>
-
- <para>Let's look how it works.</para>
- <para>Create in the <emphasis>
- <property>Web Content</property>
- </emphasis> folder three <emphasis>
- <property>.xhtml</property>
- </emphasis> pages with the following content:</para>
-
+<para>
+ In the previous section you have created a Seam project with BIRT capabilities.
+ Now you can create a simple kick start project to see that everything is configured correctly.
+</para>
<itemizedlist>
- <listitem>
+ <listitem><para>Now create a BIRT report file and insert test data into the file.
+ Name the report file <property>helloBirt.rptdesign</property>, the report should print the data from the <code>CLASSICMODELS.CUSTOMERS</code> table of the <property>BIRT Classic Models Sample Database</property>, namely: customer number (<code>CLASSICMODELS.CUSTOMERS.CUSTOMERNAME</code>),
+ contact person first name ( <code>CLASSICMODELS.CUSTOMERS.CONTACTFIRSTNAME</code>) ,
+ contact person last name (<code>CLASSICMODELS.CUSTOMERS.CONTACTLASTNAME</code>) and
+ contact person phone number(<code>CLASSICMODELS.CUSTOMERS.PHONE</code>).
+ </para>
+ <para>The title of the report should be set via <code>reportTitle</code> parameter</para>
<para>
- <emphasis>
- <property>birttests.xhtml</property>:</emphasis>
- </para>
- <programlisting role="XHTML"><![CDATA[<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <ui:composition xmlns="http://www.w3.org/1999/xhtml"
- xmlns:s="http://jboss.com/products/seam/taglib"
- xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:rich="http://richfaces.ajax4jsf.org/rich"
- template="layout/template.xhtml">
-
- <ui:define name="body">
- <h:messages globalOnly="true" styleClass="message"/>
- <rich:panel>
- <f:facet name="header">Welcome to JBoss BIRT!</f:facet>
- <ul>
- <li><s:link view="/testbirt.xhtml" value="Test Birt" /></li>
- <li><s:link view="/testbirt1.xhtml" value="Test Birt 1" /></li>
- </ul>
- </rich:panel>
- </ui:define>
- </ui:composition>]]></programlisting>
+ As this guide is primarily focused on the BIRT integration and not the BIRT technology itself we will not show the steps required to make the report. If you do not feel strong about creating a BIRT report file please read <ulink url="http://eclipse.org/birt/phoenix/tutorial/">BIRT documentation</ulink>.
+ </para>
+ <para>You can download the file <property>helloBirt.rptdesign</property> <ulink url="files/helloBirt.rptdesign">here</ulink> and copy it to the WebContent folder of your Seam project.</para>
+
</listitem>
- <listitem>
- <para>
- <emphasis>
- <property>testbirt.xhtml</property>:</emphasis>
- </para>
- <programlisting role="XHTML"><![CDATA[<p:birt xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:s="http://jboss.com/products/seam/taglib"
- xmlns:p="http://jboss.com/products/seam/birt"
- designType="run"
- format="pdf"
- designName="test.rptdesign"
- title="JBoss Birt Test">
-
- <p:param name="sample" value="sample param"/>
-</p:birt>]]></programlisting>
- </listitem>
- <listitem>
- <para>
- <emphasis>
- <property>testbirt1.xhtml</property>:</emphasis>
- </para>
- <programlisting role="XHTML"><![CDATA[<p:birt xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:s="http://jboss.com/products/seam/taglib"
- xmlns:p="http://jboss.com/products/seam/birt"
- designType="frameset"
- designName="test1.rptdesign"
- title="JBoss Birt Test">
-</p:birt>]]></programlisting>
- </listitem>
</itemizedlist>
-
- <para>Now start the application server by clicking the <emphasis>
- <property>Start</property>
- </emphasis> option in the context menu of the server in the <property>JBoss Server
- View</property> (if the view isn't open go to <emphasis>
- <property>Window > Show View > Other > JBoss Server
- View</property>)</emphasis>. Try the tests out by accessing <emphasis>
- <property>http://localhost:8080/hellobirt/birttests.seam</property>
- </emphasis> in your web browser.</para>
-
- <figure>
- <title>Welcome Page in the Browser</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/birt_integration_with_seam/birttestsPage.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>Now if you click <emphasis>
- <property>Test Birt</property>
- </emphasis> you should see the following <emphasis>
- <property>.pdf</property>
- </emphasis> file:</para>
-
- <figure>
- <title>After Clicking Test Birt</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/birt_integration_with_seam/testbirtPage.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>After clicking <emphasis>
- <property>Test Birt 1</property>
- </emphasis> the next page is displayed:</para>
-
- <figure>
- <title>After Clicking Test Birt 1</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/birt_integration_with_seam/testbirt1Page1.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>Put the <emphasis>
- <property>test param</property>
- </emphasis> as Sample Parameter value, specify the maximum possible Customer Number as
- <emphasis>
- <property>1001</property>,</emphasis> for instance, and then press <emphasis>
- <property>Ok</property>.</emphasis> You'll see the following BIRT
- report:</para>
-
- <figure>
- <title>BIRT Report in the Browser Window</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/birt_integration_with_seam/testbirt1Page2.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>The BIRT tag recognizes most of the parameters described on <ulink
- url="http://www.eclipse.org/birt/phoenix/deploy/viewerUsage2.2.php#parameters">the
- BIRT Report Viewer Parameters page</ulink>. The attributes of the BIRT tag
- don't contain the <emphasis>
- <property>"__"</property>
- </emphasis> prefix.</para>
-
- <para>The <emphasis>
- <property>param</property>
- </emphasis> tag describes report parameters (see the listing for the <emphasis>
- <property>testbirt.xhtml</property>
- </emphasis> above). It supports the following attributes: </para>
- <itemizedlist>
- <listitem>
- <para><emphasis>
- <property>name</property>
- </emphasis> - the parameter name (required)</para>
- </listitem>
- <listitem>
- <para><emphasis>
- <property>value</property>
- </emphasis> - the parameter value (required)</para>
- </listitem>
- <listitem>
- <para><emphasis>
- <property>isnull</property>
- </emphasis> - specifies that a report parameter has a null value
- (optional)</para>
- </listitem>
- <listitem>
- <para><emphasis>
- <property>islocale</property>
- </emphasis> - specifies whether the parameter is localized (optional)</para>
- </listitem>
- </itemizedlist>
-
- <para>These tags are defined in the <emphasis>
- <property>org.jboss.birt.core/resources/jboss-seam-birt.jar</property>
- </emphasis> library that contains source. </para>
-
- <para>It is also possible to embed a BIRT report in some Seam <emphasis>
- <property>.xhtml</property>
- </emphasis> page. See how it may be done:</para>
- <para/>
-
+
<para>
- <emphasis role="bold">Example:</emphasis>
+ When you are done with the <property>helloBirt.rptdesign</property> file, you should create a <property>.xhtml</property> file that will contain the BIRT report you have just created.
+ </para>
+ <para>
+ The JBoss BIRT Integration framework provides 2 components represented as <emphasis role="bold"> <property><b:birt></property></emphasis> and <emphasis role="bold"> <property><b:param></property></emphasis> tags. The jboss-seam-birt.jar library implements the functionality of the components. [Link to tag reference]
+ To use that tags on the page you need to declare the tag library and define the name space like this:
+ </para>
+ <programlisting role="XML"><![CDATA[
+ xmlns:b="http://jboss.com/products/seam/birt"
+ ]]></programlisting>
+
+ <para>
+ The <emphasis role="bold"> <property><b:birt></property></emphasis> is a container for a BIRT report, that helps you integrate the report into Seam environment.
+ You can manage the properties of the report using the attributes of the <emphasis role="bold"> <property><b:birt></property></emphasis> tag.
+ </para>
+
+ <para>
+
+ The <emphasis role="bold"> <property><b:param></property></emphasis> tag describes report parameters. To set a parameter you need to specify it's name the value you want to pass.
+ You can use EL expressions to bind the representation layer with back-end logic.
</para>
- <programlisting role="XHTML"><![CDATA[<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<ui:composition xmlns="http://www.w3.org/1999/xhtml"
- xmlns:s="http://jboss.com/products/seam/taglib"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xxmlns:rich="http://richfaces.ajax4jsf.org/rich"
- xmlns:b="http://jboss.com/products/seam/birt"
- template="layout/template.xhtml">
- <ui:define name="body">
- <h:messages globalOnly="true" styleClass="message" id="globalMessages"/>
- <rich:panel>
- <f:facet name="header">Products</f:facet>
- <b:birt designType="embed" designName="ProductCatalog.rptdesign"
- embeddable="true" masterpage="false"/>
- <div style="clear:both"/>
- </rich:panel>
- <div class="actionButtons">
- <s:button view="/ProductsEdit.xhtml" id="edit" value="Edit"/>
-
- <s:button view="/#{empty productsFrom ? 'ProductsList' : productsFrom}.xhtml"
- id="done" value="Done"/>
- </div>
- </ui:define>
-</ui:composition>]]></programlisting>
+ <itemizedlist>
+ <listitem>
+
+
+ <para>Create the <property>helloBirt.xhtml</property> file in the WebContent with the following content: </para>
+
+ <programlisting role="XML"><![CDATA[...
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:s="http://jboss.com/products/seam/taglib"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:b="http://jboss.com/products/seam/birt"
+ template="layout/template.xhtml">
+ <ui:define name="body">
+ <rich:panel>
+ <b:birt designType="embed" designName="helloBirt.rptdesign"
+ embeddable="true">
+ <b:param name="reportTitle" value="Customers Contacts" />
+ </b:birt>
+ </rich:panel>
+ </ui:define>
+</ui:composition>
+...]]></programlisting>
+ </listitem>
+ </itemizedlist>
+ <para>From this listing above you see that the title of the report is set via <emphasis role="bold"> <property><b:param></property></emphasis> by setting the parameter name and defining the <emphasis><property>"value"</property></emphasis> attribute with the "Customers Contacts" value.</para>
+
+ <para>We have created a Seam project and inserted the <property>helloBirt</property> report into the <property>helloBirt.xhtml</property> view file.</para>
- <para>See the result in a Browser:</para>
-
- <figure>
- <title>Embedding BIRT Report in Seam xhtml Page</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/birt_integration_with_seam/embeddedReportInSeamPage.png"/>
- </imageobject>
- </mediaobject>
- </figure>
+<para>To see that the application works correctly and as you expect, you need to launch it on the server.</para>
+
+<itemizedlist>
+ <listitem><para>In the <property>JBoss Server View </property> (If it is not open navigate to <property>Windows > Show View > Other > JBoss Server View </property>), select the server the application is deployed to and hit the <property>Start</property> button. </para></listitem>
+ <listitem><para>When the server is started, open your favourite browser and point it to <code>http://localhost:8080/HelloBirt/helloBirt.seam</code> .</para></listitem>
+</itemizedlist>
+
+<figure>
+ <title>Integrating BIRT into Seam Project</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/birt_integration_with_seam/helloBirtproject.png"/>
+ </imageobject>
+ </mediaobject>
+</figure>
</section>
-</chapter>
+</section>
\ No newline at end of file
Modified: trunk/birt/docs/en/modules/birt_reports_deployment.xml
===================================================================
--- trunk/birt/docs/en/modules/birt_reports_deployment.xml 2009-11-09 17:21:44 UTC (rev 18497)
+++ trunk/birt/docs/en/modules/birt_reports_deployment.xml 2009-11-09 17:24:20 UTC (rev 18498)
@@ -1,76 +1,155 @@
<?xml version='1.0' encoding='UTF-8'?>
-<chapter id="birt_reports_deployment" xreflabel="birt_reports_deployment">
+<section id="birt_reports_deployment">
+ <title>Creating a Dynamic BIRT Report</title>
+
+ <para>The <link linkend="birt_integration_with_seam">Adding BIRT Functionality to Standard Seam Web Project</link>
+ and <link linkend="hibernate_datasource">Using Hibernate ODA Data Sourc</link> sections tell how to integrate a BIRT report into
+ a Seam web project and how to use Hibernate data source to generate a dynamic report.
+ In this section we will create a Seam web project that can make a dynamic report using the parameters that are defined on a web page.</para>
- <?dbhtml filename="birt_reports_deployment.html"?>
- <chapterinfo>
- <keywordset>
- <keyword>JBoss</keyword>
- <keyword>BIRT</keyword>
- <keyword>Seam</keyword>
- </keywordset>
- </chapterinfo>
+ <para>We will use the <property>PRODUCTS</property> table of <property>DATAMODELS</property> database for the purpose of this demo project.
+ In the first place, you need to generate Seam entities like we did in the previous chapter (<link linkend="hibernate_datasource">Hibernate ODA Data Source</link> ). The demo application will generate a report about the company's products, whereas it will allow to specify a product line. </para>
- <title>BIRT Reports Deployment</title>
+ <para>The next step is to create a Java class that will store the <code>sortOrder</code> variable and its assessors, register the class in faces.config.xml.
+ The variable will be needed to pass dynamic data to the report via report parameters, therefore it has to be of session scope.</para>
+
+<para>
+
+
+ The report will print the data from the <code>Products</code> table, hence you need to create a report file first.
+ You can use either the <property>BIRT JDBC Data Source</property> or <property>Hibernate Data Source</property> data source to create the data set for this project. If you want to use the latter please read the previous chapter <link linkend="hibernate_datasource">Hibernate ODA Data Source</link>.
+</para>
+
+ <para>
+ The data set should have at least the following data set items: product vendor, product name, quantity in stock and buy price. The data is retrieved from the database with this query :
+ </para>
+
+
+ <programlisting role="XML"><![CDATA[
+SELECT productvedor,
+productname,
+quantityinstock,
+buyprice
+FROM Products as products
- <para>When everything is configured correctly you will be able to view/render the designed
- reports in your Seam (or any other) Web application.</para>
+]]></programlisting>
+
+ <para>Make a table in the report and put each data set item into a column.</para>
+ <para>As it was stated in the beginning of the chapter the report will be dynamic, therefore you need to declare a report parameter first, let it be <code>sortOrder</code> and to add the parameter to the query. BIRT offers rich JavaScript API, so you can modify the query programmatically like this:</para>
+<programlisting role="XML">
- <para>You can deploy a report by adding an action button to the Seam's CRUD <emphasis>
- <property>.xhtml</property>
- </emphasis> file.</para>
+<xml-property name="queryText"><![CDATA[
+SELECT productvedor,
+productname,
+quantityinstock,
+buyprice
+FROM Products as products
+]]></xml-property>
+ <method name="beforeOpen"><![CDATA[
+queryString = " ORDER BY products."+reportContext.getParameterValue("sortOrder")+" "+"DESC";
+this.queryText = this.queryText+queryString;
+]]></method>
+
+</programlisting>
- <figure>
- <title>Adding Action Button to the Seam file</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/birt_reports_deployment/addingActionButton.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>As you can see on the figure you should have the <emphasis>
- <property>testHibernateOda.xhtml</property>
- </emphasis> file. It's content should be the following:</para>
-
- <programlisting role="XHTML"><![CDATA[<p:birt xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:s="http://jboss.com/products/seam/taglib"
- xmlns:p="http://jboss.com/products/seam/birt"
- designType="run"
- format="pdf"
- designName="testHibernateOda.rptdesign"
- title="JBoss Birt Test">
+<para>The report is ready. You can preview it to make sure it works properly. </para>
+ <para>To set the report parameter you should create an <property>.xhtml</property> view page, call it <property>Products.xhtml</property>. On the page you can set the value of the <code>sortOrder</code> Java bean variable and press the <property>Generate Report</property> button to open another view page that will display the resulted report.
+ </para>
+ <para>The source code of the <property>Products.xhtml</property> should be the following:</para>
+
+ <programlisting role="XML"><![CDATA[
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:s="http://jboss.com/products/seam/taglib"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:a4j="http://richfaces.org/a4j" template="layout/template.xhtml">
+ <ui:define name="body">
+ <rich:panel>
+ <f:facet name="header">BIRT Report Generator</f:facet>
+ <a4j:form ajaxSubmit="true" reRender="criterion">
+ <table>
+ <tr>
+ <td>Select sort order criterion:</td>
+ <td><h:selectOneMenu onchange="submit()"
+ value="#{yourJavaBean.sortOrder}"> <!-- Bind to your Java Bean -->
+ <f:selectItem itemValue="buyprice" itemLabel="buy price" />
+ <f:selectItem itemValue="quantityinstock" itemLabel="quantity in stock" />
+ </h:selectOneMenu>
+ </td>
+ </tr>
+ </table>
+ </a4j:form>
+ <s:button
+ view="/#{!empty reportParameters.order ? 'Products' : 'ProductsReport'}.xhtml" id="generate" value="Generate Report" /> <!-- If the sertOrder variable is not set the button won't work -->
+ </rich:panel>
+ </ui:define>
+</ui:composition>
+]]></programlisting>
+ <para>The logic of the file is quite simple, when the sort order criterion is select the value of <code>yourJavaBean.sortOrder</code>
+ is set automatically via Ajax and the report is ready to be generated.</para>
+
+ <para>Now you need to create the web page that will print the report, name the file <property>ProductsReport.xhtml</property>.
+ The file to output the report should have the following content:</para>
+
+<programlisting role="XML"><![CDATA[
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:s="http://jboss.com/products/seam/taglib"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:b="http://jboss.com/products/seam/birt"
+ xmlns:rich="http://richfaces.org/rich" template="layout/template.xhtml">
+ <ui:define name="body">
+ <rich:panel>
+ <f:facet name="header">Products Report</f:facet>
+ <b:birt designType="embed" designName="products.rptdesign"
+ embeddable="true" masterpage="true">
+ <b:param name="sortOrder" value="#{yourJavaBean.sortOrder}" />
+ </b:birt>
+ </rich:panel>
+</ui:define>
+</ui:composition>
+]]></programlisting>
+ <para>
+ As you know from the <link linkend="birt_integration_with_seam">Adding BIRT Functionality to Standard Seam Web Project</link> chapter, before using the BIRT Integration framework tags on the page you need to declare the tag library and specify the name space with this line:
+ </para>
-</p:birt>
-]]></programlisting>
-
- <para>Next run the Seam page with embedded report on the server by right-clicking the file and
- going to <emphasis>
- <property>Run > Run on Server</property>.</emphasis></para>
-
- <figure>
- <title>Opening Employees.xhtml Page</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/birt_reports_deployment/openingArticlesPage.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>After clicking the <emphasis>
- <property>BIRT PDF Report</property>
- </emphasis> button, you should see the following report:</para>
-
- <figure>
- <title>Birt PDF Report</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/birt_reports_deployment/BirtPDFReport.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>Thus, a Seam project that includes the BIRT facet can be deployed as any project. If you
- define the Hibernate ODA driver, the JBoss BIRT engine will use JNDI URL that has to be bind
+ <programlisting role="XML"><![CDATA[
+ xmlns:b="http://jboss.com/products/seam/birt"
+]]></programlisting>
+ <para>
+ The dynamics to the report adds this line:
+ </para>
+ <programlisting role="XML"><![CDATA[
+<b:param name="sortOrder" value="#{yourJavaBean.sortOrder}" />
+]]></programlisting>
+
+ <para>We bound the <code>sortOrder</code> report parameter to Java Bean variable <code>value="#{yourJavaBean.sortOrder}"</code> using EL expression, and the value to the variable is assigned in the <property>Products.xhtml</property> file. </para>
+ <para>By default if you embed a report into HTML page the HTML-format report contains the <html>,
+ <head>, <body> etc., tags. However if your HTML page already has those tags, you can rid of them using the <code>embeddable="true"</code> attribute of
+
+ the <emphasis role="bold"><property><b:birt></property></emphasis> component.</para>
+ <para>Deploy the project onto the server and open your browser to see the report is successfully generated. You should navigate to
+
+ <code>http://localhost:8080/yourProjectName/Products.seam</code> to select the criterion and press the <property>Generate Report</property> button. You will be redirected to the <code>http://localhost:8080/HelloBirt/ProductsReport.seam</code>
+
+ </para>
+ <figure>
+ <title>Dynamic Report</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/birt_reports_deployment/productReport.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Thus, a Seam project that includes the BIRT facet can be deployed as any project. If you
+ define the Hibernate ODA driver, the JBoss BIRT engine will use JNDI URL that has to be bound
to either Hibernate Session Factory or Hibernate Entity Manager Factory. If you
don't specify the JNDI URL property, our engine will try the following JNDI
URLs:</para>
@@ -89,11 +168,11 @@
<para>When creating a Seam EAR project, Hibernate Entity Manager Factory is bound to
<emphasis>java:/{projectName}EntityManagerFactory</emphasis>. All you need to do is
- using the Hibernate Configuration created automatically. You can use default values for the
+ to use the Hibernate Configuration created automatically. You can use default values for the
Hibernate Configuration and JNDI URL within the BIRT Hibernate Data Source.</para>
- <para>When using a Seam WAR project, neither HSF nor HEMF aren't binded to JNDI by
- default. You has to do this manually. For instance, HSF can be bound to JNDI by adding the
+ <para>When using a Seam WAR project, neither HSF nor HEMF aren't bound to JNDI by
+ default. You have to do this manually. For instance, HSF can be bound to JNDI by adding the
following property to the <emphasis>
<property>persistence.xml</property></emphasis> file:</para>
@@ -111,7 +190,8 @@
<property>WebContent/WEB-INF/platform/configuration/config.ini</property>
</emphasis> file.</para>
</note>
- <para>In conclusion, the main goal of this document is to get you know with a full featureset
+
+ <para>In conclusion, the main goal of this document is to get you to know with a full feature set
that <property>JBoss BIRT Tools</property> provide. Thus if you have some questions,
comments or suggestions on the topic, please feel free to ask in the <ulink
url="http://www.jboss.org/index.html?module=bb&op=viewforum&f=201">JBoss
@@ -119,4 +199,4 @@
future leaving your vote on the article <ulink
url="http://www.jboss.org/community/docs/DOC-10795">Overview of the improvements required by JBossTools/JBDS Docs users</ulink>.</para>
-</chapter>
+</section>
Modified: trunk/birt/docs/en/modules/hibernate_datasource.xml
===================================================================
--- trunk/birt/docs/en/modules/hibernate_datasource.xml 2009-11-09 17:21:44 UTC (rev 18497)
+++ trunk/birt/docs/en/modules/hibernate_datasource.xml 2009-11-09 17:24:20 UTC (rev 18498)
@@ -1,30 +1,25 @@
<?xml version='1.0' encoding='UTF-8'?>
-<chapter id="hibernate_datasource" xreflabel="hibernate_datasource">
+<section id="hibernate_datasource">
- <?dbhtml filename="hibernate_datasource.html"?>
- <chapterinfo>
- <keywordset>
- <keyword>JBoss</keyword>
- <keyword>BIRT</keyword>
- <keyword>Seam</keyword>
- </keywordset>
- </chapterinfo>
- <title>Hibernate ODA Data Source</title>
+ <title>Using Hibernate ODA Data Source</title>
- <para>The JBoss BIRT Integration feature includes the Hibernate ODA Data Source completely
- integrated with Hibernate Tools. You can use it in the way you use any of BIRT ODA drivers.
- Let's perform simple actions that demonstrate it.</para>
+ <para>The JBoss BIRT Integration feature includes the Hibernate ODA Data Source which is completely
+ integrated with Hibernate Tools. You can use it the way as you would use any of BIRT ODA drivers.
+
+
- <para>First, run the <emphasis>
- <property>Seam Generate Entities</property>
- </emphasis> action (You can access it from <emphasis>
+
+ </para>
+
+ <para>First, you need to reverse engineer from the database to generate Seam entities. You can perform this operation going to <emphasis>
<property>File > New > Seam Generate Entities</property>
</emphasis> in the <property>Seam perspective</property>. More details on the Seam Generate
- Entities read in our <ulink
+ Entities please read <ulink
url="http://download.jboss.org/jbosstools/nightly-docs/en/seam/html_single/ind..."
- >Seam Dev Tools Reference guide</ulink>). This action will create a Hibernate Console
- configuration.</para>
+ >Seam Dev Tools Reference guide</ulink>).
+ In this guide we will use the <property>Employees</property> table of the <property>DATAMODELS</property> database.
+</para>
<tip>
<title>Tip:</title>
@@ -32,28 +27,24 @@
adjusted and connected to a database. How to do this see in the <ulink
url="http://download.jboss.org/jbosstools/nightly-docs/en/seam/html_single/ind..."
>CRUD Database Application</ulink> chapter of the Seam Dev Tools Reference
- guide.</para>
+ guide.</para>
+ <para>
+ If you followed the steps described in the
+ <link linkend="birt_integration">Adding BIRT Functionality to Standard Seam Web Project</link> chapter,
+ you would have a connection profile already configured.
+ </para>
</tip>
- <para>Next add a new BIRT report. To do that navigate to <emphasis>
- <property>File > New > Other > Business Intelligence and Reporting
- Tools > Report</property>.</emphasis> In the <property>New Report
- wizard</property> enter the report name, for instance <emphasis>
- <property>testHibernateOda.rptdesign</property>,</emphasis> then click <emphasis>
- <property>Finish</property>.</emphasis></para>
+<para>
+ Next you should create a new BIRT report file ( <emphasis>><property>File > New > Other > Business Intelligence and Reporting
+ Tools > Report</property></emphasis>) to represent the data from the <property>Employees</property> table. Call the file <property>employees.rptdesign</property>.
+</para>
+
- <figure>
- <title>Creating a New BIRT Report </title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/hibernate_datasource/creatingNewBirtReport.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>Now switch to the <property>Report Design perspective</property>.</para>
+ <para>Now switch to the <property>BIRT Report Design</property> perspective.</para>
- <para>In the <property>Data Explorer View</property> right-click the <emphasis>
+ <para>In the <property>Data Explorer</property> view right-click the <emphasis>
<property>Data Source</property>
</emphasis> node and choose <emphasis>
<property>New Data Source</property>.</emphasis></para>
@@ -67,12 +58,12 @@
</mediaobject>
</figure>
- <para>In the wizard select <emphasis>
+ <para>The wizard will prompt you to select data source type. Choose <emphasis>
<property>Hibernate Data Source</property>
- </emphasis> and give it a proper name, <emphasis>
- <property>HbDataSource</property>
- </emphasis> for instance. Hit <emphasis>
- <property>Next</property>.</emphasis></para>
+ </emphasis> and give it a meaningful name, for instance <emphasis>
+ <property>HibernateDataSource</property>
+ </emphasis>. Hit <emphasis>
+ <property>Next</property> to proceed.</emphasis></para>
<figure>
<title>Creating Hibernate Data Source</title>
@@ -83,9 +74,14 @@
</mediaobject>
</figure>
- <para>On the next wizard page leave everything as it is, just press the <emphasis>
+ <para>On the next wizard's dialog you can leave the everything with default values, press the <emphasis>
<property>Test Connection</property>
- </emphasis> button to verify the connection is successful.</para>
+ </emphasis> button to verify that the connection is established successfully.</para>
+
+ <para>
+ The <property>Hibernate Data Source</property> enables you to specify a Hibernate Configuration or JNDI URL.
+
+ </para>
<figure>
<title>Hibernate Data Source Profile</title>
@@ -96,33 +92,24 @@
</mediaobject>
</figure>
- <para>Click <emphasis>
- <property>Ok</property>
- </emphasis> and then <emphasis>
+ <para>Press <emphasis>
<property>Finish</property>
- </emphasis> to complete.</para>
+ </emphasis> to complete <property>New Data Source</property> wizard.</para>
- <para>Now let's add a Hibernate ODA dataset. To do that you should bring up the
- <property>New Data Set wizard</property>. In the <property>Data Explorer View</property>
+ <para>Now you need to configure a new Hibernate ODA data set. Launch the
+ <property>New Data Set</property> wizard. In the <property>Data Explorer View</property>
right-click the <emphasis>
<property>Data Set</property>
</emphasis> node and select <emphasis>
<property>New Data Set</property>.</emphasis></para>
- <figure>
- <title>Creating a New Data Set</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/hibernate_datasource/creatingDataSet.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>In the <emphasis>
- <property>Data Set Name</property>
- </emphasis> section specify the name. Let's it be <emphasis>
- <property>HbDataSet</property>.</emphasis></para>
+ <para>Select <property>HibernateDataSource</property> as target data source and type in the new data set name.
+ Call it <property>HibernateDataSet</property>.</para>
+
+
+
<figure>
<title>Creating a Hibernate ODA Data Set</title>
<mediaobject>
@@ -132,14 +119,26 @@
</mediaobject>
</figure>
- <para>Next you'll be prompted to define the query for this data set. To validate the
+
+ <para>The next dialog of the wizard will help you compose a query for the new data set.</para>
+ <para>We will make a report that will print all employees in the database who has Sales Rep job title.</para>
+
+ <programlisting role="SQL"><![CDATA[...
+select jobtitle, firstname, lastname, email
+from Employees as employees where employees.jobtitle = 'Sales Rep'
+...]]></programlisting>
+
+
+ <para>
+
+ To validate the
entered query you can press the <emphasis>
<property>Test query</property>
</emphasis> button. All the HQL features like syntax highlighting, content assist,
- formatting, Drag and Drop, etc., are available to you here.</para>
+ formatting, drag-and-drop, etc., are available to facilitate query composing.</para>
<figure>
- <title>Testing Query </title>
+ <title>Composing query for Data Set</title>
<mediaobject>
<imageobject>
<imagedata fileref="images/hibernate_datasource/testingQuery.png"/>
@@ -147,93 +146,48 @@
</mediaobject>
</figure>
- <para>Next the output columns will be displayed. It's possible to edit them
- here.</para>
+ <para>Pressing <property>Finish</property> will call the <property>Edit Data Set</property> dialog where you can adjust the parameters of the data set and preview the resulted set..
+ If everything looks good, hit <property>Ok</property> to generate a new data set.
+ </para>
- <figure>
- <title>HQL Features - Output Columns Section</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/hibernate_datasource/hqlFeaturesOutputColumns.png"/>
- </imageobject>
- </mediaobject>
- </figure>
+ <para>Now you can insert the data set items of <property>HibernateDataSet</property> into the <property>employees.rptdesign</property>.</para>
+
- <para>To preview the results of the defined query click the <emphasis>
- <property>Preview Results</property>
- </emphasis> item.</para>
- <figure>
- <title>HQL Features - Preview Results Section</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/hibernate_datasource/hqlFeaturesPreviewResults.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>So far you have the Hibernate data source and data set defined. Now you can create a BIRT
- report using this data source and data set.</para>
-
<tip>
<title>Tip:</title>
<para>If you don't know how to do this we suggest that you refer to the <ulink
url="http://www.eclipse.org/birt/phoenix/tutorial/">Eclipse BIRT Tutorial</ulink>.</para>
</tip>
- <figure>
- <title>Creating a BIRT Report using Created Data Source and Data Set</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/hibernate_datasource/BIRTReportUsingDataSourceAndSet.png "/>
- </imageobject>
- </mediaobject>
- </figure>
+<para>You can also use parameters in the query to add dynamics to your report. In the previous example we hardcoded the selection criterion in the <code>where</code> clause. </para>
+ <para>To specify the job title on-the-fly your query should look like this:</para>
+ <programlisting role="XML"><![CDATA[
+select jobtitle,firstname, lastname,email
+from Employees as employees where employees.jobtitle = ?
+]]></programlisting>
+
+ <para>The question mark represents a data set input parameter, which is not the same as a report parameter.
+ Now you need to define an new report parameter to pass the data to the report, call it <code>JobTitle</code>.
+
+
+
+ The dataset parameter can be linked to a report parameter.
+ In the <property>Data Explorer</property> view click the Data Set node to open it and right-click
+ on the data set you created previously( in our case it is <property>HibernateDataSet</property>),
+ choose <property>Edit</property> and navigate to the <property>Parameters</property> section.
+ Declare a new data set parameter, name it <code>jobtitle</code> and map it to the already existing <code>JobTitle</code> report parameter.
+ </para>
- <para>If you switch to the <emphasis>
- <property>Preview</property></emphasis> tab, it will run your report and show the output.</para>
+ <para>You report is ready, you can view it by clicking on the <property>Preview</property> tab of the <property>BIRT Report Designer</property> editor. </para>
+ <para>You will be prompted to assign a value to the report parameter. For instance you can enter "Sales Rep". </para>
<figure>
- <title>BIRT Report -Preview Tab</title>
+ <title>Resulted Dynamic Report</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/hibernate_datasource/BIRTReportPreviewTab.png"/>
+ <imagedata fileref="images/hibernate_datasource/finalReport.png"/>
</imageobject>
</mediaobject>
</figure>
-
- <para>You can also use parameters within the Hibernate ODA driver.</para>
-
- <figure>
- <title>Using Parameters within the Hibernate ODA Driver</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/hibernate_datasource/parametersWithinHibernateODADriver.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
-
- <figure>
- <title>Adding New Parameter</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/hibernate_datasource/addingNewParameter.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>Again, to preview the results switch to the <emphasis>
- <property>Preview Results</property>
- </emphasis> item.</para>
- <figure>
- <title>Previewing the Results</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/hibernate_datasource/previewingResults.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
-</chapter>
+
+</section>
Modified: trunk/birt/docs/en/modules/introduction.xml
===================================================================
--- trunk/birt/docs/en/modules/introduction.xml 2009-11-09 17:21:44 UTC (rev 18497)
+++ trunk/birt/docs/en/modules/introduction.xml 2009-11-09 17:24:20 UTC (rev 18498)
@@ -14,6 +14,9 @@
</chapterinfo>
<title>Introduction</title>
+
+
+
<section>
@@ -52,87 +55,32 @@
Eclipse BIRT you'll find out in the next sections.</para>
</section>
-<section id="BIRT_key_features">
- <title>Key Features of BIRT</title>
- <para>For a start, we propose you to look through the table of main features of BIRT plugin:</para>
- <table>
-
- <title>Key Functionality for BIRT Plugin</title>
- <tgroup cols="3">
-
- <colspec colnum="1" align="left" colwidth="2*"/>
- <colspec colnum="2" colwidth="4*"/>
- <colspec colnum="3" align="left" colwidth="2*"/>
-
- <thead>
- <row>
- <entry>Feature</entry>
- <entry>Benefit</entry>
- <entry>Chapter</entry>
- </row>
- </thead>
-
- <tbody>
-
- <row>
- <entry><para>Integration with Seam</para></entry>
- <entry><para>You can add a BIRT report to an .xhtml file or embed it in some Seam .xhtml page.</para></entry>
- <entry>
- <link linkend="integration">integration with Seam</link>
- </entry>
- </row>
-
- <row>
- <entry><para>Hibernate ODA Data Source</para></entry>
- <entry><para>Hibernate ODA Data Source for the JBoss BIRT Integration feature is completely integrated with Hibernate Tools.</para></entry>
- <entry>
- <link linkend="hibernate_datasource">Hibernate ODA data source</link>
- </entry>
- </row>
-
-
- </tbody>
-
- </tgroup>
- </table>
-
-
-
-
-
-
-</section>
-
<section>
<title>JBoss BIRT Integration Functionality Overview</title>
+
+ <para>
+ The key feature of JBoss BIRT Integration is the JBoss BIRT Integration Framework, which allows to integrate a BIRT report into Seam/JSF container.
+ The framework API reference is in the
+ <link linkend="framework">JBoss BIRT Integraion Framework API Reference</link> chapter of the guide.
+ </para>
+ <para>
+
+ This guide also covers functionality of <property>JBoss Tools</property> module which assists in
+ integration with BIRT.
+ The integration plug-in allows you to visually configure <property>Hibernate Data Source</property> (specify a Hibernate configuration or JNDI URL),
+ compose HQL queries with syntax-highlighting, content-assist, formatting as well as other functionalities available in the HQL editor.
+
+
+ </para>
- <para>This reference guide describes the one module of the <property>JBoss Tools</property> project which
- performs the integration with BIRT. The integration includes the following functionalities:</para>
+ <para>
+ To enable <property>JBoss Tools</property> integration with BIRT you are intended to
+ have the next:
+ </para>
<itemizedlist>
<listitem>
- <para>Hibernate ODA driver that includes a dialog to create HQL queries with
- syntax-highlighting, content-assist, formatting as well as other functionalities
- available in the HQL editor. There is also a possibility to add
- parameters.</para>
- </listitem>
- <listitem>
- <para>possibility to add JBoss BIRT functionality to the standard Seam web
- project</para>
- </listitem>
- <listitem>
- <para>BIRT JSF/Seam control</para>
- </listitem>
- <listitem>
- <para>deployment of BIRT reports within web projects (Seam, JSF, etc.)</para>
- </listitem>
- </itemizedlist>
-
- <para>To enable <property>JBoss Tools</property> integration with BIRT you are intended to
- have the next:</para>
- <itemizedlist>
- <listitem>
<para>Eclipse with <property>JBoss Tools</property>
installed (how to install <property>JBoss Tools</property> on Eclipse, what
dependences and versions requirements are needed reed in the <link
@@ -160,11 +108,6 @@
</note>
</section>
- <section id="birt_plugin_rel_resources">
- <title>Other Relevant Resources on the Topic</title>
+
- <para>All JBoss Developer Studio/JBoss Tools release documentation you can find at<ulink url="http://docs.jboss.org/tools/">http://docs.jboss.org/tools</ulink> in the corresponding release directory.</para>
- <para>The latest documentation builds are available at <ulink url="http://download.jboss.org/jbosstools/nightly-docs/">http://download.jboss.org/jbosstools/nightly-docs</ulink>.</para>
- </section>
-
</chapter>
Modified: trunk/birt/docs/en/modules/tasks.xml
===================================================================
--- trunk/birt/docs/en/modules/tasks.xml 2009-11-09 17:21:44 UTC (rev 18497)
+++ trunk/birt/docs/en/modules/tasks.xml 2009-11-09 17:24:20 UTC (rev 18498)
@@ -13,7 +13,7 @@
</chapterinfo>
<title>Tasks</title>
- <para> In this chapter of the guide you will find information on the tasks that you can perform integrating BIRT. </para>
+ <para> In this chapter of the guide you will find information on the tasks that you can perform integrating BIRT. The required version of BIRT is 2.3.2 or greater.</para>
15 years, 1 month
JBoss Tools SVN: r18497 - in trunk: jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebContent/pages/JBIDE/2550 and 6 other directories.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2009-11-09 12:21:44 -0500 (Mon, 09 Nov 2009)
New Revision: 18497
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebContent/pages/JBIDE/4812/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebContent/pages/JBIDE/4812/resourceProcessingTestPage.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebContent/pages/JBIDE/4812/resourceProcessingTestPage.xhtml.xml
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/Jsf2ResourceUtil.java
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebContent/pages/JBIDE/2550/jbide2550.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebContent/pages/JBIDE/4954/inputUserName.jsp.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebContent/pages/JBIDE/5015/login.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2550Test.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeFunctionSrc.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/ElService.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/FileUtil.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4812
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebContent/pages/JBIDE/2550/jbide2550.xhtml.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebContent/pages/JBIDE/2550/jbide2550.xhtml.xml 2009-11-09 13:43:44 UTC (rev 18496)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebContent/pages/JBIDE/2550/jbide2550.xhtml.xml 2009-11-09 17:21:44 UTC (rev 18497)
@@ -20,29 +20,29 @@
</LABEL>
</TD>
<TD>
-<IMG SRC="/.*jsf2test/WebContent/resources/ch/img/1.0/img.gif/" STYLE="-moz-user-modify: read-write;"/>
+<IMG SRC="/.*/jsf2test/WebContent/resources/ch/img/1.0/img.gif/" STYLE="-moz-user-modify: read-write;"/>
</TD>
</TR>
<TR>
<TD>
-<LABEL>
+<LABEL >
resource [ "ch/img/2.0:img.gif" ]
</LABEL>
</TD>
<TD>
-<IMG SRC="/.*jsf2test/WebContent/resources/ch/img/2.0/img.gif/" STYLE="-moz-user-modify: read-write;"/>
+<IMG SRC="/.*/jsf2test/WebContent/resources/ch/img/2.0/img.gif/" STYLE="-moz-user-modify: read-write;"/>
</TD>
</TR>
<TR>
<TD>
-<LABEL>
+<LABEL >
resource['ru/img/1.0/img.gif']
</LABEL>
</TD>
<TD>
-<IMG SRC="/.*jsf2test/WebContent/resources/ru/img/1.0/img.gif/" STYLE="-moz-user-modify: read-write;"/>
+<IMG SRC="/.*/ve/unresolved_image.gif/" STYLE="-moz-user-modify: read-write;"/>
</TD>
</TR>
@@ -53,7 +53,7 @@
</LABEL>
</TD>
<TD>
-<IMG SRC="/.*jsf2test/WebContent/resources/ru/img/2.0/img.gif/" STYLE="-moz-user-modify: read-write;"/>
+<IMG SRC="/.*/jsf2test/WebContent/resources/ru/img/2.0/img.gif/" STYLE="-moz-user-modify: read-write;"/>
</TD>
</TR>
@@ -64,7 +64,7 @@
</LABEL>
</TD>
<TD>
-<IMG SRC="/.*jsf2test/WebContent/resources/ru/img/1.0/img.gif/1.gif/" STYLE="-moz-user-modify: read-write;"/>
+<IMG SRC="/.*/jsf2test/WebContent/resources/ru/img/1.0/img.gif/1.gif/" STYLE="-moz-user-modify: read-write;"/>
</TD>
</TR>
@@ -75,7 +75,7 @@
</LABEL>
</TD>
<TD>
-<IMG SRC="/.*jsf2test/WebContent/resources/ru/img/1.0/img.gif/2.gif/" STYLE="-moz-user-modify: read-write;"/>
+<IMG SRC="/.*/jsf2test/WebContent/resources/ru/img/1.0/img.gif/2.gif/" STYLE="-moz-user-modify: read-write;"/>
</TD>
</TR>
@@ -97,7 +97,7 @@
</LABEL>
</TD>
<TD>
-<IMG SRC="/.*jsf2test.WebContent.resources.us.img.img.gif/" STYLE="-moz-user-modify: read-write;"/>
+<IMG SRC="/.*/jsf2test/WebContent/resources/us/img/img.gif/" STYLE="-moz-user-modify: read-write;"/>
</TD>
</TR>
@@ -108,7 +108,7 @@
</LABEL>
</TD>
<TD>
-<IMG SRC="/.*metadata..plugins.org.jboss.tools.vpe.img.*.gif/" STYLE="-moz-user-modify: read-write;"/>
+<IMG SRC="/.*/org.jboss.tools.vpe/img.*.gif/" STYLE="-moz-user-modify: read-write;"/>
</TD>
</TR>
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebContent/pages/JBIDE/4812/resourceProcessingTestPage.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebContent/pages/JBIDE/4812/resourceProcessingTestPage.xhtml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebContent/pages/JBIDE/4812/resourceProcessingTestPage.xhtml 2009-11-09 17:21:44 UTC (rev 18497)
@@ -0,0 +1,18 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ez="http://java.sun.com/jsf/composite/ezcomp"
+ xmlns:jar="http://java.sun.com/jsf/composite/jarPage">
+<h:head>
+ <title>A simple example of EZComp</title>
+</h:head>
+<h:body>
+ <h:form id="jbide4812">
+ #{resource['css/stylesBlue.css']}
+ <h:outputText value="#{resource['css/stylesBlue.css']}" />
+ #{resource['css/stylesBlue.css1']}
+ </h:form>
+</h:body>
+</html>
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebContent/pages/JBIDE/4812/resourceProcessingTestPage.xhtml.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebContent/pages/JBIDE/4812/resourceProcessingTestPage.xhtml.xml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebContent/pages/JBIDE/4812/resourceProcessingTestPage.xhtml.xml 2009-11-09 17:21:44 UTC (rev 18497)
@@ -0,0 +1,12 @@
+<tests>
+ <test id="jbide4812">
+ <FORM STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px;">
+<SPAN CLASS="vpe-text">
+/resources/css/stylesBlue.css
+</SPAN>
+<SPAN CLASS="vpe-text">
+/resources/css/stylesBlue.css
+</SPAN>
+</FORM>
+ </test>
+</tests>
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebContent/pages/JBIDE/4954/inputUserName.jsp.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebContent/pages/JBIDE/4954/inputUserName.jsp.xml 2009-11-09 13:43:44 UTC (rev 18496)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebContent/pages/JBIDE/4954/inputUserName.jsp.xml 2009-11-09 17:21:44 UTC (rev 18497)
@@ -6,7 +6,7 @@
Test for JBIDE-4954
</SPAN>
</H1>
-<IMG SRC="/.*jsf2test/WebContent/resources/" STYLE="-moz-user-modify: read-write;"/>
+<IMG SRC="/.*ve/unresolved_image.gif/" STYLE="-moz-user-modify: read-write;"/>
</FORM>
</test>
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebContent/pages/JBIDE/5015/login.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebContent/pages/JBIDE/5015/login.xhtml 2009-11-09 13:43:44 UTC (rev 18496)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebContent/pages/JBIDE/5015/login.xhtml 2009-11-09 17:21:44 UTC (rev 18497)
@@ -10,6 +10,7 @@
</h:head>
<h:body>
<h:form id="jbide5015">
+ <h:outputStylesheet />
<jar:echo echo="Hello, Custom Jsf 2.O Components" />
<ez:loginPanel id="loginPanel" login="LOgin">
<f:actionListener for="loginEvent"
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2550Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2550Test.java 2009-11-09 13:43:44 UTC (rev 18496)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2550Test.java 2009-11-09 17:21:44 UTC (rev 18497)
@@ -34,6 +34,10 @@
public void testForJSF2CustomTags() throws Throwable{
performContentTest("JBIDE/5015/login.xhtml"); //$NON-NLS-1$
}
+ //test for https://jira.jboss.org/jira/browse/JBIDE-4812
+ public void testForJSFResourcesForAnyAttribute() throws Throwable{
+ performContentTest("JBIDE/4812/resourceProcessingTestPage.xhtml"); //$NON-NLS-1$
+ }
@Override
protected String getTestProjectName() {
return JsfAllTests.IMPORT_JSF_20_PROJECT_NAME;
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeFunctionSrc.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeFunctionSrc.java 2009-11-09 13:43:44 UTC (rev 18496)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeFunctionSrc.java 2009-11-09 17:21:44 UTC (rev 18497)
@@ -11,27 +11,14 @@
package org.jboss.tools.vpe.editor.template.expression;
import java.io.File;
-import java.io.FileNotFoundException;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
-import java.util.zip.ZipEntry;
import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.IPackageFragmentRoot;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jdt.core.JavaModelException;
-import org.eclipse.jdt.internal.core.JarPackageFragmentRoot;
import org.eclipse.jface.text.IDocument;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IFileEditorInput;
@@ -54,14 +41,15 @@
import org.jboss.tools.vpe.editor.template.VpeCreatorUtil;
import org.jboss.tools.vpe.editor.util.ElService;
import org.jboss.tools.vpe.editor.util.FileUtil;
+import org.jboss.tools.vpe.editor.util.Jsf2ResourceUtil;
import org.jboss.tools.vpe.editor.util.VpeStyleUtil;
import org.w3c.dom.Node;
public class VpeFunctionSrc extends VpeFunction {
static final String IMG_UNRESOLVED = "unresolved_image.gif"; //$NON-NLS-1$
static final String IMG_PREFIX = "file:///"; //$NON-NLS-1$
- private static final Pattern resourcePatternWithSinglCoat= Pattern.compile("[#\\$]\\{\\s*resource\\s*\\[\\s*'(.*)'\\s*\\]\\s*\\}"); //$NON-NLS-1$
- private static final Pattern resourcePatternWithDoableCoat= Pattern.compile("[#\\$]\\{\\s*resource\\s*\\[\\s*\"(.*)\"\\s*\\]\\s*\\}"); //$NON-NLS-1$
+// private static final Pattern resourcePatternWithSinglCoat= Pattern.compile("[#\\$]\\{\\s*resource\\s*\\[\\s*'(.*)'\\s*\\]\\s*\\}"); //$NON-NLS-1$
+// private static final Pattern resourcePatternWithDoableCoat= Pattern.compile("[#\\$]\\{\\s*resource\\s*\\[\\s*\"(.*)\"\\s*\\]\\s*\\}"); //$NON-NLS-1$
public VpeValue exec(VpePageContext pageContext, Node sourceNode) throws VpeExpressionException {
@@ -270,13 +258,9 @@
String resolvedValue = value.replaceFirst("^\\s*(\\#|\\$)\\{facesContext.externalContext.requestContextPath\\}", ""); //$NON-NLS-1$ //$NON-NLS-2$
//fix for JBIDE-2550, author Maksim Areshkau
- Matcher singleCoatMatcher = resourcePatternWithSinglCoat.matcher(resolvedValue);
- Matcher doubleCoatMatcher = resourcePatternWithDoableCoat.matcher(resolvedValue);
- if(doubleCoatMatcher.find()) {
- resolvedValue = FileUtil.processJSF2Resource(pageContext, doubleCoatMatcher.group(1));
- }else if(singleCoatMatcher.find()){
- resolvedValue = FileUtil.processJSF2Resource(pageContext, singleCoatMatcher.group(1));
- }
+ if(Jsf2ResourceUtil.isJSF2ResourceString(resolvedValue)){
+ resolvedValue = Jsf2ResourceUtil.processCustomJSFAttributes(pageContext, resolvedValue);
+ }
//Fix for JBIDE-3030
if(pageContext.getVisualBuilder().getCurrentIncludeInfo()==null
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/ElService.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/ElService.java 2009-11-09 13:43:44 UTC (rev 18496)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/ElService.java 2009-11-09 17:21:44 UTC (rev 18497)
@@ -19,7 +19,6 @@
import org.eclipse.core.runtime.Assert;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Platform;
-import org.eclipse.ui.texteditor.TextNavigationAction;
import org.jboss.tools.common.el.core.ELReferenceList;
import org.jboss.tools.common.el.core.GlobalELReferenceList;
import org.jboss.tools.common.resref.core.ResourceReference;
@@ -28,7 +27,6 @@
import org.w3c.dom.Attr;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
-import org.w3c.dom.Text;
/**
@@ -93,6 +91,7 @@
* @see IELService#replaceEl(IFile, String)
*/
public String replaceEl(IFile resourceFile, String resourceString) {
+
// Assert.isNotNull(resourceString);
if ((resourceString == null) || (resourceFile == null)) {
return ""; //$NON-NLS-1$
@@ -187,6 +186,9 @@
if (((this.isAvailable(file) && this.isAvailableForNode(sourceNode, file)))
|| isInResourcesBundle(pageContext, sourceNode)){
rst = true;
+ }else if(Jsf2ResourceUtil.isContainJSF2ResourceAttributes(sourceNode)) {
+ //added by Maksim Areshkau, see JBIDE-4812
+ rst = true;
}
return rst;
}
@@ -383,6 +385,10 @@
rst = ResourceUtil.getBundleValue(pageContext, value);
//replace custom attributes
rst = replaceCustomAttributes(pageContext,rst);
+
+ if(Jsf2ResourceUtil.isJSF2ResourceString(rst)){
+ rst = Jsf2ResourceUtil.processCustomJSFAttributes(pageContext, rst);
+ }
//fix for JBIDE-3030
if((pageContext.getVisualBuilder().getCurrentIncludeInfo()==null)
|| !(pageContext.getVisualBuilder().getCurrentIncludeInfo().getStorage() instanceof IFile)) {
@@ -393,7 +399,7 @@
return rst;
}
-
+
private String replaceCustomAttributes(VpePageContext pageContext, String value){
String result = value;
for (String el : pageContext.getCustomElementsAttributes().keySet()) {
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/FileUtil.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/FileUtil.java 2009-11-09 13:43:44 UTC (rev 18496)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/FileUtil.java 2009-11-09 17:21:44 UTC (rev 18497)
@@ -17,7 +17,6 @@
import java.io.InputStream;
import java.io.OutputStream;
import java.util.zip.ZipEntry;
-
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
@@ -62,30 +61,32 @@
* @return
*/
public static final String processJSF2Resource(VpePageContext pageContext, String resStr){
- String resulString = resStr;
- resulString=resulString.replaceAll(":", "/"); //$NON-NLS-1$//$NON-NLS-2$
- resulString = "/resources/"+resulString; //$NON-NLS-1$
+ String tempString = resStr;
+ tempString=tempString.replaceAll(":", "/"); //$NON-NLS-1$//$NON-NLS-2$
+ tempString = FileUtil.JSF2_RESOURCES+tempString;
+ String result = ""; //$NON-NLS-1$
// if file not accessible and try to search in jar files
- if(VpeCreatorUtil.getFile(resulString, pageContext)==null) {
- String tempEntryPath =seachResourceInClassPath(pageContext, "META-INF"+resulString); //$NON-NLS-1$
+ if(VpeCreatorUtil.getFile(tempString, pageContext)==null) {
+ String tempEntryPath =seachResourceInClassPath(pageContext, "META-INF"+tempString); //$NON-NLS-1$
if(tempEntryPath!=null) {
- resulString = tempEntryPath;
+ result = tempEntryPath;
}
+ } else {
+ result = tempString;
}
- return resulString;
+ return result;
}
-
+
public static boolean isExistsInJSF2Resources(VpePageContext pageContext, String resStr) {
String resourceString = resStr;
resourceString = resourceString.replaceAll(":", "/"); //$NON-NLS-1$//$NON-NLS-2$
- resourceString = "/resources/"+resourceString; //$NON-NLS-1$
+ resourceString = FileUtil.JSF2_RESOURCES+resourceString;
if(FileUtil.getFile(pageContext.getEditPart().getEditorInput(), resourceString)!=null ||
- seachResourceInClassPath(pageContext, "META-INF"+resourceString)!=null) {
+ FileUtil.seachResourceInClassPath(pageContext, "META-INF"+resourceString)!=null) {
return true;
}
return false;
}
-
/**
* Function search into project class path resource, if resource founded in jar file, make a
* temp copy of this resource and return path to copy.
Added: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/Jsf2ResourceUtil.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/Jsf2ResourceUtil.java (rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/Jsf2ResourceUtil.java 2009-11-09 17:21:44 UTC (rev 18497)
@@ -0,0 +1,99 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.vpe.editor.util;
+
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+
+import org.jboss.tools.vpe.editor.context.VpePageContext;
+import org.w3c.dom.Attr;
+import org.w3c.dom.NamedNodeMap;
+import org.w3c.dom.Node;
+
+/**
+ * Class created for processing jsf 2.0 resources, see following issues
+ * JBIDE-2550, JBIDE-4812,
+ *
+ * @author mareshkau
+ */
+public class Jsf2ResourceUtil {
+ private static final Pattern resourcePatternWithSinglCoat = Pattern
+ .compile("[#\\$]\\{\\s*resource\\s*\\[\\s*'(.*)'\\s*\\]\\s*\\}"); //$NON-NLS-1$
+ private static final Pattern resourcePatternWithDoableCoat = Pattern
+ .compile("[#\\$]\\{\\s*resource\\s*\\[\\s*\"(.*)\"\\s*\\]\\s*\\}"); //$NON-NLS-1$
+
+ /**
+ * Checks is node contained jsf attributes declaration
+ * @param sourceNode
+ * @return true if node has #{resource[...]} declarations
+ * false otherwise
+ */
+ public static boolean isContainJSF2ResourceAttributes(Node sourceNode) {
+ boolean result = false;
+ if (sourceNode.getNodeType() == Node.TEXT_NODE) {
+ String textValue = sourceNode.getNodeValue();
+ if (textValue != null) {
+ if (Jsf2ResourceUtil.isJSF2ResourceString(textValue)) {
+ result = true;
+ }
+ }
+ } else {
+ final NamedNodeMap nodeMap = sourceNode.getAttributes();
+ if ((nodeMap != null) && (nodeMap.getLength() > 0)) {
+ for (int i = 0; i < nodeMap.getLength(); i++) {
+ if (Jsf2ResourceUtil.isJSF2ResourceString(((Attr) nodeMap
+ .item(i)).getValue())) {
+ result = true;
+
+ }
+ }
+ }
+ }
+ return result;
+ }
+ /**
+ * Replaces custom jsf attribute with attribute from VPE
+ * @param pageContext
+ * @param value
+ * @return
+ */
+ public static final String processCustomJSFAttributes(VpePageContext pageContext, String value){
+ String result =null;
+ //fix for JBIDE-2550, author Maksim Areshkau
+ Matcher singleCoatMatcher = resourcePatternWithSinglCoat.matcher(value);
+ Matcher doubleCoatMatcher = resourcePatternWithDoableCoat.matcher(value);
+ if(doubleCoatMatcher.find()) {
+ result = FileUtil.processJSF2Resource(pageContext, doubleCoatMatcher.group(1));
+ }else if(singleCoatMatcher.find()){
+ result = FileUtil.processJSF2Resource(pageContext, singleCoatMatcher.group(1));
+ }
+
+ return result;
+ }
+
+ /**
+ * Checks if string is jsf 2 resource
+ *
+ * @param attributeValue
+ * @return
+ */
+ public static boolean isJSF2ResourceString(String attributeValue) {
+ Matcher singleCoatMatcher = resourcePatternWithSinglCoat
+ .matcher(attributeValue);
+ Matcher doubleCoatMatcher = resourcePatternWithDoableCoat
+ .matcher(attributeValue);
+ boolean result = false;
+ if (doubleCoatMatcher.find() || singleCoatMatcher.find()) {
+ result = true;
+ }
+ return result;
+ }
+}
15 years, 1 month
JBoss Tools SVN: r18496 - in trunk/seam/plugins/org.jboss.tools.seam.xml: META-INF and 6 other directories.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-11-09 08:43:44 -0500 (Mon, 09 Nov 2009)
New Revision: 18496
Added:
trunk/seam/plugins/org.jboss.tools.seam.xml/dtds/jboss-ds_1_5.dtd
trunk/seam/plugins/org.jboss.tools.seam.xml/dtds/jboss-ds_5_0.dtd
trunk/seam/plugins/org.jboss.tools.seam.xml/dtds/jboss-ds_5_0.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/resources/help/keys-ds.properties
trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/ds.meta
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSConstants.java
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSEntityRecognizer.java
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSFileLoader.java
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSFileLoaderUtil.java
Modified:
trunk/seam/plugins/org.jboss.tools.seam.xml/META-INF/MANIFEST.MF
trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml
Log:
https://jira.jboss.org/jira/browse/JBIDE-1253
Modified: trunk/seam/plugins/org.jboss.tools.seam.xml/META-INF/MANIFEST.MF
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/META-INF/MANIFEST.MF 2009-11-09 12:11:00 UTC (rev 18495)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/META-INF/MANIFEST.MF 2009-11-09 13:43:44 UTC (rev 18496)
@@ -9,7 +9,8 @@
Export-Package: org.jboss.tools.seam.xml,
org.jboss.tools.seam.xml.components.model,
org.jboss.tools.seam.xml.components.model.handlers,
- org.jboss.tools.seam.xml.components.model.constraint
+ org.jboss.tools.seam.xml.components.model.constraint,
+ org.jboss.tools.seam.xml.ds.model
Require-Bundle: org.jboss.tools.jst.web;visibility:=reexport,
org.eclipse.ui.ide,
org.eclipse.ui.views,
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/dtds/jboss-ds_1_5.dtd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/dtds/jboss-ds_1_5.dtd (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/dtds/jboss-ds_1_5.dtd 2009-11-09 13:43:44 UTC (rev 18496)
@@ -0,0 +1,496 @@
+<?xml version='1.0' encoding='UTF-8' ?>
+
+<!--dtd for jboss 4.0/jca 1.5 datasource configurations (*-ds.xml), transformed
+by ConnectionFactoryTemplate.xsl
+
+DOCTYPE datasources
+ PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN"
+ "http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd"
+
+DOCTYPE connection-factories
+ PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN"
+ "http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd"
+
+$Id: jboss-ds_1_5.dtd 76316 2008-07-28 17:24:52Z adrian(a)jboss.org $
+-->
+
+<!--
+The datasources element is the root of the jdbc datasource configuration
+-->
+<!ELEMENT datasources (loader-repository? , (mbean | local-tx-datasource | xa-datasource | no-tx-datasource |
+ ha-local-tx-datasource | ha-xa-datasource)*)>
+
+<!-- Specify a jca-jdbc non-XADatasource (local) wrapper, using no transactions
+-->
+<!ELEMENT no-tx-datasource (jndi-name , use-java-context?, connection-url ,
+url-delimiter?, url-selector-strategy-class-name?,
+driver-class , connection-property* , user-name? , password? ,
+(application-managed-security | security-domain | security-domain-and-application)? ,
+min-pool-size? , max-pool-size? , blocking-timeout-millis? , background-validation?, background-validation-minutes? , idle-timeout-minutes?,
+validate-on-match?, new-connection-sql?, check-valid-connection-sql?, valid-connection-checker-class-name?,
+exception-sorter-class-name?, stale-connection-checker-class-name?, track-statements?,
+prefill?, use-fast-fail?,
+prepared-statement-cache-size?, share-prepared-statements? , set-tx-query-timeout?, query-timeout?, use-try-lock?,
+metadata?, type-mapping?, depends*)>
+
+<!-- Specify a jca-jdbc non-XADatasource (local) wrapper, using local
+transactions
+-->
+<!ELEMENT local-tx-datasource (jndi-name , use-java-context?, connection-url ,
+url-delimiter?, url-selector-strategy-class-name?,
+driver-class, transaction-isolation? , connection-property* , user-name? , password? ,
+(application-managed-security | security-domain | security-domain-and-application)? ,
+min-pool-size? , max-pool-size? , blocking-timeout-millis? , background-validation?, background-validation-minutes?,
+validate-on-match?, idle-timeout-minutes? ,
+no-tx-separate-pools? , new-connection-sql? , check-valid-connection-sql? ,
+valid-connection-checker-class-name? , exception-sorter-class-name? , stale-connection-checker-class-name?, track-statements? ,
+prefill?, use-fast-fail?,
+prepared-statement-cache-size?, share-prepared-statements? , set-tx-query-timeout?, query-timeout?, use-try-lock?,
+metadata?, type-mapping?, depends*)>
+
+<!-- Specify a jca-jdbc XADatasource wrapper
+-->
+<!ELEMENT xa-datasource (jndi-name , use-java-context?, track-connection-by-tx , xa-datasource-class ,
+xa-datasource-property* , url-property?, url-delimiter?, url-selector-strategy-class-name?,
+isSameRM-override-value? , transaction-isolation? , user-name? , password? ,
+(application-managed-security | security-domain | security-domain-and-application)? ,
+min-pool-size? , max-pool-size? , blocking-timeout-millis? , background-validation?, background-validation-minutes? , idle-timeout-minutes? ,
+validate-on-match?, no-tx-separate-pools? , xa-resource-timeout?, new-connection-sql? , check-valid-connection-sql? ,
+valid-connection-checker-class-name? , exception-sorter-class-name? , stale-connection-checker-class-name?, track-statements? ,
+prefill?, use-fast-fail?,
+prepared-statement-cache-size?, share-prepared-statements? , set-tx-query-timeout?, query-timeout?, use-try-lock?,
+metadata?, type-mapping?, depends*)>
+
+<!-- The JNDI name under which the DataSource wrapper will be bound. Note that
+this name is relative to the "java:/" prefix unless use-java-context is false.
+Ex:
+<jndi-name>DefaultDS</jndi-name>
+-->
+
+<!ELEMENT jndi-name (#PCDATA)>
+
+<!-- Setting this to false will bind the DataSource into global jndi
+Ex:
+<use-java-context>false</use-java-context>
+-->
+<!ELEMENT use-java-context (#PCDATA)>
+
+<!-- The JDBC driver connection URL string
+Ex:
+<connection-url>jdbc:hsqldb:hsql://localhost:1701</connection-url>
+-->
+<!ELEMENT connection-url (#PCDATA)>
+
+<!-- The fully qualifed name of the JDBC driver class
+ Ex:
+ <driver-class>org.hsqldb.jdbcDriver</driver-class>
+-->
+<!ELEMENT driver-class (#PCDATA)>
+
+<!-- Set java.sql.Connection transaction isolation level to use.
+The constants defined in the interface Connection are the possible transaction
+isolation levels and include:
+ TRANSACTION_READ_UNCOMMITTED
+ TRANSACTION_READ_COMMITTED
+ TRANSACTION_REPEATABLE_READ
+ TRANSACTION_SERIALIZABLE
+ TRANSACTION_NONE
+
+ Ex:
+ <transaction-isolation>TRANSACTION_SERIALIZABLE</transaction-isoation>
+-->
+<!ELEMENT transaction-isolation (#PCDATA)>
+
+<!-- Specify the default username used when creating a new connection.
+ Ex:
+ <user-name>sa</user-name>
+-->
+<!ELEMENT user-name (#PCDATA)>
+
+<!-- Specify the default password used when creating a new connection.
+ Ex:
+ <password>sa-pass</password>
+-->
+<!ELEMENT password (#PCDATA)>
+
+<!-- Indicates that app supplied parameters (such as from getConnection(user, pw))
+are used to distinguish connections in the pool.
+ Ex:
+ <application-managed-security/>
+-->
+<!ELEMENT application-managed-security EMPTY>
+
+<!-- Indicates Subject (from security domain) are used to distinguish connections in the pool.
+The content of the security-domain is the name of the JAAS security manager that will handle
+authentication. This name correlates to the JAAS login-config.xml descriptor
+application-policy/name attribute.
+
+ Ex:
+ <security-domain>HsqlDbRealm</security-domain>
+-->
+<!ELEMENT security-domain (#PCDATA)>
+
+<!-- Indicates that either app supplied parameters (such as from
+getConnection(user, pw)) or Subject (from security domain) are used to
+distinguish connections in the pool. The content of the
+security-domain is the name of the JAAS security manager that will handle
+authentication. This name correlates to the JAAS login-config.xml descriptor
+application-policy/name attribute.
+
+ Ex:
+ <security-domain-and-application>HsqlDbRealm</security-domain-and-application>
+-->
+<!ELEMENT security-domain-and-application (#PCDATA)>
+
+<!-- Whether to use separete pools for connection retrieved in a transaction
+ and those retieved outside a transaction
+e.g.
+ <no-tx-separate-pools/>
+-->
+<!ELEMENT no-tx-separate-pools EMPTY>
+
+<!-- The min-pool-size element indicates the minimum number of connections a
+pool should hold. These are not created until a Subject is known from a
+request for a connection. This default to 0.
+
+ Ex:
+ <min-pool-size>1</min-pool-size>
+-->
+<!ELEMENT min-pool-size (#PCDATA)>
+
+<!-- The max-pool-size element indicates the maximum number of connections for a
+pool. No more than MaxSize connections will be created in each sub-pool. This
+defaults to 20.
+-->
+<!ELEMENT max-pool-size (#PCDATA)>
+
+<!-- The blocking-timeout-millis element indicates the maximum time in
+milliseconds to block while waiting for a connection before throwing an
+exception. Note that this blocks only while waiting for a permit for a
+connection, and will never throw an exception if creating a new connection
+takes an inordinately long time. The default is 30000 (30 seconds).
+-->
+<!ELEMENT blocking-timeout-millis (#PCDATA)>
+
+<!-- The idle-timeout-minutes elements indicates the maximum time in
+minutes a connection may be idle before being closed. The actual maximum time
+depends also on the IdleRemover scan time, which is 1/2 the smallest
+idle-timeout-minutes of any pool.
+-->
+<!ELEMENT idle-timeout-minutes (#PCDATA)>
+
+<!-- The validate-on-match element indicates whether or not connection level validation should be done when a connection factory attempts to
+match a managed connection for a given set. This is typically exclusive to the use of background validation -->
+
+<!ELEMENT validate-on-match (#PCDATA)>
+
+<!-- An element to specify that connections should be validated on a background thread versus being validated
+ prior to use-->
+<!ELEMENT background-validation (#PCDATA)>
+
+<!-- The background-validation-minutes element specifies the amount of time, in minutes, that background validation
+ will run. -->
+<!ELEMENT background-validation-minutes (#PCDATA)>
+
+<!-- An element to specify that all intermediate end(suspend) and
+start(resume) calls. Also, all work on one tx will go through one
+connection.
+A side effect of this (currently at least) is that a connection will only
+be usable by one tx until the tx commits.
+ Ex:
+ <track-connection-by-tx/>
+-->
+<!ELEMENT track-connection-by-tx EMPTY>
+
+<!-- The fully qualifed name of the javax.sql.XADataSource implementation class.
+ Ex:
+ <xa-datasource-class>com.informix.jdbcx.IfxXADataSource</xa-datasource-class>
+-->
+<!ELEMENT xa-datasource-class (#PCDATA)>
+
+<!-- Specify a property to assign to the XADataSource implementation class.
+Each property is identified by the name attribute and the property value is
+given by the xa-datasource-property element content. The property is mapped
+onto the XADataSource implementation by looking for a JavaBeans style
+getter method for the property name. If found, the value of the property is
+set using the JavaBeans setter with the element text translated to the true
+property type using the java.beans.PropertyEditor for the type.
+
+ Ex:
+ <xa-datasource-property name="IfxWAITTIME">10</xa-datasource-property>
+ <xa-datasource-property name="IfxIFXHOST">myhost.mydomain.com</xa-datasource-property>
+ <xa-datasource-property name="PortNumber">1557</xa-datasource-property>
+ <xa-datasource-property name="DatabaseName">mydb</xa-datasource-property>
+ <xa-datasource-property name="ServerName">myserver</xa-datasource-property>
+-->
+<!ELEMENT xa-datasource-property (#PCDATA)>
+
+<!-- The xa-datasource-property name attribute specifies the name of the
+XADataSource attribute the xa-datasource-property element content provides
+the value of.
+-->
+<!ATTLIST xa-datasource-property name CDATA #REQUIRED>
+
+<!-- The isSameRM-override-value element allows one to unconditionally set
+whether the javax.transaction.xa.XAResource.isSameRM(XAResource) returns
+true or false.
+
+Ex:
+<isSameRM-override-value>true</isSameRM-override-value>
+-->
+<!ELEMENT isSameRM-override-value (#PCDATA)>
+
+<!-- The connection-property element allows you to pass in arbitrary connection
+properties to the Driver.connect(url, props) method. Each connection-property
+specifies a string name/value pair with the property name coming from the
+name attribute and the value coming from the element content.
+
+ Ex:
+ <connection-property name="char.encoding">UTF-8</connection-property>
+-->
+<!ELEMENT connection-property (#PCDATA)>
+
+<!-- The connection-property name attribute gives the name of the connection
+property.
+-->
+<!ATTLIST connection-property name CDATA #REQUIRED>
+
+<!-- Specify an SQL statement to execute whenever a connection is added to
+the connection pool.
+-->
+<!ELEMENT new-connection-sql (#PCDATA)>
+
+<!-- Specify an SQL statement to check validity of a pool connection. This
+may be called when managed connection is taken from pool for use.
+-->
+<!ELEMENT check-valid-connection-sql (#PCDATA)>
+
+<!-- An org.jboss.resource.adapter.jdbc.ValidConnectionChecker that provides
+a SQLException isValidConnection(Connection e) method to validate is a connection
+is valid. An exception means the connection is destroyed.
+This overrides the check-valid-connection-sql when present.
+
+Ex:
+<exception-sorter-class-name>
+ org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker
+</exception-sorter-class-name>
+-->
+<!ELEMENT valid-connection-checker-class-name (#PCDATA)>
+
+<!-- An org.jboss.resource.adapter.jdbc.ExceptionSorter that provides
+a boolean isExceptionFatal(SQLException e) method to validate is an exception
+should be broadcast to all javax.resource.spi.ConnectionEventListener as
+a connectionErrorOccurred message.
+
+Ex:
+<exception-sorter-class-name>
+ org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter
+</exception-sorter-class-name>
+<exception-sorter-class-name>
+ org.jboss.resource.adapter.jdbc.vendor.SybaseExceptionSorter
+</exception-sorter-class-name>
+-->
+
+<!ELEMENT exception-sorter-class-name (#PCDATA)>
+
+<!-- An org.jboss.resource.adapter.jdbc.StaleConnectionChecker that provides
+a boolean isStaleConnection(SQLException e) method which if it it returns
+true will wrap the exception in an
+org.jboss.resource.adapter.jdbc.StaleConnectionException
+which is a subclass of SQLException.
+
+Ex:
+<stale-connection-checker-class-name>
+ org.jboss.resource.adapter.jdbc.vendor.OracleStaleConnectionChecker
+</stale-connection-checker-class-name>
+-->
+<!ELEMENT stale-connection-checker-class-name (#PCDATA)>
+
+<!-- Whether to check for unclosed statements when a
+ connection is returned to the pool and result sets are
+ closed when a statement is closed/return to the prepared
+ statement cache.
+ valid values are:
+ false - do not track statements and results
+ true - track statements and result sets and warn when they are not closed
+ nowarn - track statements but do no warn about them being unclosed (the default)
+ e.g.
+ <track-statements>nowarn</track-statements>
+-->
+<!ELEMENT track-statements EMPTY>
+
+<!-- Whether to attempt to prefill the connection pool. Empty element denotes a false value.
+ e.g.
+ <prefill>true</prefill>
+ -->
+<!ELEMENT prefill (#PCDATA) >
+
+<!-- Whether fail a connection allocation on the first connection if it is invalid (true)
+ or keep trying until the pool is exhausted of all potential connections (false)
+
+ default false.
+ e.g.
+ <use-fast-fail>true</use-fast-fail>
+ -->
+<!ELEMENT use-fast-fail (#PCDATA) >
+
+<!-- The number of prepared statements per connection in an LRU cache
+-->
+<!ELEMENT prepared-statement-cache-size (#PCDATA)>
+
+<!-- whether to share prepare statements, i.e. whether asking for same
+ statement twice without closing uses the same underlying prepared statement.
+
+ The default is false.
+ e.g.
+ <share-prepared-statements/>
+-->
+<!ELEMENT share-prepared-statements EMPTY>
+
+<!-- whether to set the query timeout based on the time remaining until transaction timeout,
+ any configured query timeout will be used if there is no transaction.
+
+ The default is false.
+ e.g.
+ <set-tx-query-timeout/>
+-->
+<!ELEMENT set-tx-query-timeout EMPTY>
+
+<!-- Any configured query timeout in seconds
+
+ The default is no timeout
+ e.g. 5 minutes
+ <query-timeout>300</query-timeout>
+-->
+<!ELEMENT query-timeout (#PCDATA)>
+
+<!-- Any configured timeout for internal locks on the resource adapter objects in milli-seconds
+
+ The default is a 60 second timeout
+ e.g. 5 minutes
+ <use-try-lock>300000</use-try-lock>
+-->
+<!ELEMENT use-try-lock (#PCDATA)>
+
+<!-- The depends element specifies the JMX ObjectName string of a service
+that the connection manager services depend on.
+
+ Ex:
+ <depends>jboss:service=Hypersonic</depends>
+-->
+<!ELEMENT depends (#PCDATA)>
+
+<!-- The connection-factories element is the root of the generic jca adaptor section
+-->
+<!ELEMENT connection-factories (loader-repository? , (mbean | tx-connection-factory | no-tx-connection-factory)*)>
+
+<!-- The loader repository -->
+<!ELEMENT loader-repository ANY>
+
+<!-- Any embedded mbean -->
+<!ELEMENT mbean ANY>
+
+<!-- The tx-connection-factory element is used to configure generic resource
+adapters supporting transactions
+-->
+<!ELEMENT tx-connection-factory (jndi-name , (local-transaction | xa-transaction) ,
+track-connection-by-tx? , rar-name?, connection-definition?, config-property* ,
+(application-managed-security | security-domain | security-domain-and-application)? ,
+min-pool-size? , max-pool-size? , blocking-timeout-millis? , background-validation?, background-validation-minutes? , idle-timeout-minutes? ,
+no-tx-separate-pools?, prefill?, use-fast-fail?, xa-resource-timeout?,
+metadata?, type-mapping?, depends*)>
+
+<!-- The no-tx-connection-factory element is used to configure generic resource
+adapters that do not support transactions
+-->
+<!ELEMENT no-tx-connection-factory (jndi-name , rar-name?, connection-definition? , config-property* ,
+(application-managed-security | security-domain | security-domain-and-application)? ,
+min-pool-size? , max-pool-size? , blocking-timeout-millis? , background-validation?, background-validation-minutes? , idle-timeout-minutes? ,
+prefill?, use-fast-fail?, metadata?, type-mapping?, depends*)>
+
+<!-- The rar deployment to associate with the connection manager mbean.
+e.g. jms-ra.rar or myapplication.ear#my.rar for nested rars
+-->
+<!ELEMENT rar-name (#PCDATA)>
+
+<!-- The connection definition inside the rar deployment uniquely identified by the
+connection factory interface, e.g. javax.sql.DataSource
+-->
+
+<!ELEMENT connection-definition (#PCDATA)>
+
+<!-- Passed to XAResource.setTransactionTimeout()
+
+ Default is zero which does not invoke the setter
+ e.g. 5 minutes
+ <xa-resource-timeout>300</xa-resource-timeout>
+-->
+<!ELEMENT xa-resource-timeout (#PCDATA)>
+
+<!-- The xa-transaction element is used to mark that the tx-connection-factory
+supports XA transactions.
+-->
+<!ELEMENT xa-transaction EMPTY>
+
+<!-- The local-transaction element is used to mark that the tx-connection-factory
+supports local transactions.
+-->
+<!ELEMENT local-transaction EMPTY>
+
+<!-- The config-property specifies a mannaged connection factory property.
+-->
+<!ELEMENT config-property (#PCDATA)>
+
+<!-- The config-property name attribute gives the name of the connection
+factory property.
+-->
+<!ATTLIST config-property name CDATA #REQUIRED>
+
+<!-- The config-property type attribute gives the name of the connection
+factory property.
+-->
+<!ATTLIST config-property type CDATA #REQUIRED>
+
+<!-- The type mapping from conf/standardjboss.xml -->
+<!ELEMENT type-mapping (#PCDATA)>
+
+<!-- For backwards compatibility use type-mapping -->
+<!ELEMENT metadata (type-mapping)>
+
+<!--
+Use local-tx-datasource
+-->
+<!ELEMENT ha-local-tx-datasource (jndi-name, use-java-context?, connection-url, url-delimiter,
+driver-class, transaction-isolation? , connection-property* , user-name? , password?,
+(application-managed-security | security-domain | security-domain-and-application)? ,
+min-pool-size? , max-pool-size? , blocking-timeout-millis? , idle-timeout-minutes? ,
+no-tx-separate-pools? , new-connection-sql? , check-valid-connection-sql? ,
+valid-connection-checker-class-name? , exception-sorter-class-name? , track-statements? ,
+prepared-statement-cache-size?, share-prepared-statements? , set-tx-query-timeout?, query-timeout?, use-try-lock?,
+metadata?, type-mapping?, depends*)>
+
+<!--
+Use xa-datasource
+-->
+<!ELEMENT ha-xa-datasource (jndi-name , use-java-context?, track-connection-by-tx , xa-datasource-class ,
+xa-datasource-property* , url-property, url-delimiter, isSameRM-override-value? , transaction-isolation? ,
+user-name? , password? ,
+(application-managed-security | security-domain | security-domain-and-application)? ,
+min-pool-size? , max-pool-size? , blocking-timeout-millis? , idle-timeout-minutes? ,
+no-tx-separate-pools? , xa-resource-timeout? ,
+new-connection-sql? , check-valid-connection-sql? ,
+valid-connection-checker-class-name? , exception-sorter-class-name? , track-statements? ,
+prepared-statement-cache-size?, share-prepared-statements? , set-tx-query-timeout?, query-timeout?, use-try-lock?,
+type-mapping?, depends*)>
+
+<!-- Specifies the delimeter for URLs in connection-url for ha datasources
+-->
+<!ELEMENT url-delimiter (#PCDATA)>
+
+<!-- A class that implements org.jboss.resource.adapter.jdbc.URLSelectorStrategy
+-->
+<!ELEMENT url-selector-strategy-class-name (#PCDATA)>
+
+<!-- For HA XA datasource specifies the name of an xa-datasource-property that contains a list of URLs
+-->
+<!ELEMENT url-property (#PCDATA)>
Property changes on: trunk/seam/plugins/org.jboss.tools.seam.xml/dtds/jboss-ds_1_5.dtd
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/dtds/jboss-ds_5_0.dtd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/dtds/jboss-ds_5_0.dtd (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/dtds/jboss-ds_5_0.dtd 2009-11-09 13:43:44 UTC (rev 18496)
@@ -0,0 +1,514 @@
+<?xml version='1.0' encoding='UTF-8' ?>
+
+<!-- DTD for the JCA 1.5 datasources and connection factory configurations (*-ds.xml) in JBoss-5.0.x,
+ transformed by ConnectionFactoryTemplate.xsl
+
+DOCTYPE datasources
+ PUBLIC "-//JBoss//DTD JBOSS JCA Config 5.0//EN"
+ "http://www.jboss.org/j2ee/dtd/jboss-ds_5_0.dtd"
+
+DOCTYPE connection-factories
+ PUBLIC "-//JBoss//DTD JBOSS JCA Config 5.0//EN"
+ "http://www.jboss.org/j2ee/dtd/jboss-ds_5_0.dtd"
+
+$Id: jboss-ds_5_0.dtd 76316 2008-07-28 17:24:52Z adrian(a)jboss.org $
+-->
+
+<!--
+The datasources element is the root of the jdbc datasource configuration
+-->
+<!ELEMENT datasources (loader-repository? , (mbean | local-tx-datasource | xa-datasource | no-tx-datasource |
+ ha-local-tx-datasource | ha-xa-datasource)*)>
+
+<!-- Specify a jca-jdbc non-XADatasource (local) wrapper, using no transactions
+-->
+<!ELEMENT no-tx-datasource (jndi-name , use-java-context?, connection-url ,
+url-delimiter?, url-selector-strategy-class-name?,
+driver-class , connection-property* , user-name? , password? ,
+(application-managed-security | security-domain | security-domain-and-application)? ,
+min-pool-size? , max-pool-size? , blocking-timeout-millis? , background-validation?, background-validation-millis? , idle-timeout-minutes?,
+allocation-retry?, allocation-retry-wait-millis?, validate-on-match?, new-connection-sql?, check-valid-connection-sql?, valid-connection-checker-class-name?,
+exception-sorter-class-name?, stale-connection-checker-class-name?, track-statements?,
+prefill?, use-fast-fail?,
+prepared-statement-cache-size?, share-prepared-statements? , set-tx-query-timeout?, query-timeout?, use-try-lock?,
+metadata?, type-mapping?, depends*)>
+
+<!-- Specify a jca-jdbc non-XADatasource (local) wrapper, using local
+transactions
+-->
+<!ELEMENT local-tx-datasource (jndi-name , use-java-context?, connection-url ,
+url-delimiter?, url-selector-strategy-class-name?,
+driver-class, transaction-isolation? , connection-property* , user-name? , password? ,
+(application-managed-security | security-domain | security-domain-and-application)? ,
+min-pool-size? , max-pool-size? , blocking-timeout-millis? , background-validation?, background-validation-millis?,
+validate-on-match?, idle-timeout-minutes? , allocation-retry?, allocation-retry-wait-millis?,
+no-tx-separate-pools? , new-connection-sql? , check-valid-connection-sql? ,
+valid-connection-checker-class-name? , exception-sorter-class-name? , stale-connection-checker-class-name?, track-statements? ,
+prefill?, use-fast-fail?,
+prepared-statement-cache-size?, share-prepared-statements? , set-tx-query-timeout?, query-timeout?, use-try-lock?,
+metadata?, type-mapping?, depends*)>
+
+<!-- Specify a jca-jdbc XADatasource wrapper
+-->
+<!ELEMENT xa-datasource (jndi-name , use-java-context?, track-connection-by-tx?, interleaving?, xa-datasource-class,
+xa-datasource-property* , url-property?, url-delimiter?, url-selector-strategy-class-name?,
+isSameRM-override-value? , transaction-isolation? , user-name? , password? ,
+(application-managed-security | security-domain | security-domain-and-application)? ,
+min-pool-size? , max-pool-size? , blocking-timeout-millis? , background-validation?, background-validation-millis? , idle-timeout-minutes? ,
+allocation-retry?, allocation-retry-wait-millis?, validate-on-match?, no-tx-separate-pools? , xa-resource-timeout?, new-connection-sql? , check-valid-connection-sql? ,
+valid-connection-checker-class-name? , exception-sorter-class-name? , stale-connection-checker-class-name?, track-statements? ,
+prefill?, use-fast-fail?,
+prepared-statement-cache-size?, share-prepared-statements? , set-tx-query-timeout?, query-timeout?, use-try-lock?,
+metadata?, type-mapping?, depends*)>
+
+<!-- The JNDI name under which the DataSource wrapper will be bound. Note that
+this name is relative to the "java:/" prefix unless use-java-context is false.
+Ex:
+<jndi-name>DefaultDS</jndi-name>
+-->
+
+<!ELEMENT jndi-name (#PCDATA)>
+
+<!-- Setting this to false will bind the DataSource into global jndi
+Ex:
+<use-java-context>false</use-java-context>
+-->
+<!ELEMENT use-java-context (#PCDATA)>
+
+<!-- The JDBC driver connection URL string
+Ex:
+<connection-url>jdbc:hsqldb:hsql://localhost:1701</connection-url>
+-->
+<!ELEMENT connection-url (#PCDATA)>
+
+<!-- The fully qualifed name of the JDBC driver class
+ Ex:
+ <driver-class>org.hsqldb.jdbcDriver</driver-class>
+-->
+<!ELEMENT driver-class (#PCDATA)>
+
+<!-- Set java.sql.Connection transaction isolation level to use.
+The constants defined in the interface Connection are the possible transaction
+isolation levels and include:
+ TRANSACTION_READ_UNCOMMITTED
+ TRANSACTION_READ_COMMITTED
+ TRANSACTION_REPEATABLE_READ
+ TRANSACTION_SERIALIZABLE
+ TRANSACTION_NONE
+
+ Ex:
+ <transaction-isolation>TRANSACTION_SERIALIZABLE</transaction-isoation>
+-->
+<!ELEMENT transaction-isolation (#PCDATA)>
+
+<!-- Specify the default username used when creating a new connection.
+ Ex:
+ <user-name>sa</user-name>
+-->
+<!ELEMENT user-name (#PCDATA)>
+
+<!-- Specify the default password used when creating a new connection.
+ Ex:
+ <password>sa-pass</password>
+-->
+<!ELEMENT password (#PCDATA)>
+
+<!-- Indicates that app supplied parameters (such as from getConnection(user, pw))
+are used to distinguish connections in the pool.
+ Ex:
+ <application-managed-security/>
+-->
+<!ELEMENT application-managed-security EMPTY>
+
+<!-- Indicates Subject (from security domain) are used to distinguish connections in the pool.
+The content of the security-domain is the name of the JAAS security manager that will handle
+authentication. This name correlates to the JAAS login-config.xml descriptor
+application-policy/name attribute.
+
+ Ex:
+ <security-domain>HsqlDbRealm</security-domain>
+-->
+<!ELEMENT security-domain (#PCDATA)>
+
+<!-- Indicates that either app supplied parameters (such as from
+getConnection(user, pw)) or Subject (from security domain) are used to
+distinguish connections in the pool. The content of the
+security-domain is the name of the JAAS security manager that will handle
+authentication. This name correlates to the JAAS login-config.xml descriptor
+application-policy/name attribute.
+
+ Ex:
+ <security-domain-and-application>HsqlDbRealm</security-domain-and-application>
+-->
+<!ELEMENT security-domain-and-application (#PCDATA)>
+
+<!-- Whether to use separete pools for connection retrieved in a transaction
+ and those retieved outside a transaction
+e.g.
+ <no-tx-separate-pools/>
+-->
+<!ELEMENT no-tx-separate-pools EMPTY>
+
+<!-- The min-pool-size element indicates the minimum number of connections a
+pool should hold. These are not created until a Subject is known from a
+request for a connection. This default to 0.
+
+ Ex:
+ <min-pool-size>1</min-pool-size>
+-->
+<!ELEMENT min-pool-size (#PCDATA)>
+
+<!-- The max-pool-size element indicates the maximum number of connections for a
+pool. No more than MaxSize connections will be created in each sub-pool. This
+defaults to 20.
+-->
+<!ELEMENT max-pool-size (#PCDATA)>
+
+<!-- The blocking-timeout-millis element indicates the maximum time in
+milliseconds to block while waiting for a connection before throwing an
+exception. Note that this blocks only while waiting for a permit for a
+connection, and will never throw an exception if creating a new connection
+takes an inordinately long time. The default is 30000 (30 seconds).
+-->
+<!ELEMENT blocking-timeout-millis (#PCDATA)>
+
+<!-- The idle-timeout-minutes elements indicates the maximum time in
+minutes a connection may be idle before being closed. The actual maximum time
+depends also on the IdleRemover scan time, which is 1/2 the smallest
+idle-timeout-minutes of any pool.
+-->
+<!ELEMENT idle-timeout-minutes (#PCDATA)>
+
+<!-- The allocation retry element indicates the number of times that allocating
+a connection should be tried before throwing an exception. The default is 0.
+-->
+<!ELEMENT allocation-retry (#PCDATA)>
+
+<!-- The allocation retry wait millis element indicates the time in
+milliseconds to wait between retrying to allocate a connection.
+The default is 5000 (5 seconds).
+-->
+<!ELEMENT allocation-retry-wait-millis (#PCDATA)>
+
+<!-- The validate-on-match element indicates whether or not connection level validation should be done when a connection factory attempts to
+match a managed connection for a given set. This is typically exclusive to the use of background validation -->
+
+<!ELEMENT validate-on-match (#PCDATA)>
+
+<!-- An element to specify that connections should be validated on a background thread versus being validated
+ prior to use-->
+<!ELEMENT background-validation (#PCDATA)>
+
+<!-- The background-validation-minutes element specifies the amount of time, in minutes, that background validation
+ will run. -->
+<!ELEMENT background-validation-minutes (#PCDATA)>
+
+<!-- An element to specify that all intermediate end(suspend) and
+start(resume) calls. Also, all work on one tx will go through one
+connection.
+A side effect of this (currently at least) is that a connection will only
+be usable by one tx until the tx commits.
+ Ex:
+ <track-connection-by-tx/>
+DEPRECATED: this element is now deprecated (it is assumed to present by default, also see <interleaving/>)
+-->
+<!ELEMENT track-connection-by-tx EMPTY>
+
+<!-- An element to enable interleaving for XA connection factories
+ Ex:
+ <interleaving/>
+-->
+<!ELEMENT interleaving EMPTY>
+
+<!-- The fully qualifed name of the javax.sql.XADataSource implementation class.
+ Ex:
+ <xa-datasource-class>com.informix.jdbcx.IfxXADataSource</xa-datasource-class>
+-->
+<!ELEMENT xa-datasource-class (#PCDATA)>
+
+<!-- Specify a property to assign to the XADataSource implementation class.
+Each property is identified by the name attribute and the property value is
+given by the xa-datasource-property element content. The property is mapped
+onto the XADataSource implementation by looking for a JavaBeans style
+getter method for the property name. If found, the value of the property is
+set using the JavaBeans setter with the element text translated to the true
+property type using the java.beans.PropertyEditor for the type.
+
+ Ex:
+ <xa-datasource-property name="IfxWAITTIME">10</xa-datasource-property>
+ <xa-datasource-property name="IfxIFXHOST">myhost.mydomain.com</xa-datasource-property>
+ <xa-datasource-property name="PortNumber">1557</xa-datasource-property>
+ <xa-datasource-property name="DatabaseName">mydb</xa-datasource-property>
+ <xa-datasource-property name="ServerName">myserver</xa-datasource-property>
+-->
+<!ELEMENT xa-datasource-property (#PCDATA)>
+
+<!-- The xa-datasource-property name attribute specifies the name of the
+XADataSource attribute the xa-datasource-property element content provides
+the value of.
+-->
+<!ATTLIST xa-datasource-property name CDATA #REQUIRED>
+
+<!-- The isSameRM-override-value element allows one to unconditionally set
+whether the javax.transaction.xa.XAResource.isSameRM(XAResource) returns
+true or false.
+
+Ex:
+<isSameRM-override-value>true</isSameRM-override-value>
+-->
+<!ELEMENT isSameRM-override-value (#PCDATA)>
+
+<!-- The connection-property element allows you to pass in arbitrary connection
+properties to the Driver.connect(url, props) method. Each connection-property
+specifies a string name/value pair with the property name coming from the
+name attribute and the value coming from the element content.
+
+ Ex:
+ <connection-property name="char.encoding">UTF-8</connection-property>
+-->
+<!ELEMENT connection-property (#PCDATA)>
+
+<!-- The connection-property name attribute gives the name of the connection
+property.
+-->
+<!ATTLIST connection-property name CDATA #REQUIRED>
+
+<!-- Specify an SQL statement to execute whenever a connection is added to
+the connection pool.
+-->
+
+<!ELEMENT new-connection-sql (#PCDATA)>
+
+<!-- Specify an SQL statement to check validity of a pool connection. This
+may be called when managed connection is taken from pool for use.
+-->
+<!ELEMENT check-valid-connection-sql (#PCDATA)>
+
+<!-- An org.jboss.resource.adapter.jdbc.ValidConnectionChecker that provides
+a SQLException isValidConnection(Connection e) method to validate is a connection
+is valid. An exception means the connection is destroyed.
+This overrides the check-valid-connection-sql when present.
+
+Ex:
+<exception-sorter-class-name>
+ org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker
+</exception-sorter-class-name>
+-->
+<!ELEMENT valid-connection-checker-class-name (#PCDATA)>
+
+<!-- An org.jboss.resource.adapter.jdbc.ExceptionSorter that provides
+a boolean isExceptionFatal(SQLException e) method to validate is an exception
+should be broadcast to all javax.resource.spi.ConnectionEventListener as
+a connectionErrorOccurred message.
+
+Ex:
+<exception-sorter-class-name>
+ org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter
+</exception-sorter-class-name>
+<exception-sorter-class-name>
+ org.jboss.resource.adapter.jdbc.vendor.SybaseExceptionSorter
+</exception-sorter-class-name>
+-->
+<!ELEMENT exception-sorter-class-name (#PCDATA)>
+
+<!-- An org.jboss.resource.adapter.jdbc.StaleConnectionChecker that provides
+a boolean isStaleConnection(SQLException e) method which if it it returns
+true will wrap the exception in an
+org.jboss.resource.adapter.jdbc.StaleConnectionException
+which is a subclass of SQLException.
+
+Ex:
+<stale-connection-checker-class-name>
+ org.jboss.resource.adapter.jdbc.vendor.OracleStaleConnectionChecker
+</stale-connection-checker-class-name>
+-->
+<!ELEMENT stale-connection-checker-class-name (#PCDATA)>
+
+<!-- Whether to check for unclosed statements when a
+ connection is returned to the pool and result sets are
+ closed when a statement is closed/return to the prepared
+ statement cache.
+ valid values are:
+ false - do not track statements and results
+ true - track statements and result sets and warn when they are not closed
+ nowarn - track statements but do no warn about them being unclosed (the default)
+ e.g.
+ <track-statements>nowarn</track-statements>
+-->
+<!ELEMENT track-statements EMPTY>
+
+<!-- Whether to attempt to prefill the connection pool. Empty element denotes a false value.
+ e.g.
+ <prefill>true</prefill>
+ -->
+<!ELEMENT prefill (#PCDATA) >
+
+<!-- Whether fail a connection allocation on the first connection if it is invalid (true)
+ or keep trying until the pool is exhausted of all potential connections (false)
+
+ default false.
+ e.g.
+ <use-fast-fail>true</use-fast-fail>
+ -->
+<!ELEMENT use-fast-fail (#PCDATA) >
+
+<!-- The number of prepared statements per connection in an LRU cache
+-->
+<!ELEMENT prepared-statement-cache-size (#PCDATA)>
+
+<!-- whether to share prepare statements, i.e. whether asking for same
+ statement twice without closing uses the same underlying prepared statement.
+
+ The default is false.
+ e.g.
+ <share-prepared-statements/>
+-->
+<!ELEMENT share-prepared-statements EMPTY>
+
+<!-- whether to set the query timeout based on the time remaining until transaction timeout,
+ any configured query timeout will be used if there is no transaction.
+
+ The default is false.
+ e.g.
+ <set-tx-query-timeout/>
+-->
+<!ELEMENT set-tx-query-timeout EMPTY>
+
+<!-- Any configured query timeout in seconds
+
+ The default is no timeout
+ e.g. 5 minutes
+ <query-timeout>300</query-timeout>
+-->
+<!ELEMENT query-timeout (#PCDATA)>
+
+<!-- Any configured timeout for internal locks on the resource adapter objects in milli-seconds
+
+ The default is a 60 second timeout
+ e.g. 5 minutes
+ <use-try-lock>300000</use-try-lock>
+-->
+<!ELEMENT use-try-lock (#PCDATA)>
+
+<!-- The depends element specifies the JMX ObjectName string of a service
+that the connection manager services depend on.
+
+ Ex:
+ <depends>jboss:service=Hypersonic</depends>
+-->
+<!ELEMENT depends (#PCDATA)>
+
+<!-- The connection-factories element is the root of the generic jca adaptor section
+-->
+<!ELEMENT connection-factories (loader-repository? , (mbean | tx-connection-factory | no-tx-connection-factory)*)>
+
+<!-- The loader repository -->
+<!ELEMENT loader-repository ANY>
+
+<!-- Any embedded mbean -->
+<!ELEMENT mbean ANY>
+
+<!-- The tx-connection-factory element is used to configure generic resource
+adapters supporting transactions
+-->
+
+<!ELEMENT tx-connection-factory (jndi-name , (local-transaction | xa-transaction) ,
+track-connection-by-tx? , rar-name?, connection-definition?, config-property* ,
+(application-managed-security | security-domain | security-domain-and-application)? ,
+min-pool-size? , max-pool-size? , blocking-timeout-millis? , background-validation?, background-validation-millis? , idle-timeout-minutes? ,
+allocation-retry?, allocation-retry-wait-millis?, no-tx-separate-pools?, prefill?, use-fast-fail?, xa-resource-timeout?,
+metadata?, type-mapping?, depends*)>
+
+<!-- The no-tx-connection-factory element is used to configure generic resource
+adapters that do not support transactions
+-->
+<!ELEMENT no-tx-connection-factory (jndi-name , rar-name?, connection-definition? , config-property* ,
+(application-managed-security | security-domain | security-domain-and-application)? ,
+min-pool-size? , max-pool-size? , blocking-timeout-millis? , background-validation?, background-validation-millis? , idle-timeout-minutes? ,
+allocation-retry?, allocation-retry-wait-millis?, prefill?, use-fast-fail?, metadata?, type-mapping?, depends*)>
+
+<!-- The rar deployment to associate with the connection manager mbean.
+e.g. jms-ra.rar or myapplication.ear#my.rar for nested rars
+-->
+<!ELEMENT rar-name (#PCDATA)>
+
+<!-- The connection definition inside the rar deployment uniquely identified by the
+connection factory interface, e.g. javax.sql.DataSource
+-->
+<!ELEMENT connection-definition (#PCDATA)>
+
+<!-- Passed to XAResource.setTransactionTimeout()
+
+ Default is zero which does not invoke the setter
+ e.g. 5 minutes
+ <xa-resource-timeout>300</xa-resource-timeout>
+-->
+<!ELEMENT xa-resource-timeout (#PCDATA)>
+
+<!-- The xa-transaction element is used to mark that the tx-connection-factory
+supports XA transactions.
+-->
+<!ELEMENT xa-transaction EMPTY>
+
+<!-- The local-transaction element is used to mark that the tx-connection-factory
+supports local transactions.
+-->
+<!ELEMENT local-transaction EMPTY>
+
+<!-- The config-property specifies a mannaged connection factory property.
+-->
+<!ELEMENT config-property (#PCDATA)>
+
+<!-- The config-property name attribute gives the name of the connection
+factory property.
+-->
+<!ATTLIST config-property name CDATA #REQUIRED>
+
+<!-- The config-property type attribute gives the name of the connection
+factory property.
+-->
+<!ATTLIST config-property type CDATA #REQUIRED>
+
+<!-- The type mapping from conf/standardjboss.xml -->
+<!ELEMENT type-mapping (#PCDATA)>
+
+<!-- For backwards compatibility use type-mapping -->
+<!ELEMENT metadata (type-mapping)>
+
+<!--
+Use local-tx-datasource
+-->
+<!ELEMENT ha-local-tx-datasource (jndi-name, use-java-context?, connection-url, url-delimiter,
+driver-class, transaction-isolation? , connection-property* , user-name? , password?,
+(application-managed-security | security-domain | security-domain-and-application)? ,
+min-pool-size? , max-pool-size? , blocking-timeout-millis? , idle-timeout-minutes? ,
+allocation-retry?, allocation-retry-wait-millis?, no-tx-separate-pools? , new-connection-sql? , check-valid-connection-sql? ,
+valid-connection-checker-class-name? , exception-sorter-class-name? , track-statements? ,
+prepared-statement-cache-size?, share-prepared-statements? , set-tx-query-timeout?, query-timeout?, use-try-lock?,
+metadata?, type-mapping?, depends*)>
+
+<!--
+Use xa-datasource
+-->
+<!ELEMENT ha-xa-datasource (jndi-name , use-java-context?, track-connection-by-tx , xa-datasource-class ,
+xa-datasource-property* , url-property, url-delimiter, isSameRM-override-value? , transaction-isolation? ,
+user-name? , password? ,
+(application-managed-security | security-domain | security-domain-and-application)? ,
+min-pool-size? , max-pool-size? , blocking-timeout-millis? , idle-timeout-minutes? ,
+allocation-retry?, allocation-retry-wait-millis?, no-tx-separate-pools? , xa-resource-timeout? ,
+new-connection-sql? , check-valid-connection-sql? ,
+valid-connection-checker-class-name? , exception-sorter-class-name? , track-statements? ,
+prepared-statement-cache-size?, share-prepared-statements? , set-tx-query-timeout?, query-timeout?, use-try-lock?,
+type-mapping?, depends*)>
+
+<!-- Specifies the delimeter for URLs in connection-url for ha datasources
+-->
+<!ELEMENT url-delimiter (#PCDATA)>
+
+<!-- A class that implements org.jboss.resource.adapter.jdbc.URLSelectorStrategy
+-->
+<!ELEMENT url-selector-strategy-class-name (#PCDATA)>
+
+<!-- For HA XA datasource specifies the name of an xa-datasource-property that contains a list of URLs
+-->
+<!ELEMENT url-property (#PCDATA)>
Property changes on: trunk/seam/plugins/org.jboss.tools.seam.xml/dtds/jboss-ds_5_0.dtd
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/dtds/jboss-ds_5_0.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/dtds/jboss-ds_5_0.xsd (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/dtds/jboss-ds_5_0.xsd 2009-11-09 13:43:44 UTC (rev 18496)
@@ -0,0 +1,1014 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ $Id: jboss-ds_5_0.xsd 87129 2009-04-10 14:04:57Z ispringer $
+-->
+<!-- The datasources element is the root of the jdbc datasource configuration -->
+<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
+ targetNamespace="http://www.jboss.com/xml/ns/javaee"
+ xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+ xmlns:jboss="http://www.jboss.com/xml/ns/javaee"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ elementFormDefault="qualified"
+ attributeFormDefault="unqualified"
+ version="5.0">
+ <xsd:import namespace="http://java.sun.com/xml/ns/javaee" schemaLocation="javaee_5.xsd"/>
+ <xsd:include schemaLocation="jboss-common_5_1.xsd"/>
+
+ <xsd:group name="connectionPoolGroup">
+ <xsd:annotation>
+ <xsd:documentation>
+ connection pool group
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:element name="min-pool-size"
+ type="jboss:min-pool-sizeType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="max-pool-size"
+ type="jboss:max-pool-sizeType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="blocking-timeout-millis"
+ type="jboss:blocking-timeout-millisType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="background-validation"
+ type="jboss:background-validationType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="background-validation-millis"
+ type="jboss:background-validation-millisType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="idle-timeout-minutes"
+ type="jboss:idle-timeout-minutesType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="allocation-retry"
+ type="jboss:allocation-retryType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="allocation-retry-wait-millis"
+ type="jboss:allocation-retry-wait-millisType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ </xsd:sequence>
+ </xsd:group>
+
+ <xsd:group name="datasourceGroup">
+ <xsd:annotation>
+ <xsd:documentation>
+ dataSource group
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:element name="new-connection-sql"
+ type="jboss:new-connection-sqlType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="check-valid-connection-sql"
+ type="jboss:check-valid-connection-sqlType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="valid-connection-checker-class-name"
+ type="jboss:valid-connection-checker-class-nameType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="exception-sorter-class-name"
+ type="jboss:exception-sorter-class-nameType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="stale-connection-checker-class-name"
+ type="jboss:stale-connection-checker-class-nameType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="track-statements"
+ type="jboss:track-statementsType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ </xsd:sequence>
+ </xsd:group>
+
+ <xsd:group name="urlGroup">
+ <xsd:annotation>
+ <xsd:documentation>
+ URL group
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:element name="url-delimiter"
+ type="jboss:url-delimiterType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="url-selector-strategy-class-name"
+ type="jboss:url-selector-strategy-class-nameType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ </xsd:sequence>
+ </xsd:group>
+ <xsd:group name="userGroup">
+ <xsd:annotation>
+ <xsd:documentation>
+ user password group
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:element name="user-name"
+ type="jboss:user-nameType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="password"
+ type="jboss:passwordType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ </xsd:sequence>
+ </xsd:group>
+ <xsd:group name="additionGroup">
+ <xsd:annotation>
+ <xsd:documentation>
+ addition group
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:element name="prepared-statement-cache-size"
+ type="jboss:prepared-statement-cache-sizeType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="share-prepared-statements"
+ type="jboss:share-prepared-statementsType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="set-tx-query-timeout"
+ type="jboss:set-tx-query-timeoutType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="query-timeout"
+ type="jboss:query-timeoutType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="use-try-lock"
+ type="jboss:use-try-lockType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ </xsd:sequence>
+ </xsd:group>
+
+ <xsd:group name="connectionFactoryGroup">
+ <xsd:annotation>
+ <xsd:documentation>
+ connection factory group
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:element name="rar-name"
+ type="jboss:rar-nameType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="connection-definition"
+ type="jboss:connection-definitionType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="config-property"
+ type="jboss:config-propertyType"
+ minOccurs="0"
+ maxOccurs="unbounded"/>
+ </xsd:sequence>
+ </xsd:group>
+
+ <xsd:group name="optionGroup">
+ <xsd:annotation>
+ <xsd:documentation>
+ option group
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:element name="metadata"
+ type="jboss:metadataType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="type-mapping"
+ type="jboss:type-mappingType"
+ minOccurs="0"
+ maxOccurs="1"/>
+ <xsd:element name="depends"
+ type="jboss:dependsType"
+ minOccurs="0"
+ maxOccurs="unbounded"/>
+ </xsd:sequence>
+ </xsd:group>
+
+ <xsd:group name="securityGroup">
+ <xsd:annotation>
+ <xsd:documentation>
+ Security type
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:choice>
+ <xsd:element name="application-managed-security"
+ type="javaee:emptyType" minOccurs="0">
+ </xsd:element>
+ <xsd:element name="security-domain"
+ type="jboss:security-domainType" minOccurs="0"/>
+ <xsd:element name="security-domain-and-application"
+ type="jboss:security-domain-and-applicationType" minOccurs="0"/>
+ </xsd:choice>
+ </xsd:group>
+
+
+ <!--
+ The tx-connection-factory element is used to configure generic resource
+ adapters supporting transactions
+ -->
+ <xsd:complexType name="tx-connection-factory">
+ <xsd:sequence>
+ <xsd:element name="jndi-name"
+ type="jboss:jndi-nameType"/>
+ <xsd:choice>
+ <xsd:element name="local-transaction"
+ type="javaee:emptyType"/>
+ <xsd:element name="xa-transaction"
+ type="javaee:emptyType"/>
+ </xsd:choice>
+ <xsd:element name="track-connection-by-tx"
+ type="javaee:emptyType" minOccurs="0" maxOccurs="1"/>
+
+ <xsd:group ref="jboss:connectionFactoryGroup"/>
+ <xsd:group ref="jboss:securityGroup"/>
+ <xsd:group ref="jboss:connectionPoolGroup"/>
+
+ <xsd:element name="no-tx-separate-pools"
+ type="javaee:emptyType" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="prefill"
+ type="jboss:prefillType" minOccurs="0" maxOccurs="1"/>
+
+ <xsd:element name="xa-resource-timeout"
+ type="jboss:xa-resource-timeoutType" minOccurs="0" maxOccurs="1"/>
+ <xsd:group ref="jboss:optionGroup"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+
+ <!--
+ The no-tx-connection-factory element is used to configure generic resource
+ adapters that do not support transactions
+ -->
+ <xsd:complexType name="no-tx-connection-factory">
+ <xsd:sequence>
+ <xsd:element name="jndi-name"
+ type="jboss:jndi-nameType"/>
+ <xsd:group ref="jboss:connectionFactoryGroup"/>
+ <xsd:group ref="jboss:securityGroup"/>
+ <xsd:group ref="jboss:connectionPoolGroup"/>
+ <xsd:element name="prefill"
+ type="jboss:prefillType" minOccurs="0" maxOccurs="1"/>
+ <xsd:group ref="jboss:optionGroup"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <!-- Specify a jca-jdbc non-XADatasource (local) wrapper, using no transactions -->
+ <xsd:complexType name="no-tx-datasource">
+ <xsd:sequence>
+ <xsd:element name="jndi-name"
+ type="jboss:jndi-nameType"/>
+ <xsd:element name="use-java-context"
+ type="jboss:use-java-contextType" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="connection-url"
+ type="jboss:connection-urlType"/>
+ <xsd:group ref="jboss:urlGroup"/>
+
+ <xsd:element name="driver-class"
+ type="jboss:driver-classType"/>
+ <xsd:element name="connection-property"
+ type="jboss:connection-propertyType" minOccurs="0" maxOccurs="unbounded"/>
+ <xsd:group ref="jboss:userGroup"/>
+ <xsd:group ref="jboss:securityGroup"/>
+ <xsd:group ref="jboss:connectionPoolGroup"/>
+
+ <xsd:element name="validate-on-match"
+ type="jboss:validate-on-matchType" minOccurs="0" maxOccurs="1"/>
+ <xsd:group ref="jboss:datasourceGroup"/>
+ <xsd:element name="prefill"
+ type="jboss:prefillType" minOccurs="0" maxOccurs="1"/>
+ <xsd:group ref="jboss:additionGroup"/>
+
+ <xsd:group ref="jboss:optionGroup"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <!--
+ Specify a jca-jdbc non-XADatasource (local) wrapper, using local
+ transactions
+ -->
+ <xsd:complexType name="local-tx-datasource">
+ <xsd:sequence>
+ <xsd:element name="jndi-name"
+ type="jboss:jndi-nameType"/>
+ <xsd:element name="use-java-context"
+ type="jboss:use-java-contextType" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="connection-url"
+ type="jboss:connection-urlType"/>
+ <xsd:group ref="jboss:urlGroup"/>
+
+ <xsd:element name="driver-class"
+ type="jboss:driver-classType"/>
+ <xsd:element name="transaction-isolation"
+ type="jboss:transaction-isolationType" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="connection-property"
+ type="jboss:connection-propertyType" minOccurs="0" maxOccurs="unbounded"/>
+ <xsd:group ref="jboss:userGroup"/>
+ <xsd:group ref="jboss:securityGroup"/>
+ <xsd:group ref="jboss:connectionPoolGroup"/>
+
+ <xsd:element name="validate-on-match"
+ type="jboss:validate-on-matchType" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="no-tx-separate-pools"
+ type="javaee:emptyType" minOccurs="0" maxOccurs="1"/>
+ <xsd:group ref="jboss:datasourceGroup"/>
+ <xsd:element name="prefill"
+ type="jboss:prefillType" minOccurs="0" maxOccurs="1"/>
+ <xsd:group ref="jboss:additionGroup"/>
+
+ <xsd:group ref="jboss:optionGroup"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <!-- Specify a jca-jdbc XADatasource wrapper -->
+ <xsd:complexType name="xa-datasource">
+ <xsd:sequence>
+ <xsd:element name="jndi-name"
+ type="jboss:jndi-nameType"/>
+ <xsd:element name="use-java-context"
+ type="jboss:use-java-contextType" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="track-connection-by-tx"
+ type="javaee:emptyType" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="interleaving"
+ type="javaee:emptyType" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="xa-datasource-class"
+ type="jboss:xa-datasource-classType"/>
+ <xsd:element name="xa-datasource-property"
+ type="jboss:xa-datasource-propertyType" minOccurs="0" maxOccurs="unbounded"/>
+
+ <xsd:element name="url-property"
+ type="jboss:url-propertyType" minOccurs="0" maxOccurs="1"/>
+ <xsd:group ref="jboss:urlGroup"/>
+
+ <xsd:element name="isSameRM-override-value"
+ type="jboss:isSameRM-override-valueType" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="transaction-isolation"
+ type="jboss:transaction-isolationType" minOccurs="0" maxOccurs="1"/>
+ <xsd:group ref="jboss:userGroup"/>
+
+ <xsd:group ref="jboss:securityGroup"/>
+ <xsd:group ref="jboss:connectionPoolGroup"/>
+
+ <xsd:element name="validate-on-match"
+ type="jboss:validate-on-matchType" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="no-tx-separate-pools"
+ type="javaee:emptyType" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="xa-resource-timeout"
+ type="jboss:xa-resource-timeoutType" minOccurs="0" maxOccurs="1"/>
+ <xsd:group ref="jboss:datasourceGroup"/>
+ <xsd:element name="prefill"
+ type="jboss:prefillType" minOccurs="0" maxOccurs="1"/>
+ <xsd:group ref="jboss:additionGroup"/>
+
+ <xsd:group ref="jboss:optionGroup"/>
+
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:element name="datasources">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="loader-repository"
+ type="jboss:loader-repositoryType" minOccurs="0" maxOccurs="1"/>
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="local-tx-datasource" type="jboss:local-tx-datasource"/>
+ <xsd:element name="xa-datasource" type="jboss:xa-datasource"/>
+ <xsd:element name="no-tx-datasource" type="jboss:no-tx-datasource"/>
+ </xsd:choice>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+
+ <!-- The connection-factories element is the root of the generic jca adaptor section -->
+ <xsd:element name="connection-factories">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="loader-repository"
+ type="jboss:loader-repositoryType" minOccurs="0" maxOccurs="1"/>
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="tx-connection-factory" type="jboss:tx-connection-factory"/>
+ <xsd:element name="no-tx-connection-factory" type="jboss:no-tx-connection-factory"/>
+ </xsd:choice>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+
+ <!--
+ The JNDI name under which the DataSource wrapper will be bound. Note that
+ this name is relative to the "java:/" prefix unless use-java-context is false.
+ Ex:
+ <jndi-name>DefaultDS</jndi-name>
+ -->
+ <xsd:complexType name="jndi-nameType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:string"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ Setting this to false will bind the DataSource into global jndi
+ Ex:
+ <use-java-context>false</use-java-context>
+ -->
+ <xsd:complexType name="use-java-contextType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:true-falseType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ The JDBC driver connection URL string
+ Ex:
+ <connection-url>jdbc:hsqldb:hsql://localhost:1701</connection-url>
+ -->
+ <xsd:complexType name="connection-urlType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:string"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ The fully qualifed name of the JDBC driver class
+ Ex:
+ <driver-class>org.hsqldb.jdbcDriver</driver-class>
+ -->
+ <xsd:complexType name="driver-classType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:fully-qualified-classType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ Set java.sql.Connection transaction isolation level to use.
+ The constants defined in the interface Connection are the possible transaction
+ isolation levels and include:
+ TRANSACTION_READ_UNCOMMITTED
+ TRANSACTION_READ_COMMITTED
+ TRANSACTION_REPEATABLE_READ
+ TRANSACTION_SERIALIZABLE
+ TRANSACTION_NONE
+
+ Ex:
+ <transaction-isolation>TRANSACTION_SERIALIZABLE</transaction-isoation>
+ -->
+ <xsd:complexType name="transaction-isolationType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:string">
+ <xsd:enumeration value="TRANSACTION_READ_UNCOMMITTED"/>
+ <xsd:enumeration value="TRANSACTION_READ_COMMITTED"/>
+ <xsd:enumeration value="TRANSACTION_REPEATABLE_READ"/>
+ <xsd:enumeration value="TRANSACTION_SERIALIZABLE"/>
+ <xsd:enumeration value="TRANSACTION_NONE"/>
+ </xsd:restriction>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ Specify the default username used when creating a new connection.
+ Ex:
+ <user-name>sa</user-name>
+ -->
+ <xsd:complexType name="user-nameType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:string"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ Specify the default password used when creating a new connection.
+ Ex:
+ <password>sa-pass</password>
+ -->
+ <xsd:complexType name="passwordType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:string"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ Indicates that app supplied parameters (such as from getConnection(user, pw))
+ are used to distinguish connections in the pool.
+ Ex:
+ <application-managed-security/>
+ -->
+
+ <!--
+ Indicates Subject (from security domain) are used to distinguish connections in the pool.
+ The content of the security-domain is the name of the JAAS security manager that will handle
+ authentication. This name correlates to the JAAS login-config.xml descriptor
+ application-policy/name attribute.
+
+ Ex:
+ <security-domain>HsqlDbRealm</security-domain>
+
+ <xsd:complexType name="security-domainType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:string"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+ -->
+
+ <!--
+ Indicates that either app supplied parameters (such as from
+ getConnection(user, pw)) or Subject (from security domain) are used to
+ distinguish connections in the pool. The content of the
+ security-domain is the name of the JAAS security manager that will handle
+ authentication. This name correlates to the JAAS login-config.xml descriptor
+ application-policy/name attribute.
+
+ Ex:
+ <security-domain-and-application>HsqlDbRealm</security-domain-and-application>
+ -->
+ <xsd:complexType name="security-domain-and-applicationType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:string"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ Whether to use separete pools for connection retrieved in a transaction
+ and those retieved outside a transaction
+ e.g.
+ <no-tx-separate-pools/>
+ -->
+
+ <!--
+ The min-pool-size element indicates the minimum number of connections a
+ pool should hold. These are not created until a Subject is known from a
+ request for a connection. This default to 0.
+
+ Ex:
+ <min-pool-size>1</min-pool-size>
+ -->
+ <xsd:complexType name="min-pool-sizeType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:xsdIntegerType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ The max-pool-size element indicates the maximum number of connections for a
+ pool. No more than MaxSize connections will be created in each sub-pool. This
+ defaults to 20.
+ -->
+ <xsd:complexType name="max-pool-sizeType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:xsdIntegerType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ The blocking-timeout-millis element indicates the maximum time in
+ milliseconds to block while waiting for a connection before throwing an
+ exception. Note that this blocks only while waiting for a permit for a
+ connection, and will never throw an exception if creating a new connection
+ takes an inordinately long time. The default is 30000 (30 seconds).
+ -->
+ <xsd:complexType name="blocking-timeout-millisType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:xsdIntegerType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ The idle-timeout-minutes element indicates the maximum time in
+ minutes a connection may be idle before being closed. The actual maximum time
+ depends also on the IdleRemover scan time, which is 1/2 the smallest
+ idle-timeout-minutes of any pool.
+ -->
+ <xsd:complexType name="idle-timeout-minutesType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:xsdIntegerType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ The allocation retry element indicates the number of times that allocating
+ a connection should be tried before throwing an exception. The default is 0.
+ -->
+ <xsd:complexType name="allocation-retryType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:xsdIntegerType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ The allocation retry wait millis element indicates the time in
+ milliseconds to wait between retrying to allocate a connection.
+ The default is 5000 (5 seconds).
+ -->
+ <xsd:complexType name="allocation-retry-wait-millisType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:xsdIntegerType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ The validate-on-match element indicates whether or not connection level validation should be done when a connection factory attempts to
+ match a managed connection for a given set. This is typically exclusive to the use of background validation
+ -->
+ <xsd:complexType name="validate-on-matchType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:true-falseType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ An element to specify that connections should be validated on a background thread versus being validated
+ prior to use
+ -->
+ <xsd:complexType name="background-validationType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:true-falseType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ The background-validation-millis element specifies the amount of time, in milliseconds, that background validation
+ will run.
+ -->
+ <xsd:complexType name="background-validation-millisType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:xsdIntegerType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ An element to specify that all intermediate end(suspend) and
+ start(resume) calls. Also, all work on one tx will go through one
+ connection.
+ A side effect of this (currently at least) is that a connection will only
+ be usable by one tx until the tx commits.
+ Ex:
+ <track-connection-by-tx/>
+ DEPRECATED: this element is now deprecated (it is assumed to present by default, also see <interleaving/>)
+ -->
+
+ <!--
+ An element to enable interleaving for XA connection factories
+ Ex:
+ <interleaving/>
+ -->
+
+
+ <!--
+ The fully qualifed name of the javax.sql.XADataSource implementation class.
+ Ex:
+ <xa-datasource-class>com.informix.jdbcx.IfxXADataSource</xa-datasource-class>
+ -->
+ <xsd:complexType name="xa-datasource-classType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:fully-qualified-classType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ Specify a property to assign to the XADataSource implementation class.
+ Each property is identified by the name attribute and the property value is
+ given by the xa-datasource-property element content. The property is mapped
+ onto the XADataSource implementation by looking for a JavaBeans style
+ getter method for the property name. If found, the value of the property is
+ set using the JavaBeans setter with the element text translated to the true
+ property type using the java.beans.PropertyEditor for the type.
+
+ Ex:
+ <xa-datasource-property name="IfxWAITTIME">10</xa-datasource-property>
+ <xa-datasource-property name="IfxIFXHOST">myhost.mydomain.com</xa-datasource-property>
+ <xa-datasource-property name="PortNumber">1557</xa-datasource-property>
+ <xa-datasource-property name="DatabaseName">mydb</xa-datasource-property>
+ <xa-datasource-property name="ServerName">myserver</xa-datasource-property>
+ -->
+ <xsd:complexType name="xa-datasource-propertyType" mixed="true">
+ <xsd:attribute name="name" use="required"/>
+ </xsd:complexType>
+
+ <!--
+ The xa-datasource-property name attribute specifies the name of the
+ XADataSource attribute the xa-datasource-property element content provides
+ the value of.
+ -->
+ <!--
+ The isSameRM-override-value element allows one to unconditionally set
+ whether the javax.transaction.xa.XAResource.isSameRM(XAResource) returns
+ true or false.
+
+ Ex:
+ <isSameRM-override-value>true</isSameRM-override-value>
+ -->
+ <xsd:complexType name="isSameRM-override-valueType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:true-falseType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ The connection-property element allows you to pass in arbitrary connection
+ properties to the Driver.connect(url, props) method. Each connection-property
+ specifies a string name/value pair with the property name coming from the
+ name attribute and the value coming from the element content.
+
+ Ex:
+ <connection-property name="char.encoding">UTF-8</connection-property>
+ -->
+ <xsd:complexType name="connection-propertyType" mixed="true">
+ <xsd:attribute name="name" use="required"/>
+ </xsd:complexType>
+
+ <!--
+ The connection-property name attribute gives the name of the connection
+ property.
+ -->
+ <!--
+ Specify an SQL statement to execute whenever a connection is added to
+ the connection pool.
+ -->
+ <xsd:complexType name="new-connection-sqlType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:string"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ Specify an SQL statement to check validity of a pool connection. This
+ may be called when managed connection is taken from pool for use.
+ -->
+ <xsd:complexType name="check-valid-connection-sqlType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:string"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ An org.jboss.resource.adapter.jdbc.ValidConnectionChecker that provides
+ a SQLException isValidConnection(Connection e) method to validate is a connection
+ is valid. An exception means the connection is destroyed.
+ This overrides the check-valid-connection-sql when present.
+
+ Ex:
+ <exception-sorter-class-name>
+ org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker
+ </exception-sorter-class-name>
+ -->
+ <xsd:complexType name="valid-connection-checker-class-nameType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:fully-qualified-classType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ An org.jboss.resource.adapter.jdbc.ExceptionSorter that provides
+ a boolean isExceptionFatal(SQLException e) method to validate is an exception
+ should be broadcast to all javax.resource.spi.ConnectionEventListener as
+ a connectionErrorOccurred message.
+
+ Ex:
+ <exception-sorter-class-name>
+ org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter
+ </exception-sorter-class-name>
+ <exception-sorter-class-name>
+ org.jboss.resource.adapter.jdbc.vendor.SybaseExceptionSorter
+ </exception-sorter-class-name>
+ -->
+ <xsd:complexType name="exception-sorter-class-nameType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:fully-qualified-classType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ An org.jboss.resource.adapter.jdbc.StaleConnectionChecker that provides
+ a boolean isStaleConnection(SQLException e) method which if it it returns
+ true will wrap the exception in an
+ org.jboss.resource.adapter.jdbc.StaleConnectionException
+ which is a subclass of SQLException.
+
+ Ex:
+ <stale-connection-checker-class-name>
+ org.jboss.resource.adapter.jdbc.vendor.OracleStaleConnectionChecker
+ </stale-connection-checker-class-name>
+ -->
+ <xsd:complexType name="stale-connection-checker-class-nameType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:fully-qualified-classType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ Whether to check for unclosed statements when a
+ connection is returned to the pool and result sets are
+ closed when a statement is closed/return to the prepared
+ statement cache.
+ valid values are:
+ false - do not track statements and results
+ true - track statements and result sets and warn when they are not closed
+ nowarn - track statements but do no warn about them being unclosed (the default)
+ e.g.
+ <track-statements>nowarn</track-statements>
+ -->
+ <xsd:complexType name="track-statementsType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:string"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ Whether to attempt to prefill the connection pool. Empty element denotes a false value.
+ e.g.
+ <prefill>true</prefill>
+ -->
+ <xsd:complexType name="prefillType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:true-falseType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ Whether fail a connection allocation on the first connection if it is invalid (true)
+ or keep trying until the pool is exhausted of all potential connections (false)
+
+ default false.
+ e.g.
+ <use-fast-fail>true</use-fast-fail>
+ -->
+ <xsd:complexType name="use-fast-failType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:true-falseType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!-- The number of prepared statements per connection in an LRU cache -->
+ <xsd:complexType name="prepared-statement-cache-sizeType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:xsdIntegerType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ whether to share prepare statements, i.e. whether asking for same
+ statement twice without closing uses the same underlying prepared statement.
+
+ The default is false.
+ e.g.
+ <share-prepared-statements/>
+ -->
+ <xsd:complexType name="share-prepared-statementsType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:true-falseType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ whether to set the query timeout based on the time remaining until transaction timeout,
+ any configured query timeout will be used if there is no transaction.
+
+ The default is false.
+ e.g.
+ <set-tx-query-timeout/>
+ -->
+ <xsd:complexType name="set-tx-query-timeoutType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:true-falseType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ Any configured query timeout in seconds
+
+ The default is no timeout
+ e.g. 5 minutes
+ <query-timeout>300</query-timeout>
+ -->
+ <xsd:complexType name="query-timeoutType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:xsdIntegerType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ Any configured timeout for internal locks on the resource adapter objects in milli-seconds
+ restriction
+ The default is a 60 second timeout
+ e.g. 5 minutes
+ <use-try-lock>300000</use-try-lock>
+ -->
+ <xsd:complexType name="use-try-lockType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:xsdIntegerType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ The rar deployment to associate with the connection manager mbean.
+ e.g. jms-ra.rar or myapplication.ear#my.rar for nested rars
+ -->
+ <xsd:complexType name="rar-nameType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:string"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ The connection definition inside the rar deployment uniquely identified by the
+ connection factory interface, e.g. javax.sql.DataSource
+ -->
+ <xsd:complexType name="connection-definitionType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:fully-qualified-classType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ Passed to XAResource.setTransactionTimeout()
+
+ Default is zero which does not invoke the setter
+ e.g. 5 minutes
+ <xa-resource-timeout>300</xa-resource-timeout>
+ -->
+ <xsd:complexType name="xa-resource-timeoutType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:xsdIntegerType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!--
+ The xa-transaction element is used to mark that the tx-connection-factory
+ supports XA transactions.
+ -->
+
+ <!--
+ The local-transaction element is used to mark that the tx-connection-factory
+ supports local transactions.
+ -->
+
+ <!-- The config-property specifies a mannaged connection factory property. -->
+ <xsd:complexType name="config-propertyType">
+ <xsd:simpleContent>
+ <xsd:extension base="javaee:string">
+ <xsd:attribute name="name" type="xsd:string" use="required"/>
+ <xsd:attribute name="type" type="xsd:string" use="required"/>
+ </xsd:extension>
+ </xsd:simpleContent>
+
+ </xsd:complexType>
+
+ <!--
+ The config-property name attribute gives the name of the connection
+ factory property.
+ -->
+ <!--
+ The config-property type attribute gives the name of the connection
+ factory property.
+ -->
+ <!-- The type mapping from conf/standardjboss.xml -->
+ <xsd:complexType name="type-mappingType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:string"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!-- For backwards compatibility use type-mapping -->
+ <xsd:complexType name="metadataType">
+ <xsd:sequence>
+ <xsd:element name="type-mapping"
+ type="jboss:type-mappingType"
+ minOccurs="0"
+ maxOccurs="unbounded"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+
+
+ <!-- Specifies the delimiter for URLs in connection-url for HA datasources -->
+ <xsd:complexType name="url-delimiterType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:string"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!-- A class that implements org.jboss.resource.adapter.jdbc.URLSelectorStrategy -->
+ <xsd:complexType name="url-selector-strategy-class-nameType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:fully-qualified-classType"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <!-- For HA XA datasources, specifies the name of an xa-datasource-property that contains a list of URLs -->
+ <xsd:complexType name="url-propertyType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:string"/>
+ </xsd:simpleContent>
+ </xsd:complexType>
+</xsd:schema>
Property changes on: trunk/seam/plugins/org.jboss.tools.seam.xml/dtds/jboss-ds_5_0.xsd
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml 2009-11-09 12:11:00 UTC (rev 18495)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml 2009-11-09 13:43:44 UTC (rev 18496)
@@ -30,7 +30,14 @@
<keys path="help/keys-seam-lists.properties"/>
</extension>
+ <extension point="org.jboss.tools.common.model.meta">
+ <meta path="meta/ds.meta"/>
+ </extension>
+ <extension point="org.jboss.tools.common.model.keys">
+ <keys path="help/keys-ds.properties"/>
+ </extension>
+
<extension point="org.jboss.tools.common.model.classes">
<xclass id="org.jboss.tools.seam.xml.components.model.FileSeamComponentsImpl"
class="org.jboss.tools.seam.xml.components.model.FileSeamComponentsImpl"/>
@@ -377,4 +384,11 @@
</catalogContribution>
</extension>
+ <extension point="org.jboss.tools.common.model.classes">
+ <xclass id="org.jboss.tools.seam.xml.ds.model.DSEntityRecognizer"
+ class="org.jboss.tools.seam.xml.ds.model.DSEntityRecognizer"/>
+ <xclass id="org.jboss.tools.seam.xml.ds.model.DSFileLoader"
+ class="org.jboss.tools.seam.xml.ds.model.DSFileLoader"/>
+ </extension>
+
</plugin>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/resources/help/keys-ds.properties
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/resources/help/keys-ds.properties (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/resources/help/keys-ds.properties 2009-11-09 13:43:44 UTC (rev 18496)
@@ -0,0 +1,2 @@
+FileDSConnectionFactories.editorTitle=Connection Factories 1.5 Editor
+FileDSDatasources.editorTitle=Datasources 1.5 Editor
\ No newline at end of file
Property changes on: trunk/seam/plugins/org.jboss.tools.seam.xml/resources/help/keys-ds.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/ds.meta
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/ds.meta (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/ds.meta 2009-11-09 13:43:44 UTC (rev 18496)
@@ -0,0 +1,759 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE XModelEntityGroup PUBLIC "-//Red Hat, Inc.//DTD Meta 1.0//EN"
+ "meta.dtd">
+<XModelEntityGroup>
+ <VERSION DEPENDS="Model:1.0" MODULE="Seam" VERSION="1.0"/>
+ <MAPPINGS>
+ <MAPPING name="FileVersions">
+ <PAIR name="DSConnectionFactories1.5" value="FileDSConnectionFactories"/>
+ <PAIR name="DSConnectionFactories5.0dtd" value="FileDSConnectionFactories50d"/>
+ <PAIR name="DSDatasources1.5" value="FileDSDatasources"/>
+ <PAIR name="DSDatasources5.0dtd" value="FileDSDatasources50d"/>
+ </MAPPING>
+ <MAPPING name="Recognizers">
+ <PAIR name="xml$42" value="org.jboss.tools.seam.xml.ds.model.DSEntityRecognizer"/>
+ </MAPPING>
+ </MAPPINGS>
+ <ICONS>
+ <GROUP name="action">
+ <GROUP name="new">
+ <GROUP name="ds">
+ <ICON name="case" path="images/jsf/transition.gif"/>
+ <ICON name="faces-config" path="images/jsf/new-jsf-config.gif"/>
+ </GROUP>
+ </GROUP>
+ </GROUP>
+ <GROUP name="main">
+ <GROUP name="ds">
+ <ICON name="action-mappings" path="images/struts/action_mappings.gif"/>
+ <ICON name="application" path="images/jsf/web_application.gif"/>
+ <ICON name="attribute" path="images/jsf/attribute.gif"/>
+ <ICON name="bean" path="images/struts/form_bean.gif"/>
+ <ICON name="component" path="images/struts/plug_in.gif"/>
+ <ICON name="components" path="images/struts/plug_in_folder.gif"/>
+ <ICON name="converter" path="images/jsf/convertor.gif"/>
+ <ICON name="data-source" path="images/struts/data_source.gif"/>
+ <ICON name="event" path="images/webxml/listener.gif"/>
+ <ICON name="exception" path="images/struts/exception.gif"/>
+ <ICON name="extension" path="images/palette/any-tag.gif"/>
+ <ICON name="facet" path="images/jsf/facet.gif"/>
+ <ICON name="factory" path="images/jsf/factory.gif"/>
+ <ICON name="file" path="images/jsf/jsf-config.gif"/>
+ <ICON name="property" path="images/java/property.gif"/>
+ <ICON name="rule" path="images/struts/action.gif"/>
+ <ICON name="rules" path="images/struts/action_mappings.gif"/>
+ <ICON name="validator" path="images/struts/pro/validator.gif"/>
+ <ICON name="validators" path="images/struts/pro/validator_global.gif"/>
+ </GROUP>
+ </GROUP>
+ </ICONS>
+ <GlobalActions kind="list"/>
+ <XModelEntity ImplementingClass="%Custom%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.SeamXMLFormLayoutData;saveDefault=false"
+ XMLSUBPATH="loader-repository" name="DSLoaderRepository">
+ <XChildrenEntities>
+ <XChildEntity name="AnyElement"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.seam.event" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="loader-repository" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="id=true;category=general"
+ default="Loader Repository" name="name" visibility="false"/>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions">
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="entity=AnyElement" WizardClassName="%Default%"
+ displayName="Add Tag..." kind="action" name="CreateTag">
+ <EntityData EntityName="AnyElementNew">
+ <AttributeData AttributeName="tag"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="Create" kind="list" name="EditActions"/>
+ <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
+ <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
+ ICON="action.copy" displayName="Copy" kind="action" name="Copy"/>
+ <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
+ ICON="action.cut" displayName="Cut" kind="action" name="Cut"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
+ ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem displayName="move" kind="list" name="MoveActions">
+ <XActionItem HIDE="always" HandlerClassName="%Move%"
+ ICON="action.move" displayName="Move" kind="action" name="Move"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%Custom%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.SeamXMLFormLayoutData"
+ XMLSUBPATH="mbean" name="DSMBean">
+ <XChildrenEntities>
+ <XChildEntity name="AnyElement"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.seam.event" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="mbean" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="id=true;category=general"
+ default="Loader Repository" name="_id_"/>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions">
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="entity=AnyElement" WizardClassName="%Default%"
+ displayName="Add Tag..." kind="action" name="CreateTag">
+ <EntityData EntityName="AnyElementNew">
+ <AttributeData AttributeName="tag"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="Create" kind="list" name="EditActions"/>
+ <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
+ <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
+ ICON="action.copy" displayName="Copy" kind="action" name="Copy"/>
+ <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
+ ICON="action.cut" displayName="Cut" kind="action" name="Cut"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
+ ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem displayName="move" kind="list" name="MoveActions">
+ <XActionItem HIDE="always" HandlerClassName="%Move%"
+ ICON="action.move" displayName="Move" kind="action" name="Move"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity
+ ImplementationLoadingClass="org.jboss.tools.seam.xml.ds.model.DSFileLoader"
+ ImplementingClass="org.jboss.tools.common.model.filesystems.impl.SimpleFileImpl"
+ ObjectEditorClass="%XML%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.SeamXMLFormLayoutData"
+ XMLSUBPATH="connection-factories" name="FileDSConnectionFactories">
+ <XChildrenEntities>
+ <XChildEntity maxCount="1" name="DSLoaderRepository" required="yes"/>
+ <XChildEntity name="DSMBean"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.ds.file" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="connection-factories" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general" name="name" xmlname="NAME"/>
+ <XModelAttribute default="xml" name="extension" xmlname="EXTENSION">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ <XModelAttribute loader="ElementType" name="_lateload" visibility="false">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute default="-//JBoss//DTD JBOSS JCA Config 1.5//EN"
+ name="publicId" visibility="false"/>
+ <XModelAttribute
+ default="http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd"
+ name="systemId" visibility="false"/>
+ <XModelAttribute default="no" name="isIncorrect" visibility="false">
+ <Constraint loader="List">
+ <value name="yes"/>
+ <value name="no"/>
+ </Constraint>
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute name="incorrectBody" visibility="false"/>
+ <XModelAttribute name="encoding">
+ <Constraint loader="ListString">
+ <value name="ISO-8859-1"/>
+ <value name="UTF-8"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem BaseActionName="Open" HandlerClassName="%Open%"
+ ICON="action.empty" displayName="Open" kind="action" name="Open"/>
+ <XActionItem displayName="Open With" group="1" kind="list" name="OpenWith">
+ <XActionItem HIDE="always"
+ HandlerClassName="org.jboss.tools.common.meta.action.impl.handlers.OpenWithExternalHandler"
+ ICON="action.empty" PROPERTIES="extension=struts-config"
+ displayName="Open with External Program" kind="action" name="OpenWithSelected"/>
+ <XActionItem HIDE="always"
+ HandlerClassName="org.jboss.tools.common.meta.action.impl.handlers.OpenWithChoiceHandler"
+ ICON="action.empty" PROPERTIES="extension=struts-config"
+ displayName="Choose Program..." kind="action" name="OpenWithChoice">
+ <EntityData EntityName="OpenWithHelper">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="default"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
+ <XActionItem kind="list" name="EditActions">
+ <XActionItem HIDE="always"
+ HandlerClassName="org.jboss.tools.jsf.model.handlers.RenameFacesConfigHandler"
+ ICON="action.empty" PROPERTIES="validator.edit=true"
+ WizardClassName="%Default%" displayName="Rename..." kind="action" name="Rename">
+ <EntityData EntityName="FacesConfig">
+ <AttributeData AttributeName="name"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem
+ HandlerClassName="org.jboss.tools.common.model.filesystems.impl.handlers.RenameEclipseFileHandler"
+ ICON="action.empty" displayName="Rename..." kind="action" name="RenameEclipse"/>
+ </XActionItem>
+ <XActionItem kind="list" name="SaveActions">
+ <XActionItem HIDE="always" HandlerClassName="%SaveFile%"
+ ICON="action.save" displayName="Save" kind="action" name="Save"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="New" group="1"
+ kind="list" name="CreateActions"/>
+ <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
+ <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
+ ICON="action.copy" displayName="Copy" kind="action" name="Copy"/>
+ <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
+ ICON="action.cut" displayName="Cut" kind="action" name="Cut"/>
+ <XActionItem BaseActionName="Paste" HandlerClassName="%Paste%"
+ ICON="action.paste" displayName="Paste" kind="action" name="Paste"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete"
+ HandlerClassName="org.jboss.tools.jsf.model.handlers.DeleteFacesConfigHandler"
+ ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem kind="list" name="DiscardActions">
+ <XActionItem HIDE="always"
+ HandlerClassName="org.jboss.tools.jsf.model.handlers.DiscardConfigHandler"
+ ICON="action.delete"
+ PROPERTIES="significanceMessageClass=org.jboss.tools.common.model.filesystems.impl.DiscardFileSignificanceMessage"
+ displayName="Discard Changes" kind="action" name="Discard"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity
+ ImplementationLoadingClass="org.jboss.tools.seam.xml.ds.model.DSFileLoader"
+ ImplementingClass="org.jboss.tools.common.model.filesystems.impl.SimpleFileImpl"
+ ObjectEditorClass="%XML%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.SeamXMLFormLayoutData"
+ XMLSUBPATH="connection-factories" name="FileDSConnectionFactories50d">
+ <XChildrenEntities>
+ <XChildEntity maxCount="1" name="DSLoaderRepository" required="yes"/>
+ <XChildEntity name="DSMBean"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.ds.file" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="connection-factories" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general" name="name" xmlname="NAME"/>
+ <XModelAttribute default="xml" name="extension" xmlname="EXTENSION">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ <XModelAttribute loader="ElementType" name="_lateload" visibility="false">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute default="-//JBoss//DTD JBOSS JCA Config 5.0//EN"
+ name="publicId" visibility="false"/>
+ <XModelAttribute
+ default="http://www.jboss.org/j2ee/dtd/jboss-ds_5_0.dtd"
+ name="systemId" visibility="false"/>
+ <XModelAttribute default="no" name="isIncorrect" visibility="false">
+ <Constraint loader="List">
+ <value name="yes"/>
+ <value name="no"/>
+ </Constraint>
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute name="incorrectBody" visibility="false"/>
+ <XModelAttribute name="encoding">
+ <Constraint loader="ListString">
+ <value name="ISO-8859-1"/>
+ <value name="UTF-8"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem BaseActionName="Open" HandlerClassName="%Open%"
+ ICON="action.empty" displayName="Open" kind="action" name="Open"/>
+ <XActionItem displayName="Open With" group="1" kind="list" name="OpenWith">
+ <XActionItem HIDE="always"
+ HandlerClassName="org.jboss.tools.common.meta.action.impl.handlers.OpenWithExternalHandler"
+ ICON="action.empty" PROPERTIES="extension=struts-config"
+ displayName="Open with External Program" kind="action" name="OpenWithSelected"/>
+ <XActionItem HIDE="always"
+ HandlerClassName="org.jboss.tools.common.meta.action.impl.handlers.OpenWithChoiceHandler"
+ ICON="action.empty" PROPERTIES="extension=struts-config"
+ displayName="Choose Program..." kind="action" name="OpenWithChoice">
+ <EntityData EntityName="OpenWithHelper">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="default"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
+ <XActionItem kind="list" name="EditActions">
+ <XActionItem HIDE="always"
+ HandlerClassName="org.jboss.tools.jsf.model.handlers.RenameFacesConfigHandler"
+ ICON="action.empty" PROPERTIES="validator.edit=true"
+ WizardClassName="%Default%" displayName="Rename..." kind="action" name="Rename">
+ <EntityData EntityName="FacesConfig">
+ <AttributeData AttributeName="name"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem
+ HandlerClassName="org.jboss.tools.common.model.filesystems.impl.handlers.RenameEclipseFileHandler"
+ ICON="action.empty" displayName="Rename..." kind="action" name="RenameEclipse"/>
+ </XActionItem>
+ <XActionItem kind="list" name="SaveActions">
+ <XActionItem HIDE="always" HandlerClassName="%SaveFile%"
+ ICON="action.save" displayName="Save" kind="action" name="Save"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="New" group="1"
+ kind="list" name="CreateActions"/>
+ <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
+ <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
+ ICON="action.copy" displayName="Copy" kind="action" name="Copy"/>
+ <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
+ ICON="action.cut" displayName="Cut" kind="action" name="Cut"/>
+ <XActionItem BaseActionName="Paste" HandlerClassName="%Paste%"
+ ICON="action.paste" displayName="Paste" kind="action" name="Paste"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete"
+ HandlerClassName="org.jboss.tools.jsf.model.handlers.DeleteFacesConfigHandler"
+ ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem kind="list" name="DiscardActions">
+ <XActionItem HIDE="always"
+ HandlerClassName="org.jboss.tools.jsf.model.handlers.DiscardConfigHandler"
+ ICON="action.delete"
+ PROPERTIES="significanceMessageClass=org.jboss.tools.common.model.filesystems.impl.DiscardFileSignificanceMessage"
+ displayName="Discard Changes" kind="action" name="Discard"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity
+ ImplementationLoadingClass="org.jboss.tools.seam.xml.ds.model.DSFileLoader"
+ ImplementingClass="org.jboss.tools.common.model.filesystems.impl.SimpleFileImpl"
+ ObjectEditorClass="%XML%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.SeamXMLFormLayoutData"
+ XMLSUBPATH="datasources" name="FileDSDatasources">
+ <XChildrenEntities>
+ <XChildEntity maxCount="1" name="DSLoaderRepository" required="yes"/>
+ <XChildEntity name="DSMBean"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.ds.file" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="datasources" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general" name="name" xmlname="NAME"/>
+ <XModelAttribute default="xml" name="extension" xmlname="EXTENSION">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ <XModelAttribute loader="ElementType" name="_lateload" visibility="false">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute default="-//JBoss//DTD JBOSS JCA Config 1.5//EN"
+ name="publicId" visibility="false"/>
+ <XModelAttribute
+ default="http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd"
+ name="systemId" visibility="false"/>
+ <XModelAttribute default="no" name="isIncorrect" visibility="false">
+ <Constraint loader="List">
+ <value name="yes"/>
+ <value name="no"/>
+ </Constraint>
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute name="incorrectBody" visibility="false"/>
+ <XModelAttribute name="encoding">
+ <Constraint loader="ListString">
+ <value name="ISO-8859-1"/>
+ <value name="UTF-8"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem BaseActionName="Open" HandlerClassName="%Open%"
+ ICON="action.empty" displayName="Open" kind="action" name="Open"/>
+ <XActionItem displayName="Open With" group="1" kind="list" name="OpenWith">
+ <XActionItem HIDE="always"
+ HandlerClassName="org.jboss.tools.common.meta.action.impl.handlers.OpenWithExternalHandler"
+ ICON="action.empty" PROPERTIES="extension=struts-config"
+ displayName="Open with External Program" kind="action" name="OpenWithSelected"/>
+ <XActionItem HIDE="always"
+ HandlerClassName="org.jboss.tools.common.meta.action.impl.handlers.OpenWithChoiceHandler"
+ ICON="action.empty" PROPERTIES="extension=struts-config"
+ displayName="Choose Program..." kind="action" name="OpenWithChoice">
+ <EntityData EntityName="OpenWithHelper">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="default"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
+ <XActionItem kind="list" name="EditActions">
+ <XActionItem HIDE="always"
+ HandlerClassName="org.jboss.tools.jsf.model.handlers.RenameFacesConfigHandler"
+ ICON="action.empty" PROPERTIES="validator.edit=true"
+ WizardClassName="%Default%" displayName="Rename..." kind="action" name="Rename">
+ <EntityData EntityName="FacesConfig">
+ <AttributeData AttributeName="name"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem
+ HandlerClassName="org.jboss.tools.common.model.filesystems.impl.handlers.RenameEclipseFileHandler"
+ ICON="action.empty" displayName="Rename..." kind="action" name="RenameEclipse"/>
+ </XActionItem>
+ <XActionItem kind="list" name="SaveActions">
+ <XActionItem HIDE="always" HandlerClassName="%SaveFile%"
+ ICON="action.save" displayName="Save" kind="action" name="Save"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="New" group="1"
+ kind="list" name="CreateActions"/>
+ <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
+ <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
+ ICON="action.copy" displayName="Copy" kind="action" name="Copy"/>
+ <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
+ ICON="action.cut" displayName="Cut" kind="action" name="Cut"/>
+ <XActionItem BaseActionName="Paste" HandlerClassName="%Paste%"
+ ICON="action.paste" displayName="Paste" kind="action" name="Paste"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete"
+ HandlerClassName="org.jboss.tools.jsf.model.handlers.DeleteFacesConfigHandler"
+ ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem kind="list" name="DiscardActions">
+ <XActionItem HIDE="always"
+ HandlerClassName="org.jboss.tools.jsf.model.handlers.DiscardConfigHandler"
+ ICON="action.delete"
+ PROPERTIES="significanceMessageClass=org.jboss.tools.common.model.filesystems.impl.DiscardFileSignificanceMessage"
+ displayName="Discard Changes" kind="action" name="Discard"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity
+ ImplementationLoadingClass="org.jboss.tools.seam.xml.ds.model.DSFileLoader"
+ ImplementingClass="org.jboss.tools.common.model.filesystems.impl.SimpleFileImpl"
+ ObjectEditorClass="%XML%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.SeamXMLFormLayoutData"
+ XMLSUBPATH="datasources" name="FileDSDatasources50d">
+ <XChildrenEntities>
+ <XChildEntity maxCount="1" name="DSLoaderRepository" required="yes"/>
+ <XChildEntity name="DSMBean"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.ds.file" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="datasources" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general" name="name" xmlname="NAME"/>
+ <XModelAttribute default="xml" name="extension" xmlname="EXTENSION">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ <XModelAttribute loader="ElementType" name="_lateload" visibility="false">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute default="-//JBoss//DTD JBOSS JCA Config 5.0//EN"
+ name="publicId" visibility="false"/>
+ <XModelAttribute
+ default="http://www.jboss.org/j2ee/dtd/jboss-ds_5_0.dtd"
+ name="systemId" visibility="false"/>
+ <XModelAttribute default="no" name="isIncorrect" visibility="false">
+ <Constraint loader="List">
+ <value name="yes"/>
+ <value name="no"/>
+ </Constraint>
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute name="incorrectBody" visibility="false"/>
+ <XModelAttribute name="encoding">
+ <Constraint loader="ListString">
+ <value name="ISO-8859-1"/>
+ <value name="UTF-8"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem BaseActionName="Open" HandlerClassName="%Open%"
+ ICON="action.empty" displayName="Open" kind="action" name="Open"/>
+ <XActionItem displayName="Open With" group="1" kind="list" name="OpenWith">
+ <XActionItem HIDE="always"
+ HandlerClassName="org.jboss.tools.common.meta.action.impl.handlers.OpenWithExternalHandler"
+ ICON="action.empty" PROPERTIES="extension=struts-config"
+ displayName="Open with External Program" kind="action" name="OpenWithSelected"/>
+ <XActionItem HIDE="always"
+ HandlerClassName="org.jboss.tools.common.meta.action.impl.handlers.OpenWithChoiceHandler"
+ ICON="action.empty" PROPERTIES="extension=struts-config"
+ displayName="Choose Program..." kind="action" name="OpenWithChoice">
+ <EntityData EntityName="OpenWithHelper">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="default"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
+ <XActionItem kind="list" name="EditActions">
+ <XActionItem HIDE="always"
+ HandlerClassName="org.jboss.tools.jsf.model.handlers.RenameFacesConfigHandler"
+ ICON="action.empty" PROPERTIES="validator.edit=true"
+ WizardClassName="%Default%" displayName="Rename..." kind="action" name="Rename">
+ <EntityData EntityName="FacesConfig">
+ <AttributeData AttributeName="name"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem
+ HandlerClassName="org.jboss.tools.common.model.filesystems.impl.handlers.RenameEclipseFileHandler"
+ ICON="action.empty" displayName="Rename..." kind="action" name="RenameEclipse"/>
+ </XActionItem>
+ <XActionItem kind="list" name="SaveActions">
+ <XActionItem HIDE="always" HandlerClassName="%SaveFile%"
+ ICON="action.save" displayName="Save" kind="action" name="Save"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="New" group="1"
+ kind="list" name="CreateActions"/>
+ <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
+ <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
+ ICON="action.copy" displayName="Copy" kind="action" name="Copy"/>
+ <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
+ ICON="action.cut" displayName="Cut" kind="action" name="Cut"/>
+ <XActionItem BaseActionName="Paste" HandlerClassName="%Paste%"
+ ICON="action.paste" displayName="Paste" kind="action" name="Paste"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete"
+ HandlerClassName="org.jboss.tools.jsf.model.handlers.DeleteFacesConfigHandler"
+ ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem kind="list" name="DiscardActions">
+ <XActionItem HIDE="always"
+ HandlerClassName="org.jboss.tools.jsf.model.handlers.DiscardConfigHandler"
+ ICON="action.delete"
+ PROPERTIES="significanceMessageClass=org.jboss.tools.common.model.filesystems.impl.DiscardFileSignificanceMessage"
+ displayName="Discard Changes" kind="action" name="Discard"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity name="FileDSDatasources50d_EditorActionList">
+ <XChildrenEntities/>
+ <XEntityRenderer/>
+ <XModelAttributes/>
+ <XActionItem kind="list">
+ <XActionItem displayName="New" kind="list" name="CreateActions"/>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HIDE="always" HandlerClassName="%Properties%"
+ ICON="action.empty" displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem kind="list" name="VerifyActions">
+ <XActionItem kind="list" name="StaticActions"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity name="FileDSDatasources_EditorActionList">
+ <XChildrenEntities/>
+ <XEntityRenderer/>
+ <XModelAttributes/>
+ <XActionItem kind="list">
+ <XActionItem displayName="New" kind="list" name="CreateActions"/>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HIDE="always" HandlerClassName="%Properties%"
+ ICON="action.empty" displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem kind="list" name="VerifyActions">
+ <XActionItem kind="list" name="StaticActions"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XEntityExtension name="FileFolder">
+ <XChildrenEntities>
+ <XChildEntity name="FileDSDatasources"/>
+ <XChildEntity name="FileDSDatasources50d"/>
+ <XChildEntity name="FileDSConnectionFactories"/>
+ <XChildEntity name="FileDSConnectionFactories50d"/>
+ </XChildrenEntities>
+ <XActionItem kind="list">
+ <XActionItem ICON="action.empty" displayName="New" group="1"
+ kind="list" name="CreateActions">
+ <XActionItem ICON="action.newattribute" displayName="File" group="1"
+ kind="list" name="CreateFiles">
+ <XActionItem displayName="Datasources" kind="list" name="DS">
+ <XActionItem HandlerClassName="%SpecialWizard%"
+ ICON="action.new.seam.faces-config"
+ PROPERTIES="entity=FileDSDatasources;extensions=.xml.;validator.addfile=true;support=org.jboss.tools.common.model.files.handlers.CreateFileSupport;extension=xml;entityVersion=DSDatasources"
+ displayName="Datasources File..." kind="action" name="CreateFileDatasources">
+ <EntityData EntityName="NewFileWizard">
+ <AttributeData AttributeName="folder"/>
+ <AttributeData AttributeName="separator" Mandatory="no"/>
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="version"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HIDE="always" HandlerClassName="%WizardInvoker%"
+ ICON="action.new.seam.faces-config"
+ PROPERTIES="plugin=org.jboss.tools.seam.xml.ui;wizard=org.jboss.tools.seam.xml.ui.wizard.newfile.NewSeamComponentsFileWizard"
+ displayName="Datasources File..." kind="action" name="CreateFileDatasourcesV"/>
+ <XActionItem HandlerClassName="%SpecialWizard%"
+ ICON="action.new.seam.faces-config"
+ PROPERTIES="entity=FileDSConnectionFactories;extensions=.xml.;validator.addfile=true;support=org.jboss.tools.common.model.files.handlers.CreateFileSupport;extension=xml;entityVersion=DSConnectionFactories"
+ displayName="Connection Factories File..." kind="action" name="CreateFileConnectionFactories">
+ <EntityData EntityName="NewFileWizard">
+ <AttributeData AttributeName="folder"/>
+ <AttributeData AttributeName="separator" Mandatory="no"/>
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="version"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HIDE="always" HandlerClassName="%WizardInvoker%"
+ ICON="action.new.seam.faces-config"
+ PROPERTIES="plugin=org.jboss.tools.seam.xml.ui;wizard=org.jboss.tools.seam.xml.ui.wizard.newfile.NewSeamComponentsFileWizard"
+ displayName="Connection Factories File..." kind="action" name="CreateFileConnectionFactoriesV"/>
+ </XActionItem>
+ </XActionItem>
+ </XActionItem>
+ </XActionItem>
+ </XEntityExtension>
+ <XEntityExtension name="FileSystemFolder">
+ <XChildrenEntities>
+ <XChildEntity name="FileDSDatasources"/>
+ <XChildEntity name="FileDSDatasources50d"/>
+ <XChildEntity name="FileDSConnectionFactories"/>
+ <XChildEntity name="FileDSConnectionFactories50d"/>
+ </XChildrenEntities>
+ <XActionItem kind="list">
+ <XActionItem ICON="action.empty" displayName="New" group="1"
+ kind="list" name="CreateActions">
+ <XActionItem ICON="action.newattribute" displayName="File" group="1"
+ kind="list" name="CreateFiles">
+ <XActionItem displayName="Datasources" kind="list" name="DS">
+ <XActionItem HIDE="always" HandlerClassName="%SpecialWizard%"
+ ICON="action.new.seam.faces-config"
+ PROPERTIES="entity=FileDSDatasources;extensions=.xml.;validator.addfile=true;support=org.jboss.tools.common.model.files.handlers.CreateFileSupport;extension=xml;entityVersion=DSDatasources"
+ displayName="Datasources File..." kind="action" name="CreateFileDatasources">
+ <EntityData EntityName="NewFileWizard">
+ <AttributeData AttributeName="folder"/>
+ <AttributeData AttributeName="separator" Mandatory="no"/>
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="version"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HandlerClassName="%WizardInvoker%"
+ ICON="action.new.seam.faces-config"
+ PROPERTIES="plugin=org.jboss.tools.seam.xml.ui;wizard=org.jboss.tools.seam.xml.ui.wizard.newfile.NewSeamComponentsFileWizard"
+ displayName="Datasources File..." kind="action" name="CreateFileDatasourcesV"/>
+ <XActionItem HIDE="always" HandlerClassName="%SpecialWizard%"
+ ICON="action.new.seam.faces-config"
+ PROPERTIES="entity=FileDSConnectionFactories;extensions=.xml.;validator.addfile=true;support=org.jboss.tools.common.model.files.handlers.CreateFileSupport;extension=xml;entityVersion=DSConnectionFactories"
+ displayName="Connection Factories File..." kind="action" name="CreateFileConnectionFactories">
+ <EntityData EntityName="NewFileWizard">
+ <AttributeData AttributeName="folder"/>
+ <AttributeData AttributeName="separator" Mandatory="no"/>
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="version"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HandlerClassName="%WizardInvoker%"
+ ICON="action.new.seam.faces-config"
+ PROPERTIES="plugin=org.jboss.tools.seam.xml.ui;wizard=org.jboss.tools.seam.xml.ui.wizard.newfile.NewSeamComponentsFileWizard"
+ displayName="Connection Factories File..." kind="action" name="CreateFileConnectionFactoriesV"/>
+ </XActionItem>
+ </XActionItem>
+ </XActionItem>
+ </XActionItem>
+ </XEntityExtension>
+ <XEntityExtension name="FileSystemJar">
+ <XChildrenEntities>
+ <XChildEntity name="FileDSDatasources"/>
+ <XChildEntity name="FileDSDatasources50d"/>
+ <XChildEntity name="FileDSConnectionFactories"/>
+ <XChildEntity name="FileDSConnectionFactories50d"/>
+ </XChildrenEntities>
+ <XActionItem kind="list"/>
+ </XEntityExtension>
+ <XEntityExtension name="JarFolder">
+ <XChildrenEntities>
+ <XChildEntity name="FileDSDatasources"/>
+ <XChildEntity name="FileDSDatasources50d"/>
+ <XChildEntity name="FileDSConnectionFactories"/>
+ <XChildEntity name="FileDSConnectionFactories50d"/>
+ </XChildrenEntities>
+ <XActionItem kind="list"/>
+ </XEntityExtension>
+</XModelEntityGroup>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSConstants.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSConstants.java (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSConstants.java 2009-11-09 13:43:44 UTC (rev 18496)
@@ -0,0 +1,17 @@
+package org.jboss.tools.seam.xml.ds.model;
+
+public interface DSConstants {
+ public String PUBLIC_ID_1_5 = "-//JBoss//DTD JBOSS JCA Config 1.5//EN"; //$NON-NLS-1$
+ public String SYSTEM_ID_1_5 = "http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd"; //$NON-NLS-1$
+ public String PUBLIC_ID_5_0 = "-//JBoss//DTD JBOSS JCA Config 5.0//EN"; //$NON-NLS-1$
+ public String SYSTEM_ID_5_0 = "http://www.jboss.org/j2ee/dtd/jboss-ds_5_0.dtd"; //$NON-NLS-1$
+
+ public String ENT_DATASOURCES_FILE = "FileDSDatasources"; //$NON-NLS-1$
+ public String ENT_CONNECTION_FACTORIES_FILE = "FileDSConnectionFactories"; //$NON-NLS-1$
+
+ public String SUFF_50_DTD = "50d"; //$NON-NLS-1$
+
+ public String ENT_DATASOURCES_FILE_50_DTD = ENT_DATASOURCES_FILE + SUFF_50_DTD;
+ public String ENT_CONNECTION_FACTORIES_FILE_50_DTD = ENT_CONNECTION_FACTORIES_FILE + SUFF_50_DTD;
+
+}
Property changes on: trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSConstants.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSEntityRecognizer.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSEntityRecognizer.java (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSEntityRecognizer.java 2009-11-09 13:43:44 UTC (rev 18496)
@@ -0,0 +1,42 @@
+package org.jboss.tools.seam.xml.ds.model;
+
+import java.io.IOException;
+
+import org.jboss.tools.common.model.loaders.EntityRecognizer;
+import org.jboss.tools.common.xml.XMLEntityResolver;
+import org.jboss.tools.seam.xml.SeamXMLPlugin;
+
+public class DSEntityRecognizer implements EntityRecognizer, DSConstants {
+ static {
+ try {
+ Class<?> c = DSEntityRecognizer.class;
+ XMLEntityResolver.registerPublicEntity(PUBLIC_ID_1_5, c, "/meta/jboss-ds_1_5.dtd"); //$NON-NLS-1$
+ XMLEntityResolver.registerPublicEntity(PUBLIC_ID_5_0, c, "/meta/jboss-ds_5_0.dtd"); //$NON-NLS-1$
+ } catch (IOException e) {
+ SeamXMLPlugin.log(e);
+ }
+ }
+
+ public DSEntityRecognizer() {}
+
+ public String getEntityName(String ext, String body) {
+ if(body == null) return null;
+ if(body.indexOf(PUBLIC_ID_1_5) >= 0) {
+ if (body.indexOf("DOCTYPE datasources") >= 0) {
+ return ENT_DATASOURCES_FILE;
+ }
+ if (body.indexOf("DOCTYPE connection-factories") >= 0) {
+ return ENT_CONNECTION_FACTORIES_FILE;
+ }
+ } else if(body.indexOf(PUBLIC_ID_5_0) >= 0) {
+ if (body.indexOf("DOCTYPE datasources") >= 0) {
+ return ENT_DATASOURCES_FILE_50_DTD;
+ }
+ if (body.indexOf("DOCTYPE connection-factories") >= 0) {
+ return ENT_CONNECTION_FACTORIES_FILE_50_DTD;
+ }
+ }
+ return null;
+ }
+
+}
Property changes on: trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSEntityRecognizer.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSFileLoader.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSFileLoader.java (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSFileLoader.java 2009-11-09 13:43:44 UTC (rev 18496)
@@ -0,0 +1,18 @@
+package org.jboss.tools.seam.xml.ds.model;
+
+import org.jboss.tools.common.model.loaders.impl.SimpleWebFileLoader;
+import org.jboss.tools.common.model.util.XModelObjectLoaderUtil;
+
+public class DSFileLoader extends SimpleWebFileLoader {
+
+ public DSFileLoader() {}
+
+ protected XModelObjectLoaderUtil createUtil() {
+ return new DSFileLoaderUtil();
+ }
+
+ protected boolean isCheckingDTD() {
+ return false;
+ }
+
+}
Property changes on: trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSFileLoader.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSFileLoaderUtil.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSFileLoaderUtil.java (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSFileLoaderUtil.java 2009-11-09 13:43:44 UTC (rev 18496)
@@ -0,0 +1,41 @@
+package org.jboss.tools.seam.xml.ds.model;
+
+import org.jboss.tools.common.meta.XAttribute;
+import org.jboss.tools.common.model.XModelObject;
+import org.jboss.tools.common.model.util.XModelObjectLoaderUtil;
+import org.w3c.dom.Element;
+
+public class DSFileLoaderUtil extends XModelObjectLoaderUtil implements DSConstants {
+
+ public DSFileLoaderUtil() {}
+
+ public boolean save(Element parent, XModelObject o) {
+ if(!needToSave(o)) return true;
+ boolean b = super.save(parent, o);
+ //TODO check dtd
+ return b;
+ }
+
+ protected boolean needToSave(XModelObject o) {
+ String s = o.getModelEntity().getProperty("saveDefault"); //$NON-NLS-1$
+ if(!"false".equals(s)) return true; //$NON-NLS-1$
+ if(hasSetAttributes(o)) return true;
+ if(o.getChildren().length > 0) return true;
+ return false;
+ }
+
+ private boolean hasSetAttributes(XModelObject o) {
+ XAttribute[] as = o.getModelEntity().getAttributes();
+ for (int i = 0; i < as.length; i++) {
+ String xml = as[i].getXMLName();
+ // it would be more safe to check isSavable
+ if(xml == null || xml.length() == 0 || "NAME".equals(xml)) continue; //$NON-NLS-1$
+ String v = o.getAttributeValue(as[i].getName());
+ if(v != null && v.length() > 0) return true;
+ }
+ String finalComment = o.get("#final-comment"); //$NON-NLS-1$
+ if(finalComment != null && finalComment.length() > 0) return true;
+ return false;
+ }
+
+}
Property changes on: trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/ds/model/DSFileLoaderUtil.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 1 month
JBoss Tools SVN: r18495 - trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2009-11-09 07:11:00 -0500 (Mon, 09 Nov 2009)
New Revision: 18495
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/messages.properties
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/messages_ja.properties
Log:
https://jira.jboss.org/jira/browse/JBIDE-5168
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/messages.properties
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/messages.properties 2009-11-09 12:03:11 UTC (rev 18494)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/messages.properties 2009-11-09 12:11:00 UTC (rev 18495)
@@ -112,7 +112,6 @@
VALIDATOR_FACTORY_NAME_IS_NOT_VALID={0} name is not valid.
VALIDATOR_FACTORY_COMPONENT_ALREADY_EXISTS=Component {0} already exists.
VALIDATOR_FACTORY_LOCAL_INTERFACE_NAME_IS_NOT_VALID=Local Interface name is not valid.\n
-VALIDATOR_FACTORY_NAME_IS_NOT_VALID2=\ name is not valid.
VALIDATOR_FACTORY_PROJECT_DOES_NOT_EXIST=Project ''{0}'' doesn''t exist.
VALIDATOR_FACTORY_SELECTED_PROJECT_IS_NOT_A_SEAM_WEB_PROJECT=Selected project ''{0}'' is not a Seam Project
VALIDATOR_FACTORY_SELECTED_PRJ_IS_CLOSED=Selected project ''{0}'' is closed
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/messages_ja.properties
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/messages_ja.properties 2009-11-09 12:03:11 UTC (rev 18494)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/messages_ja.properties 2009-11-09 12:11:00 UTC (rev 18495)
@@ -103,7 +103,6 @@
VALIDATOR_FACTORY_COMPONENT_NAME_IS_NOT_VALID=\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u540D\u306F\u7121\u52B9\u3067\u3059\u3002
VALIDATOR_FACTORY_NAME_IS_NOT_VALID={0} \u540D\u306F\u7121\u52B9\u3067\u3059\u3002
VALIDATOR_FACTORY_LOCAL_INTERFACE_NAME_IS_NOT_VALID=\u30ED\u30FC\u30AB\u30EB\u30FB\u30A4\u30F3\u30BF\u30FC\u30D5\u30A7\u30FC\u30B9\u540D\u306F\u7121\u52B9\u3067\u3059\u3002\n
-VALIDATOR_FACTORY_NAME_IS_NOT_VALID2=\ \u540D\u306F\u7121\u52B9\u3067\u3059\u3002
VALIDATOR_FACTORY_SELECTED_PRJ_IS_CLOSED=\u9078\u629E\u3057\u305F\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8 ''{0}'' \u306F\u9589\u3058\u3089\u308C\u307E\u3057\u305F
VALIDATOR_FACTORY_PRJ_NOT_SELECTED=\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u304C\u9078\u629E\u3055\u308C\u3066\u3044\u307E\u305B\u3093
VALIDATOR_FACTORY_CONNECTION_PROFILE_IS_NOT_SELECTED=\u63A5\u7D9A\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u304C\u9078\u629E\u3055\u308C\u3066\u3044\u307E\u305B\u3093
15 years, 1 month
JBoss Tools SVN: r18494 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/project/facet.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2009-11-09 07:03:11 -0500 (Mon, 09 Nov 2009)
New Revision: 18494
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/project/facet/SeamRuntimeManager.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5170
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/project/facet/SeamRuntimeManager.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/project/facet/SeamRuntimeManager.java 2009-11-09 10:29:59 UTC (rev 18493)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/project/facet/SeamRuntimeManager.java 2009-11-09 12:03:11 UTC (rev 18494)
@@ -20,6 +20,7 @@
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.preferences.IEclipsePreferences;
import org.eclipse.jface.preference.IPersistentPreferenceStore;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.wst.common.project.facet.core.IFacetedProject;
@@ -28,8 +29,10 @@
import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
import org.jboss.tools.seam.core.ISeamProject;
import org.jboss.tools.seam.core.SeamCorePlugin;
+import org.jboss.tools.seam.internal.core.SeamProject;
import org.jboss.tools.seam.internal.core.project.facet.ISeamFacetDataModelProperties;
import org.jboss.tools.seam.internal.core.project.facet.SeamFacetPreferenceInitializer;
+import org.osgi.service.prefs.BackingStoreException;
/**
* This class is responsible for managing available SeamRuntime list.
@@ -141,6 +144,7 @@
runtime.setDefault(true);
}
runtimes.put(runtime.getName(), runtime);
+ updateProjectsForRuntime(runtime);
save();
}
@@ -190,8 +194,26 @@
*/
public void removeRuntime(SeamRuntime rt) {
runtimes.remove(rt.getName());
+ updateProjectsForRuntime(rt);
}
+ private void updateProjectsForRuntime(SeamRuntime rt) {
+ IProject[] ps = ResourcesPlugin.getWorkspace().getRoot().getProjects();
+ for (int i = 0; i < ps.length; i++) {
+ ISeamProject sp = SeamCorePlugin.getSeamProject(ps[i], false);
+ if (sp != null && rt.getName().equals(sp.getRuntimeName())) {
+ IEclipsePreferences prefs = ((SeamProject)sp).getSeamPreferences();
+ prefs.remove(ISeamProject.RUNTIME_NAME);
+ prefs.put(ISeamProject.RUNTIME_NAME, rt.getName());
+ try {
+ prefs.flush();
+ } catch (BackingStoreException e) {
+ SeamCorePlugin.getPluginLog().logError(e);
+ }
+ }
+ }
+ }
+
/**
* Return SeamRuntime instance for given project
*
@@ -335,6 +357,8 @@
return;
}
o.setName(newName);
+ runtimes.remove(oldName);
+ runtimes.put(newName, o);
onRuntimeNameChanged(oldName, newName);
}
15 years, 1 month