You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by jb...@apache.org on 2007/03/08 10:44:49 UTC
svn commit: r515990 -
/incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/form/Form.java
Author: jbq
Date: Thu Mar 8 01:44:48 2007
New Revision: 515990
URL: http://svn.apache.org/viewvc?view=rev&rev=515990
Log:
Reformat
Modified:
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/form/Form.java
Modified: incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/form/Form.java
URL: http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/form/Form.java?view=diff&rev=515990&r1=515989&r2=515990
==============================================================================
--- incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/form/Form.java (original)
+++ incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/form/Form.java Thu Mar 8 01:44:48 2007
@@ -652,7 +652,6 @@
return getDefaultButton();
}
-
return submit;
}
@@ -778,17 +777,17 @@
*/
protected void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag)
{
- if (isRootForm())
+ if (isRootForm())
{
// get the hidden field id
String nameAndId = getHiddenFieldId();
-
+
// render the hidden field
AppendingStringBuffer buffer = new AppendingStringBuffer(
"<div style=\"display:none\"><input type=\"hidden\" name=\"").append(nameAndId)
.append("\" id=\"").append(nameAndId).append("\" /></div>");
getResponse().write(buffer);
-
+
// if a default button was set, handle the rendering of that
if (defaultButton != null && defaultButton.isVisibleInHierarchy()
&& defaultButton.isEnabled())
@@ -811,7 +810,7 @@
protected void onComponentTag(final ComponentTag tag)
{
super.onComponentTag(tag);
-
+
checkComponentTag(tag, "form");
// If the javascriptid is already generated then use that on even it
@@ -831,13 +830,13 @@
tag.put("id", javascriptId);
}
}
-
+
if (isRootForm())
- {
+ {
tag.put("method", getMethod());
tag.put("action", Strings.replaceAll(urlFor(IFormSubmitListener.INTERFACE), "&",
"&"));
-
+
if (multiPart)
{
tag.put("enctype", "multipart/form-data");
@@ -860,7 +859,7 @@
tag.remove("method");
tag.remove("action");
tag.remove("enctype");
- }
+ }
}
/**
@@ -1518,7 +1517,7 @@
{
error(new MapVariableInterpolator(error, args).toString());
}
-
+
/**
* Returns whether the form is a root form, which means that there's no
* other form in it's parent hierarchy.
@@ -1542,7 +1541,7 @@
do
{
form = parent;
- parent = (Form) form.findParent(Form.class);
+ parent = (Form)form.findParent(Form.class);
}
while (parent != null);