Files
Babydatenbank/web/xava/editors/radioButtonEditor.jsp
Socrates 9ed0f2a056 test
2020-05-26 10:29:34 +02:00

42 lines
923 B
Plaintext

<jsp:useBean id="style" class="org.openxava.web.style.Style" scope="request"/>
<%@ include file="validValueEditorCommon.jsp"%>
<%
if (editable) {
%>
<div class="<%=style.getRadioButtons()%>">
<%
java.util.Iterator it = p.validValuesLabels(request);
for (int i = baseIndex; it.hasNext(); i++) {
String selected = value == i ?"checked":"";
%>
<label>
<input type="radio" name="<%=propertyKey%>" tabindex="1" value="<%=i%>" <%=script%> <%=selected%>>
<span id="<%=propertyKey %><%=i%>"><%=it.next()%></span> &nbsp;&nbsp;
</label>
<%
String horizontal = request.getParameter("horizontal");
Boolean isHorizontal = Boolean.valueOf(horizontal);
%>
<% if (!isHorizontal.booleanValue()) %> <br> <% ; %>
<%
} // while
%>
</div>
<%
} else {
description = p.getValidValueLabel(request, value);
if (label) {
%>
<%=description%>
<%
}
else {
%>
<% } %>
<% } %>