You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by hariharansrc <ha...@gmail.com> on 2011/03/28 18:29:36 UTC

Re: just having another question how to clear form fields

after clicking submit button the values are still there in field itself how
to clear the field values

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-call-javascript-function-on-form-submission-tp3408147p3412291.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: actually what i feel is it will be better when

Posted by Ben Tilford <be...@tilford.info>.
Some things will be better but some things won't. Java and Javscript don't
have a whole lot in common.

On Sat, Apr 2, 2011 at 11:31 PM, hariharansrc <ha...@gmail.com>wrote:

> we use gwt we can code in java instead of js and then we can use the
> generated js in wicket. This only i thought. Sorry if i am wrong. but for
> me
> it will better when we code in java than in javascript. since i don't want
> to learn a new lang
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/how-to-call-javascript-function-on-form-submission-tp3408147p3423059.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re:actually what i feel is it will be better when

Posted by hariharansrc <ha...@gmail.com>.
we use gwt we can code in java instead of js and then we can use the
generated js in wicket. This only i thought. Sorry if i am wrong. but for me
it will better when we code in java than in javascript. since i don't want
to learn a new lang

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-call-javascript-function-on-form-submission-tp3408147p3423059.html
Sent from the Users forum mailing list archive at Nabble.com.

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


RE: thanks you all for giving proper suggestions

Posted by Chris Colman <ch...@stepaheadsoftware.com>.
We haven't felt the need to use GWT with Wicket. Wicket has handled all
of our client side code very powerfully and efficiently- and we can do
all development and debugging in standard Java IDE's which means there's
none of the GWT object marshalling to write, debug and maintain.

What kind of client side stuff do you need GWT for that you can't do
with Wicket alone?

>-----Original Message-----
>From: hariharansrc [mailto:hariharansrc@gmail.com]
>Sent: Saturday, 2 April 2011 4:17 PM
>To: users@wicket.apache.org
>Subject: Re:thanks you all for giving proper suggestions
>
>i want to know whether i can use gwt along with wicket
>so i can quite manage both server and client  side coding efficiently
>are there any tutorials to integrate gwt with wicket
>
>thank you in advance
>
>--
>View this message in context: http://apache-
>wicket.1842946.n4.nabble.com/how-to-call-javascript-function-on-form-
>submission-tp3408147p3421644.html
>Sent from the Users forum mailing list archive at Nabble.com.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>For additional commands, e-mail: users-help@wicket.apache.org


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


Re:thanks you all for giving proper suggestions

Posted by hariharansrc <ha...@gmail.com>.
i want to know whether i can use gwt along with wicket
so i can quite manage both server and client  side coding efficiently
are there any tutorials to integrate gwt with wicket

thank you in advance

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-call-javascript-function-on-form-submission-tp3408147p3421644.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: just having another question how to clear form fields

Posted by Pedro Santos <pe...@gmail.com>.
Set a null/empty value in their model plus notify the component about
changed models e.g. Component#modelChanged.
e.g.
form = new Form(new CompoundPropertyModel(new Bean())
form.add(new Field("someProperty");
(...)
form.add(new SubmitComponent("id"){
 onSubmit(){
    form.setDefaultModelObject(new Bean());//set empty values
also calls Component#modelChanged method
}});

On Mon, Mar 28, 2011 at 1:29 PM, hariharansrc <ha...@gmail.com>wrote:

> after clicking submit button the values are still there in field itself how
> to clear the field values
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/how-to-call-javascript-function-on-form-submission-tp3408147p3412291.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Pedro Henrique Oliveira dos Santos