File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » JSP
Bookmark "onkeyup event in custom tags" Watch "onkeyup event in custom tags" New topic

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.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63844

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] [About Bear] [Books by Bear]
manisha Gupta Garg
Ranch Hand

Joined: Jul 03, 2009
Posts: 41
thanks !

it worked using "onblur" event.

I agree. Here's the link:
subject: onkeyup event in custom tags
jQuery in Action, 3rd edition