I m 采用“FeedbackLabels”,根据这一博客职位的想法和守则,展示特定组成部分的验证信息:验证。
问题在于,使用这些反馈的标签进行验证的页数用超声警告冲淡了标识:
2012-05-04 10:43:32,824 ["http-bio-8080"-exec-6] WARN org.apache.wicket.protocol.http.WebSession - Component-targetted feedback message was left unrendered. This could be because you are missing a FeedbackPanel on the page. Message: [FeedbackMessage message = "Tilille on pakollinen tieto", reporter = toAccount, level = ERROR]
2012-05-04 10:43:32,824 ["http-bio-8080"-exec-6] WARN org.apache.wicket.protocol.http.WebSession - Component-targetted feedback message was left unrendered. This could be because you are missing a FeedbackPanel on the page. Message: [FeedbackMessage message = "Tililtä on pakollinen tieto", reporter = fromAccount, level = ERROR]
2012-05-04 10:43:32,824 ["http-bio-8080"-exec-6] WARN org.apache.wicket.protocol.http.WebSession - Component-targetted feedback message was left unrendered. This could be because you are missing a FeedbackPanel on the page. Message: [FeedbackMessage message = "Viitenro on pakollinen tieto", reporter = reference, level = ERROR]
2012-05-04 10:43:35,039 ["http-bio-8080"-exec-6] WARN org.apache.wicket.protocol.http.WebSession - Component-targetted feedback message was left unrendered. This could be because you are missing a FeedbackPanel on the page. Message: [FeedbackMessage message = "Tilille on pakollinen tieto", reporter = toAccount, level = ERROR]
[...]
Wicket claims that:
Component-targetted feedback message was left unrendered. This could be because you are missing a FeedbackPanel on the page.
如你在屏幕上看到的,这些电文were(在每一场的反馈实验室中)和I (在每一场的交接点上)上也有“反馈”页面(但是,它利用部件FeedbackMessageFilter过滤了部分目标的信息,以便显示两点。
无论如何,这些标识信息显然是有益的。 <How 让我使Wicket关上? (在采用诸如将伐木水平改为“FATAL”等淡化武力方法的情况下) 是否应在“FedbackLabel”的实施中确定一些内容(见下文)。
附录:如果相关部分有反馈信息,如果有反馈信息,则基本上由FreedbackLabel(Exends Label)检查。 如果能从article ,此处的相关部分是:
// (Author of this code is Daan, StuQ.nl
// it s licenced under Apache 2.0 license.)
@Override
protected void onBeforeRender() {
super.onBeforeRender();
if(component.getFeedbackMessage()!=null) {
if(this.text!=null) {
setDefaultModel(this.text);
} else {
setDefaultModel(new Model(component.getFeedbackMessage().getMessage()));
}
this.add(new AttributeModifier("class", true, new Model("feedbackLabel " + component.getFeedbackMessage().getLevelAsString())));
} else {
setDefaultModel(new Model(""));
}
}