wood burning stoves 2.0*
The moose likes JSP and the fly likes onkeyup event in custom tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "onkeyup event in custom tags" Watch "onkeyup event in custom tags" New topic
Author

onkeyup event in custom tags

manisha Gupta Garg
Ranch Hand

Joined: Jul 03, 2009
Posts: 41
How to include “onkeyup” event in custom tags in jsp?

We have one custom tag called “reportadmin” as follows-



We need to have onkeyup event in this tag. The above tag is being used for displaying the list of application from database in the form of <select> combobox.
After selecting the application from this, the another combobox having groups under that application is to be reloaded.

I have defined the “onkeyup” attribute in .tld file and have included getter setter methods for “onkeyup” in class file.
Please guide me how to proceed.

Thanks,
Manisha
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61596
    
  67

As you already have the attribute set up and working, just make sure that the HTML you generate contains the correct markup to represent the event attribute.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
manisha Gupta Garg
Ranch Hand

Joined: Jul 03, 2009
Posts: 41
thanks !

it worked using "onblur" event.

Thanks,
Manisha
 
 
subject: onkeyup event in custom tags