because in markup you have ajaxSaveButton but in java you have ajaxSubmitButton for id values.

not sure this usecase will work period though _right now_. you see form components need to be children of the form. so you need to let your panel implement IAlternateParentProvider and redirect children to the form. the markup resolution of wicket:child and wicket:body is not working right now because it doesnt take into account that it is embedded. juergen and i are working on it, well - much more juergen then i since im just creating failing unit tests for him to look at right now.

give it a try and see if it works, i have only tested borders that fail in this usecase not panels. keep as apprised and i will do the same.

-Igor

On 9/20/06, Stefan Lindner <[EMAIL PROTECTED]> wrote:
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






-------------------------------------------------------------------------
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



-------------------------------------------------------------------------
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