struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Łukasz Lenart <lukasz.len...@googlemail.com>
Subject Re: I am working on extending the iterator tag and I am requesting opinions
Date Fri, 08 Jul 2011 10:15:33 GMT
Any news on that ?


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/


2011/6/7 Jason Pyeron <jpyeron@pdinc.us>:
> Currently the iterator component searched the stack for the iteration target,
> then while iterating it pushes the value to the stack.
>
> In my extension I have support for pre and post traversal of a tree structure.
> The pre and post selectors are OGNL expressions. As such it is needed to have
> the current node in a value stack during resolution of left/pre and right/post
> children for a give node.
>
> The question is begged should it be pushed on for evaluation and then popped off
> after or should it be pushed on before the current value (in between the current
> value and the "action")?
>
> My gut is telling me that push and pop will result in the least surprise for a
> developer using it, as there is no possibility of the node masking an action,
> but this prevents access of the node from inside the iterator except through
> some "status" like option.
>
> -Jason
>
> --
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> -                                                        
      -
> - Jason Pyeron                      PD Inc. http://www.pdinc.us -
> - Principal Consultant              10 West 24th Street #100    -
> - +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
> -                                                        
      -
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> This message is copyright PD Inc, subject to license 20080407P00.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message