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() 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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 
 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.



-- 
Erik van Oosten
http://day-to-day-stuff.blogspot.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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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.

Otherwise your code looks ok to me.

Regards,
 Erik.

Ramazan Pekin wrote:
 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.



--
Erik van Oosten
http://day-to-day-stuff.blogspot.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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 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?

--
Want to start your own business? Learn how on Yahoo! Small 
Business.http://us.rd.yahoo.com/evt=41244/*http://smallbusiness.yahoo.com/r-index

-
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.phpp=sourceforgeCID=DEVDEV

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[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 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?


 

Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index-
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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user