Hi,
We can retrieve the value of a text bundle item statically like this:
#{bundle.saturday}
In my JSF page, I have a managed bean called IndexBean that has a
method named getFirstDayOfWeek() that might return either monday or
saturday base on current user's locale.
What I want to do is:
#{bundle.#{IndexBean.firstDayOfWeek}}
Which should become either #{bundle.saturday} or #{bundle.modnday}.
But this, of course, is not working. But is there a way for me to do
this?
Regards,
Behi
--
"We can only see a short distance ahead,
but we can see plenty there
that needs to be done." - Alan Turing
"Science is a differential equation. Religion
is a boundary condition" - Alan Turing
Behrang Saeedzadeh
http://www.jroller.com/page/behrangsa
http://my.opera.com/behrangsa