dmkarr 2002/12/12 19:52:21
Modified: contrib/struts-el/doc/userGuide struts-html-el.xml
contrib/struts-el/src/share/org/apache/strutsel/taglib/html
ELFormTag.java
Log:
Changes to port new "focusIndex" attribute of "html:form" to Struts-EL.
Revision Changes Path
1.12 +11 -0
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.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- struts-html-el.xml 4 Dec 2002 19:45:55 -0000 1.11
+++ struts-html-el.xml 13 Dec 2002 03:52:20 -0000 1.12
@@ -1392,6 +1392,17 @@
</info>
</attribute>
+ <attribute>
+ <name>focusIndex</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <info>
+ If the focus field is a field array, such as a radio button group,
you can
+ specify the index in the array to receive focus.
+ </info>
+ <since>Struts 1.1</since>
+ </attribute>
+
<attribute>
<name>method</name>
<required>false</required>
1.4 +11 -4
jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELFormTag.java
Index: ELFormTag.java
===================================================================
RCS file:
/home/cvs/jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELFormTag.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ELFormTag.java 1 Oct 2002 04:25:50 -0000 1.3
+++ ELFormTag.java 13 Dec 2002 03:52:21 -0000 1.4
@@ -140,6 +140,13 @@
}
try {
+ setFocusIndex((String) evalAttr("focusIndex", getFocusIndex(),
+ String.class));
+ } catch (NullAttributeException ex) {
+ setFocusIndex(null);
+ }
+
+ try {
setMethod((String) evalAttr("method", getMethod(), String.class));
} catch (NullAttributeException ex) {
setMethod(null);
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>