Re: Implement Check Availability link

2010-05-16 Thread Jeremy Thomerson
The link doesn't submit the form if it's not a form submitting link.  Thus,
there are no form values when the form is not submitted.

--
Jeremy Thomerson
http://www.wickettraining.com



On Sun, May 16, 2010 at 9:19 PM, Apple Grew  wrote:

> Thanks a lot to all. Finally it worked.
>
> I added AjaxFormUpdatingBehavior (triggered on onblur) to the textfield and
> used AjaxSubmitLink for the link, and now it works.
>
> One confusion though. I tried using AjaxLink and it didn't work. As I
> understand that AjaxFormUpdatingBehavior should be invoked on blur event,
> this has nothing to do with the nature of the link, then how come making
> the
> link-non-submitting doesn't work?
>
> Regards,
> Apple Grew
> my blog @ http://blog.applegrew.com/
>
>
> On Mon, May 17, 2010 at 2:56 AM, Jeremy Thomerson <
> jer...@wickettraining.com
> > wrote:
>
> > Ah, but he's *not* using the ajaxsubmitlink - which (again) is the
> problem.
> >  He said he tried it and it didn't work for him because other fields
> failed
> > validation.  Which is why he needs the behavior that only validates a
> > single
> > field.
> >
> > --
> > Jeremy Thomerson
> > http://www.wickettraining.com
> >
> >
> >
> > On Sun, May 16, 2010 at 4:23 PM, vineet semwal
> > wrote:
> >
> > > he is using the textfield inside form,ajaxsubmitlink itself has
> > > formsubmittingbehavior
> > > so i think it should work..
> > >
> > > >
> > > btw ajaxformcomponentupdatingbehavior is nice for this usecase.
> > >
> > >
> > > On Mon, May 17, 2010 at 2:44 AM, Jeremy Thomerson <
> > > jer...@wickettraining.com
> > > > wrote:
> > >
> > > > It's not going to work if he's not using a form submitting behavior
> or
> > > else
> > > > a custom behavior that grabs the value of the textfield and adds it
> to
> > > the
> > > > URL as a query param, then his behavior can get this from the
> request.
> > >  But
> > > > the simplest way (as mentioned earlier) is to
> > > > use ajaxformcomponentupdatingbehavior
> > > >
> > > > --
> > > > Jeremy Thomerson
> > > > http://www.wickettraining.com
> > > >
> > > >
> > > >
> > > > On Sun, May 16, 2010 at 4:03 PM, vineet semwal
> > > > wrote:
> > > >
> > > > > should work,have you tried it in onerror method?
> > > > >
> > > > > On Sun, May 16, 2010 at 11:02 PM, Apple Grew 
> > > > wrote:
> > > > >
> > > > > > Unfortunately textfield.getconvertedinput() return null. That's
> why
> > I
> > > > am
> > > > > > stuck.
> > > > > >
> > > > > > Regards,
> > > > > > Apple Grew
> > > > > > my blog @ http://blog.applegrew.com/
> > > > > >
> > > > > >
> > > > > > On Sun, May 16, 2010 at 7:28 PM, vineet semwal
> > > > > > wrote:
> > > > > >
> > > > > > > you can just do textfield.updateModel(),that will update
> > textfield
> > > > > model
> > > > > > > for
> > > > > > > you,you can do it
> > > > > > > inside onerror of ajaxsubmitlink or inside a validator that you
> > > have
> > > > > > > written.
> > > > > > > if you just want to read textfield's user input use
> > > > > > > textfield.getconvertedinput().
> > > > > > >
> > > > > > > On Sun, May 16, 2010 at 4:40 PM, Apple Grew <
> appleg...@gmail.com
> > >
> > > > > wrote:
> > > > > > >
> > > > > > > > Is there any other way around? Adding nested form will change
> > my
> > > > > markup
> > > > > > > > which I don't want to do just for this purpose.
> > > > > > > >
> > > > > > > > The solution I am looking for, is there any way I can capture
> > the
> > > > > > > > username's
> > > > > > > > value using javascript and send to my component via Wicket's
> > > Ajax?
> > > > > > > >
> > > > > > > > Regards,
> > > > > > > > Apple Grew
> > > > > > > > my blog @ http://blog.applegrew.com/
> > > > > > > >
> > > > > > > >
> > > > > > > > On Sun, May 16, 2010 at 3:44 PM, Martin Makundi <
> > > > > > > > martin.maku...@koodaripalvelut.com> wrote:
> > > > > > > >
> > > > > > > > > Make smaller NESTED form with only components that you
> need.
> > > > > > > > >
> > > > > > > > > **
> > > > > > > > > Martin
> > > > > > > > >
> > > > > > > > > 2010/5/16 Apple Grew :
> > > > > > > > > > They already are in a form along with other text fields.
> I
> > > > tired
> > > > > > > > playing
> > > > > > > > > > with AjaxSubmitLink, but here too I fail to fetch the
> > > username
> > > > > from
> > > > > > > > model
> > > > > > > > > as
> > > > > > > > > > other fields still do not have the required inputs,
> causing
> > > the
> > > > > > form
> > > > > > > to
> > > > > > > > > > report error.
> > > > > > > > > >
> > > > > > > > > > Regards,
> > > > > > > > > > Apple Grew
> > > > > > > > > > my blog @ http://blog.applegrew.com/
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > On Sun, May 16, 2010 at 2:00 PM, Martin Makundi <
> > > > > > > > > > martin.maku...@koodaripalvelut.com> wrote:
> > > > > > > > > >
> > > > > > > > > >> Use ajaxButton :
> > > > > > > > > >>
> > > > > > > > > >> 
> > > > > > > > > >>  
> > > > > > > > > >>   > > wicket:id="ajax-button-for-name-form"/>
> > > > > > > > > >> 
> > > > > > > > > >>
> >

Re: Implement Check Availability link

2010-05-16 Thread Apple Grew
Thanks a lot to all. Finally it worked.

I added AjaxFormUpdatingBehavior (triggered on onblur) to the textfield and
used AjaxSubmitLink for the link, and now it works.

One confusion though. I tried using AjaxLink and it didn't work. As I
understand that AjaxFormUpdatingBehavior should be invoked on blur event,
this has nothing to do with the nature of the link, then how come making the
link-non-submitting doesn't work?

Regards,
Apple Grew
my blog @ http://blog.applegrew.com/


On Mon, May 17, 2010 at 2:56 AM, Jeremy Thomerson  wrote:

> Ah, but he's *not* using the ajaxsubmitlink - which (again) is the problem.
>  He said he tried it and it didn't work for him because other fields failed
> validation.  Which is why he needs the behavior that only validates a
> single
> field.
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
> On Sun, May 16, 2010 at 4:23 PM, vineet semwal
> wrote:
>
> > he is using the textfield inside form,ajaxsubmitlink itself has
> > formsubmittingbehavior
> > so i think it should work..
> >
> > >
> > btw ajaxformcomponentupdatingbehavior is nice for this usecase.
> >
> >
> > On Mon, May 17, 2010 at 2:44 AM, Jeremy Thomerson <
> > jer...@wickettraining.com
> > > wrote:
> >
> > > It's not going to work if he's not using a form submitting behavior or
> > else
> > > a custom behavior that grabs the value of the textfield and adds it to
> > the
> > > URL as a query param, then his behavior can get this from the request.
> >  But
> > > the simplest way (as mentioned earlier) is to
> > > use ajaxformcomponentupdatingbehavior
> > >
> > > --
> > > Jeremy Thomerson
> > > http://www.wickettraining.com
> > >
> > >
> > >
> > > On Sun, May 16, 2010 at 4:03 PM, vineet semwal
> > > wrote:
> > >
> > > > should work,have you tried it in onerror method?
> > > >
> > > > On Sun, May 16, 2010 at 11:02 PM, Apple Grew 
> > > wrote:
> > > >
> > > > > Unfortunately textfield.getconvertedinput() return null. That's why
> I
> > > am
> > > > > stuck.
> > > > >
> > > > > Regards,
> > > > > Apple Grew
> > > > > my blog @ http://blog.applegrew.com/
> > > > >
> > > > >
> > > > > On Sun, May 16, 2010 at 7:28 PM, vineet semwal
> > > > > wrote:
> > > > >
> > > > > > you can just do textfield.updateModel(),that will update
> textfield
> > > > model
> > > > > > for
> > > > > > you,you can do it
> > > > > > inside onerror of ajaxsubmitlink or inside a validator that you
> > have
> > > > > > written.
> > > > > > if you just want to read textfield's user input use
> > > > > > textfield.getconvertedinput().
> > > > > >
> > > > > > On Sun, May 16, 2010 at 4:40 PM, Apple Grew  >
> > > > wrote:
> > > > > >
> > > > > > > Is there any other way around? Adding nested form will change
> my
> > > > markup
> > > > > > > which I don't want to do just for this purpose.
> > > > > > >
> > > > > > > The solution I am looking for, is there any way I can capture
> the
> > > > > > > username's
> > > > > > > value using javascript and send to my component via Wicket's
> > Ajax?
> > > > > > >
> > > > > > > Regards,
> > > > > > > Apple Grew
> > > > > > > my blog @ http://blog.applegrew.com/
> > > > > > >
> > > > > > >
> > > > > > > On Sun, May 16, 2010 at 3:44 PM, Martin Makundi <
> > > > > > > martin.maku...@koodaripalvelut.com> wrote:
> > > > > > >
> > > > > > > > Make smaller NESTED form with only components that you need.
> > > > > > > >
> > > > > > > > **
> > > > > > > > Martin
> > > > > > > >
> > > > > > > > 2010/5/16 Apple Grew :
> > > > > > > > > They already are in a form along with other text fields. I
> > > tired
> > > > > > > playing
> > > > > > > > > with AjaxSubmitLink, but here too I fail to fetch the
> > username
> > > > from
> > > > > > > model
> > > > > > > > as
> > > > > > > > > other fields still do not have the required inputs, causing
> > the
> > > > > form
> > > > > > to
> > > > > > > > > report error.
> > > > > > > > >
> > > > > > > > > Regards,
> > > > > > > > > Apple Grew
> > > > > > > > > my blog @ http://blog.applegrew.com/
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > On Sun, May 16, 2010 at 2:00 PM, Martin Makundi <
> > > > > > > > > martin.maku...@koodaripalvelut.com> wrote:
> > > > > > > > >
> > > > > > > > >> Use ajaxButton :
> > > > > > > > >>
> > > > > > > > >> 
> > > > > > > > >>  
> > > > > > > > >>   > wicket:id="ajax-button-for-name-form"/>
> > > > > > > > >> 
> > > > > > > > >>
> > > > > > > > >> **
> > > > > > > > >> Martin
> > > > > > > > >>
> > > > > > > > >>
> > > > > > > > >> 2010/5/16 Apple Grew :
> > > > > > > > >> > I need to implement a Check Availability link. When this
> > > link
> > > > is
> > > > > > > > clicked
> > > > > > > > >> it
> > > > > > > > >> > will check if the entered username exists for not For
> this
> > > > link
> > > > > I
> > > > > > > have
> > > > > > > > >> used
> > > > > > > > >> > AjaxLink. The problem is in AjaxLink's onClick I am not
> > sure
> > > > how
> > > > > > > will
> > > > > > > > I
> > > > > > > > >> > fetch the value of the text filed -

Re: Implement Check Availability link

2010-05-16 Thread Jeremy Thomerson
Ah, but he's *not* using the ajaxsubmitlink - which (again) is the problem.
 He said he tried it and it didn't work for him because other fields failed
validation.  Which is why he needs the behavior that only validates a single
field.

--
Jeremy Thomerson
http://www.wickettraining.com



On Sun, May 16, 2010 at 4:23 PM, vineet semwal
wrote:

> he is using the textfield inside form,ajaxsubmitlink itself has
> formsubmittingbehavior
> so i think it should work..
>
> >
> btw ajaxformcomponentupdatingbehavior is nice for this usecase.
>
>
> On Mon, May 17, 2010 at 2:44 AM, Jeremy Thomerson <
> jer...@wickettraining.com
> > wrote:
>
> > It's not going to work if he's not using a form submitting behavior or
> else
> > a custom behavior that grabs the value of the textfield and adds it to
> the
> > URL as a query param, then his behavior can get this from the request.
>  But
> > the simplest way (as mentioned earlier) is to
> > use ajaxformcomponentupdatingbehavior
> >
> > --
> > Jeremy Thomerson
> > http://www.wickettraining.com
> >
> >
> >
> > On Sun, May 16, 2010 at 4:03 PM, vineet semwal
> > wrote:
> >
> > > should work,have you tried it in onerror method?
> > >
> > > On Sun, May 16, 2010 at 11:02 PM, Apple Grew 
> > wrote:
> > >
> > > > Unfortunately textfield.getconvertedinput() return null. That's why I
> > am
> > > > stuck.
> > > >
> > > > Regards,
> > > > Apple Grew
> > > > my blog @ http://blog.applegrew.com/
> > > >
> > > >
> > > > On Sun, May 16, 2010 at 7:28 PM, vineet semwal
> > > > wrote:
> > > >
> > > > > you can just do textfield.updateModel(),that will update textfield
> > > model
> > > > > for
> > > > > you,you can do it
> > > > > inside onerror of ajaxsubmitlink or inside a validator that you
> have
> > > > > written.
> > > > > if you just want to read textfield's user input use
> > > > > textfield.getconvertedinput().
> > > > >
> > > > > On Sun, May 16, 2010 at 4:40 PM, Apple Grew 
> > > wrote:
> > > > >
> > > > > > Is there any other way around? Adding nested form will change my
> > > markup
> > > > > > which I don't want to do just for this purpose.
> > > > > >
> > > > > > The solution I am looking for, is there any way I can capture the
> > > > > > username's
> > > > > > value using javascript and send to my component via Wicket's
> Ajax?
> > > > > >
> > > > > > Regards,
> > > > > > Apple Grew
> > > > > > my blog @ http://blog.applegrew.com/
> > > > > >
> > > > > >
> > > > > > On Sun, May 16, 2010 at 3:44 PM, Martin Makundi <
> > > > > > martin.maku...@koodaripalvelut.com> wrote:
> > > > > >
> > > > > > > Make smaller NESTED form with only components that you need.
> > > > > > >
> > > > > > > **
> > > > > > > Martin
> > > > > > >
> > > > > > > 2010/5/16 Apple Grew :
> > > > > > > > They already are in a form along with other text fields. I
> > tired
> > > > > > playing
> > > > > > > > with AjaxSubmitLink, but here too I fail to fetch the
> username
> > > from
> > > > > > model
> > > > > > > as
> > > > > > > > other fields still do not have the required inputs, causing
> the
> > > > form
> > > > > to
> > > > > > > > report error.
> > > > > > > >
> > > > > > > > Regards,
> > > > > > > > Apple Grew
> > > > > > > > my blog @ http://blog.applegrew.com/
> > > > > > > >
> > > > > > > >
> > > > > > > > On Sun, May 16, 2010 at 2:00 PM, Martin Makundi <
> > > > > > > > martin.maku...@koodaripalvelut.com> wrote:
> > > > > > > >
> > > > > > > >> Use ajaxButton :
> > > > > > > >>
> > > > > > > >> 
> > > > > > > >>  
> > > > > > > >>   wicket:id="ajax-button-for-name-form"/>
> > > > > > > >> 
> > > > > > > >>
> > > > > > > >> **
> > > > > > > >> Martin
> > > > > > > >>
> > > > > > > >>
> > > > > > > >> 2010/5/16 Apple Grew :
> > > > > > > >> > I need to implement a Check Availability link. When this
> > link
> > > is
> > > > > > > clicked
> > > > > > > >> it
> > > > > > > >> > will check if the entered username exists for not For this
> > > link
> > > > I
> > > > > > have
> > > > > > > >> used
> > > > > > > >> > AjaxLink. The problem is in AjaxLink's onClick I am not
> sure
> > > how
> > > > > > will
> > > > > > > I
> > > > > > > >> > fetch the value of the text filed - username? The model
> > seems
> > > > not
> > > > > to
> > > > > > > hold
> > > > > > > >> > the value..
> > > > > > > >> >
> > > > > > > >> > Please suggest.
> > > > > > > >> >
> > > > > > > >> > Regards,
> > > > > > > >> > Apple Grew
> > > > > > > >> > my blog @ http://blog.applegrew.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 comman

Re: Implement Check Availability link

2010-05-16 Thread vineet semwal
he is using the textfield inside form,ajaxsubmitlink itself has
formsubmittingbehavior
so i think it should work..

>
btw ajaxformcomponentupdatingbehavior is nice for this usecase.


On Mon, May 17, 2010 at 2:44 AM, Jeremy Thomerson  wrote:

> It's not going to work if he's not using a form submitting behavior or else
> a custom behavior that grabs the value of the textfield and adds it to the
> URL as a query param, then his behavior can get this from the request.  But
> the simplest way (as mentioned earlier) is to
> use ajaxformcomponentupdatingbehavior
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
> On Sun, May 16, 2010 at 4:03 PM, vineet semwal
> wrote:
>
> > should work,have you tried it in onerror method?
> >
> > On Sun, May 16, 2010 at 11:02 PM, Apple Grew 
> wrote:
> >
> > > Unfortunately textfield.getconvertedinput() return null. That's why I
> am
> > > stuck.
> > >
> > > Regards,
> > > Apple Grew
> > > my blog @ http://blog.applegrew.com/
> > >
> > >
> > > On Sun, May 16, 2010 at 7:28 PM, vineet semwal
> > > wrote:
> > >
> > > > you can just do textfield.updateModel(),that will update textfield
> > model
> > > > for
> > > > you,you can do it
> > > > inside onerror of ajaxsubmitlink or inside a validator that you have
> > > > written.
> > > > if you just want to read textfield's user input use
> > > > textfield.getconvertedinput().
> > > >
> > > > On Sun, May 16, 2010 at 4:40 PM, Apple Grew 
> > wrote:
> > > >
> > > > > Is there any other way around? Adding nested form will change my
> > markup
> > > > > which I don't want to do just for this purpose.
> > > > >
> > > > > The solution I am looking for, is there any way I can capture the
> > > > > username's
> > > > > value using javascript and send to my component via Wicket's Ajax?
> > > > >
> > > > > Regards,
> > > > > Apple Grew
> > > > > my blog @ http://blog.applegrew.com/
> > > > >
> > > > >
> > > > > On Sun, May 16, 2010 at 3:44 PM, Martin Makundi <
> > > > > martin.maku...@koodaripalvelut.com> wrote:
> > > > >
> > > > > > Make smaller NESTED form with only components that you need.
> > > > > >
> > > > > > **
> > > > > > Martin
> > > > > >
> > > > > > 2010/5/16 Apple Grew :
> > > > > > > They already are in a form along with other text fields. I
> tired
> > > > > playing
> > > > > > > with AjaxSubmitLink, but here too I fail to fetch the username
> > from
> > > > > model
> > > > > > as
> > > > > > > other fields still do not have the required inputs, causing the
> > > form
> > > > to
> > > > > > > report error.
> > > > > > >
> > > > > > > Regards,
> > > > > > > Apple Grew
> > > > > > > my blog @ http://blog.applegrew.com/
> > > > > > >
> > > > > > >
> > > > > > > On Sun, May 16, 2010 at 2:00 PM, Martin Makundi <
> > > > > > > martin.maku...@koodaripalvelut.com> wrote:
> > > > > > >
> > > > > > >> Use ajaxButton :
> > > > > > >>
> > > > > > >> 
> > > > > > >>  
> > > > > > >>  
> > > > > > >> 
> > > > > > >>
> > > > > > >> **
> > > > > > >> Martin
> > > > > > >>
> > > > > > >>
> > > > > > >> 2010/5/16 Apple Grew :
> > > > > > >> > I need to implement a Check Availability link. When this
> link
> > is
> > > > > > clicked
> > > > > > >> it
> > > > > > >> > will check if the entered username exists for not For this
> > link
> > > I
> > > > > have
> > > > > > >> used
> > > > > > >> > AjaxLink. The problem is in AjaxLink's onClick I am not sure
> > how
> > > > > will
> > > > > > I
> > > > > > >> > fetch the value of the text filed - username? The model
> seems
> > > not
> > > > to
> > > > > > hold
> > > > > > >> > the value..
> > > > > > >> >
> > > > > > >> > Please suggest.
> > > > > > >> >
> > > > > > >> > Regards,
> > > > > > >> > Apple Grew
> > > > > > >> > my blog @ http://blog.applegrew.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
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > regards,
> > > > Vineet Semwal
> > > >
> > >
> >
> >
> >
> > --
> > regards,
> > Vineet Semwal
> >
>



-- 
regards,
Vineet Semwal


Re: Implement Check Availability link

2010-05-16 Thread Jeremy Thomerson
It's not going to work if he's not using a form submitting behavior or else
a custom behavior that grabs the value of the textfield and adds it to the
URL as a query param, then his behavior can get this from the request.  But
the simplest way (as mentioned earlier) is to
use ajaxformcomponentupdatingbehavior

--
Jeremy Thomerson
http://www.wickettraining.com



On Sun, May 16, 2010 at 4:03 PM, vineet semwal
wrote:

> should work,have you tried it in onerror method?
>
> On Sun, May 16, 2010 at 11:02 PM, Apple Grew  wrote:
>
> > Unfortunately textfield.getconvertedinput() return null. That's why I am
> > stuck.
> >
> > Regards,
> > Apple Grew
> > my blog @ http://blog.applegrew.com/
> >
> >
> > On Sun, May 16, 2010 at 7:28 PM, vineet semwal
> > wrote:
> >
> > > you can just do textfield.updateModel(),that will update textfield
> model
> > > for
> > > you,you can do it
> > > inside onerror of ajaxsubmitlink or inside a validator that you have
> > > written.
> > > if you just want to read textfield's user input use
> > > textfield.getconvertedinput().
> > >
> > > On Sun, May 16, 2010 at 4:40 PM, Apple Grew 
> wrote:
> > >
> > > > Is there any other way around? Adding nested form will change my
> markup
> > > > which I don't want to do just for this purpose.
> > > >
> > > > The solution I am looking for, is there any way I can capture the
> > > > username's
> > > > value using javascript and send to my component via Wicket's Ajax?
> > > >
> > > > Regards,
> > > > Apple Grew
> > > > my blog @ http://blog.applegrew.com/
> > > >
> > > >
> > > > On Sun, May 16, 2010 at 3:44 PM, Martin Makundi <
> > > > martin.maku...@koodaripalvelut.com> wrote:
> > > >
> > > > > Make smaller NESTED form with only components that you need.
> > > > >
> > > > > **
> > > > > Martin
> > > > >
> > > > > 2010/5/16 Apple Grew :
> > > > > > They already are in a form along with other text fields. I tired
> > > > playing
> > > > > > with AjaxSubmitLink, but here too I fail to fetch the username
> from
> > > > model
> > > > > as
> > > > > > other fields still do not have the required inputs, causing the
> > form
> > > to
> > > > > > report error.
> > > > > >
> > > > > > Regards,
> > > > > > Apple Grew
> > > > > > my blog @ http://blog.applegrew.com/
> > > > > >
> > > > > >
> > > > > > On Sun, May 16, 2010 at 2:00 PM, Martin Makundi <
> > > > > > martin.maku...@koodaripalvelut.com> wrote:
> > > > > >
> > > > > >> Use ajaxButton :
> > > > > >>
> > > > > >> 
> > > > > >>  
> > > > > >>  
> > > > > >> 
> > > > > >>
> > > > > >> **
> > > > > >> Martin
> > > > > >>
> > > > > >>
> > > > > >> 2010/5/16 Apple Grew :
> > > > > >> > I need to implement a Check Availability link. When this link
> is
> > > > > clicked
> > > > > >> it
> > > > > >> > will check if the entered username exists for not For this
> link
> > I
> > > > have
> > > > > >> used
> > > > > >> > AjaxLink. The problem is in AjaxLink's onClick I am not sure
> how
> > > > will
> > > > > I
> > > > > >> > fetch the value of the text filed - username? The model seems
> > not
> > > to
> > > > > hold
> > > > > >> > the value..
> > > > > >> >
> > > > > >> > Please suggest.
> > > > > >> >
> > > > > >> > Regards,
> > > > > >> > Apple Grew
> > > > > >> > my blog @ http://blog.applegrew.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
> > > > >
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > regards,
> > > Vineet Semwal
> > >
> >
>
>
>
> --
> regards,
> Vineet Semwal
>


Re: Implement Check Availability link

2010-05-16 Thread vineet semwal
should work,have you tried it in onerror method?

On Sun, May 16, 2010 at 11:02 PM, Apple Grew  wrote:

> Unfortunately textfield.getconvertedinput() return null. That's why I am
> stuck.
>
> Regards,
> Apple Grew
> my blog @ http://blog.applegrew.com/
>
>
> On Sun, May 16, 2010 at 7:28 PM, vineet semwal
> wrote:
>
> > you can just do textfield.updateModel(),that will update textfield model
> > for
> > you,you can do it
> > inside onerror of ajaxsubmitlink or inside a validator that you have
> > written.
> > if you just want to read textfield's user input use
> > textfield.getconvertedinput().
> >
> > On Sun, May 16, 2010 at 4:40 PM, Apple Grew  wrote:
> >
> > > Is there any other way around? Adding nested form will change my markup
> > > which I don't want to do just for this purpose.
> > >
> > > The solution I am looking for, is there any way I can capture the
> > > username's
> > > value using javascript and send to my component via Wicket's Ajax?
> > >
> > > Regards,
> > > Apple Grew
> > > my blog @ http://blog.applegrew.com/
> > >
> > >
> > > On Sun, May 16, 2010 at 3:44 PM, Martin Makundi <
> > > martin.maku...@koodaripalvelut.com> wrote:
> > >
> > > > Make smaller NESTED form with only components that you need.
> > > >
> > > > **
> > > > Martin
> > > >
> > > > 2010/5/16 Apple Grew :
> > > > > They already are in a form along with other text fields. I tired
> > > playing
> > > > > with AjaxSubmitLink, but here too I fail to fetch the username from
> > > model
> > > > as
> > > > > other fields still do not have the required inputs, causing the
> form
> > to
> > > > > report error.
> > > > >
> > > > > Regards,
> > > > > Apple Grew
> > > > > my blog @ http://blog.applegrew.com/
> > > > >
> > > > >
> > > > > On Sun, May 16, 2010 at 2:00 PM, Martin Makundi <
> > > > > martin.maku...@koodaripalvelut.com> wrote:
> > > > >
> > > > >> Use ajaxButton :
> > > > >>
> > > > >> 
> > > > >>  
> > > > >>  
> > > > >> 
> > > > >>
> > > > >> **
> > > > >> Martin
> > > > >>
> > > > >>
> > > > >> 2010/5/16 Apple Grew :
> > > > >> > I need to implement a Check Availability link. When this link is
> > > > clicked
> > > > >> it
> > > > >> > will check if the entered username exists for not For this link
> I
> > > have
> > > > >> used
> > > > >> > AjaxLink. The problem is in AjaxLink's onClick I am not sure how
> > > will
> > > > I
> > > > >> > fetch the value of the text filed - username? The model seems
> not
> > to
> > > > hold
> > > > >> > the value..
> > > > >> >
> > > > >> > Please suggest.
> > > > >> >
> > > > >> > Regards,
> > > > >> > Apple Grew
> > > > >> > my blog @ http://blog.applegrew.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
> > > >
> > > >
> > >
> >
> >
> >
> > --
> > regards,
> > Vineet Semwal
> >
>



-- 
regards,
Vineet Semwal


Re: Implement Check Availability link

2010-05-16 Thread Martin Makundi
Or you can convert the raw input

/**
   * @param 
   * @param formComponent
   * @return T
   */
  @SuppressWarnings("unchecked")
  public static  T getConvertedValue(FormComponent formComponent) {
try {
  if (formComponent instanceof AbstractSingleSelectChoice) {
return (T)
abstractSingleSelectChoiceConverterMethod.invoke(formComponent,
formComponent.getValue());
  }

  String value = formComponent.getValue();

  if (Utils.isEmpty(value) &&
(!String.class.equals(formComponent.getType( {
value = null;
  }

  return (T)
formComponent.getConverter(formComponent.getType()).convertToObject(value,
formComponent.getLocale());
} catch (ConversionException e) {
  ValidationError error = new ValidationError();
  if (e.getResourceKey() != null)
  {
error.addMessageKey(e.getResourceKey());
  }
  String simpleName = Classes.simpleName(formComponent.getType());
  error.addMessageKey("IConverter." + simpleName);
  error.addMessageKey("IConverter");
  error.setVariable("type", simpleName);

  final Locale locale = e.getLocale();
  if (locale != null)
  {
error.setVariable("locale", locale);
  }
  error.setVariable("exception", e);
  Format format = e.getFormat();
  if (format instanceof SimpleDateFormat)
  {
error.setVariable("format",
((SimpleDateFormat)format).toLocalizedPattern());
  }

  Map variables = e.getVariables();
  if (variables != null)
  {
error.getVariables().putAll(variables);
  }

  formComponent.error((IValidationError)error);

  return formComponent.getModelObject(); // Default value
} catch (Exception e) {
  throw new RuntimeException(e);
}
  }

2010/5/16 Jeremy Thomerson :
> Because the form was not submitting.  You can use
> formcomponentupdatingbehavior.
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
> On Sun, May 16, 2010 at 12:32 PM, Apple Grew  wrote:
>
>> Unfortunately textfield.getconvertedinput() return null. That's why I am
>> stuck.
>>
>> Regards,
>> Apple Grew
>> my blog @ http://blog.applegrew.com/
>>
>>
>> On Sun, May 16, 2010 at 7:28 PM, vineet semwal
>> wrote:
>>
>> > you can just do textfield.updateModel(),that will update textfield model
>> > for
>> > you,you can do it
>> > inside onerror of ajaxsubmitlink or inside a validator that you have
>> > written.
>> > if you just want to read textfield's user input use
>> > textfield.getconvertedinput().
>> >
>> > On Sun, May 16, 2010 at 4:40 PM, Apple Grew  wrote:
>> >
>> > > Is there any other way around? Adding nested form will change my markup
>> > > which I don't want to do just for this purpose.
>> > >
>> > > The solution I am looking for, is there any way I can capture the
>> > > username's
>> > > value using javascript and send to my component via Wicket's Ajax?
>> > >
>> > > Regards,
>> > > Apple Grew
>> > > my blog @ http://blog.applegrew.com/
>> > >
>> > >
>> > > On Sun, May 16, 2010 at 3:44 PM, Martin Makundi <
>> > > martin.maku...@koodaripalvelut.com> wrote:
>> > >
>> > > > Make smaller NESTED form with only components that you need.
>> > > >
>> > > > **
>> > > > Martin
>> > > >
>> > > > 2010/5/16 Apple Grew :
>> > > > > They already are in a form along with other text fields. I tired
>> > > playing
>> > > > > with AjaxSubmitLink, but here too I fail to fetch the username from
>> > > model
>> > > > as
>> > > > > other fields still do not have the required inputs, causing the
>> form
>> > to
>> > > > > report error.
>> > > > >
>> > > > > Regards,
>> > > > > Apple Grew
>> > > > > my blog @ http://blog.applegrew.com/
>> > > > >
>> > > > >
>> > > > > On Sun, May 16, 2010 at 2:00 PM, Martin Makundi <
>> > > > > martin.maku...@koodaripalvelut.com> wrote:
>> > > > >
>> > > > >> Use ajaxButton :
>> > > > >>
>> > > > >> 
>> > > > >>  
>> > > > >>  
>> > > > >> 
>> > > > >>
>> > > > >> **
>> > > > >> Martin
>> > > > >>
>> > > > >>
>> > > > >> 2010/5/16 Apple Grew :
>> > > > >> > I need to implement a Check Availability link. When this link is
>> > > > clicked
>> > > > >> it
>> > > > >> > will check if the entered username exists for not For this link
>> I
>> > > have
>> > > > >> used
>> > > > >> > AjaxLink. The problem is in AjaxLink's onClick I am not sure how
>> > > will
>> > > > I
>> > > > >> > fetch the value of the text filed - username? The model seems
>> not
>> > to
>> > > > hold
>> > > > >> > the value..
>> > > > >> >
>> > > > >> > Please suggest.
>> > > > >> >
>> > > > >> > Regards,
>> > > > >> > Apple Grew
>> > > > >> > my blog @ http://blog.applegrew.com/
>> > > > >> >
>> > > > >>
>> > > > >>
>> > -
>> > > > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> > > > >> For additional commands, e-mail: users-h...@wicket.apache.org
>> > > > >>
>> > > > >>
>> > > > >
>> > > >
>> > > > 

Re: Implement Check Availability link

2010-05-16 Thread Jeremy Thomerson
Because the form was not submitting.  You can use
formcomponentupdatingbehavior.

--
Jeremy Thomerson
http://www.wickettraining.com



On Sun, May 16, 2010 at 12:32 PM, Apple Grew  wrote:

> Unfortunately textfield.getconvertedinput() return null. That's why I am
> stuck.
>
> Regards,
> Apple Grew
> my blog @ http://blog.applegrew.com/
>
>
> On Sun, May 16, 2010 at 7:28 PM, vineet semwal
> wrote:
>
> > you can just do textfield.updateModel(),that will update textfield model
> > for
> > you,you can do it
> > inside onerror of ajaxsubmitlink or inside a validator that you have
> > written.
> > if you just want to read textfield's user input use
> > textfield.getconvertedinput().
> >
> > On Sun, May 16, 2010 at 4:40 PM, Apple Grew  wrote:
> >
> > > Is there any other way around? Adding nested form will change my markup
> > > which I don't want to do just for this purpose.
> > >
> > > The solution I am looking for, is there any way I can capture the
> > > username's
> > > value using javascript and send to my component via Wicket's Ajax?
> > >
> > > Regards,
> > > Apple Grew
> > > my blog @ http://blog.applegrew.com/
> > >
> > >
> > > On Sun, May 16, 2010 at 3:44 PM, Martin Makundi <
> > > martin.maku...@koodaripalvelut.com> wrote:
> > >
> > > > Make smaller NESTED form with only components that you need.
> > > >
> > > > **
> > > > Martin
> > > >
> > > > 2010/5/16 Apple Grew :
> > > > > They already are in a form along with other text fields. I tired
> > > playing
> > > > > with AjaxSubmitLink, but here too I fail to fetch the username from
> > > model
> > > > as
> > > > > other fields still do not have the required inputs, causing the
> form
> > to
> > > > > report error.
> > > > >
> > > > > Regards,
> > > > > Apple Grew
> > > > > my blog @ http://blog.applegrew.com/
> > > > >
> > > > >
> > > > > On Sun, May 16, 2010 at 2:00 PM, Martin Makundi <
> > > > > martin.maku...@koodaripalvelut.com> wrote:
> > > > >
> > > > >> Use ajaxButton :
> > > > >>
> > > > >> 
> > > > >>  
> > > > >>  
> > > > >> 
> > > > >>
> > > > >> **
> > > > >> Martin
> > > > >>
> > > > >>
> > > > >> 2010/5/16 Apple Grew :
> > > > >> > I need to implement a Check Availability link. When this link is
> > > > clicked
> > > > >> it
> > > > >> > will check if the entered username exists for not For this link
> I
> > > have
> > > > >> used
> > > > >> > AjaxLink. The problem is in AjaxLink's onClick I am not sure how
> > > will
> > > > I
> > > > >> > fetch the value of the text filed - username? The model seems
> not
> > to
> > > > hold
> > > > >> > the value..
> > > > >> >
> > > > >> > Please suggest.
> > > > >> >
> > > > >> > Regards,
> > > > >> > Apple Grew
> > > > >> > my blog @ http://blog.applegrew.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
> > > >
> > > >
> > >
> >
> >
> >
> > --
> > regards,
> > Vineet Semwal
> >
>


Re: Implement Check Availability link

2010-05-16 Thread Apple Grew
Unfortunately textfield.getconvertedinput() return null. That's why I am
stuck.

Regards,
Apple Grew
my blog @ http://blog.applegrew.com/


On Sun, May 16, 2010 at 7:28 PM, vineet semwal
wrote:

> you can just do textfield.updateModel(),that will update textfield model
> for
> you,you can do it
> inside onerror of ajaxsubmitlink or inside a validator that you have
> written.
> if you just want to read textfield's user input use
> textfield.getconvertedinput().
>
> On Sun, May 16, 2010 at 4:40 PM, Apple Grew  wrote:
>
> > Is there any other way around? Adding nested form will change my markup
> > which I don't want to do just for this purpose.
> >
> > The solution I am looking for, is there any way I can capture the
> > username's
> > value using javascript and send to my component via Wicket's Ajax?
> >
> > Regards,
> > Apple Grew
> > my blog @ http://blog.applegrew.com/
> >
> >
> > On Sun, May 16, 2010 at 3:44 PM, Martin Makundi <
> > martin.maku...@koodaripalvelut.com> wrote:
> >
> > > Make smaller NESTED form with only components that you need.
> > >
> > > **
> > > Martin
> > >
> > > 2010/5/16 Apple Grew :
> > > > They already are in a form along with other text fields. I tired
> > playing
> > > > with AjaxSubmitLink, but here too I fail to fetch the username from
> > model
> > > as
> > > > other fields still do not have the required inputs, causing the form
> to
> > > > report error.
> > > >
> > > > Regards,
> > > > Apple Grew
> > > > my blog @ http://blog.applegrew.com/
> > > >
> > > >
> > > > On Sun, May 16, 2010 at 2:00 PM, Martin Makundi <
> > > > martin.maku...@koodaripalvelut.com> wrote:
> > > >
> > > >> Use ajaxButton :
> > > >>
> > > >> 
> > > >>  
> > > >>  
> > > >> 
> > > >>
> > > >> **
> > > >> Martin
> > > >>
> > > >>
> > > >> 2010/5/16 Apple Grew :
> > > >> > I need to implement a Check Availability link. When this link is
> > > clicked
> > > >> it
> > > >> > will check if the entered username exists for not For this link I
> > have
> > > >> used
> > > >> > AjaxLink. The problem is in AjaxLink's onClick I am not sure how
> > will
> > > I
> > > >> > fetch the value of the text filed - username? The model seems not
> to
> > > hold
> > > >> > the value..
> > > >> >
> > > >> > Please suggest.
> > > >> >
> > > >> > Regards,
> > > >> > Apple Grew
> > > >> > my blog @ http://blog.applegrew.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
> > >
> > >
> >
>
>
>
> --
> regards,
> Vineet Semwal
>


Re: Implement Check Availability link

2010-05-16 Thread vineet semwal
you can just do textfield.updateModel(),that will update textfield model for
you,you can do it
inside onerror of ajaxsubmitlink or inside a validator that you have
written.
if you just want to read textfield's user input use
textfield.getconvertedinput().

On Sun, May 16, 2010 at 4:40 PM, Apple Grew  wrote:

> Is there any other way around? Adding nested form will change my markup
> which I don't want to do just for this purpose.
>
> The solution I am looking for, is there any way I can capture the
> username's
> value using javascript and send to my component via Wicket's Ajax?
>
> Regards,
> Apple Grew
> my blog @ http://blog.applegrew.com/
>
>
> On Sun, May 16, 2010 at 3:44 PM, Martin Makundi <
> martin.maku...@koodaripalvelut.com> wrote:
>
> > Make smaller NESTED form with only components that you need.
> >
> > **
> > Martin
> >
> > 2010/5/16 Apple Grew :
> > > They already are in a form along with other text fields. I tired
> playing
> > > with AjaxSubmitLink, but here too I fail to fetch the username from
> model
> > as
> > > other fields still do not have the required inputs, causing the form to
> > > report error.
> > >
> > > Regards,
> > > Apple Grew
> > > my blog @ http://blog.applegrew.com/
> > >
> > >
> > > On Sun, May 16, 2010 at 2:00 PM, Martin Makundi <
> > > martin.maku...@koodaripalvelut.com> wrote:
> > >
> > >> Use ajaxButton :
> > >>
> > >> 
> > >>  
> > >>  
> > >> 
> > >>
> > >> **
> > >> Martin
> > >>
> > >>
> > >> 2010/5/16 Apple Grew :
> > >> > I need to implement a Check Availability link. When this link is
> > clicked
> > >> it
> > >> > will check if the entered username exists for not For this link I
> have
> > >> used
> > >> > AjaxLink. The problem is in AjaxLink's onClick I am not sure how
> will
> > I
> > >> > fetch the value of the text filed - username? The model seems not to
> > hold
> > >> > the value..
> > >> >
> > >> > Please suggest.
> > >> >
> > >> > Regards,
> > >> > Apple Grew
> > >> > my blog @ http://blog.applegrew.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
> >
> >
>



-- 
regards,
Vineet Semwal


Re: Implement Check Availability link

2010-05-16 Thread Apple Grew
Is there any other way around? Adding nested form will change my markup
which I don't want to do just for this purpose.

The solution I am looking for, is there any way I can capture the username's
value using javascript and send to my component via Wicket's Ajax?

Regards,
Apple Grew
my blog @ http://blog.applegrew.com/


On Sun, May 16, 2010 at 3:44 PM, Martin Makundi <
martin.maku...@koodaripalvelut.com> wrote:

> Make smaller NESTED form with only components that you need.
>
> **
> Martin
>
> 2010/5/16 Apple Grew :
> > They already are in a form along with other text fields. I tired playing
> > with AjaxSubmitLink, but here too I fail to fetch the username from model
> as
> > other fields still do not have the required inputs, causing the form to
> > report error.
> >
> > Regards,
> > Apple Grew
> > my blog @ http://blog.applegrew.com/
> >
> >
> > On Sun, May 16, 2010 at 2:00 PM, Martin Makundi <
> > martin.maku...@koodaripalvelut.com> wrote:
> >
> >> Use ajaxButton :
> >>
> >> 
> >>  
> >>  
> >> 
> >>
> >> **
> >> Martin
> >>
> >>
> >> 2010/5/16 Apple Grew :
> >> > I need to implement a Check Availability link. When this link is
> clicked
> >> it
> >> > will check if the entered username exists for not For this link I have
> >> used
> >> > AjaxLink. The problem is in AjaxLink's onClick I am not sure how will
> I
> >> > fetch the value of the text filed - username? The model seems not to
> hold
> >> > the value..
> >> >
> >> > Please suggest.
> >> >
> >> > Regards,
> >> > Apple Grew
> >> > my blog @ http://blog.applegrew.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
>
>


Re: Implement Check Availability link

2010-05-16 Thread Apple Grew
They already are in a form along with other text fields. I tired playing
with AjaxSubmitLink, but here too I fail to fetch the username from model as
other fields still do not have the required inputs, causing the form to
report error.

Regards,
Apple Grew
my blog @ http://blog.applegrew.com/


On Sun, May 16, 2010 at 2:00 PM, Martin Makundi <
martin.maku...@koodaripalvelut.com> wrote:

> Use ajaxButton :
>
> 
>  
>  
> 
>
> **
> Martin
>
>
> 2010/5/16 Apple Grew :
> > I need to implement a Check Availability link. When this link is clicked
> it
> > will check if the entered username exists for not For this link I have
> used
> > AjaxLink. The problem is in AjaxLink's onClick I am not sure how will I
> > fetch the value of the text filed - username? The model seems not to hold
> > the value..
> >
> > Please suggest.
> >
> > Regards,
> > Apple Grew
> > my blog @ http://blog.applegrew.com/
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Implement Check Availability link

2010-05-16 Thread Martin Makundi
Make smaller NESTED form with only components that you need.

**
Martin

2010/5/16 Apple Grew :
> They already are in a form along with other text fields. I tired playing
> with AjaxSubmitLink, but here too I fail to fetch the username from model as
> other fields still do not have the required inputs, causing the form to
> report error.
>
> Regards,
> Apple Grew
> my blog @ http://blog.applegrew.com/
>
>
> On Sun, May 16, 2010 at 2:00 PM, Martin Makundi <
> martin.maku...@koodaripalvelut.com> wrote:
>
>> Use ajaxButton :
>>
>> 
>>  
>>  
>> 
>>
>> **
>> Martin
>>
>>
>> 2010/5/16 Apple Grew :
>> > I need to implement a Check Availability link. When this link is clicked
>> it
>> > will check if the entered username exists for not For this link I have
>> used
>> > AjaxLink. The problem is in AjaxLink's onClick I am not sure how will I
>> > fetch the value of the text filed - username? The model seems not to hold
>> > the value..
>> >
>> > Please suggest.
>> >
>> > Regards,
>> > Apple Grew
>> > my blog @ http://blog.applegrew.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



Re: Implement Check Availability link

2010-05-16 Thread Apple Grew
They already are in a form along with other text fields. I tired playing
with AjaxSubmitLink, but here too I fail to fetch the username from model as
other fields still do not have the required inputs, causing the form to
report error.

Regards,
Apple Grew
my blog @ http://blog.applegrew.com/


On Sun, May 16, 2010 at 2:00 PM, Martin Makundi <
martin.maku...@koodaripalvelut.com> wrote:

> Use ajaxButton :
>
> 
>  
>  
> 
>
> **
> Martin
>
>
> 2010/5/16 Apple Grew :
> > I need to implement a Check Availability link. When this link is clicked
> it
> > will check if the entered username exists for not For this link I have
> used
> > AjaxLink. The problem is in AjaxLink's onClick I am not sure how will I
> > fetch the value of the text filed - username? The model seems not to hold
> > the value..
> >
> > Please suggest.
> >
> > Regards,
> > Apple Grew
> > my blog @ http://blog.applegrew.com/
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Implement Check Availability link

2010-05-16 Thread Martin Makundi
Use ajaxButton :


  
  


**
Martin


2010/5/16 Apple Grew :
> I need to implement a Check Availability link. When this link is clicked it
> will check if the entered username exists for not For this link I have used
> AjaxLink. The problem is in AjaxLink's onClick I am not sure how will I
> fetch the value of the text filed - username? The model seems not to hold
> the value..
>
> Please suggest.
>
> Regards,
> Apple Grew
> my blog @ http://blog.applegrew.com/
>

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



Implement Check Availability link

2010-05-16 Thread Apple Grew
I need to implement a Check Availability link. When this link is clicked it
will check if the entered username exists for not For this link I have used
AjaxLink. The problem is in AjaxLink's onClick I am not sure how will I
fetch the value of the text filed - username? The model seems not to hold
the value..

Please suggest.

Regards,
Apple Grew
my blog @ http://blog.applegrew.com/