Re: validation without form

2012-06-20 Thread srinash
form
textfield 
select box 
 submit (for these 2 fields after validation) 
/form

The form above is the outer form. There is no inner form, only one form the
outer form. 

Can a link be used to validate the user input fields.

Please let me know
Thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/validation-without-form-tp4649992p4650135.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: validation without form

2012-06-19 Thread srinash

srinash wrote
 
 thank you , will take a look
 
 Sri
 

Was able to use the ajaxformcomponentupdatingbehavior, 
this is my scenario

form
textfield
select box
   submit (for these 2 fields after validation) 
/form

Can you let me know how i can validate and click on submit. Once I submit i
take those values user has just entered (in textfield and selectbox) and
call a webservice to retrieve some values. Those values are retrieved by the
webservice are presented to the user, on selecting one of the values, that
value is taken by the bigger form.

Thank you 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/validation-without-form-tp4649992p4650062.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: validation without form

2012-06-19 Thread vineet semwal
you dont need that inner form if you are using
ajaxformcomponentupdatingbehavior,
for validation you can just add validator ,you will need to add the
behaviors to both formcomponents if you use
ajaxformcomponentupdatingbehavior

if you want that inner form and you want it to submit than either add
ajaxformsubmitbehavior on that dropdown to submit form or add a
ajaxbutton in your form for the same purpose

On Wed, Jun 20, 2012 at 12:22 AM, srinash avisrid...@gmail.com wrote:

 srinash wrote

 thank you , will take a look

 Sri


 Was able to use the ajaxformcomponentupdatingbehavior,
 this is my scenario

 form
 textfield
 select box
   submit (for these 2 fields after validation)
 /form

 Can you let me know how i can validate and click on submit. Once I submit i
 take those values user has just entered (in textfield and selectbox) and
 call a webservice to retrieve some values. Those values are retrieved by the
 webservice are presented to the user, on selecting one of the values, that
 value is taken by the bigger form.

 Thank you

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/validation-without-form-tp4649992p4650062.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




-- 
thanks,

Vineet Semwal

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



Re: validation without form

2012-06-19 Thread srinash

vineetsemwal wrote
 
 you dont need that inner form if you are using
 ajaxformcomponentupdatingbehavior,
 for validation you can just add validator ,you will need to add the
 behaviors to both formcomponents if you use
 ajaxformcomponentupdatingbehavior
 
 if you want that inner form and you want it to submit than either add
 ajaxformsubmitbehavior on that dropdown to submit form or add a
 ajaxbutton in your form for the same purpose
 
 Thanks,
 
 form
 textfield
 select box
   submit (for these 2 fields after validation)
 /form
 
 The form above is the outer form. There is no inner form, only one form
 the outer form.
 
 Let me try what you said.
 
 On Wed, Jun 20, 2012 at 12:22 AM, srinash lt;avisridhar@gt; wrote:

 srinash wrote

 thank you , will take a look

 Sri


 Was able to use the ajaxformcomponentupdatingbehavior,
 this is my scenario

 form
 textfield
 select box
   submit (for these 2 fields after validation)
 /form

 Can you let me know how i can validate and click on submit. Once I submit
 i
 take those values user has just entered (in textfield and selectbox) and
 call a webservice to retrieve some values. Those values are retrieved by
 the
 webservice are presented to the user, on selecting one of the values,
 that
 value is taken by the bigger form.

 Thank you

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/validation-without-form-tp4649992p4650062.html
 Sent from the Users forum mailing list archive at Nabble.com.

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

 
 
 
 -- 
 thanks,
 
 Vineet Semwal
 
 -
 To unsubscribe, e-mail: users-unsubscribe@.apache
 For additional commands, e-mail: users-help@.apache
 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/validation-without-form-tp4649992p4650083.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



validation without form

2012-06-14 Thread srinash
Hi, I am trying to validate 2 fields(one is a text field and the other is a
select) that the user can enter and select. This is inside of a bigger form.
I would not want to use a form to validate these fields. Can you let me know
how I can validate these fields without doing a form submit?

Thank you

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/validation-without-form-tp4649992.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: validation without form

2012-06-14 Thread vineet semwal
you can add ajaxformcomponentupdatingbehavior to them

On Thu, Jun 14, 2012 at 10:10 PM, srinash avisrid...@gmail.com wrote:
 Hi, I am trying to validate 2 fields(one is a text field and the other is a
 select) that the user can enter and select. This is inside of a bigger form.
 I would not want to use a form to validate these fields. Can you let me know
 how I can validate these fields without doing a form submit?

 Thank you

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/validation-without-form-tp4649992.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




-- 
thanks,

Vineet Semwal

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



Re: validation without form

2012-06-14 Thread srinash
Thanks for the reply. Can you please direct me to some examples.

Sri

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/validation-without-form-tp4649992p4649996.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: validation without form

2012-06-14 Thread vineet semwal
formcomponent.add(validator)
formcomponent.add(new ajaxformcomponentupdatingbehavior(the_event){
protected void onError(AjaxRequestTarget target, RuntimeException e){
target.add(feedback);
}
protected abstract void onUpdate(AjaxRequestTarget target){
target.add(feedback)}
}

for more concrete example look into the wicket examples that comes
with the distribution

On Thu, Jun 14, 2012 at 11:04 PM, srinash avisrid...@gmail.com wrote:
 Thanks for the reply. Can you please direct me to some examples.

 Sri

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/validation-without-form-tp4649992p4649996.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




-- 
thanks,

Vineet Semwal

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



Re: validation without form

2012-06-14 Thread srinash
thank you , will take a look

Sri

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/validation-without-form-tp4649992p4649998.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