This commit is contained in:
Socrates
2020-05-26 10:29:34 +02:00
commit 9ed0f2a056
1162 changed files with 162062 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
<%@ include file="validValueEditorCommon.jsp"%>
<jsp:useBean id="style" class="org.openxava.web.style.Style" scope="request"/>
<%
if (editable) {
%>
<select id="<%=propertyKey%>" name="<%=propertyKey%>" tabindex="1" class=<%=style.getEditor()%> <%=script%> title="<%=p.getDescription(request)%>">
<%
boolean isInElementCollection = request.getParameter("collectionName") != null;
if (isInElementCollection || !required) {
%>
<option value="<%=baseIndex==0?"":"0"%>"></option>
<%
}
java.util.Iterator it = validValuesProperty.validValuesLabels();
for (int i = baseIndex; it.hasNext(); i++) {
String selected = value == i ?"selected":"";
%>
<option value="<%=i%>" <%=selected%>><%=it.next()%></option>
<%
} // while
%>
</select>
<input type="hidden" name="<%=propertyKey%>__DESCRIPTION__" value="<%=description%>"/>
<%
} else {
if (label) {
%>
<%=description%>
<%
}
else {
%>
<input name = "<%=propertyKey%>_DESCRIPTION_" class=<%=style.getEditor()%>
type="text"
title="<%=p.getDescription(request)%>"
maxlength="<%=p.getSize()%>"
size="<%=p.getSize()%>"
value="<%=description%>"
disabled
/>
<% } %>
<input type="hidden" name="<%=propertyKey%>" value="<%=value==-1?"":String.valueOf(value)%>">
<% } %>