English 中文(简体)
如何避免多余 使用外地专用退税制时的电离板警报?
原标题:How to avoid superfluous Wicket log warnings when using field-specific FeedbackLabels?

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过滤了部分目标的信息,以便显示两点。

“entergraph

无论如何,这些标识信息显然是有益的。 <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(""));
    }
}
最佳回答

FeedbackMessage有一个标记。 我愿在此呼吁向拉贝尔增加的每一个信息。 见FedbackPanel。

问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...