Menu

adding onmouseover to hyperlink

Help
2005-11-28
2012-10-09
  • Hemant Mahidhara

    I am trying to add an ommouseover event to my hyperlinks in a display table.

    I am trying to achieve the following
    <a href="www.somelink.com" onmouseover="someCall()">Link</a>

    display tag lets me set the href but has no way of setting onmouseover info.
    <display:column property="<%=fieldName%>" href="<%=fieldHref%>" />

    any idea how to do this?

    hemant

     
    • mt_struts

      mt_struts - 2005-11-28

      You'll need to create a Decorator class which allows you to customize the link.

      http://displaytag.sourceforge.net/tut_decorators.html

       

Log in to post a comment.

MongoDB Logo MongoDB