mirror of
https://github.com/apache/struts.git
synced 2026-08-07 07:37:20 +00:00
WW-5255 Fixes <s:script/> and <s:link/> and uses them across tags
This commit is contained in:
@@ -20,18 +20,26 @@
|
||||
-->
|
||||
<!-- Validators -->
|
||||
<table width="100%">
|
||||
<tr><th>Field</th><th>Type</th><th> </th></tr>
|
||||
<tr>
|
||||
<th>Field</th>
|
||||
<th>Type</th>
|
||||
<th> </th>
|
||||
</tr>
|
||||
<#assign row = 0>
|
||||
<#if validators??>
|
||||
<#foreach i in validators>
|
||||
<tr <#if i_index%2 gt 0>class="b"<#else>class="a"</#if>>
|
||||
<td>${i.fieldName!"(see expression)"}</td>
|
||||
<td>${action.stripPackage(i.class)}</td>
|
||||
<td>
|
||||
<a href="#" onClick="window.open('validatorDetails.${extension}?clazz=${clazz}&context=${context}&selected=${row}', 'Validator Details', 'resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,width=640,height=480');">details</a>
|
||||
</td>
|
||||
</tr>
|
||||
<#assign row = row + 1>
|
||||
<#if validators??>
|
||||
<#foreach i in validators>
|
||||
<tr <#if i_index%2 gt 0>class="b" <#else>class="a"</#if>>
|
||||
<td>${i.fieldName!"(see expression)"}</td>
|
||||
<td>${action.stripPackage(i.class)}</td>
|
||||
<td><a href="#" id="show-validators">details</a></td>
|
||||
</tr>
|
||||
<#assign row = row + 1>
|
||||
</#foreach>
|
||||
</#if>
|
||||
</#if>
|
||||
</table>
|
||||
<@s.script>
|
||||
document.getElementById('show-validators').onclick = function() {
|
||||
window.open('validatorDetails.${extension}?clazz=${clazz}&context=${context}&selected=${row}', 'Validator Details', 'resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,width=640,height=480');
|
||||
return false;
|
||||
}
|
||||
</@s.script>
|
||||
|
||||
Reference in New Issue
Block a user