I have a panel with a form
 
  <wicket:panel>
    <form wicket:id="testForm">
      <table>
       <tr><td>
        <wicket:child/>
       </td></tr>
       <tr><td align="right"><input tabindex="17" class="formButton" 
type="submit" value="save" wicket:id="ajaxSaveButton"/>
        </td>
       </tr>
      </table>
    </form>
  </wicket:panel>

The idea behind this is to have a template for forms that must have an ajax 
submit button.

Now I try to create the java part of the panel and form like this

 ...
 Form f = new Form(this, "testForm");
 new AjaxSubmitButton(f, "ajaxSubmitButton", f);
 ...

But this results in an error message:

wicket.WicketRuntimeException: Unable to find the markup for the component: 
ajaxSubmitButton
...
wicket.markup.MarkupNotFoundException: Couldn't find the markup of the 
component 'ajaxSubmitButton' in parent 'testPanel:testForm'

What goes wrong?

Stefan Lindner 





<<winmail.dat>>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to