config-browser.showConfig.ftl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webwork Show documentation
Show all versions of webwork Show documentation
WebWork is a Java web-application development framework.
It is built specifically with developer productivity and
code simplicity in mind, providing robust support for building
reusable UI templates, such as form controls, UI themes,
internationalization, dynamic form parameter mapping to JavaBeans,
robust client and server side validation, and much more.
The newest version!
<#include "tigris-macros.ftl"/>
<@startPage pageTitle="Action information"/>
Action information - ${actionName}
Action name: ${actionName}
Namespace: ${namespace}
Action class: ${config.className}
Action method: <#if config.methodName?exists>${config.methodName}#if>
Parameters: <#list config.params?keys as p>
${p}
#list>
Default location:
${base}${namespace}/${actionName}.${extension}
<@ww.url id="url" action="showConfig" includeParams="none">
<@ww.param name="namespace">${namespace}@ww.param>
<@ww.param name="actionName">${actionName}@ww.param>
@ww.url>
<#assign url = url + "&detailView=">
<#assign detailsSelected = false>
<#assign exceptionsSelected = false>
<#assign interceptorsSelected = false>
<#assign propertiesSelected = false>
<#assign validatorsSelected = false>
<#if detailView == "results">
<#assign detailsSelected = true>
<#elseif detailView == "exceptions">
<#assign exceptionsSelected = true>
<#elseif detailView == "interceptors">
<#assign interceptorsSelected = true>
<#elseif detailView == "properties">
<#assign propertiesSelected = true>
<#else>
<#assign validatorsSelected = true>
#if>
<@startTabs/>
<#call tab name="Results" url="${url}results" isSelected="${detailsSelected?string}"/>
<#call tab name="Exception Mappings" url="${url}exceptions" isSelected="${exceptionsSelected?string}"/>
<#call tab name="Interceptors" url="${url}interceptors" isSelected="${interceptorsSelected?string}"/>
<#call tab name="Properties" url="${url}properties" isSelected="${propertiesSelected?string}"/>
<#call tab name="Validators" url="${url}validators" isSelected="${validatorsSelected?string}"/>
<@endTabs/>
<#if detailsSelected>
Name Type Parameters
<#assign count=config.results?size>
<#list config.results.values() as r>
class="b"<#else>class="a"#if>>
${r.name}
${r.className}
<#list r.params.keySet() as p>
${p} = ${r.params[p]}
#list>
#list>
<#elseif exceptionsSelected>
Name Exception Class Name Result Parameters
<#list config.exceptionMappings as e>
class="b"<#else>class="a"#if>>
${e.name}
${e.exceptionClassName}
${e.result}
<#list e.params.keySet() as p>
${p} = ${e.params[p]}
#list>
#list>
<#elseif interceptorsSelected>
Name Type
<#list config.interceptors as i>
class="b"<#else>class="a"#if>>
${action.stripPackage(i.interceptor.class)}
${i.interceptor.class.name}
#list>
<#elseif propertiesSelected>
Name Type
<#list properties as prop>
class="b"<#else>class="a"#if>>
${prop.name}
${prop.propertyType.name}
#list>
<#else>
<@ww.action name="showValidators" executeResult="true">
<@ww.param name="clazz" value="'${config.className}'"/>
<@ww.param name="context" value="'${namespace}'"/>
@ww.action>
#if>
<#call endPage>