Hello,
I have the problem whereI have to display a form that has  list of panels
where every panel has a bunch of form components. It looks like if my panel
has only labels and I use a Loop component everythig works. But at the
moment I start using a TextField components on my panel that is rendered
multiple times, I am starting to get the following exception when I submit
back to the page to process the data:

Unexpected RuntimeException
                                                                            
     WicketMessage: Unable to find component with id 'panel' in             
     [MarkupContainer [Component id = 0, page =                             
     com.marsh.itg.deepa.presentation.app.view.page.application.DependentIn 
     foPage, path = 1:DependentInfoPageForm:list:0.Loop$LoopItem, isVisible 
     = true, isVersioned = true]]. This means that you declared             
     wicket:id=panel 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 =                                                              
     file:/C:/workspace/itg/projects/ddeepa/presentation/context/WEB-INF/cl 
     asses/com/marsh/itg/deepa/presentation/app/view/page/application/Depen 
     dentInfoPage.html, index = 16, current = '<span wicket:id="panel">'    
     (line 27, column 11)]                                                  
                                                                            
                                                                            
     Root cause:                                                            
                                                                            
                                                                            
     wicket.markup.MarkupException: Unable to find component with id        
     'panel' in [MarkupContainer [Component id = 0, page =                  
     com.marsh.itg.deepa.presentation.app.view.page.application.DependentIn 
     foPage, path = 1:DependentInfoPageForm:list:0.Loop$LoopItem, isVisible 
     = true, isVersioned = true]]. This means that you declared             
     wicket:id=panel 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 =                                                              
     file:/C:/workspace/itg/projects/ddeepa/presentation/context/WEB-INF/cl 
     asses/com/marsh/itg/deepa/presentation/app/view/page/application/Depen 
     dentInfoPage.html, index = 16, current = '<span wicket:id="panel">'    
     (line 27, column 11)]                                                  
          at                                                                
     wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:290) 
          at wicket.MarkupContainer.renderNext(MarkupContainer.java:1381)   
          at                                                                
     wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:982 
     )                                                                      
          at                                                                
     wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:917)    
          at wicket.Component.renderComponent(Component.java:1696)          
          at wicket.MarkupContainer.onRender(MarkupContainer.java:927)      
          at wicket.Component.render(Component.java:1532)                   
          at wicket.markup.html.list.Loop.renderItem(Loop.java:201)         
          at wicket.markup.html.list.Loop.onRender(Loop.java:176)           
          at wicket.Component.render(Component.java:1532)                   
          at wicket.MarkupContainer.renderNext(MarkupContainer.java:1334)   
          at                                                                
     wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:982 
     )                                                                      
          at                                                                
     wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:917)    
          at wicket.markup.html.form.Form.onComponentTagBody(Form.java:773) 
          at wicket.Component.renderComponent(Component.java:1696)          
          at wicket.MarkupContainer.onRender(MarkupContainer.java:927)      
          at wicket.markup.html.form.Form.onRender(Form.java:844)           
          at wicket.Component.render(Component.java:1532)                   
          at wicket.MarkupContainer.renderNext(MarkupContainer.java:1334)   
          at                                                                
     wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:982 
     )                                                                      
          at                                                                
     wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:917)    
          at wicket.Component.renderComponent(Component.java:1696)          
          at wicket.MarkupContainer.onRender(MarkupContainer.java:927)      
          at wicket.Component.render(Component.java:1532)                   
          at wicket.MarkupContainer.renderNext(MarkupContainer.java:1334)   
          at                                                                
     wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:982 
     )                                                                      
          at                                                                
     wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:917)    
          at wicket.Component.renderComponent(Component.java:1696)          
          at wicket.MarkupContainer.onRender(MarkupContainer.java:927)      
          at wicket.Component.render(Component.java:1532)                   
          at wicket.MarkupContainer.renderNext(MarkupContainer.java:1334)   
          at                                                                
     wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:982 
     )                                                                      
          at                                                                
     wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:917)    
          at wicket.Component.renderComponent(Component.java:1696)          
          at wicket.MarkupContainer.onRender(MarkupContainer.java:927)      
          at wicket.Component.render(Component.java:1532)                   
          at wicket.MarkupContainer.renderNext(MarkupContainer.java:1334)   
          at wicket.MarkupContainer.renderAll(MarkupContainer.java:944)     
          at wicket.Page.onRender(Page.java:861)                            
          at wicket.Component.render(Component.java:1532)                   
          at wicket.Page.renderPage(Page.java:410)                          
          at                                                                
     wicket.request.target.component.PageRequestTarget.respond(PageRequestT 
     arget.java:67)                                                         
          at                                                                
     wicket.request.compound.DefaultResponseStrategy.respond(DefaultRespons 
     eStrategy.java:49)                                                     
          at                                                                
     wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond( 
     AbstractCompoundRequestCycleProcessor.java:66)                         
          at                                                                
     wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:858)   
          at                                                                
     wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:885)     
          at wicket.RequestCycle.step(RequestCycle.java:966)                
          at wicket.RequestCycle.steps(RequestCycle.java:1040)              
          at wicket.RequestCycle.request(RequestCycle.java:454)             
          at                                                                
     wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:216)       
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)   
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)   
          at                                                                
     weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run( 
     ServletStubImpl.java:1072)                                             
          at                                                                
     weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImp 
     l.java:465)                                                            
          at                                                                
     weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImp 
     l.java:348)                                                            
          at                                                                
     weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction 
     .run(WebAppServletContext.java:6981)                                   
          at                                                                
     weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticated 
     Subject.java:321)                                                      
          at                                                                
     weblogic.security.service.SecurityManager.runAs(SecurityManager.java:1 
     21)                                                                    
          at                                                                
     weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSer 
     vletContext.java:3892)                                                 
          at                                                                
     weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImp 
     l.java:2766)                                                           
          at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)  
          at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)      
                                                                            




    Markup


    The problem is in "
    
file:/C:/workspace/itg/projects/ddeepa/presentation/context/WEB-INF/classes/com/marsh/itg/deepa/presentation/app/view/page/application/DependentInfoPage.html
    ":


                                                                            
     <html xmlns:wicket="http://wicket.sourceforge.net/";>    <head>         
     <title>My Account </title>    </head>    <body>    <div wicket:id="fee 
     dback" />    <table width="80%">                                       
         <tr><td>                    <wicket:child><wicket:extend>          
                                                                            
                                                                            
     <form wicket:id="DependentInfoPageForm">  <table border="0" cellspacin 
     g="0" cellpadding="0" width="600">    <tr>          <td height="29" cl 
     ass="tabuffer">&nbsp;</td>          <td>&nbsp;</td>      </tr>    <tr> 
                                                                            
     <td class="tabuffer">&nbsp;</td>          <td class="question" style=" 
     padding-left:10">Plan Application: Step 3 of 5</td>    </tr>      <tr> 
                                                                            
     <td class="tabuffer">&nbsp;</td>        <td class="contentheader">Depe 
     ndent Information <span class="instructiontext">Please enter the follo 
     wing information.</span></td>      </tr>      <tr>        <td>&nbsp;</ 
     td>        <td valign="top" class="contentpane">              <li wick 
     et:id="list">          <span wicket:id="panel">                        
     </span>          <span wicket:id="dependent"></span>           </li>   
                                                                            
                                                                            
                                                                            
                                                                            
     <table width="100%"><tr><td><span wicket:id="DEP_ADDNEW_COMP"></span>< 
     /td></tr></table>         <br>        <table width="100%"><tr><td><spa 
     n wicket:id="DEP_NAVIGATION_BUTTON_COMP"></span></td></tr></table>     
          </td>    </tr>    </table>                                        
     </form>                                                                
     </wicket:extend></wicket:child>     </td> <td valign="top">     <br><b 
     r><br><br><br><br>    <span wicket:id="quicktip"/>    </td></tr>       
                                                                            
         </table>    </body>    </html>                                     
                                                                            





    Page


          [Page class =
          
com.marsh.itg.deepa.presentation.app.view.page.application.DependentInfoPage,
 id = 1]:


                                                                          
 # Path                 Si Type                   Model Object            
                        ze                                                
                                                                          
 1 <auto>_header        48 wicket.markup.html.int                         
                        1  ernal.HtmlHeaderContai                         
                        by ner                                            
                        te                                                
                        s                                                 
                                                                          
                                                                          
 2 DependentInfoPageFor 10 com.marsh.itg.deepa.pr                         
   m                    .6 esentation.app.view.pa                         
                        K  ge.application.BaseFor                         
                           m                                              
                                                                          
 3 DependentInfoPageFor 10 com.marsh.itg.deepa.pr com.marsh.itg.deepa.pre 
   m:DEP_ADDNEW_COMP    .6 esentation.app.view.co sentation.app.view.comp 
                        K  mponent.AddnewComp     [EMAIL PROTECTED] 
                                                  ac385                   
                                                                          
 4 DependentInfoPageFor 10 com.marsh.itg.deepa.pr                         
   m:DEP_ADDNEW_COMP:ad .6 esentation.framework.w                         
   dnewbutton           K  icket.components.MButt                         
                           on                                             
                                                                          
 5 DependentInfoPageFor 62 com.marsh.itg.deepa.pr Add Another             
   m:DEP_ADDNEW_COMP:la 1  esentation.framework.w Dependent               
   ddnew                by icket.components.MLabe                         
                        te l                                              
                        s                                                 
                                                                          
                                                                          
 6 DependentInfoPageFor 10 com.marsh.itg.deepa.pr com.marsh.itg.deepa.pre 
   m:DEP_NAVIGATION_BUT .6 esentation.app.view.co sentation.app.view.comp 
   TON_COMP             K  mponent.NavigationButt [EMAIL PROTECTED] 
                           onComp                 a39cc                   
                                                                          
 7 DependentInfoPageFor 10 com.marsh.itg.deepa.pr                         
   m:DEP_NAVIGATION_BUT .6 esentation.framework.w                         
   TON_COMP:backButton  K  icket.components.MButt                         
                           on                                             
                                                                          
 8 DependentInfoPageFor 10 com.marsh.itg.deepa.pr                         
   m:DEP_NAVIGATION_BUT .6 esentation.framework.w                         
   TON_COMP:cancelButto K  icket.components.MButt                         
   n                       on                                             
                                                                          
 9 DependentInfoPageFor 10 com.marsh.itg.deepa.pr                         
   m:DEP_NAVIGATION_BUT .6 esentation.framework.w                         
   TON_COMP:submitButto K  icket.components.MButt                         
   n                       on                                             
                                                                          
 1 DependentInfoPageFor 10 wicket.markup.html.lis 1                       
 0 m:list               .6 t.Loop                                         
                        K                                                 
                                                                          
                                                                          
 1 DependentInfoPageFor 42 wicket.markup.html.Web                         
 1 m:list:0             7  MarkupContainer                                
                        by                                                
                        te                                                
                        s                                                 
                                                                          
                                                                          
 1 _<body>              58 wicket.markup.html.int                         
 2                      1  ernal.HtmlBodyContaine                         
                        by r                                              
                        te                                                
                        s                                                 
                                                                          
                                                                          
 1 _<body>:_child       48 wicket.markup.html.Web                         
 3                      9  MarkupContainer                                
                        by                                                
                        te                                                
                        s                                                 
                                                                          
                                                                          
 1 _<body>:_child:_exte 45 wicket.markup.html.Web                         
 4 nd                   8  MarkupContainer                                
                        by                                                
                        te                                                
                        s                                                 
                                                                          
                                                                          
 1 feedback             3. wicket.markup.html.pan                         
 5                      9K el.FeedbackPanel                               
                                                                          
                                                                          
 1 feedback:feedbackul  10 wicket.markup.html.Web                         
 6                      .6 MarkupContainer                                
                        K                                                 
                                                                          
                                                                          
 1 feedback:feedbackul: 10 wicket.markup.html.lis [[FeedbackMessage       
 7 messages             .6 t.ListView             message = &quot;field   
                        K                         'stringProperty' is     
                                                  required.&quot;,        
                                                  reporter =              
                                                  stringProperty, level = 
                                                  ERROR]]                 
                                                                          
 1 feedback:feedbackul: 10 wicket.markup.html.lis [FeedbackMessage        
 8 messages:0           .6 t.ListItem             message = &quot;field   
                        K                         'stringProperty' is     
                                                  required.&quot;,        
                                                  reporter =              
                                                  stringProperty, level = 
                                                  ERROR]                  
                                                                          
 1 feedback:feedbackul: 10 wicket.markup.html.bas field 'stringProperty'  
 9 messages:0:message   .6 ic.Label               is required.            
                        K                                                 
                                                                          
                                                                          
 2 quicktip             65 com.marsh.itg.deepa.pr                         
 0                      6  esentation.app.view.co                         
                        by mponent.QuickTipComp                           
                        te                                                
                        s                                                 
                                                                          
                                                                          



THank you
Gennadiy


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to