Re: button submit

2012-10-13 Thread delta458
Oh the solution is validation.
ONLY when you have a validated form (all inputs are inserted) then the
submit button will be called.

You can add a feedback panel, which will help you:

in JAVA:

form.add(new FeedbackPanel(feedback));

in HTML:
form
...
  
...
/form



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/button-submit-tp4650594p4652941.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Button submit and onclick event right way

2010-10-18 Thread Tito
Hello everybody!
This is a question of what is the right way to do this.

The idea is, I'm submiting information with a submit button from a form. But
at the same time I want to send another information (generated by
javascript) by ajax. Is clear what I'm trying to do?

Well at this time I have made a behavior that I'm atatching to my webpage,
that process one call made by ajax with wicketAjaxGet function in witch part
of information travel. And at the same time process the rest of information
by onSubmit method after form submitting.

I hope I explained well. I just wanna now what is the correct way to do
this.

Thanks a lot.

Bye
Tito


Re: Button submit and onclick event right way

2010-10-18 Thread jcgarciam

Just by curiosity why not sending all information in one request (on form
submit), rather than two separate http request?

You can leave the onclick of your button to submit your form via javascript
which also previously massage the additional data you need.


On Mon, Oct 18, 2010 at 8:46 PM, Tito [via Apache Wicket] 
ml-node+3001276-352039908-65...@n4.nabble.comml-node%2b3001276-352039908-65...@n4.nabble.com
 wrote:

 Hello everybody!
 This is a question of what is the right way to do this.

 The idea is, I'm submiting information with a submit button from a form.
 But
 at the same time I want to send another information (generated by
 javascript) by ajax. Is clear what I'm trying to do?

 Well at this time I have made a behavior that I'm atatching to my webpage,
 that process one call made by ajax with wicketAjaxGet function in witch
 part
 of information travel. And at the same time process the rest of information

 by onSubmit method after form submitting.

 I hope I explained well. I just wanna now what is the correct way to do
 this.

 Thanks a lot.

 Bye
 Tito


 --
  View message @
 http://apache-wicket.1842946.n4.nabble.com/Button-submit-and-onclick-event-right-way-tp3001276p3001276.html
 To start a new topic under Apache Wicket, email
 ml-node+1842946-398011874-65...@n4.nabble.comml-node%2b1842946-398011874-65...@n4.nabble.com
 To unsubscribe from Apache Wicket, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=.





-- 
Sincerely,
JC (http://www.linkedin.com/in/jcgarciam)
Work smarter, not harder!.

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Button-submit-and-onclick-event-right-way-tp3001276p3001327.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Button submit and onclick event right way

2010-10-18 Thread Tito
mmm good question...

In fact I wanted to do that. But I couldn't found the way to send all
information in one request. I don't know how to send that information that I
get with javascript.

2010/10/18 jcgarciam jcgarc...@gmail.com


 Just by curiosity why not sending all information in one request (on form
 submit), rather than two separate http request?

 You can leave the onclick of your button to submit your form via javascript
 which also previously massage the additional data you need.


 On Mon, Oct 18, 2010 at 8:46 PM, Tito [via Apache Wicket] 
 ml-node+3001276-352039908-65...@n4.nabble.comml-node%2b3001276-352039908-65...@n4.nabble.com
 ml-node%2b3001276-352039908-65...@n4.nabble.comml-node%252b3001276-352039908-65...@n4.nabble.com
 
  wrote:

  Hello everybody!
  This is a question of what is the right way to do this.
 
  The idea is, I'm submiting information with a submit button from a form.
  But
  at the same time I want to send another information (generated by
  javascript) by ajax. Is clear what I'm trying to do?
 
  Well at this time I have made a behavior that I'm atatching to my
 webpage,
  that process one call made by ajax with wicketAjaxGet function in witch
  part
  of information travel. And at the same time process the rest of
 information
 
  by onSubmit method after form submitting.
 
  I hope I explained well. I just wanna now what is the correct way to do
  this.
 
  Thanks a lot.
 
  Bye
  Tito
 
 
  --
   View message @
 
 http://apache-wicket.1842946.n4.nabble.com/Button-submit-and-onclick-event-right-way-tp3001276p3001276.html
  To start a new topic under Apache Wicket, email
  ml-node+1842946-398011874-65...@n4.nabble.comml-node%2b1842946-398011874-65...@n4.nabble.com
 ml-node%2b1842946-398011874-65...@n4.nabble.comml-node%252b1842946-398011874-65...@n4.nabble.com
 
  To unsubscribe from Apache Wicket, click here
 http://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=
 .
 
 
 


 --
 Sincerely,
 JC (http://www.linkedin.com/in/jcgarciam)
 Work smarter, not harder!.

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Button-submit-and-onclick-event-right-way-tp3001276p3001327.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: Button submit and onclick event right way

2010-10-18 Thread jcgarciam

Well without knowing much detail of your implementation i could say, you
need to use one of the function wicketAjaxGet or wicketAjaxPost to actually
post the content of your form to wicket. In the server side depending on how
you have setup your Model or set your hidden fields in the html form you can
retrieve later your field by using:

Not a very orthodoxy way:
WebRequest.get().getRequestParameter(yourHiddendFieldName)

On Mon, Oct 18, 2010 at 10:55 PM, Tito [via Apache Wicket] 
ml-node+3001345-678496819-65...@n4.nabble.comml-node%2b3001345-678496819-65...@n4.nabble.com
 wrote:

 mmm good question...

 In fact I wanted to do that. But I couldn't found the way to send all
 information in one request. I don't know how to send that information that
 I
 get with javascript.

 2010/10/18 jcgarciam [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=3001345i=0


 
  Just by curiosity why not sending all information in one request (on form

  submit), rather than two separate http request?
 
  You can leave the onclick of your button to submit your form via
 javascript
  which also previously massage the additional data you need.
 
 
  On Mon, Oct 18, 2010 at 8:46 PM, Tito [via Apache Wicket] 
  [hidden email] 
  http://user/SendEmail.jtp?type=nodenode=3001345i=1[hidden
 email] http://user/SendEmail.jtp?type=nodenode=3001345i=2
  [hidden email] 
  http://user/SendEmail.jtp?type=nodenode=3001345i=3[hidden
 email] http://user/SendEmail.jtp?type=nodenode=3001345i=4
  
   wrote:
 
   Hello everybody!
   This is a question of what is the right way to do this.
  
   The idea is, I'm submiting information with a submit button from a
 form.
   But
   at the same time I want to send another information (generated by
   javascript) by ajax. Is clear what I'm trying to do?
  
   Well at this time I have made a behavior that I'm atatching to my
  webpage,
   that process one call made by ajax with wicketAjaxGet function in witch

   part
   of information travel. And at the same time process the rest of
  information
  
   by onSubmit method after form submitting.
  
   I hope I explained well. I just wanna now what is the correct way to do

   this.
  
   Thanks a lot.
  
   Bye
   Tito
  
  
   --
View message @
  
 
 http://apache-wicket.1842946.n4.nabble.com/Button-submit-and-onclick-event-right-way-tp3001276p3001276.htmlhttp://apache-wicket.1842946.n4.nabble.com/Button-submit-and-onclick-event-right-way-tp3001276p3001276.html?by-user=t
   To start a new topic under Apache Wicket, email
   [hidden email] 
   http://user/SendEmail.jtp?type=nodenode=3001345i=5[hidden
 email] http://user/SendEmail.jtp?type=nodenode=3001345i=6
  [hidden email] 
  http://user/SendEmail.jtp?type=nodenode=3001345i=7[hidden
 email] http://user/SendEmail.jtp?type=nodenode=3001345i=8
  
   To unsubscribe from Apache Wicket, click here
 
 http://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=http://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=by-user=t
  .
  
  
  
 
 
  --
  Sincerely,
  JC (http://www.linkedin.com/in/jcgarciam)
  Work smarter, not harder!.
 
  --
  View this message in context:
 
 http://apache-wicket.1842946.n4.nabble.com/Button-submit-and-onclick-event-right-way-tp3001276p3001327.htmlhttp://apache-wicket.1842946.n4.nabble.com/Button-submit-and-onclick-event-right-way-tp3001276p3001327.html?by-user=t
  Sent from the Users forum mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=3001345i=9
  For additional commands, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=3001345i=10
 
 


 --
  View message @
 http://apache-wicket.1842946.n4.nabble.com/Button-submit-and-onclick-event-right-way-tp3001276p3001345.html
 To start a new topic under Apache Wicket, email
 ml-node+1842946-398011874-65...@n4.nabble.comml-node%2b1842946-398011874-65...@n4.nabble.com
 To unsubscribe from Apache Wicket, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=.





-- 
Sincerely,
JC (http://www.linkedin.com/in/jcgarciam)
Work smarter, not harder!.

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Button-submit-and-onclick-event-right-way-tp3001276p3001367.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Button submit and onclick event right way

2010-10-18 Thread Tito
So, you say that I could put information in some hidden fields?

In that case I suppose doesn't matter if I submit by ajax or a simple http
request.
I think I could use Hidden Fields, but I didn't realize before.

Thanks!

2010/10/18 jcgarciam jcgarc...@gmail.com


 Well without knowing much detail of your implementation i could say, you
 need to use one of the function wicketAjaxGet or wicketAjaxPost to actually
 post the content of your form to wicket. In the server side depending on
 how
 you have setup your Model or set your hidden fields in the html form you
 can
 retrieve later your field by using:

 Not a very orthodoxy way:
 WebRequest.get().getRequestParameter(yourHiddendFieldName)

 On Mon, Oct 18, 2010 at 10:55 PM, Tito [via Apache Wicket] 
 ml-node+3001345-678496819-65...@n4.nabble.comml-node%2b3001345-678496819-65...@n4.nabble.com
 ml-node%2b3001345-678496819-65...@n4.nabble.comml-node%252b3001345-678496819-65...@n4.nabble.com
 
  wrote:

  mmm good question...
 
  In fact I wanted to do that. But I couldn't found the way to send all
  information in one request. I don't know how to send that information
 that
  I
  get with javascript.
 
  2010/10/18 jcgarciam [hidden email]
 http://user/SendEmail.jtp?type=nodenode=3001345i=0
 
 
  
   Just by curiosity why not sending all information in one request (on
 form
 
   submit), rather than two separate http request?
  
   You can leave the onclick of your button to submit your form via
  javascript
   which also previously massage the additional data you need.
  
  
   On Mon, Oct 18, 2010 at 8:46 PM, Tito [via Apache Wicket] 
   [hidden email] http://user/SendEmail.jtp?type=nodenode=3001345i=1
 [hidden
  email] http://user/SendEmail.jtp?type=nodenode=3001345i=2
   [hidden email] http://user/SendEmail.jtp?type=nodenode=3001345i=3
 [hidden
  email] http://user/SendEmail.jtp?type=nodenode=3001345i=4
   
wrote:
  
Hello everybody!
This is a question of what is the right way to do this.
   
The idea is, I'm submiting information with a submit button from a
  form.
But
at the same time I want to send another information (generated by
javascript) by ajax. Is clear what I'm trying to do?
   
Well at this time I have made a behavior that I'm atatching to my
   webpage,
that process one call made by ajax with wicketAjaxGet function in
 witch
 
part
of information travel. And at the same time process the rest of
   information
   
by onSubmit method after form submitting.
   
I hope I explained well. I just wanna now what is the correct way to
 do
 
this.
   
Thanks a lot.
   
Bye
Tito
   
   
--
 View message @
   
  
 
 http://apache-wicket.1842946.n4.nabble.com/Button-submit-and-onclick-event-right-way-tp3001276p3001276.html
 
 http://apache-wicket.1842946.n4.nabble.com/Button-submit-and-onclick-event-right-way-tp3001276p3001276.html?by-user=t
 
To start a new topic under Apache Wicket, email
[hidden email] http://user/SendEmail.jtp?type=nodenode=3001345i=5
 [hidden
  email] http://user/SendEmail.jtp?type=nodenode=3001345i=6
   [hidden email] http://user/SendEmail.jtp?type=nodenode=3001345i=7
 [hidden
  email] http://user/SendEmail.jtp?type=nodenode=3001345i=8
   
To unsubscribe from Apache Wicket, click here
  
 
 http://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=
 
 http://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=by-user=t
 
   .
   
   
   
  
  
   --
   Sincerely,
   JC (http://www.linkedin.com/in/jcgarciam)
   Work smarter, not harder!.
  
   --
   View this message in context:
  
 
 http://apache-wicket.1842946.n4.nabble.com/Button-submit-and-onclick-event-right-way-tp3001276p3001327.html
 
 http://apache-wicket.1842946.n4.nabble.com/Button-submit-and-onclick-event-right-way-tp3001276p3001327.html?by-user=t
 
   Sent from the Users forum mailing list archive at Nabble.com.
  
   -
   To unsubscribe, e-mail: [hidden email]
 http://user/SendEmail.jtp?type=nodenode=3001345i=9
   For additional commands, e-mail: [hidden email]
 http://user/SendEmail.jtp?type=nodenode=3001345i=10
  
  
 
 
  --
   View message @
 
 http://apache-wicket.1842946.n4.nabble.com/Button-submit-and-onclick-event-right-way-tp3001276p3001345.html
  To start a new topic under Apache Wicket, email
  ml-node+1842946-398011874-65...@n4.nabble.comml-node%2b1842946-398011874-65...@n4.nabble.com
 ml-node%2b1842946-398011874-65...@n4.nabble.comml-node%252b1842946-398011874-65...@n4.nabble.com
 
  To unsubscribe from Apache Wicket, click here
 http://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=1842946code

Populate fields with data on button submit

2009-05-03 Thread srinivas

Hi,

I have been facing some problem to do the following task in wicket,

I have 2 buttons in same page, one is for form submission and the other 
one is to populate the
all the fields with data in the form and it should not perform any 
validations.


But when i am clicking the button the data is not getting populated, i 
have done this in many ways but not working.


If any one have done with this example please send me the code.

Regards,
Srinivasa Raju CH.


Get your world in your inbox!

Mail, widgets, documents, spreadsheets, organizer and much more with your 
Sifymail WIYI id!
Log on to http://www.sify.com

** DISCLAIMER **
Information contained and transmitted by this E-MAIL is proprietary to 
Sify Limited and is intended for use only by the individual or entity to 
which it is addressed, and may contain information that is privileged, 
confidential or exempt from disclosure under applicable law. If this is a 
forwarded message, the content of this E-MAIL may not have been sent with 
the authority of the Company. If you are not the intended recipient, an 
agent of the intended recipient or a  person responsible for delivering the 
information to the named recipient,  you are notified that any use, 
distribution, transmission, printing, copying or dissemination of this 
information in any way or in any manner is strictly prohibited. If you have 
received this communication in error, please delete this mail  notify us 
immediately at ad...@sifycorp.com


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Populate fields with data on button submit

2009-05-03 Thread Igor Vaynberg
show us your code.

-igor

On Sun, May 3, 2009 at 9:01 PM, srinivas srinivas.r...@sifycorp.com wrote:
 Hi,

 I have been facing some problem to do the following task in wicket,

 I have 2 buttons in same page, one is for form submission and the other one
 is to populate the
 all the fields with data in the form and it should not perform any
 validations.

 But when i am clicking the button the data is not getting populated, i have
 done this in many ways but not working.

 If any one have done with this example please send me the code.

 Regards,
 Srinivasa Raju CH.


 Get your world in your inbox!

 Mail, widgets, documents, spreadsheets, organizer and much more with your
 Sifymail WIYI id!
 Log on to http://www.sify.com

 ** DISCLAIMER **
 Information contained and transmitted by this E-MAIL is proprietary to Sify
 Limited and is intended for use only by the individual or entity to which it
 is addressed, and may contain information that is privileged, confidential
 or exempt from disclosure under applicable law. If this is a forwarded
 message, the content of this E-MAIL may not have been sent with the
 authority of the Company. If you are not the intended recipient, an agent of
 the intended recipient or a  person responsible for delivering the
 information to the named recipient,  you are notified that any use,
 distribution, transmission, printing, copying or dissemination of this
 information in any way or in any manner is strictly prohibited. If you have
 received this communication in error, please delete this mail  notify us
 immediately at ad...@sifycorp.com

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org