webwork/src/main/webwork/view/taglib/ui ComponentTag.java,1.8,1.9
[email protected] Sat, 29 Jun 2002 18:30:40 -0700
| Newsgroups | gmane.comp.java.webwork.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/webwork/webwork/src/main/webwork/view/taglib/ui
In directory usw-pr-cvs1:/tmp/cvs-serv16162
Modified Files:
ComponentTag.java
Log Message:
added support for classes that have editors with getAsText()
Index: ComponentTag.java
===================================================================
RCS file: /cvsroot/webwork/webwork/src/main/webwork/view/taglib/ui/ComponentTag.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- ComponentTag.java 30 May 2002 22:54:29 -0000 1.8
+++ ComponentTag.java 30 Jun 2002 01:30:38 -0000 1.9
@@ -9,6 +9,7 @@
import org.apache.log4j.Category;
import webwork.config.Configuration;
import webwork.util.ContainUtil;
+import webwork.util.BeanUtil;
import webwork.view.taglib.IncludeTag;
import webwork.view.taglib.ParamTag;
import webwork.view.taglib.WebWorkBodyTagSupport;
@@ -120,7 +121,7 @@
// If value attribute is not given, use the name
if (valueAttr == null) {
- addParameterInternal("nameValue", findValue(value.toString()));
+ addParameterInternal("nameValue", findValue(BeanUtil.toStringValue(value)));
} else {
if (log.isDebugEnabled()) {
log.debug("valueAttr:" + valueAttr);
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
No, I will not fix your computer.
http://thinkgeek.com/sf