Re: [Wicket-user] AjaxSubmitButton and not adding it to a Form

2007-01-18 Thread Matej Knopp
Hi, it really was problem with AjaxSubmitButton, can you please test if it works now for you? -Matej ChuckDeal wrote: > I don't mean to bump this, but was not quickstart not good enough to show the > problem? If necessary, I can take another stab at it to make it more > useful. > > Chuck > >

Re: [Wicket-user] AjaxSubmitButton and not adding it to a Form

2007-01-18 Thread Igor Vaynberg
bumping is ok if something slips through the cracks like it has now, matej is looking into it right now... -igor On 1/18/07, ChuckDeal <[EMAIL PROTECTED]> wrote: I don't mean to bump this, but was not quickstart not good enough to show the problem? If necessary, I can take another stab at i

Re: [Wicket-user] AjaxSubmitButton and not adding it to a Form

2007-01-18 Thread ChuckDeal
I don't mean to bump this, but was not quickstart not good enough to show the problem? If necessary, I can take another stab at it to make it more useful. Chuck ChuckDeal wrote: > > Here is a test case the shows the problem. I have two identical pages. > The only difference is that one page

Re: [Wicket-user] AjaxSubmitButton and not adding it to a Form

2007-01-04 Thread ChuckDeal
Here is a test case the shows the problem. I have two identical pages. The only difference is that one page has the submit button contained by the form in the second page it is outside of the Form. http://www.nabble.com/file/5295/quickstart-ajaxbutton.zip quickstart-ajaxbutton.zip (this contai

Re: [Wicket-user] AjaxSubmitButton and not adding it to a Form

2006-12-19 Thread ChuckDeal
The AjaxSubmitButton specifically says that it does NOT have to be attached to a form; from the javadoc * A button that submits the form via ajax. Since this button takes the form as * a constructor argument it does not need to be added to it unlike the * [EMAIL PROTECTED] Button} component.

Re: [Wicket-user] AjaxSubmitButton and not adding it to a Form

2006-12-19 Thread Johan Compagner
a button should be in a form (one of its parents) or a button should get the form through its constructor. So what goes wrong exactly? Can you have a small test case? johan On 12/18/06, ChuckDeal <[EMAIL PROTECTED]> wrote: It gets there fine, its this line: if (submit.getForm() == Form.thi

Re: [Wicket-user] AjaxSubmitButton and not adding it to a Form

2006-12-18 Thread ChuckDeal
It gets there fine, its this line: if (submit.getForm() == Form.this that is the problem. submit (which is the button) does not belong to a Form, it is supposed to contain a reference to a Form instead. SInce it can't find a Form object for the button it throws an exception throw new WicketR

Re: [Wicket-user] AjaxSubmitButton and not adding it to a Form

2006-12-14 Thread Johan Compagner
It should work AjaxSubmitButton is a IFormSubmittingComponent component so this code: IFormSubmittingComponent submit = (IFormSubmittingComponent)getPage().visitChildren( IFormSubmittingComponent.class, new IVisitor() { public Object compone

Re: [Wicket-user] AjaxSubmitButton and not adding it to a Form

2006-12-14 Thread Igor Vaynberg
try changing the id of your button to something other then "submit" -igor On 12/13/06, ChuckDeal <[EMAIL PROTECTED]> wrote: I have a Page that has a Form with some select boxes in it and, outside the Form, I have three buttons (submit[AjaxSubmitButton], reset[AjaxLink], cancel[AjaxLink]). I

Re: [Wicket-user] AjaxSubmitButton and not adding it to a Form

2006-12-14 Thread ChuckDeal
I don't mean to bump this, but I do want to make sure that I am using the AjaxSubmitButton properly. In each instance that I had previously used the button, it was OUTSIDE the Form, I had to move it inside the Form in order to avoid the exception. Was this a known side-effect of the change? If

[Wicket-user] AjaxSubmitButton and not adding it to a Form

2006-12-13 Thread ChuckDeal
I have a Page that has a Form with some select boxes in it and, outside the Form, I have three buttons (submit[AjaxSubmitButton], reset[AjaxLink], cancel[AjaxLink]). In Wicket 1.2.3 (Actually, I have been using the latest 1.2-SNAPSHOT releases) The submit button works as advertised and submits t