mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
WW-2109:
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user