Skip to Content
avatar image
Former Member

Validation of input fileds on key pressed

Hi All ,

I am working with WebDynpro Applicaton. I have few input fields , e.g. first name , last name , age.

I want to validate input fields on key event. like if i enter first name and enter tab or click next input filed i want to validate first name input field. is is possible in web dynpro java?

Thanx in advance

Regards

Kavita

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Dec 07, 2009 at 11:15 AM

    Kavita,

    I am not aware of the exact implementation of keyboard buttons like tab..

    However each input fiels has a property called onEnter. You can define an action here in which you can do your validation .

    This method will be called every time the user hits on enter provided the cursor is in that input field

    Regards,

    Himanshu

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 07, 2009 at 11:20 AM

    Hi Kavita,

    This thing is not possible in web dynpro java.

    There is only one event available for input field that is OnEnter (i.e. when you press enter)

    So you can validate it only by pressing enter.

    Reagrds,

    Sarbjeet

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 07, 2009 at 11:32 AM

    Version 7.1 (or 7.11 I don't remember exactly) has added an "onChange" event for input fields which is triggered when the input field is left by pressing the tab key.

    Armin

    Add comment
    10|10000 characters needed characters exceeded