Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试测试代码并得到以下异常:
以下组件未能呈现。可能的原因可能是:1)您在代码中添加了一个组件,但忘记在标记中引用它(因此该组件将永远不会被渲染),2)如果您的组件被添加到父容器中,请确保标记为子容器将它们包含在 .
我不知道现在该怎么办。
此错误表示您在 Java 代码中添加了一个组件,例如:
add(new Label("someId", "Some text"));
但是您忘记添加wicket:id="someId"到相应的 HTML 模板。
wicket:id="someId"
所以,威克特说:I have a component in the Java component tree that I have no idea where and how to render。
I have a component in the Java component tree that I have no idea where and how to render