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

io.vertigo.struts2.ftl.template.simple.radiomap.ftl Maven / Gradle / Ivy

The newest version!
<#--
/*
 * $Id: radiomap.ftl,v 1.5 2014/03/20 16:39:17 npiedeloup Exp $
 */
-->
<@s.iterator value="parameters.list">
    <#if parameters.listKey??>
        <#assign itemKey = stack.findValue(parameters.listKey)/>
    <#else>
        <#assign itemKey = stack.findValue('top')/>
    
    <#assign itemKeyStr = itemKey.toString() />
    <#if parameters.listValueKey??>
        <#-- checks the valueStack for the 'valueKey.' The valueKey is then looked-up in the locale 
             file for it's localized value.  This is then used as a label -->
        <#assign itemValue = stack.findString(parameters.listValueKey)/>
        <#-- FIXME: find a better way to get the value than a call to @s.text -->
        <#assign itemValue><@s.text name="${itemValue}"/>
    <#elseif parameters.listValue??>
        <#assign itemValue = stack.findString(parameters.listValue)/>
    <#else>
        <#assign itemValue = stack.findString('top')/>
    
    <#if parameters.listCssClass?has_content>
        <#assign itemCssClass= stack.findString(parameters.listCssClass)!''/>
    
    <#if parameters.listCssStyle?has_content>
        <#assign itemCssStyle= stack.findString(parameters.listCssStyle)!''/>
    
    <#if parameters.listTitle?has_content>
        <#assign itemTitle= stack.findString(parameters.listTitle)!''/>
    
<#assign previousCssClass = appendedCssClass!''/>
<#assign appendedCssClass = previousCssClass +' radio'/>





© 2015 - 2025 Weber Informatics LLC | Privacy Policy