<description>true if find artifacts should be enabled</description>\r
<version>1.0.0+</version> \r
<type>boolean</type> \r
- <defaultValue>false</defaultValue>\r
+ <defaultValue>true</defaultValue>\r
+ </field>\r
+ <field>\r
+ <name>appletFindEnabled</name>\r
+ <description>true if applet behavior for find artifacts should be enabled</description>\r
+ <version>1.0.0+</version> \r
+ <type>boolean</type> \r
+ <defaultValue>true</defaultValue>\r
</field>\r
</fields>\r
</class>\r
<webapp>
<ui>
- <showFindArtifacts>false</showFindArtifacts>
+ <showFindArtifacts>true</showFindArtifacts>
+ <appletFindEnabled>true</appletFindEnabled>
</ui>
</webapp>
<webapp>
<ui>
- <showFindArtifacts>false</showFindArtifacts>
+ <showFindArtifacts>true</showFindArtifacts>
+ <appletFindEnabled>true</appletFindEnabled>
</ui>
</webapp>
UserInterfaceOptions ui = (UserInterfaceOptions) webapp.getUi();
assertNotNull( "check webapp ui", ui );
- assertFalse( "check showFindArtifacts", ui.isShowFindArtifacts() );
+ assertTrue( "check showFindArtifacts", ui.isShowFindArtifacts() );
+ assertTrue( "check appletFindEnabled", ui.isAppletFindEnabled() );
}
public void testGetConfigurationSystemOverride() throws Exception
<ww:form method="POST" action="checksumSearch" namespace="/"
onsubmit="this.md5.value = generateMd5(this.file.value,this.md5.value); this.file.disabled = true">
+ <ww:if test="${sessionScope.uiOptions.appletFindEnabled}">
<tr>
<td class="tdLabel"><label for="checksumSearch_file" class="label">Search for:</label></td>
<td>
<input type="file" name="file" size="50" value="" id="checksumSearch_file"/>
</td>
</tr>
+ </ww:if>
<ww:textfield label="Checksum" size="50" name="md5"/>
<ww:submit value="Go!"/>
</ww:form>
+ <ww:if test="${sessionScope.uiOptions.appletFindEnabled}">
<p>
Select the file you would like to locate in the remote repository.
The entire file will
width="400" height="20" name="ChecksumApplet">
</applet>
</p>
-
+ </ww:if>
</div>
</div>