dmkarr      2002/10/05 17:48:52

  Modified:    contrib/struts-el/web/exercise-taglib html-radio.jsp
  Log:
  Added a hodgepodge of attribute tests, like "title", "accesskey", "tabindex",
  and all the event handlers.
  
  Revision  Changes    Path
  1.2       +22 -16    
jakarta-struts/contrib/struts-el/web/exercise-taglib/html-radio.jsp
  
  Index: html-radio.jsp
  ===================================================================
  RCS file: 
/home/cvs/jakarta-struts/contrib/struts-el/web/exercise-taglib/html-radio.jsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- html-radio.jsp    5 Oct 2002 05:38:41 -0000       1.1
  +++ html-radio.jsp    6 Oct 2002 00:48:51 -0000       1.2
  @@ -18,32 +18,35 @@
      <table>
       <tr>
        <td>
  -      <html-el:radio property="stringProperty" value="flagOne"/>
  +      <html-el:radio property="stringProperty" value="flagOne"
  +                     title="Flag One" tabindex="3" accesskey="1"/>
        </td>
        <td>flag one</td>
       </tr>
       <tr>
        <td>
  -      <html-el:radio property="stringProperty" value="flagTwo"/>
  +      <html-el:radio property="stringProperty" value="flagTwo"
  +                     title="Flag Two" tabindex="2" accesskey="2"/>
        </td>
        <td>flag two</td>
       </tr>
       <tr>
        <td>
         <html-el:radio property="stringProperty" value="flagThree"
  -                     onblur="showit('onblur')"
  -                     onchange="showit('onchange')"
  -                     onclick="showit('onclick')"
  -                     ondblclick="showit('ondblclick')"
  -                     onfocus="showit('onfocus')"
  -                     onkeydown="showit('onkeydown')"
  -                     onkeypress="showit('onkeypress')"
  -                     onkeyup="showit('onkeyup')"
  -                     onmousedown="showit('onmousedown')"
  -                     onmousemove="showit('onmousemove')"
  -                     onmouseout="showit('onmouseout')"
  -                     onmouseover="showit('onmouseover')"
  -                     onmouseup="showit('onmouseup')"
  +                     title="Flag Three" tabindex="1" accesskey="3"
  +                     onblur="showevent(event)"
  +                     onchange="showevent(event)"
  +                     onclick="showevent(event)"
  +                     ondblclick="showevent(event)"
  +                     onfocus="showevent(event)"
  +                     onkeydown="showevent(event)"
  +                     onkeypress="showevent(event)"
  +                     onkeyup="showevent(event)"
  +                     onmousedown="showevent(event)"
  +                     onmousemove="showevent(event)"
  +                     onmouseout="showevent(event)"
  +                     onmouseover="showevent(event)"
  +                     onmouseup="showevent(event)"
         />
        </td>
        <td>flag three</td>
  @@ -58,7 +61,10 @@
   
     <script>
      <!--
  -    function showit(thing) { window.status = thing; }
  +    function showevent(evt)
  +      {
  +        window.status = evt.type;
  +    }
       // -->
     </script>
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to