Hi,
I have all the constants in an interface as follows.
public interface ProcessConstants {
public static final String CC_MESSAGES = "customercareMessages";
.........
.........
}
Now I want to pass these constants as a keys to the map in a JSF page using JSF
EL.
I tried with
<h:outputText id="message"
value="#{bean.variablesMap[ProcessConstants.CC_MESSAGES]}"/>.
But it is not working. If I write like,
<h:outputText id="message"
value="#{bean.variablesMap['customercareMessages']}"/>.
Then it is working. But i have to get the keys from 'ProcessConstants'
interface.
If anybody know about this please let me know.
Thanks & Regards,
Basha
The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not the
intended recipient, you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately and destroy all copies of this message and
any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should
check this email and any attachments for the presence of viruses. The company
accepts no liability for any damage caused by any virus transmitted by this
email.
www.wipro.com