Thanks for that, Matej - in the tend I've gone for separate forms, as that fits in with some other changes I was doing.
On a similar note, are there any good ways of using AJAX to get the value of a text field (currently in a form on it's own) back to the server when the user hits return? It's currently working via with the standard form submit, and I'm using textField.onModelChanged(), but I've not managed to find the right combination of events to go with AjaxFormSubmitBehaviour and/or AjaxFormComponentUpdatingBehavior to do what I need! Either that, or the return's triggering a standard form submit anyway... I suppose I could take it out of the form then try & write a component to listen for keyUp's in JS then send it on the Return, but as it doesn't seem that esoteric a requirement, I suspect I'm missing something? /Gwyn On Thursday, September 27, 2007, 7:32:31 PM, Matej <[EMAIL PROTECTED]> wrote: > I don't think there's an easy solution for what you want. You can try > putting in two buttons, set one button as form default and hide it > using css. That one should be submitted when you press enter on the > text field. > -Matej > On 9/27/07, Gwyn Evans <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I've got a form, on which I have, among other things, a TextField and an >> AjaxFallbackButton. >> >> The problem I have is that when then user enters a string into the >> text field and presses return, both the TextField.onModelChanged() and >> the AjaxFallbackButton.onSubmit() fire, but I'd like to avoid the >> latter and only have that happen when it's explicitly clicked. >> >> Is there a way of doing that, or do I just need to split them into two >> forms? If this a case for nested forms, in which case, which should be >> inside the other & why? >> >> -- >> Best regards, >> Gwyn mailto:[EMAIL PROTECTED] >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> /Gwyn --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
