Re: [Wicket-user] When the connetction must be opened and when it have to closed?

2007-01-16 Thread Ramazan Pekin
I have created a BaseForm class which extending Form class. I have overrided Form.process() function but when I run the application I have seen that, the process() function running and terminating before reaching onSubmit() function. Because of that if I create the connection on process()

Re: [Wicket-user] When the connetction must be opened and when it have to closed?

2007-01-16 Thread Erik van Oosten
Did you attach a component to the submit button? If you read the class comment of Form you can see that this may change form processing quite a bit. Otherwise your code looks ok to me. Regards, Erik. Ramazan Pekin wrote: I have created a BaseForm class which extending Form class. I have

Re: [Wicket-user] When the connetction must be opened and when it have to closed?

2007-01-16 Thread Igor Vaynberg
why do this around form processing though? why not do this around the request cycle? -igor On 1/16/07, Erik van Oosten [EMAIL PROTECTED] wrote: Did you attach a component to the submit button? If you read the class comment of Form you can see that this may change form processing quite a bit.

Re: [Wicket-user] When the connetction must be opened and when it have to closed?

2007-01-15 Thread Igor Vaynberg
override form.process() -igor On 1/14/07, Ramazan Pekin [EMAIL PROTECTED] wrote: Hi everone, I am trying to develop a structure and I want this; already opened and already closed the connection when my form is submitted and my forms logic finished. I have a BaseForm class, which overriding

[Wicket-user] When the connetction must be opened and when it have to closed?

2007-01-14 Thread Ramazan Pekin
Hi everone, I am trying to develop a structure and I want this; already opened and already closed the connection when my form is submitted and my forms logic finished. I have a BaseForm class, which overriding OnSubmit function and my other forms extends this BaseForm class. On Struts, when