3

I am trying to archive very simple things but I'm not getting the expected result from the below script. I don't know what im going wrong.

<script>      
        var APP = "APPR";// in properties file APPR = Approved
        var message = "#{props["APP"]}";// JSF EL expression with resourcebundle 
        alert(message)// Want to print "Approved" but its printing ??APP???
</script>

Im using JSF resourcebundle and javascript.

Jasper de Vries
  • 19,370
  • 6
  • 64
  • 102
user1127643
  • 169
  • 4
  • 12

1 Answers1

1

try below

#{props['"+ APP + "']}
Rocker9
  • 36
  • 2