Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Which Tapestry 4.1 component reacts to "onchange" event ?

Ranch Hand
Posts: 538
Hibernate Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

My HTML template is :
<div id="myFavoriteDiv">Text to watch</div>

My model class is :

public abstract class Tutorials extends BasePage {
// @EventListener(elements = "myFavoriteDiv", events = "onmouseover")
@EventListener(elements = "myFavoriteDiv", events = "onchange")
public void watchText() {
System.out.println("Text Changed !");

The "myFavoriteDiv" DIV reacts perfectly to "onmouseover" event, but absolutely not to "onchange" event (DIV is changed in HTML template through JavaScript).

So which Tapestry 4.1 component is able to react to "onchange" event, so that changes in HHTML template may be watched (or does Tapestry 5 allows it) ?

TIA, best regards.
You guys wanna see my fabulous new place? Or do you wanna look at this tiny ad?
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!