Re: Nested forms in WizardStep

2017-11-17 Thread Sven Meier
Hi, I never had to build such a scenario, but IFormVisitorParticipant can help you? Let your nested Form (or its parent) implement the interface and return false from #processChildren(). Have fun Sven Am 17.11.2017 um 09:18 schrieb Dirk Forchel: No, I was not searching for a solution

Re: Nested forms in WizardStep

2017-11-17 Thread Dirk Forchel
No, I was not searching for a solution how to "disabling nested form validation" as I was unsure whether it's a proper solution to use nested forms in a WizardStep. To get an impression how the checkout should look like have a look at

Re: Nested forms in WizardStep

2017-11-16 Thread Sven Meier
Have you tried https://stackoverflow.com/questions/26502864/disabling-nested-form-validation-in-wicket ? Have fun sven Am 16.11.2017 um 18:19 schrieb Dirk Forchel: Currently we use the Wizard/WizardStep classes from wicket-extensions to set required data for an object (in our case a

Re: nested forms with modal window

2017-02-23 Thread Sven Meier
Hi, public void onSubmit(AjaxRequestTarget target, Form form) { remarkModalWindow.show(target); for(FaultModel fm : selectedModel.getObject()) { System.out.println("ActionButton Remark: " + fm.getFaultRemark()); } } the submit of my modal window will be executed ... after he runs through

Re: Nested Forms

2014-01-13 Thread Martin Grigorov
Hi, As others explained - yes, this is correct behavior. In the produced page markup you can see that there is form element only for the outer form. The inner form is represented by a div element. Martin Grigorov Wicket Training and Consulting On Fri, Jan 10, 2014 at 7:04 PM, gmparker2000

Re: Nested Forms

2014-01-10 Thread Chris Snyder
Nested form elements (what I'm assuming you're referring to) aren't allowed, per the HTML spec: http://www.w3.org/TR/html5/forms.html I wouldn't expect Wicket to follow any kind of predictable behavior (especially since different browsers likely exhibit different behaviors themselves). Best,

Re: Nested Forms

2014-01-10 Thread Marios Skounakis
Html does not support nested forms. Wicket works around this limitation and allows form nesting. I think it changes the html so that the inner form tags become span tags. This means that whenever any of the forms needs to be posted, everything is posted since in the result html there's only one

Re: Nested Forms

2014-01-10 Thread Paul Bors
Also see section 12.5 Nested forms of the Free Guide at http://wicket.apache.org/guide/guide/chapter11.html#chapter11_5 On Fri, Jan 10, 2014 at 12:56 PM, Marios Skounakis msc...@gmail.com wrote: Html does not support nested forms. Wicket works around this limitation and allows form nesting. I

Re: Nested forms: error messages of the inner form now showing up

2013-04-23 Thread Sven Meier
Is this the expected behavior? No, it isn't. Please create a quickstart and attach it to a new Jira issue. Sven On 04/22/2013 06:57 PM, pureza wrote: I have two nested forms. When I submit the outer form, the inner form's validation fails but no error is shown. I know the validation fails

Re: Nested forms: error messages of the inner form now showing up

2013-04-23 Thread pureza
Hi, I've fixed this. It seems I forgot to call #setReuseItems(true) in a ListView :-) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Nested-forms-error-messages-of-the-inner-form-now-showing-up-tp4658166p4658202.html Sent from the Users forum mailing list archive

Re: Nested forms ...

2013-04-02 Thread Sven Meier
Hi, the values of all form components are submitted, but only the ones from the submitted nested form are processed. See Form#wantSubmitOnNestedFormSubmit() and the tests in NestedFormSubmitTest. Sven On 04/02/2013 12:40 PM, RalfButler wrote: Hi there, to my understanding the forms in

Re: Nested forms ...

2013-04-02 Thread RalfButler
Thanks for the quick reply Sven! Still confusing to me; for wantSubmitOnNestedFormSubmit() it says By default, this is false, so when a nested form is submitted, this form will not be submitted. And since I did not overwrite wantSubmitOnNestedFormSubmit of the OuterForm to return true, I'd expect

Re: Nested forms ...

2013-04-02 Thread Sven Meier
Ah, you're not using any button components, so there's no way for Wicket to know which form was submitted. Sven On 04/02/2013 01:48 PM, RalfButler wrote: Thanks for the quick reply Sven! Still confusing to me; for wantSubmitOnNestedFormSubmit() it says By default, this is false, so when a

Re: Nested forms ...

2013-04-02 Thread RalfButler
Ah! Thank you very much Sven. Yes, that makes sense!! In case anyone is interested: JAVA: HTML: -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Nested-forms-tp4657683p4657689.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Nested Forms and Multipart Fileupload Issue

2011-12-08 Thread marnold
Was this issue resolved? I am running on the same codebase and have the same issue. jcorbin wrote This issue seems to pop up in our environment from time to time and trying to figure out how to fix it once and for all. We have a page with a form that pops up modal window with a form

Re: Nested Forms in 1.4.x - order of calling onSubmit

2011-10-20 Thread Martin Grigorov
On Tue, Oct 18, 2011 at 3:11 PM, Bruno Borges bruno.bor...@gmail.com wrote: After playing with Nested Forms in WIcket 1.4.18, I found out that the onSubmit method of these forms is called at the end of the process. If a parent form has a button and this button is submited, its onSubmit method

Re: Nested Forms in 1.4.x - order of calling onSubmit

2011-10-20 Thread Bruno Borges
Can't upgrade... :-( Political issues (read: conservative corporation with terrible decision makers) *Bruno Borges* (21) 7672-7099 *www.brunoborges.com* On Thu, Oct 20, 2011 at 9:28 AM, Martin Grigorov mgrigo...@apache.orgwrote: On Tue, Oct 18, 2011 at 3:11 PM, Bruno Borges

Re: Nested Forms in 1.4.x - order of calling onSubmit

2011-10-20 Thread Martijn Dashorst
On Thu, Oct 20, 2011 at 3:07 PM, Bruno Borges bruno.bor...@gmail.com wrote: Can't upgrade... :-( Political issues (read: conservative corporation with terrible decision makers) They let you use wicket, so they can't be too bad :) Martijn

Re: Nested forms quick question

2011-05-12 Thread Alexandru Artimon
Yes they are necessarily nested. Thanks Martin, I'll give it a try. Alex On 05/06/2011 09:15 PM, Martin Grigorov wrote: instead of setRequired() use isRequired(submittedForm == innerForm) On Fri, May 6, 2011 at 6:04 PM, Titonjyt...@gmail.com wrote: Are these necessarily nested forms?

Re: Nested forms quick question

2011-05-06 Thread Tito
Are these necessarily nested forms? 2011/5/5 Alexandru Artimon aarti...@developmentgateway.org Hey guys, When I submit the main form can I prevent the submit of the inner forms? I have some small forms to add items to the main form. The fields in the inner forms have setRequired(true), so

Re: Nested forms quick question

2011-05-06 Thread Martin Grigorov
instead of setRequired() use isRequired(submittedForm == innerForm) On Fri, May 6, 2011 at 6:04 PM, Tito njyt...@gmail.com wrote: Are these necessarily nested forms? 2011/5/5 Alexandru Artimon aarti...@developmentgateway.org Hey guys, When I submit the main form can I prevent the submit of

Re: Nested forms and conditional validation

2011-03-30 Thread Robert Dahlström
I did manage to get this working using the other pattern from the conditional-validation page (i.e. using the FormVisitorParticipant) but I'm still curious if the isEnabled solution should work or not? Regards Robert On 03/30/2011 02:45 PM, Robert Dahlström wrote: Hi, I'm currently trying to

Re: Nested forms and conditional validation

2011-03-30 Thread Igor Vaynberg
depending on external factors while overriding isenabled()/isvisible() is dangerous for the reasons youve just found out. this is why we take care to provide alternative hooks, such as IFormVisitorParticipant -igor 2011/3/30 Robert Dahlström robert.dahlst...@ongame.com: I did manage to get

Re: Nested Forms and Multipart Fileupload Issue

2011-03-24 Thread Alexander Morozov
https://issues.apache.org/jira/browse/WICKET-3555 Thanks Martin Grigorov-4 wrote: Create a ticket please. And attach the quickstart. On Wed, Mar 23, 2011 at 12:19 PM, Stijn Maller lt;stijn.mal...@gmail.comgt;wrote: gt; Alexander, gt; gt; I'm facing the same issue and I'm convinced

Re: Nested Forms and Multipart Fileupload Issue

2011-03-23 Thread Stijn Maller
Alexander, I'm facing the same issue and I'm convinced it is a bug. When a FileUploadField in a nested form causes an error, then: - The ErrorMessage is registered on the outer form (instead of the inner form) - The outer form's onError method is called (instead of that of the inner

Re: Nested Forms and Multipart Fileupload Issue

2011-03-23 Thread Martin Grigorov
Create a ticket please. And attach the quickstart. On Wed, Mar 23, 2011 at 12:19 PM, Stijn Maller stijn.mal...@gmail.comwrote: Alexander, I'm facing the same issue and I'm convinced it is a bug. When a FileUploadField in a nested form causes an error, then: - The ErrorMessage is

Re: Nested Forms and Multipart Fileupload Issue

2011-01-17 Thread Alexander Morozov
Hi, I have faced with another problem, related to nested forms and FileUploadField (wicket-1.4.15). The nested form have FileUploadField instance and defined setMaxSize(100K). In case of submitting thru Ajax file more than 100K, hasError() on the nested form return false. But I expect here

Re: Nested Forms and Multipart Fileupload Issue

2010-12-21 Thread theFatEx
Hi, WICKET-2779 seems to be related to modal windows with upload and ajax but jcorbins original post was about a nested form in a modal window within a multipart form. Are both issues fixed or does the problem from jcorbins first post persist? thanks Christian -- View this message in

Re: Nested forms onSubmit() question ...

2010-11-05 Thread armandoxxx
Just a feature request: - beforeSubmit() method on Form would be usefull - make it configurable order of onSubmit() method calls (SUBMIT_NESTED_FIRST, SUBMIT_NESTED_LAST) Regards Armando -- View this message in context:

Re: Nested forms onSubmit() question ...

2010-11-04 Thread Andrea Del Bene
Hi Armando, have you tried calling method visitChildren(Form.class, visitor) in the main onSubmit? Maybe this could help you to gather children's data before submit root form. Bye. Hey wicket ppl ... Is there any beforeSubmit() event like method available on Form. I need it cause I

Re: Nested forms onSubmit() question ...

2010-11-04 Thread armandoxxx
Hey well ... that's also the way to do it .. thanks for idea ... regards Armando -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Nested-forms-onSubmit-question-tp3026993p3027217.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Nested Forms and Multipart Fileupload Issue

2010-03-12 Thread Michał Letyński
Did you add a jira issue James ? If not i can do it. Its a showstopper for me. Ilja Pavkovic pisze: Hi, Hmmm...I thought the Wicket Team already implemented something similar to this into the framework some time ago. Perhaps you should provide a quickstart and perhaps put it in a

Re: Nested Forms and Multipart Fileupload Issue

2010-03-12 Thread Michał Letyński
Jirra issue with quickstart added: https://issues.apache.org/jira/browse/WICKET-2779 Michał Letyński pisze: Did you add a jira issue James ? If not i can do it. Its a showstopper for me. Ilja Pavkovic pisze: Hi, Hmmm...I thought the Wicket Team already implemented something similar to

Re: Nested Forms and Multipart Fileupload Issue

2010-03-10 Thread Michał Letyński
Is there a wicket version where it works ? I tried with 1.4.6 and 1.4.7 but i get the same error which James got. My use case : I'm trying to submit a form via ajax to upload a file inside modal window. After debug: FileUploadBase.isMultipartContent get false because if

RE: Nested Forms and Multipart Fileupload Issue

2010-03-10 Thread Corbin, James
Yeah, some feedback from the Wicket Contributors on this issue would be greatly appreciated. -Original Message- From: Michał Letyński [mailto:mletyn...@consol.pl] Sent: Wednesday, March 10, 2010 7:52 AM To: users@wicket.apache.org Subject: Re: Nested Forms and Multipart Fileupload Issue

Re: Nested Forms and Multipart Fileupload Issue

2010-03-10 Thread James Carman
Someone at work had some luck with this approach from what I understand... http://www.dooriented.com/blog/2008/04/23/wicket-ajax-like-file-upload-on-a-modal-window/ 2010/3/10 Michał Letyński mletyn...@consol.pl: Is there a wicket version where it works ? I tried  with 1.4.6 and 1.4.7 but i

RE: Nested Forms and Multipart Fileupload Issue

2010-03-10 Thread Corbin, James
Hmmm...I thought the Wicket Team already implemented something similar to this into the framework some time ago. -Original Message- From: James Carman [mailto:jcar...@carmanconsulting.com] Sent: Wednesday, March 10, 2010 11:15 AM To: users@wicket.apache.org Subject: Re: Nested Forms

Re: Nested Forms and Multipart Fileupload Issue

2010-03-10 Thread James Carman
[mailto:jcar...@carmanconsulting.com] Sent: Wednesday, March 10, 2010 11:15 AM To: users@wicket.apache.org Subject: Re: Nested Forms and Multipart Fileupload Issue Someone at work had some luck with this approach from what I understand... http://www.dooriented.com/blog/2008/04/23/wicket-ajax-like-file

Re: Nested Forms and Multipart Fileupload Issue

2010-03-10 Thread Jeremy Thomerson
@wicket.apache.org Subject: Re: Nested Forms and Multipart Fileupload Issue Someone at work had some luck with this approach from what I understand... http://www.dooriented.com/blog/2008/04/23/wicket-ajax-like-file-upload-on-a-modal-window/ 2010/3/10 Michał Letyński mletyn...@consol.pl

Re: Nested Forms and Multipart Fileupload Issue

2010-03-09 Thread James Carman
You're trying to submit a form via ajax to upload a file? On Tue, Mar 9, 2010 at 4:26 PM, Corbin, James jcor...@iqnavigator.com wrote: This issue seems to pop up in our environment from time to time and trying to figure out how to fix it once and for all. We have a page with a form that pops

RE: Nested Forms and Multipart Fileupload Issue

2010-03-09 Thread Corbin, James
that does so via Ajax (e.g., AjaxButton). Once we click the ajax submit button, we get the error below. -Original Message- From: James Carman [mailto:jcar...@carmanconsulting.com] Sent: Tuesday, March 09, 2010 2:30 PM To: users@wicket.apache.org Subject: Re: Nested Forms and Multipart

Re: Nested Forms

2010-02-20 Thread Charles Deal
Ok, then is the content found at these two pages not relevant for v1.4? http://cwiki.apache.org/WICKET/nested-forms.html and http://cwiki.apache.org/WICKET/conditional-validation.html I understand the idea of nested forms and I understand that HTML only supports one form. I had hoped that Wicket

Re: Nested Forms

2010-02-20 Thread Igor Vaynberg
if you press the submit button inside the embedded form - then only the embedded form is processed. but, if you press a submit button inside the outer form then it and all its embedded forms are processed. -igor On Sat, Feb 20, 2010 at 6:41 PM, Charles Deal chuckdea...@gmail.com wrote: Ok, then

Re: Nested Forms

2010-02-19 Thread Charles Deal
I'm sorry to bump this. At the least, can anyone point me to some code that has successfully implemented isolated, nested forms using Wicket 1.4.x? On Wed, Feb 17, 2010 at 8:43 AM, Charles Deal charles.d...@missionse.comwrote: I am attempting to put an isolated form within the main form of my

Re: Nested Forms

2010-02-19 Thread Igor Vaynberg
you cannot have an isolated embedded form, as far as html is concerned that is an oxymoron. you can try hacking around it with IFormVisitorParticipant or by overriding form.process() on your main form, etc. but i do not think this is a usecase we will support... -igor On Fri, Feb 19, 2010 at

Re: nested forms onSubmit

2010-01-31 Thread Martijn Dashorst
VisitChildren(Form.class, ) Martijn On Friday, January 29, 2010, Dave Kallstrom dave.kallst...@gmail.com wrote: Hi, Is there anyway to notify nested forms that they are being submitted?  The onSubmit method of nested forms do not get called when the parent form is submitted. I tried

Re: nested forms onSubmit

2010-01-30 Thread Dave Kallstrom
Nested forms in wicket component hierarachy. Not in html. You can nest forms in wicket which are replaced when the page is rendered and swapped out for divs. http://cwiki.apache.org/WICKET/nested-forms.html On Fri, Jan 29, 2010 at 5:38 PM, Riyad Kalla rka...@gmail.com wrote: Are nested forms a

Re: nested forms onSubmit

2010-01-29 Thread Riyad Kalla
Are nested forms a valid HTML construct? I'm running through the use-case here in my head and it doesn't click -- form submission is 1:1 with an HTTP POST, what do multiple embedded forms even mean in this regard? I don't think this is kosher... On Fri, Jan 29, 2010 at 2:04 PM, Dave Kallstrom

Re: Nested forms : don't process inner form when outer form is submitted

2009-08-06 Thread nytrus
In the example, the inner form is enabled only when the submitter button is that of itself (i.e. I'm submitting the inner form). In all other cases the form is always disabled: I've tried the example and in factthe form is totally disabled, I can't fill my textfield and I can't even submit the

Re: Nested forms : don't process inner form when outer form is submitted

2009-08-06 Thread John Krasnay
On Thu, Aug 06, 2009 at 02:40:13AM -0700, nytrus wrote: In the example, the inner form is enabled only when the submitter button is that of itself (i.e. I'm submitting the inner form). In all other cases the form is always disabled: Yes, that is the point. I've tried the example and in

Re: Nested forms : don't process inner form when outer form is submitted

2009-08-06 Thread nytrus
John Krasnay wrote: The isEnabled method only controls form processing on the server. If you can't even type characters in your text field you have something else going on at the browser level. Well usually in a disabled box you cannot type, no matter what browser you are using. Anyway

Re: Nested forms : don't process inner form when outer form is submitted

2009-08-06 Thread John Krasnay
On Thu, Aug 06, 2009 at 07:09:20AM -0700, nytrus wrote: John Krasnay wrote: The isEnabled method only controls form processing on the server. If you can't even type characters in your text field you have something else going on at the browser level. Well usually in a disabled box

Re: Nested forms : don't process inner form when outer form is submitted

2009-08-06 Thread Igor Vaynberg
no, when a form's isenabled() returns false then all of its descendants are also disabled. when a formcomponent is disabled it adds disabled=disabled attribute, so you wont be able to use it in the browser. -igor On Thu, Aug 6, 2009 at 7:32 AM, John Krasnayj...@krasnay.ca wrote: On Thu, Aug 06,

Re: Nested forms : don't process inner form when outer form is submitted

2009-08-06 Thread John Krasnay
Oh, is that new? Perhaps my example on the wiki is indeed fubar. jk On Thu, Aug 06, 2009 at 08:14:51AM -0700, Igor Vaynberg wrote: no, when a form's isenabled() returns false then all of its descendants are also disabled. when a formcomponent is disabled it adds disabled=disabled attribute,

Re: Nested forms : don't process inner form when outer form is submitted

2009-08-06 Thread Igor Vaynberg
i dont think its that new, but maybe changed since youve written your wiki. -igor On Thu, Aug 6, 2009 at 8:24 AM, John Krasnayj...@krasnay.ca wrote: Oh, is that new? Perhaps my example on the wiki is indeed fubar. jk On Thu, Aug 06, 2009 at 08:14:51AM -0700, Igor Vaynberg wrote: no, when a

Re: Nested forms not working in wizard.

2009-07-16 Thread Ned Collyer
Thanks I got it sorted. Previously I was overriding delegateSubmit to perform validation. I have moved some of my validation logic into onSubmit which has remedied the situation. On Tue, Jul 7, 2009 at 9:01 PM, nino martinez waelnino.martinez.w...@gmail.com wrote: Hi Ned I know I have

Re: Nested forms not working in wizard.

2009-07-07 Thread Dave Schoorl
Could this be related to this issue: https://issues.apache.org/jira/browse/WICKET-2150 ? Ned Collyer wrote: The nesting is - The outer form is inside the wizard, then I have an inner form inside one of the steps. Sorry, I cant show you the output of the html - I scrapped the impl I had

Re: Nested forms not working in wizard.

2009-07-07 Thread nino martinez wael
Hi Ned I know I have something similar, but my part are working.. It's pretty hard digesting without code.. :( 2009/7/7 Ned Collyer ned.coll...@gmail.com: The nesting is - The outer form is inside the wizard, then I have an inner form inside one of the steps. Sorry, I cant show you the

Re: Nested forms not working in wizard.

2009-07-06 Thread nino martinez wael
Is the form nested in the other form in html. I remember vaguely something about it needs to be nested, wicket then rewrites it or something like that.. How does the resulting html look like? 2009/7/6 Ned Collyer ned.coll...@gmail.com: I am currently running wicket 1.4-rc2 I have nested forms

Re: Nested forms not working in wizard.

2009-07-06 Thread Ned Collyer
The nesting is - The outer form is inside the wizard, then I have an inner form inside one of the steps. Sorry, I cant show you the output of the html - I scrapped the impl I had am implementing a less wizardy wizard. On Mon, Jul 6, 2009 at 8:36 PM, nino martinez

Re: nested forms and locale

2009-06-09 Thread Igor Vaynberg
like you were told, you have to add the textfield to the ajax target. also, if you want to repull the value from the model, textfield.clearinput() might do the trick. -igor On Mon, Jun 8, 2009 at 10:44 PM, msteffmst...@emercos.com wrote: Could anybody help on this - please ? Or maybe give me a

Re: nested forms and locale

2009-06-09 Thread msteff
Hello Igor, Thanks for your answer. I added the txtField to the target argument of the onSubmit of the Pressme button. It didn't help. Also seems a bit strange to me to add the fields of the outer form to the button of the inner form.. However, if i submit the outer form, then changing the

Re: nested forms and locale

2009-06-09 Thread Igor Vaynberg
why dont you reproduce this in a quickstart and attach it to a jira issue. on the quickstart page clearly outline what the problem is and what are the steps necessary to reproduce it. it will be much easier then discussing random snippets of code here and there. -igor On Tue, Jun 9, 2009 at 2:41

Re: nested forms and locale

2009-06-09 Thread Morten Steffensen
Hello Igor, Thanks for your answers! I have made a jira issue: WICKET-2320 But... maybe this is not a bug, but rather a feature. I would just like to know how to deal with it then. Kind regards, Morten Steffensen Igor Vaynberg wrote: why dont you reproduce this in a quickstart and attach

Re: nested forms and locale

2009-06-08 Thread msteff
Could anybody help on this - please ? Or maybe give me a hint as to where to start debugging this. I tried to follow the setLocale() to see what the behaviour of wicket is, but i guess i have to start elsewhere.. Thanks for any answer! msteff wrote: Hi, I am having problems using nested

Re: nested forms and locale

2009-06-07 Thread Brill Pappin
i may be wrong about this because my wicket ajax is still a bit shaky, but try adding the components you wanted updated to the links target. - Brill On 7-Jun-09, at 10:20 AM, Morten Steffensen wrote: Hi, I am having problems using nested forms and changing locale. I have 2 links for

Re: nested forms and locale

2009-06-07 Thread Morten Steffensen
Well - when I click one of the links for changing the locale, after i hit the Press me button, the onClick method gets called, and the setLocale gets called. Then i thought that the setLocale would mark the session as dirty and in some magic way the models getObject gets called on the items of

Re: Nested forms : don't process inner form when outer form is submitted

2009-02-10 Thread Marieke Vandamme
Thanks for the suggestions, but I'm still not sure how to implement it. My innerform implements IFormVisitorParticipant. I override processChildren(), but how do I know which form is getting submitted??? Because when innerform is submitted, i want to return true, otherwise false. Thanks for any

Re: Nested forms : don't process inner form when outer form is submitted

2009-02-10 Thread John Krasnay
Have a look at the bottom of this page: http://cwiki.apache.org/WICKET/conditional-validation.html The example shown disables the whole inner form when the outer form is submitted, meaning the inner form won't even be submitted. If you want the inner form to be submitted but just not required,

Re: Nested forms : don't process inner form when outer form is submitted

2009-02-09 Thread Igor Vaynberg
try letting your inner form implement IFormVisitorParticipant. another way is to override isrequired() and check for the submitting component. -igor On Mon, Feb 9, 2009 at 3:17 AM, Marieke Vandamme ma...@tvh.be wrote: Hello, I've been reading a lot about nested forms and what should happen

Re: Nested forms and IndicatingAjaxSubmitButton - multiple issues

2008-08-29 Thread Ritesh Trivedi
After spending a day or so on this issue, I finally figured out and found a bug in wicket-ajax.js. I am curious to know why I didnt get any responses from the Wicket developer(s), at least who had originally coded this portion, as I had asked for help couple of times. This will help me (and

Re: Nested forms and IndicatingAjaxSubmitButton - multiple issues

2008-08-28 Thread Ritesh Trivedi
Anyone? Ritesh Trivedi wrote: Hi, I have IndicatingAjaxButton in a form within a panel, panel itself is inside another wrapper form on the enclosing page. Seems like I get really weird behavior based on how many forms I have on the page - even though the ajaxsubmit button's form

Re: Nested forms

2008-08-19 Thread John Krasnay
On Mon, Aug 18, 2008 at 11:10:29PM +0200, Matej Knopp wrote: Can't you just override isEnabled() on the inner form and return true/false depending on whether the inner form should be processed? Hrm, something like this I suppose? public boolean isEnabled() { return

Re: Nested forms

2008-08-19 Thread John Krasnay
On Tue, Aug 19, 2008 at 09:15:55AM -0400, John Krasnay wrote: On Mon, Aug 18, 2008 at 11:10:29PM +0200, Matej Knopp wrote: Can't you just override isEnabled() on the inner form and return true/false depending on whether the inner form should be processed? Hrm, something like this I

Re: Nested forms

2008-08-18 Thread Matej Knopp
Can't you just override isEnabled() on the inner form and return true/false depending on whether the inner form should be processed? -Matej On Mon, Aug 18, 2008 at 10:42 PM, John Krasnay [EMAIL PROTECTED] wrote: Hi folks, I find myself occasionally using nested forms in my Wicket apps. With

Re: Nested forms problem

2008-01-24 Thread Steen Larsen
Hm, it seems like i can get the behaviour I expect by overiding the inner form button's onSubmit method and setting setDefaultFormProcessing(false) on it as in this code. public class Test extends WebPage { public Test() { MandatoryProductsForm outer = new

Re: Nested forms problem

2008-01-23 Thread James Carman
http://www.thescripts.com/forum/thread95602.html On 1/23/08, Steen Larsen [EMAIL PROTECTED] wrote: Hi, I have seen that nested forms should be possible in Wicket 1.3, so i have tried to use it in one of my projects, but for some reason when submitting the inner form, only the outer form

Re: Nested forms problem

2008-01-23 Thread Steen Larsen
According to the javadoc for Form it is possible because the inner form gets substituted with span tags. It says: quote Forms can be nested. You can put a form in another form. Since HTML doesn't allow nested form tags, the inner forms will be rendered using the div tag. You have to submit the

Re: Nested forms problem

2008-01-23 Thread Matej Knopp
You seem to have a button in your search phone.input type=submit wicket:id=searchPhone/ The button's onSubmit method should be called. -Matej On Jan 23, 2008 3:38 PM, Steen Larsen [EMAIL PROTECTED] wrote: According to the javadoc for Form it is possible because the inner form gets

Re: Nested forms problem

2008-01-23 Thread Steen Larsen
The button's onSubmit gets called, but not the form's onSubmit that the button is a part of. That's what i can't figure out as the javadoc says it should only submit the inner form. /Steen 2008/1/23, Matej Knopp [EMAIL PROTECTED]: You seem to have a button in your search phone.input

Re: Nested forms problem

2008-01-23 Thread James Carman
Okay, I stand corrected. We had this question come up on the Tapestry users group and I don't believe Tapestry supports it (at least it didn't). I guess I just assumed Wicket didn't either. There's another reason for me to make the switch! :) I'm going to have to go look into this. Sounds