Heya,

A quick question which I can't seem to spot any answer for.  Say I have the following markup:

  <table>
    <tr wicket:id="foo">
      <td><span wicket:id="bar">something</span></td>
    </tr>
  </table>

Where foo is a ListView that provides repeated bar's. How do I go about adding in some _javascript_ that refers to each bar?

i.e.

  <script>
    function doFoo(barInstance) { ..... }
  </script>

  <table>
    <tr wicket:id="foo">
      <td>
        <span wicket:id="bar">something</span>
         <span pointer to bar here***);">Click!</span>
       </td>
    </tr>
  </table>


I assume the idea would be to extract everything to my own container/widget?  Basically I'm wanting to add arbitrary _javascript_ to a page and start modifying the DOM/CSS for various elements.


--
i like my video games - mamma said they are gonna melt my brains
i like my video games - i don't care what daddy said; they're my reality
  - henning pauly

Reply via email to