Re: Problem with IFormsubmitting

2009-11-04 Thread Martin Makundi
Hi! The proposed solution does not work with Modal Windows!! * http://osdir.com/ml/users-wicket.apache.org/2009-11/msg00076.html Modal windws have a fake parent form: form style=border-width: 0px; margin: 0px; padding: 0px; background-color: transparent; position: static; .. and ofcourse it

Problem with IFormsubmitting

2009-11-03 Thread Martin Makundi
Hi! I need to accomplish the following: 1. receive ajax onchange event from a formcomponent 2. receive defaultformprocesing=false style submit 3. repaint an area; I this is why I need the form to be really submitted (=rawinput but not validated). I have built a custom component

Re: Problem with IFormsubmitting

2009-11-03 Thread Martin Makundi
Hi! Maybe this is the solution: String url = getRequest().getParameter(getHiddenFieldId()); if (!Strings.isEmpty(url)) { dispatchEvent(getPage(), url); } ?? Attach

Re: Problem with IFormsubmitting

2009-11-03 Thread Martin Makundi
Hi! I hope I found a solution usin IOnChangeListener. Please try this out and let me know if it works for you. Maybe it should be incorporated into Wicket? public abstract class FormSubmitAjaxChangeListenerCallDecorator implements IAjaxCallDecorator { private final static Method

Re: Problem with IFormsubmitting

2009-11-03 Thread Martin Makundi
Hi! One finishing touch is needed. The hidden field should be cleared after ajax submit. It seems to work now.. feel free to critisize. public abstract class FormSubmitAjaxChangeListenerCallDecorator implements IAjaxCallDecorator { private final static Method hiddenFieldGetter; static {

Re: Problem with IFormsubmitting

2009-11-03 Thread Jeremy Thomerson
The power of this list is amazing - it seems you just had an entire thread with yourself and answered your own question. SYNERGY! :) But seriously, did you have any remaining questions on this that we could assist with? -- Jeremy Thomerson http://www.wickettraining.com On Tue, Nov 3, 2009

Re: Problem with IFormsubmitting

2009-11-03 Thread Martin Makundi
Tnx. I would like to ask (myself?) whether it could be formulated simply into a behavior that can be attached into any formcomponent. Probably. I will work on this next. Ofcourse if more people try the code in their applications we will soon learn if it breaks something. ** Martin 2009/11/4