Revision: 892
http://stripes.svn.sourceforge.net/stripes/?rev=892&view=rev
Author: bengunter
Date: 2008-04-22 07:36:00 -0700 (Tue, 22 Apr 2008)
Log Message:
-----------
More for STS-551. When searching for a parent tag in the tag stack, we should
climb the stack looking for "this" tag first, and then we should continue
climbing the stack in search of the parent.
Modified Paths:
--------------
trunk/stripes/src/net/sourceforge/stripes/tag/StripesTagSupport.java
Modified: trunk/stripes/src/net/sourceforge/stripes/tag/StripesTagSupport.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/StripesTagSupport.java
2008-04-22 13:16:16 UTC (rev 891)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/StripesTagSupport.java
2008-04-22 14:36:00 UTC (rev 892)
@@ -143,6 +143,7 @@
// If we can't find it by the normal way, try our own tag stack!
Stack<StripesTagSupport> stack = getTagStack();
ListIterator<StripesTagSupport> iterator =
stack.listIterator(stack.size());
+ while (iterator.hasPrevious() && iterator.previous() != this);
while (iterator.hasPrevious()) {
StripesTagSupport tag = iterator.previous();
if (tagType.isAssignableFrom(tag.getClass())) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development