All Downloads are FREE. Search and download functionalities are using the official Maven repository.

template.css_xhtml.checkbox.ftl Maven / Gradle / Ivy

Go to download

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!
<#--
NOTE: The 'header' stuff that follows is in this one file for checkbox due to the fact
that for checkboxes we do not want the label field to show up as checkboxes handle their own
lables
-->
<#assign hasFieldErrors = fieldErrors?exists && fieldErrors[parameters.name]?exists/>
<#if parameters.id?exists>id="wwgrp_${parameters.id}"<#rt/> class="wwgrp"> <#if hasFieldErrors>
<#if parameters.id?exists>id="wwerr_${parameters.id}"<#rt/> class="wwerr"> <#list fieldErrors[parameters.name] as error> <#if parameters.id?exists> errorFor="${parameters.id}"<#rt/> class="errorMessage"> ${error?html}
<#t/>
<#t/> <#if parameters.labelposition?default("top") == 'top'>
<#else> <#if parameters.id?exists>id="wwctrl_${parameters.id}"<#rt/> class="wwctrl"> <#if parameters.required?default(false)> *<#t/> <#include "/${parameters.templateDir}/simple/checkbox.ftl" /> <#if parameters.labelposition?default("top") == 'top'>
<#rt/> <#else> <#rt/> <#if parameters.label?exists> <#if parameters.labelposition?default("top") == 'top'>
<#else> <#if parameters.id?exists>id="wwlbl_${parameters.id}"<#rt/> class="wwlbl"> <#if parameters.id?exists> for="${parameters.id?html}"<#rt/> <#if hasFieldErrors> class="checkboxErrorLabel"<#rt/> <#else> class="checkboxLabel"<#rt/> >${parameters.label?html}<#rt/> <#include "/${parameters.templateDir}/css_xhtml/controlfooter.ftl" /><#nt/>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy