You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Gerhard Petracek (JIRA)" <de...@myfaces.apache.org> on 2010/02/03 18:31:28 UTC

[jira] Resolved: (EXTVAL-79) activate required initialization

     [ https://issues.apache.org/jira/browse/EXTVAL-79?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gerhard Petracek resolved EXTVAL-79.
------------------------------------

    Resolution: Fixed

> activate required initialization
> --------------------------------
>
>                 Key: EXTVAL-79
>                 URL: https://issues.apache.org/jira/browse/EXTVAL-79
>             Project: MyFaces Extensions Validator
>          Issue Type: Improvement
>          Components: Bean Validation, Core, Property Validation
>    Affects Versions: 1.2.3-SNAPSHOT, 2.0.3-SNAPSHOT, 1.1.3-SNAPSHOT
>            Reporter: Gerhard Petracek
>            Assignee: Gerhard Petracek
>            Priority: Minor
>             Fix For: 1.2.3-SNAPSHOT, 2.0.3-SNAPSHOT, 1.1.3-SNAPSHOT
>
>
> required initialization is useful in case of component libs like trinidad.
> by default it's deactivated to avoid issues in combination with dynamic meta-data and severity aware validation.
> so it's required to activate it manually via
> web.xml:
> <context-param>
>     <param-name>org.apache.myfaces.extensions.validator.ACTIVATE_REQUIRED_INITIALIZATION</param-name>
>     <param-value>true</param-value>
> </context-param>
> or within an extval startup listener:
> ...
> ExtValContext.getContext().addGlobalProperty("init:required", Boolean.TRUE);
> ...
> *** with trinidad ***
> if you are using the trinidad support module it gets activated automatically.
> so the required attribute of input components (used within pages) will be ignored.
> if you don't need features like severity aware validation, you can re-introduce the support for the required attribute via:
> web.xml:
> <context-param>
>     <param-name>org.apache.myfaces.extensions.validator.ACTIVATE_REQUIRED_INITIALIZATION</param-name>
>     <param-value>false</param-value>
> </context-param>
> or a custom add-on

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.