找不到id为“text”的组件

wlwcrazw  于 2021-06-29  发布在  Java
关注(0)|答案(2)|浏览(364)

我经常在生产日志中发现这个错误-“找不到id为'text'的组件”。我无法复制它。这个错误的原因是什么?如何修复?
在代码中,我有一个面板toolbarpanel,其中包含id=“exit”的其他面板,该面板包含id=“text”的标签。
我发现类似的问题,但它不能解决我的问题找不到id为“fooppopup”的组件
工具栏面板.java

  1. public ToolBarPanel(String id, String pageName, String userName, List<ToolbarMenuItem> menuItems, final Class<?> thisPage) {
  2. super(id);
  3. setOutputMarkupId(true);
  4. // some piece of code here ...
  5. // 1st exit is ID, AlfaAjaxLink extends Panel
  6. add(new AlfaAjaxLink("exit", "exit") {
  7. private static final long serialVersionUID = 1L;
  8. @Override
  9. public void onClick(AjaxRequestTarget target) {
  10. dialog.setInitialHeight(130).setInitialWidth(270);
  11. dialog.show(target);
  12. }
  13. });
  14. ListView<ToolbarMenuItem> menu = new ListView<ToolbarMenuItem>("menuItems", menuItems) {
  15. @Override
  16. protected void populateItem(ListItem<ToolbarMenuItem> item) {
  17. final ToolbarMenuItem menuItem = item.getModelObject();
  18. String cssClassName = menuItem.getPage().equals(thisPage) ? "selected-toolbar-menu-item" : "toolbar-menu-item";
  19. item.add(new AlfaAjaxLink("menuItem", menuItem.getName(), cssClassName, "FFFFFF") {
  20. @Override
  21. public void onClick(AjaxRequestTarget target) {
  22. setResponsePage(getResponsePage(menuItem));
  23. }
  24. });
  25. }
  26. };
  27. add(menu);
  28. }

alfaajaxlink.java(扩展按钮)

  1. public AlfaAjaxLink(String id, String text) {
  2. this(id, text, null, null);
  3. }
  4. public AlfaAjaxLink(String id, String text, String cssClassName, String textColor) {
  5. super(id);
  6. init(text, cssClassName, textColor);
  7. }
  8. private void init(String text, String cssClassName, String textColor) {
  9. AjaxLink button = createAjaxLink();
  10. label = createLabel(text);
  11. if (textColor != null) {
  12. label.add(AttributeModifier.replace("style", "color : #" + textColor));
  13. }
  14. if (cssClassName != null) {
  15. button.add(AttributeModifier.replace("class", cssClassName));
  16. }
  17. button.add(label);
  18. add(button);
  19. }
  20. protected Label createLabel(String text) {
  21. // here is ID text
  22. return new Label("text", text);
  23. }

主页.java

  1. public class HomePage extends AAppBasePage {
  2. private static final long serialVersionUID = -6944890517661999946L;
  3. public HomePage() {
  4. super("Home Page");
  5. setOutputMarkupId(true);
  6. if (getUsersDebtorType() != null) {
  7. throw new RestartResponseException(MyClass.class);
  8. } else {
  9. add(new Label("text", "SomeText"));
  10. }
  11. }
  12. }

主页.html

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <html xmlns:wicket="http://wicket.sourceforge.net/">
  3. <wicket:extend>
  4. <div class="rsftextlabel"><div wicket:id="text"></div></div>
  5. </wicket:extend>
  6. </html>

工具栏面板.html

  1. <html xmlns:wicket="http://wicket.sourceforge.net/">
  2. <wicket:panel>
  3. <div wicket:id="logoutDialog"></div>
  4. <div style="width : 100%">
  5. <TABLE cellSpacing="0" cellPadding="2px" width="100%" border="0">
  6. <TBODY>
  7. <TR>
  8. <td><img width="48px" height="48px" wicket:id="logo"></img></td>
  9. <TD align="left" width="100%">
  10. <table>
  11. <tr>
  12. <td style="font-size: 18px;">My application</td>
  13. <td style="font-size: 18px;">&nbsp;&nbsp; / &nbsp;&nbsp;</td>
  14. <td style="font-size: 18px;"><div wicket:id="pageName"></div></td>
  15. </tr>
  16. </table>
  17. </TD>
  18. <TD vAlign="middle" noWrap>
  19. <table>
  20. <tr>
  21. <td><table>
  22. <tr><td colspan="2"><div wicket:id="surname"></div></td></tr>
  23. <tr><td><div wicket:id="name"></div></td><td><div wicket:id="patronymic"></div></td></tr>
  24. </table></td>
  25. <td>&nbsp;&nbsp;&nbsp;</td>
  26. <td valign="center"><div wicket:id="exit"></div></td>
  27. </tr>
  28. </table>
  29. </td>
  30. </TR>
  31. </TBODY>
  32. </TABLE>
  33. </div>
  34. <div style="margin-top: 10px; margin-bottom: 1px; background-color: #A3A3A3; widht: 150%; margin-left: -10px; margin-right: -10px; height : 5px;"></div>
  35. <div style="width : 100%">
  36. <span wicket:id="menuItems">
  37. <a wicket:id="menuItem"></a>
  38. </span>
  39. </div>
  40. </wicket:panel>
  41. </html>

按钮.html

  1. <html xmlns:wicket="http://wicket.sourceforge.net/">
  2. <wicket:panel>
  3. <a wicket:id="button" class="alfa-button">
  4. <span wicket:id="text" class="alfa-button-text"></span>
  5. <wicket:child/>
  6. </a>
  7. </wicket:panel>
  8. </html>

日志

  1. ERROR [org.apache.wicket.DefaultExceptionMapper] (default task-189) Unexpected error occurred: Unable to find component with id 'text' in [TransparentWebMarkupContainer [Component id = _wicket_extend44]]
  2. Expected: '_wicket_child31:_wicket_extend32:_wicket_child43:_wicket_extend44.text'.
  3. Found with similar names: 'toolBarPanel:exit', toolBarPanel:exit:button:text', toolBarPanel:menuItems:0:menuItem:button:text', toolBarPanel:menuItems:1:menuItem:button:text', toolBarPanel:menuItems:2:menuItem:button:text', toolBarPanel:menuItems:3:menuItem:button:text', toolBarPanel:menuItems:4:menuItem:button:text', toolBarPanel:menuItems:5:menuItem:button:text', toolBarPanel:menuItems:6:menuItem:button:text', toolBarPanel:menuItems:7:menuItem:button:text', toolBarPanel:menuItems:8:menuItem:button:text'
  4. MarkupStream: [markup = file:/JBOSS/AppServer_FSSP_J7/standalone/tmp/vfs/temp/temp8f5ee2f7c4f4e6b2/content-e7709a14d279cc75/ru/cinimex/alfa/fssp/ui/wicket/pages/HomePage.html
  5. <wicket:extend>
  6. <div class="rsftextlabel"><div wicket:id="text"></div></div>
  7. </wicket:extend>, index = 2, current = '<div wicket:id="text">' (line 0, column 0)]
  8. at org.apache.wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:526) [wicket-core-1.5.10.jar:1.5.10]
  9. at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1473) [wicket-core-1.5.10.jar:1.5.10]
  10. at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1592) [wicket-core-1.5.10.jar:1.5.10]
  11. at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1567) [wicket-core-1.5.10.jar:1.5.10]
  12. at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1521) [wicket-core-1.5.10.jar:1.5.10]
  13. at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:72) [wicket-core-1.5.10.jar:1.5.10]
  14. at org.apache.wicket.Component.internalRenderComponent(Component.java:2563) [wicket-core-1.5.10.jar:1.5.10]
  15. at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1530) [wicket-core-1.5.10.jar:1.5.10]
  16. at org.apache.wicket.Component.internalRender(Component.java:2393) [wicket-core-1.5.10.jar:1.5.10]
  17. at org.apache.wicket.Component.render(Component.java:2321) [wicket-core-1.5.10.jar:1.5.10]
  18. at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1428) [wicket-core-1.5.10.jar:1.5.10]
  19. at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1592) [wicket-core-1.5.10.jar:1.5.10]
  20. at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1567) [wicket-core-1.5.10.jar:1.5.10]
  21. at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1521) [wicket-core-1.5.10.jar:1.5.10]
  22. at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:72) [wicket-core-1.5.10.jar:1.5.10]
  23. at org.apache.wicket.Component.internalRenderComponent(Component.java:2563) [wicket-core-1.5.10.jar:1.5.10]
  24. at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1530) [wicket-core-1.5.10.jar:1.5.10]
  25. at org.apache.wicket.Component.internalRender(Component.java:2393) [wicket-core-1.5.10.jar:1.5.10]
  26. at org.apache.wicket.Component.render(Component.java:2321) [wicket-core-1.5.10.jar:1.5.10]
  27. at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1428) [wicket-core-1.5.10.jar:1.5.10]
  28. at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1592) [wicket-core-1.5.10.jar:1.5.10]
  29. at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1567) [wicket-core-1.5.10.jar:1.5.10]
  30. at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1521) [wicket-core-1.5.10.jar:1.5.10]
  31. at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:72) [wicket-core-1.5.10.jar:1.5.10]
  32. at org.apache.wicket.Component.internalRenderComponent(Component.java:2563) [wicket-core-1.5.10.jar:1.5.10]
  33. at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1530) [wicket-core-1.5.10.jar:1.5.10]
  34. at org.apache.wicket.Component.internalRender(Component.java:2393) [wicket-core-1.5.10.jar:1.5.10]
  35. at org.apache.wicket.Component.render(Component.java:2321) [wicket-core-1.5.10.jar:1.5.10]
  36. at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1428) [wicket-core-1.5.10.jar:1.5.10]
  37. at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1592) [wicket-core-1.5.10.jar:1.5.10]
  38. at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1567) [wicket-core-1.5.10.jar:1.5.10]
  39. at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1521) [wicket-core-1.5.10.jar:1.5.10]
  40. at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:72) [wicket-core-1.5.10.jar:1.5.10]
  41. at org.apache.wicket.Component.internalRenderComponent(Component.java:2563) [wicket-core-1.5.10.jar:1.5.10]
  42. at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1530) [wicket-core-1.5.10.jar:1.5.10]
  43. at org.apache.wicket.Component.internalRender(Component.java:2393) [wicket-core-1.5.10.jar:1.5.10]
  44. at org.apache.wicket.Component.render(Component.java:2321) [wicket-core-1.5.10.jar:1.5.10]
  45. at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1428) [wicket-core-1.5.10.jar:1.5.10]
  46. at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1592) [wicket-core-1.5.10.jar:1.5.10]
  47. at org.apache.wicket.Page.onRender(Page.java:907) [wicket-core-1.5.10.jar:1.5.10]
  48. at org.apache.wicket.markup.html.WebPage.onRender(WebPage.java:140) [wicket-core-1.5.10.jar:1.5.10]
  49. at org.apache.wicket.Component.internalRender(Component.java:2393) [wicket-core-1.5.10.jar:1.5.10]
  50. at org.apache.wicket.Component.render(Component.java:2321) [wicket-core-1.5.10.jar:1.5.10]
  51. at org.apache.wicket.Page.renderPage(Page.java:1035) [wicket-core-1.5.10.jar:1.5.10]
  52. at org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:118) [wicket-core-1.5.10.jar:1.5.10]
  53. at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:198) [wicket-core-1.5.10.jar:1.5.10]
  54. at org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:167) [wicket-core-1.5.10.jar:1.5.10]
  55. at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:784) [wicket-core-1.5.10.jar:1.5.10]
  56. at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) [wicket-request-1.5.10.jar:1.5.10]
  57. at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:255) [wicket-core-1.5.10.jar:1.5.10]
  58. at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212) [wicket-core-1.5.10.jar:1.5.10]
  59. at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:283) [wicket-core-1.5.10.jar:1.5.10]
  60. at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188) [wicket-core-1.5.10.jar:1.5.10]
  61. at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:244) [wicket-core-1.5.10.jar:1.5.10]
  62. at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) [undertow-servlet-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  63. at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) [undertow-servlet-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  64. at io.opentracing.contrib.jaxrs2.server.SpanFinishingFilter.doFilter(SpanFinishingFilter.java:55)
  65. at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) [undertow-servlet-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  66. at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) [undertow-servlet-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  67. at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84) [undertow-servlet-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  68. at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62) [undertow-servlet-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  69. at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68) [undertow-servlet-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  70. at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  71. at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
  72. at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  73. at io.undertow.servlet.handlers.RedirectDirHandler.handleRequest(RedirectDirHandler.java:68) [undertow-servlet-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  74. at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:132) [undertow-servlet-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  75. at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57) [undertow-servlet-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  76. at io.undertow.server.handlers.DisableCacheHandler.handleRequest(DisableCacheHandler.java:33) [undertow-core-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  77. at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  78. at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:53) [undertow-core-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  79. at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46) [undertow-core-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  80. at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64) [undertow-servlet-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  81. at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:59) [undertow-servlet-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  82. at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60) [undertow-core-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  83. at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77) [undertow-servlet-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  84. at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50) [undertow-core-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  85. at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43) [undertow-core-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  86. at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  87. at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
  88. at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  89. at org.wildfly.extension.undertow.deployment.GlobalRequestControllerHandler.handleRequest(GlobalRequestControllerHandler.java:68)
  90. at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  91. at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:269) [undertow-servlet-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  92. at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:78) [undertow-servlet-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  93. at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:133) [undertow-servlet-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  94. at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:130) [undertow-servlet-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  95. at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48) [undertow-servlet-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  96. at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) [undertow-servlet-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  97. at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
  98. at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
  99. at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
  100. at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
  101. at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
  102. at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
  103. at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:249) [undertow-servlet-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  104. at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:78) [undertow-servlet-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  105. at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:99) [undertow-servlet-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  106. at io.undertow.server.Connectors.executeRootHandler(Connectors.java:376) [undertow-core-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  107. at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830) [undertow-core-2.0.28.SP1-redhat-00001.jar:2.0.28.SP1-redhat-00001]
  108. at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
  109. at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
  110. at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
  111. at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
  112. at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_144]
tgabmvqs

tgabmvqs1#

alfaajaxlink不是问题所在。
搜索 <div class="rsftextlabel"> 在标记文件中。这个 <div> 元素包含有问题的 <div wicket:id="text"></div> . 似乎没有为它添加java组件。

ycl3bljg

ycl3bljg2#

不幸的是,1.5已经很旧了,它错过了许多针对这样的用例所做的改进和bug修复。我认为你所面临的问题已经用这个补丁解决了:
https://issues.apache.org/jira/browse/wicket-5580

相关问题