Subversion Repositories Sigmater

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6 Andrea 1
<#--
2
/*
3
 * $Id: Action.java 502296 2007-02-01 17:33:39Z niallp $
4
 *
5
 * Licensed to the Apache Software Foundation (ASF) under one
6
 * or more contributor license agreements.  See the NOTICE file
7
 * distributed with this work for additional information
8
 * regarding copyright ownership.  The ASF licenses this file
9
 * to you under the Apache License, Version 2.0 (the
10
 * "License"); you may not use this file except in compliance
11
 * with the License.  You may obtain a copy of the License at
12
 *
13
 *  http://www.apache.org/licenses/LICENSE-2.0
14
 *
15
 * Unless required by applicable law or agreed to in writing,
16
 * software distributed under the License is distributed on an
17
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18
 * KIND, either express or implied.  See the License for the
19
 * specific language governing permissions and limitations
20
 * under the License.
21
 */
22
-->
23
<#setting number_format="#.#####">
24
<select<#rt/>
25
 name="${parameters.name?default("")?html}"<#rt/>
26
<#if parameters.get("size")?exists>
27
 size="${parameters.get("size")?html}"<#rt/>
28
</#if>
29
<#if parameters.disabled?default(false)>
30
 disabled="disabled"<#rt/>
31
</#if>
32
<#if parameters.tabindex?exists>
33
 tabindex="${parameters.tabindex?html}"<#rt/>
34
</#if>
35
<#if parameters.id?exists>
36
 id="${parameters.id?html}"<#rt/>
37
</#if>
38
<#if parameters.cssClass?exists>
39
 class="${parameters.cssClass?html}"<#rt/>
40
</#if>
41
<#if parameters.cssStyle?exists>
42
 style="${parameters.cssStyle?html}"<#rt/>
43
</#if>
44
<#if parameters.title?exists>
45
 title="${parameters.title?html}"<#rt/>
46
</#if>
47
<#if parameters.multiple?default(false)>
48
 multiple="multiple"<#rt/>
49
</#if>
50
<#include "/${parameters.templateDir}/simple/scripting-events.ftl" />
51
<#include "/${parameters.templateDir}/simple/common-attributes.ftl" />
52
>
53
<#if parameters.headerKey?exists && parameters.headerValue?exists>
54
    <option value="${parameters.headerKey?html}"
55
    <#if tag.contains(parameters.nameValue, parameters.headerKey) == true>
56
    selected="selected"
57
    </#if>
58
    >${parameters.headerValue?html}</option>
59
</#if>
60
<#if parameters.emptyOption?default(false)>
61
    <option value=""></option>
62
</#if>
63
<@s.iterator value="parameters.list">
64
        <#if parameters.listKey?exists>
65
            <#if stack.findValue(parameters.listKey)?exists>
66
              <#assign itemKey = stack.findValue(parameters.listKey)/>
67
              <#assign itemKeyStr = itemKey.toString()/>
68
            <#else>
69
              <#assign itemKey = ''/>
70
              <#assign itemKeyStr = ''/>
71
            </#if>
72
        <#else>
73
            <#assign itemKey = stack.findValue('top')/>
74
            <#assign itemKeyStr = itemKey.toString()/>
75
        </#if>
76
        <#if parameters.listValue?exists>
77
            <#if stack.findString(parameters.listValue)?exists>
78
              <#assign itemValue = stack.findString(parameters.listValue)/>
79
            <#else>
80
              <#assign itemValue = ''/>
81
            </#if>
82
        <#else>
83
            <#assign itemValue = stack.findString('top')/>
84
        </#if>
85
    <option value="${itemKeyStr?html}"<#rt/>
86
        <#if tag.contains(parameters.nameValue, itemKey) == true>
87
 selected="selected"<#rt/>
88
        </#if>
89
    >${itemValue?html}</option><#lt/>
90
</@s.iterator>
91
 
92
<#include "/${parameters.templateDir}/simple/optgroup.ftl" />
93
 
94
</select>