-
1. Re: a4j:apply - render time attributes manipulation
jbalunas Aug 13, 2009 1:52 PM (in response to ilya_shaikovsky)In general I like the idea, in some ways this reminds me of cross-cutting concerns much like Aspect oriented programming (AOP) for JSF components. There might be something here, but we certainly need to flush it out.
Some questions/concerns/thoughts/comments :
How difficult will wild cards be for component selection ( coding, performance, etc...)
I think to be really useful it would need to support both id & component type filtering.
You will also need to define when this tag is triggered - I would assume render time only.
A predefined list to components maybe too redundant and defeat the purpose of this tag in the first place.
What happens with VDL templates and/or new components introduced in the tree via rerendering. -
2. Re: a4j:apply - render time attributes manipulation
ilya_shaikovsky Aug 14, 2009 12:08 PM (in response to ilya_shaikovsky)I think to be really useful it would need to support both id & component type filtering.
Fully agree.. We should discuss all the possible selectors in order to have this component highly flexible.You will also need to define when this tag is triggered - I would assume render time only.
Also think so. Just question of implementation which could be revealed after we will be able to start some prototyping.What happens with VDL templates
There I want to duplicate Alex wiki comment in order all who interested but looks only this thread read about it:
"The using component type to clarify target was only first idea. But, because not only components can require bulk attribute settings, it makes sense to use tag name as target - therefore, that tag should work at PDL level and use tag name as target." -
3. Re: a4j:apply - render time attributes manipulation
nbelaevski Aug 14, 2009 5:38 PM (in response to ilya_shaikovsky)As a developer I want only one entry point - method that can be evaluated against all components and decide whether attributes should be applied or not. This eliminates need in tags for defining complex filtering conditions.
BTW, what about composite components? -
4. Re: a4j:apply - render time attributes manipulation
nbelaevski Jan 24, 2010 3:33 PM (in response to ilya_shaikovsky)Tracked as: https://jira.jboss.org/jira/browse/RF-8268