I know how to access resources form view, but how can I access JSF resources from Managed Bean for example to edit css file ? Or I shouldn't try to do it at all, and think about another solution ?
Update: The idea was to alter css file by accessing it from Managed Bean @McDowell helped me with that and I'm relay grateful. But as he said it's not relay a good开发者_高级运维 idea. The goal is to give user ability to alter page style (colors, fonts, layout etc.). As I said earlier using style attribute would be hm.. annoying, my second idea is to write custom renderer and generate embedded style sheet but I'm beginner in java EE and JSF so I'm not sure if it is good idea, maybe there is other easier way?
精彩评论