dmkarr 2002/10/04 22:38:41
Modified: contrib/struts-el/doc/userGuide struts-html-el.xml
contrib/struts-el/src/share/org/apache/strutsel/taglib/html
ELRadioTag.java
contrib/struts-el/web/exercise-taglib index.jsp
contrib/struts-el/web/exercise-taglib/WEB-INF
struts-config.xml
doc/userGuide struts-html.xml
Added: contrib/struts-el/web/exercise-taglib html-radio.jsp
Log:
Added "onmouseup" attribute to "html:radio".
Added "onmousemove", "onmouseout", "onmousemove", and "onmouseup"
attributes to "html-el:radio".
Added very simple "html-radio.jsp" to strutsel-exercise-taglib mostly to test all
the js event handlers it can handle.
Revision Changes Path
1.3 +39 -1
jakarta-struts/contrib/struts-el/doc/userGuide/struts-html-el.xml
Index: struts-html-el.xml
===================================================================
RCS file:
/home/cvs/jakarta-struts/contrib/struts-el/doc/userGuide/struts-html-el.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- struts-html-el.xml 4 Oct 2002 05:34:19 -0000 1.2
+++ struts-html-el.xml 5 Oct 2002 05:38:40 -0000 1.3
@@ -4771,7 +4771,45 @@
</info>
</attribute>
- <!-- No "mousemove", "mouseout", "mouseover", or "mouseup" tags? -->
+ <attribute>
+ <name>onmousemove</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <info>
+ JavaScript event handler executed when this element is under the
+ mouse pointer and the pointer is moved.
+ </info>
+ </attribute>
+
+ <attribute>
+ <name>onmouseout</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <info>
+ JavaScript event handler executed when this element was under the
+ mouse pointer but the pointer was moved outside the element.
+ </info>
+ </attribute>
+
+ <attribute>
+ <name>onmouseover</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <info>
+ JavaScript event handler executed when this element was not under
+ the mouse pointer but the pointer is moved inside the element.
+ </info>
+ </attribute>
+
+ <attribute>
+ <name>onmouseup</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <info>
+ JavaScript event handler executed when this element is under the
+ mouse pointer and a mouse button is released.
+ </info>
+ </attribute>
<attribute>
<name>property</name>
1.5 +10 -9
jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELRadioTag.java
Index: ELRadioTag.java
===================================================================
RCS file:
/home/cvs/jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELRadioTag.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ELRadioTag.java 3 Oct 2002 05:00:47 -0000 1.4
+++ ELRadioTag.java 5 Oct 2002 05:38:40 -0000 1.5
@@ -248,11 +248,12 @@
setOnmouseover(null);
}
-// try {
-// setOnmouseup((String) evalAttr("onmouseup", getOnmouseup(),
String.class));
-// } catch (NullAttributeException ex) {
-// setOnmouseup(null);
-// }
+ try {
+ setOnmouseup((String) evalAttr("onmouseup", getOnmouseup(),
+ String.class));
+ } catch (NullAttributeException ex) {
+ setOnmouseup(null);
+ }
try {
setProperty((String) evalAttr("property", getProperty(),
1.2 +1 -0 jakarta-struts/contrib/struts-el/web/exercise-taglib/index.jsp
Index: index.jsp
===================================================================
RCS file: /home/cvs/jakarta-struts/contrib/struts-el/web/exercise-taglib/index.jsp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- index.jsp 26 Sep 2002 04:54:41 -0000 1.1
+++ index.jsp 5 Oct 2002 05:38:41 -0000 1.2
@@ -19,6 +19,7 @@
<ul>
<li><a href="html-link.jsp"><html:link></a>[<a
href="showSource.jsp?path=/html-link.jsp">Source</a>]</li>
<li><a href="html-multibox.jsp"><html:multibox></a>[<a
href="showSource.jsp?path=/html-multibox.jsp">Source</a>]</li>
+<li><a href="html-radio.jsp"><html:radio></a>[<a
href="showSource.jsp?path=/html-radio.jsp">Source</a>]</li>
<li><a href="html-select.jsp"><html:select></a>[<a
href="showSource.jsp?path=/html-select.jsp">Source</a>]</li>
<li><a href="html-setters.jsp">Scalar Setters</a>[<a
href="showSource.jsp?path=/html-setters.jsp">Source</a>]</li>
</ul>
1.1
jakarta-struts/contrib/struts-el/web/exercise-taglib/html-radio.jsp
Index: html-radio.jsp
===================================================================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page language="java"%>
<%@ taglib uri="/WEB-INF/struts-bean-el.tld" prefix="bean-el" %>
<%@ taglib uri="/WEB-INF/struts-html-el.tld" prefix="html-el" %>
<%@ taglib uri="/WEB-INF/struts-logic-el.tld" prefix="logic-el" %>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
<html-el:html>
<head>
<title>Test html-el:radio Tag</title>
</head>
<body bgcolor="white">
<div align="center">
<h1>Test struts html-el:radio Tag</h1>
</div>
<html-el:form action="html-radio.do">
<table>
<tr>
<td>
<html-el:radio property="stringProperty" value="flagOne"/>
</td>
<td>flag one</td>
</tr>
<tr>
<td>
<html-el:radio property="stringProperty" value="flagTwo"/>
</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')"
/>
</td>
<td>flag three</td>
</tr>
<tr>
<td>
<html-el:submit>Save</html-el:submit>
</td>
</tr>
</table>
</html-el:form>
<script>
<!--
function showit(thing) { window.status = thing; }
// -->
</script>
</body>
</html-el:html>
1.2 +8 -0
jakarta-struts/contrib/struts-el/web/exercise-taglib/WEB-INF/struts-config.xml
Index: struts-config.xml
===================================================================
RCS file:
/home/cvs/jakarta-struts/contrib/struts-el/web/exercise-taglib/WEB-INF/struts-config.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- struts-config.xml 26 Sep 2002 04:54:42 -0000 1.1
+++ struts-config.xml 5 Oct 2002 05:38:41 -0000 1.2
@@ -39,6 +39,14 @@
<forward name="input" path="/html-multibox.jsp"/>
</action>
+ <action path="/html-radio"
+ type="org.apache.struts.webapp.exercise.HtmlSettersAction"
+ name="testbean"
+ scope="session"
+ validate="false">
+ <forward name="input" path="/html-radio.jsp"/>
+ </action>
+
<action path="/html-select"
type="org.apache.struts.webapp.exercise.HtmlSettersAction"
name="testbean"
1.26 +10 -0 jakarta-struts/doc/userGuide/struts-html.xml
Index: struts-html.xml
===================================================================
RCS file: /home/cvs/jakarta-struts/doc/userGuide/struts-html.xml,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- struts-html.xml 4 Oct 2002 05:34:19 -0000 1.25
+++ struts-html.xml 5 Oct 2002 05:38:41 -0000 1.26
@@ -5033,6 +5033,16 @@
</attribute>
<attribute>
+ <name>onmouseup</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <info>
+ JavaScript event handler executed when this element is under the
+ mouse pointer and a mouse button is released.
+ </info>
+ </attribute>
+
+ <attribute>
<name>style</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>