12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <!-- Licensed Materials - Property of IBM
- BI and PM: Mobile
- (C) Copyright IBM Corp. 2007, 2012
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. -->
- <div class="prompt" ${prompt}>
- <%
- String displayName = prompt.label;
- if (displayName == null || displayName.isEmpty()) {
- displayName = prompt.name;
- }
- %>
- <%
- if( !label ) out << "<label>${displayName}</label>"
- %>
- <div id="msg${prompt.name}"></div>
- <select name="p_${prompt.name}"
- <%
- classes = "msgPos:'msg${prompt.name}' pvalue ";
- if( prompt.required ) classes += " selectrequired"
- out << " class='${classes}' >"
-
- out << "<option value='<NONE>' >${displayName}</option>";
- out << "<option value='<NONE>' >---------------</option>";
-
- prompt.options.keys().each{ key ->
- String value = prompt.options.get(key);
- if (value == null ) {
- out << "<option value='<NULL>'";
- }
- else {
- out << "<option value='<![CDATA[${value}]]>'";
- }
-
- if(prompt.isSelected(key) || prompt.isValueSelected(value)) {
- out << " selected='true'";
- }
-
- out << ">${key}</option>";
- }
- %>
- </select>
- </div>
|