myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From caga...@apache.org
Subject svn commit: r517697 - /myfaces/tomahawk/branches/1_1_5/core/src/main/java/org/apache/myfaces/custom/date/HtmlInputDate.java
Date Tue, 13 Mar 2007 13:44:36 GMT
Author: cagatay
Date: Tue Mar 13 06:44:35 2007
New Revision: 517697

URL: http://svn.apache.org/viewvc?view=rev&rev=517697
Log:
Fix for TOMAHAWK-903, Thanks to Zdenek Sochor for the patch

Modified:
    myfaces/tomahawk/branches/1_1_5/core/src/main/java/org/apache/myfaces/custom/date/HtmlInputDate.java

Modified: myfaces/tomahawk/branches/1_1_5/core/src/main/java/org/apache/myfaces/custom/date/HtmlInputDate.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/branches/1_1_5/core/src/main/java/org/apache/myfaces/custom/date/HtmlInputDate.java?view=diff&rev=517697&r1=517696&r2=517697
==============================================================================
--- myfaces/tomahawk/branches/1_1_5/core/src/main/java/org/apache/myfaces/custom/date/HtmlInputDate.java
(original)
+++ myfaces/tomahawk/branches/1_1_5/core/src/main/java/org/apache/myfaces/custom/date/HtmlInputDate.java
Tue Mar 13 06:44:35 2007
@@ -326,7 +326,7 @@
         }
         
         private boolean isDateSubmitted(boolean usesAmpm, String type) {
-        	boolean isDateSubmitted = ! (StringUtils.isEmpty(getDay()) && getMonth().equals("-1")
&& StringUtils.isEmpty(getYear()));
+			boolean isDateSubmitted = ! (StringUtils.isEmpty(getDay()) && ((getMonth() ==
null) || getMonth().equals("-1")) && StringUtils.isEmpty(getYear()));
         	if(usesAmpm)
         		isDateSubmitted = isDateSubmitted || isAmpmSubmitted();
         	return isDateSubmitted;



Mime
View raw message