aspose file tools*
The moose likes Struts and the fly likes Struts2 Dojo- how to change this form to use Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 Dojo- how to change this form to use "onkeyup"" Watch "Struts2 Dojo- how to change this form to use "onkeyup"" New topic
Author

Struts2 Dojo- how to change this form to use "onkeyup"

Richard Vagner
Ranch Hand

Joined: Jun 26, 2001
Posts: 107

I have implemented a search function which uses a form like this:


What I want is to change it into a <s:textfield...> and uses "onkeyup" so that the search result is displayed while using types.

Of course, this is not working:


Form what I googled, "onkeyup" can be used with "dojo.event.connect" but I could not figure out how to use it.

Can someone shed some light on this?

Thank you so much,
Rich

David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

The <s:autocomplete.../> tag may be what you're looking for.

Things like "onkeyup" are JavaScript events--they require JavaScript functions, not URLs.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts2 Dojo- how to change this form to use "onkeyup"