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 at 00:56

Cuong%20Le's gravatar image

Cuong Le
36227
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 at 02:56

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
5.1k1829
accept rate: 69%

Your answer
toggle preview

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:

×3

Asked: 28.04 at 00:56

Seen: 91 times

Last updated: 01.05 at 02:56