template.xhtml.controlheader-core.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!
<#--
Only show message if errors are available.
This will be done if ActionSupport is used.
-->
<#assign hasFieldErrors = parameters.name?exists && fieldErrors?exists && fieldErrors[parameters.name]?exists/>
<#if hasFieldErrors>
<#list fieldErrors[parameters.name] as error>
<#if parameters.labelposition?default("") == 'top'>
<#rt/>
<#else>
<#rt/>
#if>
${error?html}<#t/>
<#lt/>
#list>
#if>
<#--
if the label position is top,
then give the label it's own row in the table
-->
<#if parameters.labelposition?default("") == 'top'>
<#rt/>
<#else>
<#rt/>
#if>
<#if parameters.label?exists>
<#if parameters.id?exists>
for="${parameters.id?html}" <#t/>
#if>
<#if hasFieldErrors>
class="errorLabel"<#t/>
<#else>
class="label"<#t/>
#if>
><#t/>
<#if parameters.required?default(false) && parameters.requiredposition?default("right") != 'right'>
*<#t/>
#if>
${parameters.label?html}<#t/>
<#if parameters.required?default(false) && parameters.requiredposition?default("right") == 'right'>
*<#t/>
#if>
:<#t/>
<#include "/${parameters.templateDir}/xhtml/tooltip.ftl" />
<#t/>
#if>
<#lt/>
<#-- add the extra row -->
<#if parameters.labelposition?default("") == 'top'>
#if>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy