You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by eh...@apache.org on 2007/08/27 07:19:18 UTC
svn commit: r570000 -
/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/TextField.java
Author: ehillenius
Date: Sun Aug 26 22:19:17 2007
New Revision: 570000
URL: http://svn.apache.org/viewvc?rev=570000&view=rev
Log:
tweak
Modified:
wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/TextField.java
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/TextField.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/TextField.java?rev=570000&r1=569999&r2=570000&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/TextField.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/TextField.java Sun Aug 26 22:19:17 2007
@@ -27,7 +27,7 @@
public class TextField extends AbstractTextComponent
{
private static final long serialVersionUID = 1L;
-
+
/**
* @see org.apache.wicket.Component#Component(String)
*/
@@ -85,30 +85,29 @@
// check for text type
String inputType = getInputType();
- if(inputType != null)
+ if (inputType != null)
{
checkComponentTagAttribute(tag, "type", inputType);
}
else
{
- if(tag.getAttributes().containsKey("type"))
+ if (tag.getAttributes().containsKey("type"))
{
checkComponentTagAttribute(tag, "type", "text");
}
}
- // No validation errors
tag.put("value", getValue());
-
+
// Default handling for component tag
super.onComponentTag(tag);
}
/**
- * Subclass should override this method if this textfields mappes on a different
- * input type as text. Like PasswordField or HiddenField.
+ * Subclass should override this method if this textfields mappes on a different input type as
+ * text. Like PasswordField or HiddenField.
*
- * @return The input type of this textfield, default is 'text'
+ * @return The input type of this textfield, default is null
*/
protected String getInputType()
{