<?xml version="1.0" encoding="ISO-8859-1"?>

<jsp:root	xmlns:jsp="http://java.sun.com/JSP/Page" 
				xmlns:c="http://java.sun.com/jsp/jstl/core" 
				xmlns:fe="http://www.emdt.ardeo.net/jsp/fe"
				version="2.0">
	<jsp:directive.page contentType="text/html" />
	<fe:formElement var="fe" element="${element}"/>
	<tr>
		<td class="label"><c:out value="${fe.label }"/></td>
		<td class="input">
			<c:choose>
				<c:when test="${fe.type == 'date' }">
					<c:set var="val"><bean:write format="dd/MM/yyyy" name="ctx" property="${id}"  /></c:set>
				</c:when>
				<c:otherwise>
					<bean:define id="val"  name="ctx" property="${id}" />
				</c:otherwise>
			</c:choose>
			<input class="<c:out value="${fe.requiredValid : '' : 'invalid'}"/>" type="text" id="<c:out value="${fe.id }"/>" name="<c:out value="${fe.id }"/>" value="<c:out value="${val}"/>" title="<c:out value="${fe.hint }"/>"/>
			<c:if test="${!fe.requiredValid }">
				<img title="<c:out value="${fe.alert}"/>" src="../images/16x16/important.png"/>
			</c:if>
			<c:if test="${fe.type == 'date' }">
				<img title='Click to choose date' style='cursor: pointer' src='../images/16x16/date.png' id='<c:out value="${fe.id }"/>_DateTrigger'/>
			</c:if>
		</td>
	</tr>
</jsp:root>