Revision: 937
http://stripes.svn.sourceforge.net/stripes/?rev=937&view=rev
Author: javelotinfo
Date: 2008-06-18 12:40:44 -0700 (Wed, 18 Jun 2008)
Log Message:
-----------
Further fix to STS-514.
Modified Paths:
--------------
trunk/stripes/src/net/sourceforge/stripes/tag/UseActionBeanTagExtraInfo.java
Modified:
trunk/stripes/src/net/sourceforge/stripes/tag/UseActionBeanTagExtraInfo.java
===================================================================
---
trunk/stripes/src/net/sourceforge/stripes/tag/UseActionBeanTagExtraInfo.java
2008-06-16 22:25:11 UTC (rev 936)
+++
trunk/stripes/src/net/sourceforge/stripes/tag/UseActionBeanTagExtraInfo.java
2008-06-18 19:40:44 UTC (rev 937)
@@ -42,6 +42,8 @@
// We can only provide the type of 'var' if beanclass was used because
// if binding was used we need runtime information!
Object beanclass = tag.getAttribute("beanclass");
+
+ // Turns out beanclass="${...}" does NOT return
TagData.REQUEST_TIME_VALUE; only beanclass="<%= ... %>".
if (beanclass != null &&
!beanclass.equals(TagData.REQUEST_TIME_VALUE)) {
String var = tag.getAttributeString("var");
if (var == null) var = tag.getAttributeString("id");
@@ -51,7 +53,10 @@
// Return the variable info
if (beanclass instanceof String) {
- return new VariableInfo[] { new VariableInfo(var, (String)
beanclass, true, VariableInfo.AT_BEGIN) };
+ String string = (String) beanclass;
+ if (!string.startsWith("${")) {
+ return new VariableInfo[] { new VariableInfo(var, string,
true, VariableInfo.AT_BEGIN) };
+ }
}
}
return NO_INFO;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development