Tony CHEMIT pushed to branch develop at ultreiaio / ird-t3
Commits:
-
8b5f3826
by Tony CHEMIT at 2018-03-10T18:44:25Z
13 changed files:
- t3-actions/src/main/java/fr/ird/t3/actions/io/input/AnalyzeInputSourceConfiguration.java
- t3-actions/src/main/java/fr/ird/t3/actions/io/input/ImportInputSourceConfiguration.java
- t3-actions/src/main/resources/ftl/fr/ird/t3/actions/io/input/AnalyzeInputSourceAction.ftl
- t3-actions/src/main/resources/ftl/fr/ird/t3/actions/io/input/AnalyzeInputSourceAction_en.ftl
- t3-actions/src/main/resources/ftl/fr/ird/t3/actions/io/input/ImportInputSourceAction.ftl
- t3-actions/src/main/resources/ftl/fr/ird/t3/actions/io/input/ImportInputSourceAction_en.ftl
- t3-web/src/main/resources/struts.xml
- t3-web/src/main/webapp/WEB-INF/jsp/io/input/analyzeImportDataResult.jsp
- t3-web/src/main/webapp/WEB-INF/jsp/io/input/configureImportData.jsp
- t3-web/src/main/webapp/WEB-INF/jsp/io/input/importDataResult.jsp
- t3-web/src/main/webapp/WEB-INF/jsp/io/output/exportConfig.jsp
- t3-web/src/main/webapp/WEB-INF/jsp/missingUserInputDatabaseSelected.jsp
- t3-web/src/main/webapp/WEB-INF/jsp/user/selectUserInputDatabase.jsp
Changes:
| ... | ... | @@ -75,10 +75,10 @@ public class AnalyzeInputSourceConfiguration implements InputSourceConfiguration |
| 75 | 75 |
result.setInputProvider(inputProvider);
|
| 76 | 76 |
result.setUseWells(useWells);
|
| 77 | 77 |
result.setTripType(TripType.getTripType(useSamplesOnly, canCreateVirtualActivity));
|
| 78 |
- result.setCanCreateVessel(canCreateVessel);
|
|
| 79 |
- result.setCreateVirtualVessel(createVirtualVessel);
|
|
| 80 | 78 |
result.setCanCreateVirtualActivity(canCreateVirtualActivity);
|
| 81 | 79 |
result.setUseSamplesOnly(useSamplesOnly);
|
| 80 |
+ result.setCanCreateVessel(canCreateVessel);
|
|
| 81 |
+ result.setCreateVirtualVessel(createVirtualVessel);
|
|
| 82 | 82 |
return result;
|
| 83 | 83 |
}
|
| 84 | 84 |
|
| ... | ... | @@ -73,6 +73,9 @@ public class ImportInputSourceConfiguration implements InputSourceConfiguration |
| 73 | 73 |
result.setTripType(analyzeConfiguration.getTripType());
|
| 74 | 74 |
result.setCanCreateVessel(analyzeConfiguration.isCanCreateVessel());
|
| 75 | 75 |
result.setCreateVirtualVessel(analyzeConfiguration.isCanCreateVessel());
|
| 76 |
+ result.setTripType(analyzeConfiguration.getTripType());
|
|
| 77 |
+ result.setCanCreateVirtualActivity(analyzeConfiguration.isCanCreateVirtualActivity());
|
|
| 78 |
+ result.setUseSamplesOnly(analyzeConfiguration.isUseSamplesOnly());
|
|
| 76 | 79 |
return result;
|
| 77 | 80 |
}
|
| 78 | 81 |
|
| ... | ... | @@ -23,7 +23,11 @@ |
| 23 | 23 |
Pilote d'acquisition de données : ${configuration.inputProvider.label}
|
| 24 | 24 |
Source de données : ${configuration.inputFile.name}
|
| 25 | 25 |
Utilisation des plans de cuves : ${configuration.useWells?string}
|
| 26 |
-Type de marées : ${configuration.tripType.label}
|
|
| 26 |
+<#if configuration.useSamplesOnly>
|
|
| 27 |
+Base échantillon seulement
|
|
| 28 |
+<#else>
|
|
| 29 |
+Autoriser à créer des activités : ${configuration.canCreateVirtualActivity?string}
|
|
| 30 |
+</#if>
|
|
| 27 | 31 |
Autoriser à créer des bateaux : ${configuration.canCreateVessel?string}
|
| 28 | 32 |
<#if configuration.canCreateVessel>
|
| 29 | 33 |
Créer des bateaux virtuels : ${configuration.createVirtualVessel?string}
|
| ... | ... | @@ -23,7 +23,11 @@ |
| 23 | 23 |
Input Pilot: ${configuration.inputProvider.label}
|
| 24 | 24 |
Input file: ${configuration.inputFile.name}
|
| 25 | 25 |
Use wells: ${configuration.useWells?string}
|
| 26 |
-Trip type: ${configuration.tripType.label}
|
|
| 26 |
+<#if configuration.useSamplesOnly>
|
|
| 27 |
+Database 'Samples only'
|
|
| 28 |
+<#else>
|
|
| 29 |
+Authorize to create virtual activities: ${configuration.canCreateVirtualActivity?string}
|
|
| 30 |
+</#if>
|
|
| 27 | 31 |
Authorise to create vessels: ${configuration.canCreateVessel?string}
|
| 28 | 32 |
<#if configuration.canCreateVessel>
|
| 29 | 33 |
Create virtual vessels: ${configuration.createVirtualVessel?string}
|
| ... | ... | @@ -23,7 +23,12 @@ |
| 23 | 23 |
Pilote d'acquisition de données : ${configuration.inputProvider.label}
|
| 24 | 24 |
Source de données : ${configuration.inputFile.name}
|
| 25 | 25 |
Utilisation des plans de cuves : ${configuration.useWells?string}
|
| 26 |
-Type de marées : ${configuration.tripType.label}
|
|
| 26 |
+<#--Type de marées : ${configuration.tripType.label}-->
|
|
| 27 |
+<#if configuration.useSamplesOnly>
|
|
| 28 |
+Base échantillon seulement
|
|
| 29 |
+<#else>
|
|
| 30 |
+Autoriser à créer des activités : ${configuration.canCreateVirtualActivity?string}
|
|
| 31 |
+</#if>
|
|
| 27 | 32 |
Autoriser à créer des bateaux : ${configuration.canCreateVessel?string}
|
| 28 | 33 |
<#if configuration.canCreateVessel>
|
| 29 | 34 |
Créer des bateaux virtuels : ${configuration.createVirtualVessel?string}
|
| ... | ... | @@ -23,7 +23,12 @@ |
| 23 | 23 |
Input Pilot: ${configuration.inputProvider.label}
|
| 24 | 24 |
Input file: ${configuration.inputFile.name}
|
| 25 | 25 |
Use wells: ${configuration.useWells?string}
|
| 26 |
-Trip type: ${configuration.tripType.label}
|
|
| 26 |
+<#if configuration.useSamplesOnly>
|
|
| 27 |
+Database 'Samples only'
|
|
| 28 |
+<#else>
|
|
| 29 |
+Authorize to create virtual activities: ${configuration.canCreateVirtualActivity?string}
|
|
| 30 |
+</#if>
|
|
| 31 |
+ |
|
| 27 | 32 |
Authorise to create vessels: ${configuration.canCreateVessel?string}
|
| 28 | 33 |
<#if configuration.canCreateVessel>
|
| 29 | 34 |
Create virtual vessels: ${configuration.createVirtualVessel?string}
|
| ... | ... | @@ -32,10 +32,11 @@ |
| 32 | 32 |
<constant name="struts.xworkTextProvider" value="i18nTextProvider"/>
|
| 33 | 33 |
|
| 34 | 34 |
<constant name="struts.ognl.allowStaticMethodAccess" value="true"/>
|
| 35 |
+ <constant name="struts.enable.DynamicMethodInvocation" value="true"/>
|
|
| 35 | 36 |
<constant name="struts.action.extension" value=",,"/>
|
| 36 | 37 |
<constant name="struts.locale" value="fr_FR"/>
|
| 37 | 38 |
<constant name="struts.i18n.reload" value="false"/>
|
| 38 |
- <constant name="struts.configuration.xml.reload" value="false"/>
|
|
| 39 |
+ <constant name="struts.configuration.xml.reload" value="true"/>
|
|
| 39 | 40 |
<!--suppress Struts2ModelInspection -->
|
| 40 | 41 |
<constant name="struts.ui.theme" value="css_xhtml"/>
|
| 41 | 42 |
<constant name="struts.multipart.maxSize" value="314572800"/>
|
| ... | ... | @@ -64,7 +65,7 @@ |
| 64 | 65 |
|
| 65 | 66 |
<!-- to check if user is loggued -->
|
| 66 | 67 |
<interceptor name="checkUserLoggued" class="fr.ird.t3.web.interceptors.CheckLogguedInterceptor">
|
| 67 |
- <param name="loginAction">user/loginEnter</param>
|
|
| 68 |
+ <param name="loginAction">user/login!input</param>
|
|
| 68 | 69 |
<param name="redirectAction">/home</param>
|
| 69 | 70 |
</interceptor>
|
| 70 | 71 |
|
| ... | ... | @@ -38,7 +38,7 @@ |
| 38 | 38 |
</s:text>
|
| 39 | 39 |
</p>
|
| 40 | 40 |
|
| 41 |
- <s:form method="post" validate="true" namespace="/io">
|
|
| 41 |
+ <s:form method="post" validate="true" namespace="/io" action="prepareImportData">
|
|
| 42 | 42 |
<s:if test="needReplace">
|
| 43 | 43 |
<strong>
|
| 44 | 44 |
<s:text name="t3.label.message.trips.to.replace">
|
| ... | ... | @@ -49,7 +49,7 @@ |
| 49 | 49 |
</strong>
|
| 50 | 50 |
<s:checkbox name="replaceTrip" key="t3.question.confirm.to.replace.trip" value="%{false}"/>
|
| 51 | 51 |
</s:if>
|
| 52 |
- <s:submit action="prepareImportData" key="t3.action.importData.doImport" align="right"/>
|
|
| 52 |
+ <s:submit key="t3.action.importData.doImport" align="right"/>
|
|
| 53 | 53 |
</s:form>
|
| 54 | 54 |
</s:if>
|
| 55 | 55 |
<s:else>
|
| ... | ... | @@ -59,14 +59,14 @@ |
| 59 | 59 |
<title><s:text name="t3.label.data.configureImportData"/></title>
|
| 60 | 60 |
<h2><s:text name="t3.label.data.configureImportData"/></h2>
|
| 61 | 61 |
|
| 62 |
-<s:form method="post" validate="true" enctype="multipart/form-data" namespace="/io">
|
|
| 62 |
+<s:form method="post" validate="true" enctype="multipart/form-data" namespace="/io" action="configureImportData">
|
|
| 63 | 63 |
<s:hidden key="treatmentDirectoryPath" label=''/>
|
| 64 | 64 |
<s:select key="inputProviderId" list="inputProviders" label='%{getText("t3.common.inputProvider")}' listKey="id"
|
| 65 | 65 |
listValue="label" requiredLabel="true"/>
|
| 66 | 66 |
<s:if test="loadedSource==null">
|
| 67 | 67 |
<s:hidden name="useWells" value="%{useWells}"/>
|
| 68 | 68 |
<s:file name="sourceToLoad" requiredLabel="true" label='%{getText("t3.common.sourceToUpload")} (*)'/>
|
| 69 |
- <s:submit action="configureImportData!doAddSource" key="t3.action.importData.addSource" align="right"/>
|
|
| 69 |
+ <s:submit method="doAddSource" key="t3.action.importData.addSource" align="right"/>
|
|
| 70 | 70 |
<br/>
|
| 71 | 71 |
|
| 72 | 72 |
<div class="cleanBoth">
|
| ... | ... | @@ -84,8 +84,8 @@ |
| 84 | 84 |
<s:checkbox key="canCreateVirtualActivity" label='%{getText("t3.common.canCreateVirtualActivity")}'/>
|
| 85 | 85 |
<s:checkbox key="canCreateVessel" label='%{getText("t3.common.canCreateVessel")}'/>
|
| 86 | 86 |
<s:checkbox key="createVirtualVessel" label='%{getText("t3.common.createVirtualVessel")}'/>
|
| 87 |
- <s:submit action="configureImportData!doDeleteSource" key="t3.action.importData.deleteSource" align="right"/>
|
|
| 88 |
- <s:submit action="configureImportData!doPrepareAnalyze" key="t3.action.importData.analyze" align="right"/>
|
|
| 87 |
+ <s:submit method="doDeleteSource" key="t3.action.importData.deleteSource" align="right"/>
|
|
| 88 |
+ <s:submit method="doPrepareAnalyze" key="t3.action.importData.analyze" align="right"/>
|
|
| 89 | 89 |
</s:else>
|
| 90 | 90 |
|
| 91 | 91 |
</s:form>
|
| ... | ... | @@ -23,10 +23,7 @@ |
| 23 | 23 |
<%@ taglib prefix="sj" uri="/struts-jquery-tags" %>
|
| 24 | 24 |
|
| 25 | 25 |
<title><s:text name="t3.label.data.importData"/></title>
|
| 26 |
- |
|
| 27 |
-<h2><s:text name="t3.label.data.importData"/> - <s:text
|
|
| 28 |
- name="t3.label.result"/></h2>
|
|
| 29 |
- |
|
| 26 |
+<h2><s:text name="t3.label.data.importData"/> - <s:text name="t3.label.result"/></h2>
|
|
| 30 | 27 |
<jsp:include page="importDataConfigResume.jsp"/>
|
| 31 | 28 |
|
| 32 | 29 |
<s:if test="nbImportedTrips == 0">
|
| ... | ... | @@ -28,8 +28,7 @@ |
| 28 | 28 |
|
| 29 | 29 |
<s:url id="loadUrl" action='getUserOuputDatabase' namespace='/json'/>
|
| 30 | 30 |
|
| 31 |
-<script type="text/javascript" charset="UTF-8"
|
|
| 32 |
- src="<s:url value='/js/monthpicker.js' />"></script>
|
|
| 31 |
+<script type="text/javascript" charset="UTF-8" src="<s:url value='/js/monthpicker.js' />"></script>
|
|
| 33 | 32 |
<style type="text/css">
|
| 34 | 33 |
.ui-datepicker-calendar {
|
| 35 | 34 |
display: none;
|
| ... | ... | @@ -40,40 +39,41 @@ |
| 40 | 39 |
}
|
| 41 | 40 |
</style>
|
| 42 | 41 |
<script type="text/javascript">
|
| 43 |
- jQuery(document).ready(function () {
|
|
| 44 |
- jQuery.struts2_jquery.myBindingOptions = {
|
|
| 45 |
- datatype : "json",
|
|
| 46 |
- type : 'checkbox',
|
|
| 47 |
- name : "operationIds",
|
|
| 48 |
- list : "operations",
|
|
| 49 |
- buttonset : false,
|
|
| 50 |
- jqueryaction : "buttonset",
|
|
| 51 |
- reloadtopics : "reloadList",
|
|
| 52 |
- id:$('input[name$="operationIds"]')[0].parentNode.id
|
|
| 53 |
- };
|
|
| 54 |
- $('[name="configuration.outputProviderId"]').change(function(event) {
|
|
| 55 |
- var myOptions = jQuery.struts2_jquery.myBindingOptions;
|
|
| 56 |
- myOptions.href = "<s:url action='getOutputProviderOperations' namespace='/json'><s:param name='outputProviderId'/></s:url>" + this.value;
|
|
| 57 |
- var myDiv = $(jQuery.struts2_jquery.escId(myOptions.id));
|
|
| 58 |
- $.unsubscribe('reloadList', myDiv);
|
|
| 59 |
- jQuery.struts2_jquery_ui.bind(myDiv, myOptions);
|
|
| 60 |
- });
|
|
| 61 |
- |
|
| 62 |
- $('[name="databaseId"]').change(function(event) {
|
|
| 63 |
- var url = "${loadUrl}?" + $.param({ databaseId:this.value});
|
|
| 64 |
- $.getJSON(url,
|
|
| 65 |
- function(data) {
|
|
| 66 |
- var database = data.database;
|
|
| 67 |
- $('[name="configuration.url"]').attr('value', database.url ? database.url : '');
|
|
| 68 |
- $('[name="configuration.login"]').attr('value', database.login ? database.login : '');
|
|
| 69 |
- $('[name="configuration.password"]').attr('value', "");
|
|
| 42 |
+ jQuery(document).ready(function () {
|
|
| 43 |
+ jQuery.struts2_jquery.myBindingOptions = {
|
|
| 44 |
+ datatype: "json",
|
|
| 45 |
+ type: 'checkbox',
|
|
| 46 |
+ name: "operationIds",
|
|
| 47 |
+ list: "operations",
|
|
| 48 |
+ buttonset: false,
|
|
| 49 |
+ jqueryaction: "buttonset",
|
|
| 50 |
+ reloadtopics: "reloadList",
|
|
| 51 |
+ id: $('input[name$="operationIds"]')[0].parentNode.id
|
|
| 52 |
+ };
|
|
| 53 |
+ console.info("IDID: " + jQuery.struts2_jquery.myBindingOptions.id);
|
|
| 54 |
+ $('[name="configuration.outputProviderId"]').change(function (event) {
|
|
| 55 |
+ var myOptions = jQuery.struts2_jquery.myBindingOptions;
|
|
| 56 |
+ myOptions.href = "<s:url action='getOutputProviderOperations' namespace='/json'><s:param name='outputProviderId'/></s:url>" + this.value;
|
|
| 57 |
+ var myDiv = $(jQuery.struts2_jquery.escId(myOptions.id));
|
|
| 58 |
+ $.unsubscribe('reloadList', myDiv);
|
|
| 59 |
+ jQuery.struts2_jquery_ui.bind(myDiv, myOptions);
|
|
| 60 |
+ });
|
|
| 61 |
+ |
|
| 62 |
+ $('[name="databaseId"]').change(function (event) {
|
|
| 63 |
+ var url = "${loadUrl}?" + $.param({databaseId: this.value});
|
|
| 64 |
+ $.getJSON(url,
|
|
| 65 |
+ function (data) {
|
|
| 66 |
+ var database = data.database;
|
|
| 67 |
+ $('[name="configuration.url"]').attr('value', database.url ? database.url : '');
|
|
| 68 |
+ $('[name="configuration.login"]').attr('value', database.login ? database.login : '');
|
|
| 69 |
+ $('[name="configuration.password"]').attr('value', "");
|
|
| 70 | 70 |
}
|
| 71 |
- );
|
|
| 71 |
+ );
|
|
| 72 |
+ });
|
|
| 72 | 73 |
});
|
| 73 |
- });
|
|
| 74 | 74 |
</script>
|
| 75 | 75 |
|
| 76 |
-<s:form method="post" validate="true" namespace="/io">
|
|
| 76 |
+<s:form method="post" validate="true" namespace="/io" action="configureExport">
|
|
| 77 | 77 |
|
| 78 | 78 |
<fieldset>
|
| 79 | 79 |
<legend><s:text name="t3.label.export.config.pilot"/></legend>
|
| ... | ... | @@ -85,17 +85,17 @@ |
| 85 | 85 |
listValue="libelle"
|
| 86 | 86 |
headerKey="" headerValue=""
|
| 87 | 87 |
requiredLabel="true"/>
|
| 88 |
- |
|
| 89 |
- <sj:checkboxlist key="operationIds" buttonset="false"
|
|
| 88 |
+ <br/>
|
|
| 89 |
+ <sj:checkboxlist key="operationIds" buttonset="false" template="mycheckboxlist"
|
|
| 90 | 90 |
label='%{getText("t3.output.operations")}'
|
| 91 | 91 |
list="operations" requiredLabel="true"/>
|
| 92 |
+ |
|
| 92 | 93 |
</fieldset>
|
| 93 | 94 |
|
| 94 | 95 |
<fieldset>
|
| 95 | 96 |
<legend><s:text name="t3.label.export.config.jdbc"/></legend>
|
| 96 | 97 |
|
| 97 |
- <s:select key="databaseId" list="databases"
|
|
| 98 |
- label='%{getText("t3.common.userOutputDatabase")}'
|
|
| 98 |
+ <s:select key="databaseId" list="databases" label='%{getText("t3.common.userOutputDatabase")}'
|
|
| 99 | 99 |
headerKey="" headerValue=""/>
|
| 100 | 100 |
|
| 101 | 101 |
<s:textfield name="configuration.url" requiredLabel="true" size="40"
|
| ... | ... | @@ -118,9 +118,8 @@ |
| 118 | 118 |
label='%{getText("t3.common.ocean")}' requiredLabel="true"/>
|
| 119 | 119 |
|
| 120 | 120 |
<%-- selected fleet country --%>
|
| 121 |
- <s:select key="configuration.fleetId" list="fleets"
|
|
| 122 |
- label='%{getText("t3.common.fleetCountry")}' requiredLabel="true"/>
|
|
| 123 |
- |
|
| 121 |
+ <s:select key="configuration.fleetId" list="fleets" label='%{getText("t3.common.fleetCountry")}'
|
|
| 122 |
+ requiredLabel="true"/>
|
|
| 124 | 123 |
<%-- begin date --%>
|
| 125 | 124 |
<sj:datepicker key="configuration.beginDate" requiredLabel="true"
|
| 126 | 125 |
label='%{getText("t3.common.beginDate")}'
|
| ... | ... | @@ -132,23 +131,21 @@ |
| 132 | 131 |
appendText=" (mm-yyyy)"/>
|
| 133 | 132 |
|
| 134 | 133 |
</fieldset>
|
| 135 |
- <s:submit action="configureExport!execute"
|
|
| 136 |
- key="t3.action.configuration.validateConfiguration"
|
|
| 137 |
- align="right"/>
|
|
| 134 |
+ <s:submit method="execute" key="t3.action.configuration.validateConfiguration" align="right"/>
|
|
| 138 | 135 |
|
| 139 | 136 |
</s:form>
|
| 140 | 137 |
|
| 141 | 138 |
|
| 142 | 139 |
<script type="text/javascript">
|
| 143 | 140 |
|
| 144 |
- jQuery(document).ready(function () {
|
|
| 141 |
+ jQuery(document).ready(function () {
|
|
| 145 | 142 |
|
| 146 |
- $.prepareMonthPickers(
|
|
| 147 |
- {
|
|
| 148 |
- minDateAsMonth:'<s:property value="configuration.minDate"/>',
|
|
| 149 |
- maxDateAsMonth:'<s:property value="configuration.maxDate"/>'
|
|
| 150 |
- });
|
|
| 143 |
+ $.prepareMonthPickers(
|
|
| 144 |
+ {
|
|
| 145 |
+ minDateAsMonth: '<s:property value="configuration.minDate"/>',
|
|
| 146 |
+ maxDateAsMonth: '<s:property value="configuration.maxDate"/>'
|
|
| 147 |
+ });
|
|
| 151 | 148 |
|
| 152 |
- });
|
|
| 149 |
+ });
|
|
| 153 | 150 |
|
| 154 | 151 |
</script>
|
| ... | ... | @@ -33,7 +33,7 @@ |
| 33 | 33 |
|
| 34 | 34 |
<ul>
|
| 35 | 35 |
<li>
|
| 36 |
- <s:a action="selectUserInputDatabase!input" namespace="/user">
|
|
| 36 |
+ <s:a action="selectUserInputDatabase" method="input" namespace="/user">
|
|
| 37 | 37 |
<s:text name="t3.menu.select.t3Database"/>
|
| 38 | 38 |
</s:a>
|
| 39 | 39 |
</li>
|
| ... | ... | @@ -26,46 +26,36 @@ |
| 26 | 26 |
|
| 27 | 27 |
<script type="text/javascript">
|
| 28 | 28 |
|
| 29 |
- jQuery(document).ready(function () {
|
|
| 30 |
- |
|
| 31 |
- $('[name="databaseId"]').change(function(event) {
|
|
| 32 |
- var url = "${loadUrl}?" + $.param({ databaseId:this.value});
|
|
| 33 |
- $.getJSON(url,
|
|
| 34 |
- function(data) {
|
|
| 35 |
- var database = data.database;
|
|
| 36 |
- $('[name="database.url"]').attr('value', database.url ? database.url : '');
|
|
| 37 |
- $('[name="database.login"]').attr('value', database.login ? database.login : '');
|
|
| 38 |
- $('[name="database.password"]').attr('value', "");
|
|
| 29 |
+ jQuery(document).ready(function () {
|
|
| 30 |
+ |
|
| 31 |
+ $('[name="databaseId"]').change(function (event) {
|
|
| 32 |
+ var url = "${loadUrl}?" + $.param({databaseId: this.value});
|
|
| 33 |
+ $.getJSON(url,
|
|
| 34 |
+ function (data) {
|
|
| 35 |
+ var database = data.database;
|
|
| 36 |
+ $('[name="database.url"]').attr('value', database.url ? database.url : '');
|
|
| 37 |
+ $('[name="database.login"]').attr('value', database.login ? database.login : '');
|
|
| 38 |
+ $('[name="database.password"]').attr('value', "");
|
|
| 39 | 39 |
}
|
| 40 |
- );
|
|
| 40 |
+ );
|
|
| 41 |
+ });
|
|
| 41 | 42 |
});
|
| 42 |
- });
|
|
| 43 | 43 |
</script>
|
| 44 | 44 |
<title><s:text name="t3.label.user.selectT3Database"/></title>
|
| 45 | 45 |
|
| 46 | 46 |
<h2><s:text name="t3.label.user.selectT3Database"/></h2>
|
| 47 | 47 |
|
| 48 |
-<s:form method="post" validate="true" namespace="/user">
|
|
| 49 |
- |
|
| 48 |
+<s:form method="post" validate="true" namespace="/user" action="selectUserInputDatabase">
|
|
| 50 | 49 |
<fieldset>
|
| 51 | 50 |
<legend><s:text name="t3.label.t3.config.jdbc"/></legend>
|
| 52 |
- |
|
| 53 |
- <s:select key="databaseId" list="databases"
|
|
| 54 |
- label='%{getText("t3.common.userT3Database")}'
|
|
| 55 |
- headerKey="" headerValue=""/>
|
|
| 56 |
-
|
|
| 57 |
- <s:textfield name="database.url" requiredLabel="true" size="40"
|
|
| 58 |
- label='%{getText("t3.common.url")}'/>
|
|
| 59 |
- |
|
| 60 |
- <s:textfield name="database.login" requiredLabel="true" size="40"
|
|
| 61 |
- label='%{getText("t3.common.login")}'/>
|
|
| 62 |
- |
|
| 63 |
- <s:password name="database.password" requiredLabel="true" size="40"
|
|
| 64 |
- label='%{getText("t3.common.password")}'
|
|
| 51 |
+ <s:select key="databaseId" list="databases" label='%{getText("t3.common.userT3Database")}' headerKey=""
|
|
| 52 |
+ headerValue=""/>
|
|
| 53 |
+ <s:textfield name="database.url" requiredLabel="true" size="40" label='%{getText("t3.common.url")}'/>
|
|
| 54 |
+ <s:textfield name="database.login" requiredLabel="true" size="40" label='%{getText("t3.common.login")}'/>
|
|
| 55 |
+ <s:password name="database.password" requiredLabel="true" size="40" label='%{getText("t3.common.password")}'
|
|
| 65 | 56 |
autocomplete='off'/>
|
| 66 | 57 |
</fieldset>
|
| 67 | 58 |
<br/>
|
| 68 | 59 |
|
| 69 |
- <s:submit action="selectUserInputDatabase" method="execute"
|
|
| 70 |
- key="t3.action.connectToDatabase" align="right"/>
|
|
| 60 |
+ <s:submit key="t3.action.connectToDatabase" align="right"/>
|
|
| 71 | 61 |
</s:form>
|