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

META-INF.resources.xava.editors.dateTimeSeparatedCalendarEditor.jsp Maven / Gradle / Ivy

<%-- WARNING: IF YOU CHANGE THIS CODE PASS THE MANUAL TEST ON DateCalendarTest.txt --%>

<%@ page import="org.openxava.model.meta.MetaProperty" %>



<%
String propertyKey = request.getParameter("propertyKey");
MetaProperty p = (MetaProperty) request.getAttribute(propertyKey);
String [] fvalues = (String []) request.getAttribute(propertyKey + ".fvalue");
String fDate = fvalues[0];
String fTime = fvalues[1];
String fvalue = fDate + " " + fTime;
String align = p.isNumber()?"right":"left";
boolean editable="true".equals(request.getParameter("editable"));
String disabled=editable?"":"disabled";
boolean label = org.openxava.util.XavaPreferences.getInstance().isReadOnlyAsLabel();
String browser = request.getHeader("user-agent");
String size = browser.contains("Chrome")?"10":"12";
if (editable || !label) {
	String dateClass = editable?"xava_date":""; 
%>

>
	<%if (editable) {%>
	
	
	
	<%} %>


		
		
		
		
	
<%
} else {
%>
<%=fvalue%> 	
<%
}
%>
<% if (!editable) { %>
	
<% } %>			




© 2015 - 2024 Weber Informatics LLC | Privacy Policy