Bonjour,
Lorsque nous essayons d'ajouter un cours (Course) par l'application Web, nous avons l'erreur suivante mais à l'exception de ce concept, tout fonctionne (tests inclus). Pouvez-vous nous mettre sur la piste de la résolution de ce problème svp?
Unexpected RuntimeException
WicketMessage: Unable to find component with id 'propertyNameLabelValuePanelListView' in [MarkupContainer [Component id = entityUpdateForm]]. This means that you declared wicket:id=propertyNameLabelValuePanelListView in your markup, but that you either did not add the component to your page at all, or that the hierarchy does not match.
[markup = jar:file:/C:/Users/Isabelle/workspace/MGMScolaireGenere/WEB-INF/lib/ModelibraWicket.jar!/org/modelibra/wicket/concept/EntityUpdateFormPanel.html
<html>
<wicket:panel>
<form wicket:id="entityUpdateForm">
<table>
<caption>
Form title
</caption>
<tr wicket:id="propertyNameLabelValuePanelListView">
<th wicket:id="propertyName">
Property name
</th>
<td wicket:id="valuePanel">
Value panel
</td>
</tr>
<wicket:child/>
<tr>
<td>
</td>
<td>
<wicket:message key="save"/>
<input type = "submit" value = "+"/>
<wicket:message key="cancel"/>
<input value="Φ" type="submit" wicket:id="cancel"/>
</td>
</tr>
</table>
</form>
</wicket:panel>
</html>
, index = 11, current = '<tr wicket:id="propertyNameLabelValuePanelListView">' (line 13, column 6)]
Root cause:
org.apache.wicket.markup.MarkupException: Unable to find component with id 'propertyNameLabelValuePanelListView' in [MarkupContainer [Component id = entityUpdateForm]]. This means that you declared wicket:id=propertyNameLabelValuePanelListView in your markup, but that you either did not add the component to your page at all, or that the hierarchy does not match.
[markup = jar:file:/C:/Users/Isabelle/workspace/MGMScolaireGenere/WEB-INF/lib/ModelibraWicket.jar!/org/modelibra/wicket/concept/EntityUpdateFormPanel.html
<html>
<wicket:panel>
<form wicket:id="entityUpdateForm">
<table>
<caption>
Form title
</caption>
<tr wicket:id="propertyNameLabelValuePanelListView">
<th wicket:id="propertyName">
Property name
</th>
<td wicket:id="valuePanel">
Value panel
</td>
</tr>
<wicket:child/>
<tr>
<td>
</td>
<td>
<wicket:message key="save"/>
<input type = "submit" value = "+"/>
<wicket:message key="cancel"/>
<input value="Φ" type="submit" wicket:id="cancel"/>
</td>
</tr>
</table>
</form>
</wicket:panel>
</html>
, index = 11, current = '<tr wicket:id="propertyNameLabelValuePanelListView">' (line 13, column 6)]
at org.apache.wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:464)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1344)
at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1476)
at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1401)
at org.apache.wicket.markup.html.form.Form.onComponentTagBody(Form.java:1710)
at org.apache.wicket.Component.renderComponent(Component.java:2480)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1411)
at org.apache.wicket.markup.html.form.Form.onRender(Form.java:1774)
at org.apache.wicket.Component.render(Component.java:2317)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1297)
at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1476)
at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:639)
at org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:112)
at org.apache.wicket.Component.renderComponent(Component.java:2480)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1411)
at org.apache.wicket.Component.render(Component.java:2317)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1297)
at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1476)
at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1401)
at org.apache.wicket.Component.renderComponent(Component.java:2480)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1411)
at org.apache.wicket.Component.render(Component.java:2317)
at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:223)
at org.apache.wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:66)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1324)
at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1476)
at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1401)
at org.apache.wicket.Component.renderComponent(Component.java:2480)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1411)
at org.apache.wicket.Component.render(Component.java:2317)
at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:223)
at org.apache.wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:73)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1324)
at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1427)
at org.apache.wicket.Page.onRender(Page.java:1470)
at org.apache.wicket.Component.render(Component.java:2317)
at org.apache.wicket.Page.renderPage(Page.java:904)
at org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:63)
at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104)
at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1181)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355)
at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200)
at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:286)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
at org.mortbay.http.HttpServer.service(HttpServer.java:879)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:300)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)
Markup
The problem is in "jar:file:/C:/Users/Isabelle/workspace/MGMScolaireGenere/WEB-INF/lib/ModelibraWicket.jar!/org/modelibra/wicket/concept/EntityUpdateFormPanel.html":
<html>
<wicket:panel>
<form wicket:id="entityUpdateForm">
<table>
<caption>
Form title
</caption>
<tr wicket:id="propertyNameLabelValuePanelListView">
<th wicket:id="propertyName">
Property name
</th>
<td wicket:id="valuePanel">
Value panel
</td>
</tr>
<wicket:child/>
<tr>
<td>
</td>
<td>
<wicket:message key="save"/>
<input type = "submit" value = "+"/>
<wicket:message key="cancel"/>
<input value="Φ" type="submit" wicket:id="cancel"/>
</td>
</tr>
</table>
</form>
</wicket:panel>
</html>
display page view
Merci beaucoup à l'avance,
Isabelle pour TeamMGM