stupid me was looking in the wrong workspace :( i changed it
On 5/16/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
which version are you talking about? because in 1.3 we don't have a form submitting component. But in 1.3 the AjaxSubmitLink is still not a button so i guess you have the same problem then johan On 5/16/07, Bart Molenkamp <[EMAIL PROTECTED]> wrote: > > Hi, > > I think I found a bug (and a fix) for a problem. When using an > AjaxSubmitLink > to submit a form, the form can't find the submitting component (the > method > Form.findSubmittingButton() returns null). This is because in > AjaxFormSubmitBehavior > the name of the submit link isn't encoded in the javascript call > 'wicketSubmitFormById'. Therefore Form.findSubmittingButton() can't find > the submitting > component and it just processes the form. So setting e.g. > defaultFormProcessing to > false won't have any effect. > > The solution is simple. In AjaxFormSubmitBehavior, on line 117 there is > a check to > see if the component is an instance of Button, but it should check if > the component > is an instance of IFormSubmittingComponent (and on line 119 it shouldn't > cast to > FormComponent but also to IFormSubmittingComponent). > > Do I need to create a JIRA issue for this small fix?? > > Thanks, > Bart. >
