I want to create a context param by using global variable like this. But it doesn't work. Is there any way to do it?

  < context-param>
     < param-name>primefaces.PRIVATE_CAPTCHA_KEY</param-name>
     < param-value>#{ivy.var.get('private_captcha_key')}</param-value>
     < /context-param>

asked 28.04.2017 at 00:56

Cuong%20Le's gravatar image

Cuong Le
(suspended)
accept rate: 0%


There is no general scripting support available within the context.xml. It is designed for static values.

Looking at the source-code of primefaces there is no other way to configure the keys for the captcha than setting in the context.xml. alt text

link

answered 01.05.2017 at 02:56

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958
accept rate: 70%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×6

Asked: 28.04.2017 at 00:56

Seen: 1,630 times

Last updated: 01.05.2017 at 02:56