Author: jcompagner
Date: Sat Nov  3 06:13:18 2007
New Revision: 591613

URL: http://svn.apache.org/viewvc?rev=591613&view=rev
Log:
we have to test for get type if the type is set through the constructor

Modified:
    
wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/AbstractTextComponent.java

Modified: 
wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/AbstractTextComponent.java
URL: 
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/AbstractTextComponent.java?rev=591613&r1=591612&r2=591613&view=diff
==============================================================================
--- 
wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/AbstractTextComponent.java
 (original)
+++ 
wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/AbstractTextComponent.java
 Sat Nov  3 06:13:18 2007
@@ -107,7 +107,7 @@
        protected void onBeforeRender()
        {
                super.onBeforeRender();
-               if (!getFlag(TYPE_RESOLVED))
+               if (!getFlag(TYPE_RESOLVED) && getType() == null)
                {
                        // Set the type, but only if it's not a String (see 
WICKET-606).
                        // Otherwise, getConvertEmptyInputStringToNull() won't 
work.


Reply via email to