You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by pa...@apache.org on 2020/01/28 20:19:50 UTC
[wicket] branch master updated: WICKET-6725: fixed special Form
placeholder rendering
This is an automated email from the ASF dual-hosted git repository.
papegaaij pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/wicket.git
The following commit(s) were added to refs/heads/master by this push:
new e1bdfe7 WICKET-6725: fixed special Form placeholder rendering
e1bdfe7 is described below
commit e1bdfe74cc7d3c0fdb67712a665cb15164868bc1
Author: Emond Papegaaij <em...@topicus.nl>
AuthorDate: Tue Jan 28 21:18:50 2020 +0100
WICKET-6725: fixed special Form placeholder rendering
---
.../main/java/org/apache/wicket/markup/html/form/Form.java | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/wicket-core/src/main/java/org/apache/wicket/markup/html/form/Form.java b/wicket-core/src/main/java/org/apache/wicket/markup/html/form/Form.java
index a39160a..2ffc52b 100644
--- a/wicket-core/src/main/java/org/apache/wicket/markup/html/form/Form.java
+++ b/wicket-core/src/main/java/org/apache/wicket/markup/html/form/Form.java
@@ -1698,14 +1698,9 @@ public class Form<T> extends WebMarkupContainer
else
{
// rewrite inner form tag as div
- response.write("<div style=\"display:none\"");
- if (getOutputMarkupId())
- {
- response.write(" id=\"");
- response.write(getMarkupId());
- response.write("\"");
- }
- response.write("></div>");
+ response.write(
+ String.format("<div id=\"%s\" class=\"%s\" data-wicket-placeholder=\"\"></div>",
+ getAjaxRegionMarkupId(), getString(CssUtils.key(Component.class, "hidden"))));
}
}