Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

captcha not evaluate public/private key param in web.xml #2133

Closed
marcozanghi opened this issue Mar 2, 2017 · 4 comments
Closed

captcha not evaluate public/private key param in web.xml #2133

marcozanghi opened this issue Mar 2, 2017 · 4 comments
Assignees
Labels
enhancement Additional functionality to current component
Milestone

Comments

@marcozanghi
Copy link

PrimeFaces version: "6.0"

I have defined an EL into web.xml to place the private/public key of the captcha but the captcha component not evaluate that expression.

  <context-param>
        <param-name>primefaces.PRIVATE_CAPTCHA_KEY</param-name>
        <param-value>#{configuration.privateCaptchaKey}</param-value>
    </context-param>
 <context-param>
        <param-name>primefaces.PUBLIC_CAPTCHA_KEY</param-name>
        <param-value>#{configuration.publicCaptchaKey}</param-value>
    </context-param>

It seems that the primefaces component don't calls evaluateExpressionGet() but the simple context.getExternalContext().getInitParameter().

@ManagedBean
@ApplicationScoped
public class Configuration {
 ...

(For the theme param it seems to work - http://forum.primefaces.org/viewtopic.php?f=3&t=49757)

Any Suggestion?
Thanks.

@tandraschko
Copy link
Member

Please provide a PR

@marcozanghi
Copy link
Author

#2135

tandraschko added a commit that referenced this issue Mar 2, 2017
@tandraschko tandraschko self-assigned this Mar 2, 2017
@tandraschko tandraschko added the enhancement Additional functionality to current component label Mar 2, 2017
@tandraschko tandraschko added this to the 6.1.RC2 milestone Mar 2, 2017
@erickdeoliveiraleal
Copy link
Contributor

This commit caused an error on build `
imagem 1

@marcozanghi
Copy link
Author

I think that is the solution. I have tested and the building is ok. #2139

@melloware melloware modified the milestones: 6.1.RC2, 6.1 Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Additional functionality to current component
Projects
None yet
Development

No branches or pull requests

4 participants