Sorry for not clearing my issue right...

What I mean is that the Expression "#{identity.loggedIn}" is resolved at 
runtime and substituted by the correct value (true or false).  

I would like to use this substitution feature for my own Annotation (e.g. 
@Property) thus using injected values instead of fixed strings, e.g.


  | 
  | @Property("#{currentUser.name}") private String someProperty;
  | 
  | 

instead of


  | 
  | @Property("fixedName") private String someProperty;
  | 
  | 

without parsing and evaluating "#{currentUser.name}" manually. Seam should 
provide the correct value and look through the Contexts.

I hope it's understandable. I'm using an interceptor right now for injecting 
Properties from external Properties files into my classes. But in some 
situations, properties depend on runtime values (like currentUser) that can be 
different, e.g. when each user should have its own name.properties file. 

Greetz GHad

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082947#4082947

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082947
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to