Object-Type Attribute Value Evaluation#4
Object-Type Attribute Value Evaluation#4brettryan wants to merge 5 commits intoapache:TILES_3_0_Xfrom
Conversation
Object type attributes such as the <menu /> implementation may now implement o.a.t.awareness.ExpressionAware which will be provided the opertunitiy for #evaluateExpressions(AttributeEvaluator,Request) to be called. It is up to the implementation to handle evaluation using the supplied evaluator.
I mistakenly thought the object instances were per request. It was necessary to change this to return values instead of updating themselves.
|
discussion on the need for this is in http://permalink.gmane.org/gmane.comp.apache.tiles.devel/743 and http://permalink.gmane.org/gmane.comp.apache.tiles.devel/744 particularly because it introduces changes outside of tiles-compat and we want to think carefully around that. |
|
Hey thanks mck, I really am silly and should have signed up to tiles-dev but the thought didn't even cross my mind, sorry for that. Interestingly though I did ask on the users mailing list before I submitted my solution if there was a way to get Anyway, I think your solution would work, I never knew you could nest lists, there's little examples of this except now reading the DTD I see this is supported. It does seem to not work however, when I add use an expression, i.e. I'll mention this on the dev mailing list. |
Yeah my apologies for that Brett. I didn't catch it, at least too late once
If this is a bug then a pull request there will of course be of great ~mck |
It's cool, I'm happy to help where I'm able. If I can I really would like to help with documentation of tiles. It could be me but sometimes I find it a tiny bit sparse :)
Thanks, I'm just trying to track down the bug, my stacktraces are being swallowed by something else so need to setup a test project to figure out what's going on. My brain's fried at the moment so will look at it later, it seems most of what I can see is pointing at tiles-request so will need to look harder. |
|
On 8 July 2015 at 13:39, Brett Ryan notifications@github.com wrote:
Yeah that would be hugely appreciated. Often documentation from a fresh ~mck |
Not a problem, I'll post something on the dev list to talk about where I could best help. I can't say I can put in a huge amount of time, but I can at least contribute a few hours or so a week to support the project. It would also help me get a better understanding/appreciation. I somehow skipped tiles in the struts days. |
Object type attributes such as the
<menu />implementation may now implemento.a.t.awareness.ExpressionAwarewhich causes#evaluateExpressions(AttributeEvaluator,Request)to be called during attribute evaluation.It is up to the implementation to handle evaluation using the supplied evaluator.
Implementors may return any object type or a duplicated of itself with expressions replaced which will be used for rendering within the view model.