From: <fg...@us...> - 2007-02-05 23:07:03
|
Revision: 226 http://svn.sourceforge.net/openutils/?rev=226&view=rev Author: fgiust Date: 2007-02-05 15:07:03 -0800 (Mon, 05 Feb 2007) Log Message: ----------- handle date fields Modified Paths: -------------- trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag Modified: trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag =================================================================== --- trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag 2007-02-05 21:54:13 UTC (rev 225) +++ trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag 2007-02-05 23:07:03 UTC (rev 226) @@ -17,7 +17,7 @@ <jsp:directive.attribute name="onchange" required="false" /> <jsp:directive.attribute name="cssclass" required="false" /> <jsp:directive.attribute name="key" required="false" /> - <jsp:directive.attribute name="onblur" required="false" /> + <jsp:directive.attribute name="onblur" required="false" /> <jsp:directive.attribute name="label" required="false" type="java.lang.String" /> @@ -36,101 +36,113 @@ <c:if test="${type == 'keyshow' and !empty(status.value)}"> <c:set var="readonly" value="${true}" /> </c:if> + <c:if test="${type == 'date'}"> + <c:set var="type">text</c:set> + <c:set var="datepicker" value="${true}" /> + </c:if> <c:set var="divclass">formelement</c:set> - <c:choose> - <c:when test="${empty(label)}"> - <c:set var="labelmsg"><fmt:message key="${key}" /></c:set> - </c:when> - <c:otherwise> - <c:set var="labelmsg">${label}</c:set> - </c:otherwise> - </c:choose> + <c:choose> + <c:when test="${empty(label)}"> + <c:set var="labelmsg"><fmt:message key="${key}" /></c:set> + </c:when> + <c:otherwise> + <c:set var="labelmsg">${label}</c:set> + </c:otherwise> + </c:choose> <c:choose> <c:when test="${!nobind}"> <spring:bind path="${path}"> - <c:set var="divclass">formelement <c:if test="${!empty(status.errorMessage)}"> formelementerror</c:if></c:set> + <c:set var="divclass">formelement <c:if test="${!empty(status.errorMessage)}"> formelementerror</c:if></c:set> - <c:choose> - <c:when test="${type == 'hidden'}"> - <input type="hidden" name="${name}" id="${name}" value="${status.value}" /> - </c:when> - <c:when test="${bare}"> + <c:choose> + <c:when test="${type == 'hidden'}"> + <input type="hidden" name="${name}" id="${name}" value="${status.value}" /> + </c:when> + <c:when test="${bare}"> - <c:choose> - <c:when test="${maxlength le 256}"> - <ou:txtinput type="text" name="${name}" value="${status.value}" cssclass="text ${cssclass}" maxlength="${maxlength}" style="${style}" readonly="${readonly}" disabled="${disabled}" onkeypress="${onkeypress}" onkeydown="${onkeydown}" onkeyup="${onkeyup}" onchange="${onchange}" onblur="${onblur}"/> - </c:when> - <c:otherwise> - <ou:txttextarea name="${name}" value="${status.value}" style="${style}" cssclass="inputtextarea ${cssclass}" /> - </c:otherwise> - </c:choose> - </c:when> - <c:when test="${type == 'password'}"> - <div class="${divclass}"> - <label for="${name}">${labelmsg}:</label> + <c:choose> + <c:when test="${maxlength le 256}"> + <ou:txtinput type="text" name="${name}" value="${status.value}" cssclass="text ${cssclass}" maxlength="${maxlength}" style="${style}" readonly="${readonly}" disabled="${disabled}" onkeypress="${onkeypress}" onkeydown="${onkeydown}" onkeyup="${onkeyup}" onchange="${onchange}" onblur="${onblur}"/> + </c:when> + <c:otherwise> + <ou:txttextarea name="${name}" value="${status.value}" style="${style}" cssclass="inputtextarea ${cssclass}" /> + </c:otherwise> + </c:choose> + </c:when> + <c:when test="${type == 'password'}"> + <div class="${divclass}"> + <label for="${name}">${labelmsg}:</label> - <ou:txtinput type="password" name="${name}" value="${status.value}" cssclass="text ${cssclass}" maxlength="${maxlength}" style="${style}" readonly="${readonly}" disabled="${disabled}" onkeypress="${onkeypress}" onkeydown="${onkeydown}" onkeyup="${onkeyup}" onchange="${onchange}" onblur="${onblur}"/> + <ou:txtinput type="password" name="${name}" value="${status.value}" cssclass="text ${cssclass}" maxlength="${maxlength}" style="${style}" readonly="${readonly}" disabled="${disabled}" onkeypress="${onkeypress}" onkeydown="${onkeydown}" onkeyup="${onkeyup}" onchange="${onchange}" onblur="${onblur}"/> - <div class="clear"><!-- --></div> - </div> - </c:when> - <c:otherwise> - <div class="${divclass}"> - <label for="${name}">${labelmsg}:</label> + <div class="clear"><!-- --></div> + </div> + </c:when> + <c:otherwise> + <div class="${divclass}"> + <label for="${name}">${labelmsg}:</label> <c:choose> - <c:when test="${maxlength le 256}"> - <ou:txtinput type="text" name="${name}" value="${status.value}" cssclass="text ${cssclass}" maxlength="${maxlength}" style="${style}" readonly="${readonly}" disabled="${disabled}" onkeypress="${onkeypress}" onkeydown="${onkeydown}" onkeyup="${onkeyup}" onchange="${onchange}" onblur="${onblur}"/> - </c:when> - <c:otherwise> - <ou:txttextarea name="${name}" value="${status.value}" style="${style}" cssclass="inputtextarea ${cssclass}" /> - </c:otherwise> - </c:choose> + <c:when test="${maxlength le 256}"> + <ou:txtinput type="text" name="${name}" value="${status.value}" cssclass="text ${cssclass}" maxlength="${maxlength}" style="${style}" readonly="${readonly}" disabled="${disabled}" onkeypress="${onkeypress}" onkeydown="${onkeydown}" onkeyup="${onkeyup}" onchange="${onchange}" onblur="${onblur}"/> + </c:when> + <c:otherwise> + <ou:txttextarea name="${name}" value="${status.value}" style="${style}" cssclass="inputtextarea ${cssclass}" /> + </c:otherwise> + </c:choose> + <c:if test="${datepicker}"> + <a href="javascript:showCal('divdata${name}','${name}')" title="seleziona" class="calbtn"> + <span>C</span> + </a> + <div class="calendar" id="divdata${name}" style="display:none"><!-- --></div> + <!--[if gte IE 5.5]> + <iframe id='divdata${name}iframe' class='calendarIframe' src='javascript:false;' frameBorder='0' scrolling='no' + style="display:none;filter:progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)"><!-- x --></iframe> + <![endif]--> + <script type="text/javascript">createCalendar('${status.value}', 'divdata${name}', '${name}')</script> + </c:if> - <div class="clear"><!-- --></div> - </div> - </c:otherwise> - </c:choose> + <div class="clear"><!-- --></div> + </div> + </c:otherwise> + </c:choose> </spring:bind> </c:when> <c:otherwise> - <c:choose> - <c:when test="${type == 'hidden'}"> - <input type="hidden" name="${name}" id="${name}" value="${status.value}" /> - </c:when> - <c:when test="${bare}"> - <ou:txtinput type="text" name="${name}" value="${status.value}" cssclass="text" maxlength="${maxlength}" style="${style}" readonly="${readonly}" disabled="${disabled}" onkeypress="${onkeypress}" onkeydown="${onkeydown}" onkeyup="${onkeyup}" onchange="${onchange}" onblur="${onblur}"/> - </c:when> - <c:otherwise> - <div class="${divclass}"> - <label for="${name}">${labelmsg}:</label> + <c:choose> + <c:when test="${type == 'hidden'}"> + <input type="hidden" name="${name}" id="${name}" value="${status.value}" /> + </c:when> + <c:when test="${bare}"> + <ou:txtinput type="text" name="${name}" value="${status.value}" cssclass="text" maxlength="${maxlength}" style="${style}" readonly="${readonly}" disabled="${disabled}" onkeypress="${onkeypress}" onkeydown="${onkeydown}" onkeyup="${onkeyup}" onchange="${onchange}" onblur="${onblur}"/> + </c:when> + <c:otherwise> + <div class="${divclass}"> + <label for="${name}">${labelmsg}:</label> <c:choose> - <c:when test="${maxlength le 256}"> - <ou:txtinput type="text" name="${name}" value="${status.value}" cssclass="text" maxlength="${maxlength}" style="${style}" readonly="${readonly}" disabled="${disabled}" onkeypress="${onkeypress}" onkeydown="${onkeydown}" onkeyup="${onkeyup}" onchange="${onchange}" onblur="${onblur}"/> - </c:when> - <c:otherwise> - <ou:txttextarea name="${name}" value="${status.value}" style="${style}" cssclass="inputtextarea" /> - </c:otherwise> - </c:choose> + <c:when test="${maxlength le 256}"> + <ou:txtinput type="text" name="${name}" value="${status.value}" cssclass="text" maxlength="${maxlength}" style="${style}" readonly="${readonly}" disabled="${disabled}" onkeypress="${onkeypress}" onkeydown="${onkeydown}" onkeyup="${onkeyup}" onchange="${onchange}" onblur="${onblur}"/> + </c:when> + <c:otherwise> + <ou:txttextarea name="${name}" value="${status.value}" style="${style}" cssclass="inputtextarea" /> + </c:otherwise> + </c:choose> - <div class="clear"><!-- --></div> - </div> - </c:otherwise> - </c:choose> + <div class="clear"><!-- --></div> + </div> + </c:otherwise> + </c:choose> </c:otherwise> </c:choose> - - - </jsp:root> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2007-02-11 17:22:28
|
Revision: 240 http://svn.sourceforge.net/openutils/?rev=240&view=rev Author: fgiust Date: 2007-02-11 09:22:27 -0800 (Sun, 11 Feb 2007) Log Message: ----------- add specific class to formelement div Modified Paths: -------------- trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag Modified: trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag =================================================================== --- trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag 2007-02-11 09:39:48 UTC (rev 239) +++ trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag 2007-02-11 17:22:27 UTC (rev 240) @@ -50,7 +50,9 @@ <c:if test="${maxlength ge 256}"> <c:set var="type" value="textarea" /> </c:if> - <c:set var="divclass">formelement</c:set> + <c:set var="divclass"> + <jsp:text>formelement formelement${type}</jsp:text> + </c:set> <c:set var="cssclass"> <jsp:text>${type} ${cssclass}</jsp:text> <c:if test="${readonly}">${elx:space()}readonly</c:if> @@ -70,7 +72,7 @@ <c:when test="${!nobind}"> <spring:bind path="${path}"> <c:set var="divclass"> - <jsp:text>formelement</jsp:text> + <jsp:text>${divclass}</jsp:text> <c:if test="${!empty(status.errorMessage)}">${elx:space()}formelementerror</c:if> </c:set> <c:choose> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2007-02-14 21:52:07
|
Revision: 262 http://svn.sourceforge.net/openutils/?rev=262&view=rev Author: fgiust Date: 2007-02-14 13:52:07 -0800 (Wed, 14 Feb 2007) Log Message: ----------- use bind for label Modified Paths: -------------- trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag Modified: trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag =================================================================== --- trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag 2007-02-14 21:45:23 UTC (rev 261) +++ trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag 2007-02-14 21:52:07 UTC (rev 262) @@ -53,9 +53,6 @@ <c:if test="${maxlength ge 256}"> <c:set var="type" value="textarea" /> </c:if> - <c:if test="${type eq 'label'}"> - <c:set var="nobind" value="${true}" /> - </c:if> <c:set var="divclass"> <jsp:text>formelement formelement${type}</jsp:text> </c:set> @@ -89,6 +86,13 @@ onkeypress="${onkeypress}" onkeydown="${onkeydown}" onkeyup="${onkeyup}" onchange="${onchange}" onblur="${onblur}" checked="${status.value}" /> </c:when> + <c:when test="${type == 'label'}"> + <div class="${divclass}"> + <label for="${name}">${labelmsg}</label> + <span class="text">${status.value}</span> + <div class="clear"><!-- --></div> + </div> + </c:when> <c:otherwise> <div class="${divclass}"> <label for="${name}">${labelmsg}</label> @@ -122,13 +126,6 @@ onkeypress="${onkeypress}" onkeydown="${onkeydown}" onkeyup="${onkeyup}" onchange="${onchange}" onblur="${onblur}" /> </c:when> - <c:when test="${type == 'label'}"> - <div class="${divclass}"> - <label for="${name}">${labelmsg}</label> - <span class="text">${status.value}</span> - <div class="clear"><!-- --></div> - </div> - </c:when> <c:otherwise> <div class="${divclass}"> <label for="${name}">${labelmsg}</label> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fc...@us...> - 2007-02-16 14:25:15
|
Revision: 267 http://svn.sourceforge.net/openutils/?rev=267&view=rev Author: fcarone Date: 2007-02-16 06:25:15 -0800 (Fri, 16 Feb 2007) Log Message: ----------- first attempt to handle checkbox checked property Modified Paths: -------------- trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag Modified: trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag =================================================================== --- trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag 2007-02-16 14:24:14 UTC (rev 266) +++ trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag 2007-02-16 14:25:15 UTC (rev 267) @@ -104,7 +104,7 @@ <ou:txtinput type="${type}" name="${name}" value="${status.value}" cssclass="${cssclass}" maxlength="${maxlength}" style="${style}" readonly="${readonly}" disabled="${disabled}" onkeypress="${onkeypress}" onkeydown="${onkeydown}" onkeyup="${onkeyup}" onchange="${onchange}" - onblur="${onblur}" /> + onblur="${onblur}" checked="${status.value}" /> <c:if test="${datepicker}"> <a href="javascript:showCal('divdata${name}','${name}')" title="seleziona" class="calbtn"> <span>C</span> @@ -145,7 +145,7 @@ <ou:txtinput type="${type}" name="${name}" value="${status.value}" cssclass="${cssclass}" maxlength="${maxlength}" style="${style}" readonly="${readonly}" disabled="${disabled}" onkeypress="${onkeypress}" onkeydown="${onkeydown}" onkeyup="${onkeyup}" onchange="${onchange}" - onblur="${onblur}" /> + onblur="${onblur}" checked="${status.value}" /> </c:when> <c:otherwise> <div class="${divclass}"> @@ -153,7 +153,7 @@ <ou:txtinput type="${type}" name="${name}" value="${status.value}" cssclass="${cssclass}" maxlength="${maxlength}" style="${style}" readonly="${readonly}" disabled="${disabled}" onkeypress="${onkeypress}" onkeydown="${onkeydown}" onkeyup="${onkeyup}" onchange="${onchange}" - onblur="${onblur}" /> + onblur="${onblur}" checked="${status.value}" /> <div class="clear"><!-- --></div> </div> </c:otherwise> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2007-02-18 16:26:07
|
Revision: 272 http://svn.sourceforge.net/openutils/?rev=272&view=rev Author: fgiust Date: 2007-02-18 08:26:08 -0800 (Sun, 18 Feb 2007) Log Message: ----------- fix style when type is not defined Modified Paths: -------------- trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag Modified: trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag =================================================================== --- trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag 2007-02-18 14:24:05 UTC (rev 271) +++ trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag 2007-02-18 16:26:08 UTC (rev 272) @@ -21,8 +21,11 @@ <jsp:directive.attribute name="onblur" required="false" /> <jsp:directive.attribute name="label" required="false" type="java.lang.String" /> <c:if test="${empty(key)}"> - <c:set var="key">${path}</c:set> + <c:set var="key" value="${path}" /> </c:if> + <c:if test="${empty(type)}"> + <c:set var="type" value="text" /> + </c:if> <c:if test="${empty(name)}"> <c:set var="name">${su:substringAfter(path, ".")}</c:set> </c:if> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2007-02-19 13:29:14
|
Revision: 273 http://svn.sourceforge.net/openutils/?rev=273&view=rev Author: fgiust Date: 2007-02-19 05:29:12 -0800 (Mon, 19 Feb 2007) Log Message: ----------- don't show labels for hidden fields Modified Paths: -------------- trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag Modified: trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag =================================================================== --- trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag 2007-02-18 16:26:08 UTC (rev 272) +++ trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag 2007-02-19 13:29:12 UTC (rev 273) @@ -49,6 +49,9 @@ </c:otherwise> </c:choose> </c:if> + <c:if test="${type == 'hidden'}"> + <c:set var="bare" value="${true}" /><!-- don't show labels for hidden fields --> + </c:if> <c:if test="${type == 'date'}"> <c:set var="type" value="text" /> <c:set var="datepicker" value="${true}" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2007-02-19 17:03:55
|
Revision: 274 http://svn.sourceforge.net/openutils/?rev=274&view=rev Author: fgiust Date: 2007-02-19 09:03:50 -0800 (Mon, 19 Feb 2007) Log Message: ----------- fix binding for checked Modified Paths: -------------- trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag Modified: trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag =================================================================== --- trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag 2007-02-19 13:29:12 UTC (rev 273) +++ trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag 2007-02-19 17:03:50 UTC (rev 274) @@ -71,6 +71,9 @@ <jsp:text>${type} ${cssclass}</jsp:text> <c:if test="${readonly}">${elx:space()}readonly</c:if> </c:set> + <c:if test="${type == 'checkbox' and status.value}"> + <c:set var="checked" value="${true}" /> + </c:if> <c:choose> <c:when test="${empty(label)}"> <c:set var="labelmsg"> @@ -95,7 +98,7 @@ <ou:txtinput type="${type}" name="${name}" value="${status.value}" cssclass="${cssclass}" maxlength="${maxlength}" style="${style}" readonly="${readonly}" disabled="${disabled}" onkeypress="${onkeypress}" onkeydown="${onkeydown}" onkeyup="${onkeyup}" onchange="${onchange}" - onblur="${onblur}" checked="${status.value}" /> + onblur="${onblur}" checked="${checked}" /> </c:when> <c:when test="${type == 'label'}"> <div class="${divclass}"> @@ -110,7 +113,7 @@ <ou:txtinput type="${type}" name="${name}" value="${status.value}" cssclass="${cssclass}" maxlength="${maxlength}" style="${style}" readonly="${readonly}" disabled="${disabled}" onkeypress="${onkeypress}" onkeydown="${onkeydown}" onkeyup="${onkeyup}" onchange="${onchange}" - onblur="${onblur}" checked="${status.value}" /> + onblur="${onblur}" checked="${checked}" /> <c:if test="${datepicker}"> <a href="javascript:showCal('divdata${name}','${name}')" title="seleziona" class="calbtn"> <span>C</span> @@ -151,7 +154,7 @@ <ou:txtinput type="${type}" name="${name}" value="${status.value}" cssclass="${cssclass}" maxlength="${maxlength}" style="${style}" readonly="${readonly}" disabled="${disabled}" onkeypress="${onkeypress}" onkeydown="${onkeydown}" onkeyup="${onkeyup}" onchange="${onchange}" - onblur="${onblur}" checked="${status.value}" /> + onblur="${onblur}" checked="${checked}" /> </c:when> <c:otherwise> <div class="${divclass}"> @@ -159,7 +162,7 @@ <ou:txtinput type="${type}" name="${name}" value="${status.value}" cssclass="${cssclass}" maxlength="${maxlength}" style="${style}" readonly="${readonly}" disabled="${disabled}" onkeypress="${onkeypress}" onkeydown="${onkeydown}" onkeyup="${onkeyup}" onchange="${onchange}" - onblur="${onblur}" checked="${status.value}" /> + onblur="${onblur}" checked="${checked}" /> <div class="clear"><!-- --></div> </div> </c:otherwise> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2007-02-21 17:32:31
|
Revision: 282 http://svn.sourceforge.net/openutils/?rev=282&view=rev Author: fgiust Date: 2007-02-21 09:32:31 -0800 (Wed, 21 Feb 2007) Log Message: ----------- fix dateformat in datepicker, null values in checkboxes Modified Paths: -------------- trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag Modified: trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag =================================================================== --- trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag 2007-02-21 17:27:17 UTC (rev 281) +++ trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag 2007-02-21 17:32:31 UTC (rev 282) @@ -57,8 +57,8 @@ <c:set var="datepicker" value="${true}" /> </c:if> <c:if test="${su:substringBefore(type, ' ') == 'date'}"> + <c:set var="dateformat" value="${su:substringAfter(type, ' ')}" /> <c:set var="type" value="text" /> - <c:set var="dateformat" value="${su:substringAfter(type, ' ')}" /> <c:set var="datepickernew" value="${true}" /> </c:if> <c:if test="${maxlength ge 256}"> @@ -71,8 +71,13 @@ <jsp:text>${type} ${cssclass}</jsp:text> <c:if test="${readonly}">${elx:space()}readonly</c:if> </c:set> - <c:if test="${type == 'checkbox' and status.value}"> - <c:set var="checked" value="${true}" /> + <c:if test="${type == 'checkbox'}"> + <c:if test="${status.value}"> + <c:set var="checked" value="${true}" /> + </c:if> + <c:if test="${empty(status.value)}"> + <c:set var="status.value" value="${true}" /> + </c:if> </c:if> <c:choose> <c:when test="${empty(label)}"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2007-03-05 11:27:48
|
Revision: 314 http://svn.sourceforge.net/openutils/?rev=314&view=rev Author: fgiust Date: 2007-03-05 02:59:55 -0800 (Mon, 05 Mar 2007) Log Message: ----------- don't print out value attribute for file fields Modified Paths: -------------- trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag Modified: trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag =================================================================== --- trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag 2007-03-03 11:18:23 UTC (rev 313) +++ trunk/openutils-tags-spring/src/main/resources/META-INF/tags/ou/input.tag 2007-03-05 10:59:55 UTC (rev 314) @@ -50,7 +50,8 @@ </c:choose> </c:if> <c:if test="${type == 'hidden'}"> - <c:set var="bare" value="${true}" /><!-- don't show labels for hidden fields --> + <c:set var="bare" value="${true}" /> + <!-- don't show labels for hidden fields --> </c:if> <c:if test="${type == 'date'}"> <c:set var="type" value="text" /> @@ -83,7 +84,9 @@ </c:choose> <!-- stampa campi --> <c:choose> - <c:when test="${donothing}"><!-- don't print anything --></c:when> + <c:when test="${donothing}"> + <!-- don't print anything --> + </c:when> <c:when test="${!nobind}"> <spring:bind path="${path}"> <c:if test="${type == 'checkbox'}"></c:if> @@ -94,6 +97,9 @@ </c:if> <c:set var="value" value="${true}" /> </c:when> + <c:when test="${type == 'file'}"> + <c:set var="value" value="" /> + </c:when> <c:otherwise> <c:set var="value" value="${status.value}" /> </c:otherwise> @@ -158,7 +164,8 @@ </c:choose> </spring:bind> </c:when> - <c:otherwise><!-- no spring binding --> + <c:otherwise> + <!-- no spring binding --> <c:choose> <c:when test="${bare}"> <ou:txtinput type="${type}" name="${name}" value="${status.value}" cssclass="${cssclass}" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |