*
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
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: 60782
    
  65

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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: onkeyup event in custom tags
 
Similar Threads
To Hans: Classic Tag, Simple Tag and Tag files
How to pass attribute to a custom tag only if it evaluates to a non null value
Struts 2 Design and Programming table of contents
JSP Newbie - Dynamic ComboBox
Question on Tag files