Hello,
I'm currently migrating a wicket / brix application from wicket 1.4 to wicket
6.23; So far most seems well, but there is a thing I'm really stuck at. My code
uses FeedbackPanel regularly like this (on many many pages/ tiles):
loginForm.add(new FeedbackPanel("feedBack") {
private static final long serialVersionUID = -2594094600209896717L;
@Override
public boolean isVisible() {
return loginForm.hasError();
}
}.setEscapeModelStrings(false));
and this worked fine in wicket 1.4; With wicket 6 now if I access a page
containing this I get
[2016-05-14T13:14:48.163+0200] [Payara 4.1] [WARNING] [] [javax.enterprise.web]
[tid: _ThreadID=33 _ThreadName=http-listener-2(1)] [timeMillis: 1463224488163]
[levelValue: 900] [[
StandardWrapperValve[default]: Servlet.service() for servlet default threw
exception
java.lang.StackOverflowError
at org.apache.wicket.Component.isVisibleInHierarchy(Component.java:2132)
at org.apache.wicket.Component.isVisibleInHierarchy(Component.java:2132)
at org.apache.wicket.Component.isVisibleInHierarchy(Component.java:2132)
at org.apache.wicket.Component.isVisibleInHierarchy(Component.java:2132)
at org.apache.wicket.markup.html.form.Form$8.component(Form.java:1161)
at org.apache.wicket.markup.html.form.Form$8.component(Form.java:1157)
at org.apache.wicket.util.visit.Visits.visitChildren(Visits.java:144)
at org.apache.wicket.util.visit.Visits.visitChildren(Visits.java:123)
at
org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:860)
at
org.apache.wicket.markup.html.form.Form.anyFormComponentError(Form.java:1156)
at org.apache.wicket.markup.html.form.Form.hasError(Form.java:667)
at xxx.login.LoginExistingPanel$2.isVisible(LoginExistingPanel.java:92)
at org.apache.wicket.Component.determineVisibility(Component.java:4347)
at org.apache.wicket.Component.isVisibleInHierarchy(Component.java:2138)
at org.apache.wicket.markup.html.form.Form$8.component(Form.java:1161)
at org.apache.wicket.markup.html.form.Form$8.component(Form.java:1157)
at org.apache.wicket.util.visit.Visits.visitChildren(Visits.java:144)
at org.apache.wicket.util.visit.Visits.visitChildren(Visits.java:123)
at
org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:860)
at
org.apache.wicket.markup.html.form.Form.anyFormComponentError(Form.java:1156)
at org.apache.wicket.markup.html.form.Form.hasError(Form.java:667)
at xxxx.LoginExistingPanel$2.isVisible(LoginExistingPanel.java:92)
.... repeating the error dozens of times;
Did anything change here that makes the good old isVisible() not usable anymore?
Best,
Korbinian
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]