id resolution for <s:form> - minor cleanups, some former changes rolled back again

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@565759 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
René Gielen
2007-08-14 13:52:41 +00:00
parent 60227b13f0
commit 7ec7764e16
@@ -211,14 +211,10 @@ public class Form extends ClosingUIBean {
protected void populateComponentHtmlId(Form form) {
if (id != null) {
addParameter("id", escape(id));
} else if (this.action != null) {
// if it isn't specified, we'll make somethig up
String action = findString(this.action);
if (action != null) {
addParameter("id", escape(action));
}
}
// if no id given, it will be tried to generate it from the action attribute
// by the urlRenderer implementation
urlRenderer.renderFormUrl(this);
}