myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerhard Petracek (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Comment Edited] (EXTVAL-142) SkipValidation group to skip the validation process via an action-method
Date Fri, 30 Nov 2012 13:27:59 GMT

    [ https://issues.apache.org/jira/browse/EXTVAL-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13507314#comment-13507314
] 

Gerhard Petracek edited comment on EXTVAL-142 at 11/30/12 1:26 PM:
-------------------------------------------------------------------

currently we only support action-methods without parameters as well as std. action-listeners.
action-methods with parameters might be supported later on, but we can't support multiple
methods with the same name but different parameter/s. that's a basic el issue (if a parameter
value resolves to null, it isn't possible to determine the type of the parameter).

"workaround" for parameters:
 - f:attribute + ActionEvent#getComponent#getAttributes#get
or
 - f:setPropertyActionListener
                
      was (Author: gpetracek):
    currently we only support action-methods without parameters as well as std. action-listeners.
action-methods with parameters might be supported later on, but we can't support multiple
methods with the same name but different parameter/s. that's a basic el issue (if a parameter
value resolves to null, it isn't possible to determine the type of the parameter).
                  
> SkipValidation group to skip the validation process via an action-method
> ------------------------------------------------------------------------
>
>                 Key: EXTVAL-142
>                 URL: https://issues.apache.org/jira/browse/EXTVAL-142
>             Project: MyFaces Extensions Validator
>          Issue Type: New Feature
>          Components: Bean Validation
>    Affects Versions: 2.0.4
>            Reporter: Igor Guimaraes
>            Assignee: Gerhard Petracek
>             Fix For: 2.0.7
>
>         Attachments: EXTVAL-141_and_EXTVAL-142.patch, EXTVAL-141_and_EXTVAL-142_v0.2.patch
>
>
> in combination with EXTVAL-141 it's possible to skip the bv based validation process
> @BeanValidation(useGroups = SkipValidation.class) 
> public String send() 
> { 
>     //... 
>     return "success"; 
> } 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message