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() function I cant reach 
from onSubmit() function before it is terminated so before the connection 
closed.

@Override
public boolean process(){
    openConnection();
    boolean superProcess = super.process();
    closeConnection();
    return superProcess;
}

Is there any other way to provide a connection when ever the form processed. 
Can you help me with code. Thanks for now.

----- Original Message ----
From: Igor Vaynberg <[EMAIL PROTECTED]>
To: wicket-user@lists.sourceforge.net
Sent: Monday, January 15, 2007 10:00:24 AM
Subject: Re: [Wicket-user] When the connetction must be opened and when it have 
to closed?

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 OnSubmit function and my other forms 
extends this BaseForm class. On Struts, when form submit I have overrided the 
dispatchaction execute method and openning my connection, and generate 
actionForward and closing connection. How can I make kind of a struture with 
wicket framework? I have controlled the user with my BaseForm, BaseApplicaiton, 
BaseSession, I want to same this thing with my connection. I have seen on every 
form class I have to override the OnSubmit function, is there any other steps 
when the OnSubmit event formed?


 
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to