Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-07-08 Thread Vladimir K
Igor, for now I'm concerned about how can I make sure that my code that mimics form submitting lifecycles and wicket code in coming version do the same things? For instance the AjaxFormComponentUpdatingBehavior: @Override protected final void onEvent(final AjaxRequestTarget

Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-07-07 Thread Stefan Malmesjö
I just realized that maybe you need to extend your validators, too, at least if you want your modelobject to be updated. And how you do that on a textfield that is required, I don't really know. Maybe that path is too complicated. /Stefan On 2009-07-06 22:55, Stefan Malmesjö wrote: Could

Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-07-07 Thread Thierry Leveque
Thanks, but I was not talking about using the submit behavior. I was talking about the way to create my own ajax behavior to send the value of multiple form fields. I think this should be part of Wicket. It is not the first time I encounter this problem. The first time, I found a workaround but

Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-07-07 Thread Vladimir K
From the ajax perspective it should be possible to submit any dom element with its descendants. I believe it is exactly what Wicket ajax submit is doing. IMO forms needed just for regular form submit. We just need to change an implementation to accept a list of dom elements instead of just one.

Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-07-07 Thread Vladimir K
Wicket has strong rules how to handle ajax form submit. Therefore partial form submitting should be handled differently on the server side. Anyway we could handle raw strings or invoke converter ourselves. Vladimir K wrote: From the ajax perspective it should be possible to submit any dom

Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-07-07 Thread Igor Vaynberg
you can see how the submit behavior does it and replicate the parts you need. all these things are not using some magical internal apis. you are meant to build your own things when the default implementations do not do what you want. -igor On Tue, Jul 7, 2009 at 6:35 AM, Thierry

Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-07-07 Thread Thierry Leveque
Of course, but the goal of using a framework like Wicket is just that: avoid having to write everything by myself. No? So it is a suggestion to add in a future release. I think a lot of people need that kind of functionality. If it could be generic enough. I think Ajax is rarely used to submit a

Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-07-07 Thread Igor Vaynberg
no, the goal of a framework is to make the 90% usecase easy and the 10% usecase possible. there arent many threads on this list requesting this particular feature so i guess its not that common a usecase. of course, you can always add a jira ticket with a patch. -igor On Tue, Jul 7, 2009 at

Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-07-06 Thread Thierry Leveque
Any following on that? Daniel, have you been able to solve your problem? Did you wrote your own behavior? I have the same requirement as you and I am trying to find a quick way to solve my problem. Can someone point me to some examples on how to write my own Ajax behavior? Thanks Thierry On

Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-07-06 Thread Stefan Malmesjö
Could setting visibility for the FeedbackPanel to false until the form has been properly submitted with a press of a submit button work? /Stefan On Mon, Jul 6, 2009 at 8:42 PM, Thierry Leveque tleve...@gmail.com wrote: Any following on that? Daniel, have you been able to solve your problem?

Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-06-02 Thread Igor Vaynberg
how are you planning on reading the other values? you cannot access the model so you will have to call getinput(), are you also planning on doing type conversion yourself then? -igor 2009/6/2 Daniel Fernández dfernan...@users.sourceforge.net: Hello, I have a form with a DropDownChoice, on

Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-06-02 Thread dfernandez
Yes, I know it is tricky, but the fact is I don't think I would really need type conversion in this case. I will try to explain myself. I have the following UI: |OPERATOR |V| |INPUT1=aBc| |INPUT2=DeF | ...being OPERATOR the DropDownChoice, and both INPUT1 and

Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-06-02 Thread Igor Vaynberg
well, if you do not want to *submit* the form then dont use ajaxformSUBMITbehavior :) with little work you can roll your own behavior that does a simple ajax get and appends whatever values you need from formcomponents to the url. that way the form is not submitted and you have access to the raw