HFE access spring messages.properties key-val

0 views
Skip to first unread message

maimoon...@irdinformatics.org

unread,
Mar 12, 2014, 1:07:03 AM3/12/14
to d...@openmrs.org
Hi all,

I am working on HFE forms and the point where I got stuck is accessing messages.properties key into form html.
Is it possible to access the key value in messages.properties of spring into HFE form via <lookup> tag or any other way ?
I have tried 

1) <lookup complexExpression="#springMessage('login.title')"/> (http://docs.spring.io/spring/docs/2.0.8/reference/view.html)
2) <lookup complexExpression="#springMessage($login.title)"/> 
3) <lookup complexExpression="${messages.getString(${login.title})} "/>

but no luck.

The key-value is accessible in tag <obs> via labelCode attribute, but is it possible to access it independant of <obs> tag?

What mistake I am making in accessing correct velocity variable/function?

Many thanks,
Maimoona
Reply all
Reply to author
Forward
0 new messages