hi igor, you need version 2.x of myfaces-extval-core and myfaces-extval-bean-validation and the add-on. if it doesn't work, i can have a look at it or rudy (he implemented it based on my add-on for the myfaces-extval-property-validation module).
regards, gerhard http://www.irian.at Your JSF/JavaEE powerhouse - JavaEE Consulting, Development and Courses in English and German Professional Support for Apache MyFaces 2012/1/20 Igor Guimarães <[email protected]> > I make this changes and not work: > > view: > > Put this button: > > <h:commandButton id="bypass" value="Bypass All" > actionListener="#{plcbasemb.create}"/> > > ManagedBean > > /** > * @since jCompany 5.0 Limpa Entidade da conversação para permitir que > uma nova seja criada no fluxo que se segue. > */ > @BeanValidation(useGroups = { Bypass.class }) > public String create(ActionEvent actionEvent) { > if (entityPlc!=null) { > if (entityListPlc!=null) > return baseCreateAction.create(entityPlc, entityListPlc); > else > return baseCreateAction.create(entityPlc); > } > else > return baseCreateAction.create(entityListPlc); > } > > > > > and add a project on my pom.xml. > > > This change is enough to skip of validation? > > Thanks. > > Igor > > > On Thu, Jan 19, 2012 at 7:18 PM, Gerhard Petracek < > [email protected]> wrote: > > > hi igor, > > > > the add-on just allows to use the extval annotation also with > > action(/-listener) methods. it resets the current groups and sets > 'Bypass' > > as the current group. > > since 'Bypass' doesn't match a group you are using for constraints, no > > constraint gets validated. > > > > regards, > > gerhard > > > > http://www.irian.at > > > > Your JSF/JavaEE powerhouse - > > JavaEE Consulting, Development and > > Courses in English and German > > > > Professional Support for Apache MyFaces > > > > > > > > 2012/1/19 Igor Guimarães <[email protected]> > > > > > Gerhard, > > > > > > I have a questions, I need put the "@BeanValidation(useGroups=" at my > > > BackingBean and entity, or only BackingBean it's necessary (my case, > > > variant validation)? > > > > > > When I click on button, what the extension doing for skip of the > > validation > > > phase? > > > > > > Thanks. > > > > > > Igor Guimarães. > > > > > > > > > > > > > > > On Thu, Jan 19, 2012 at 9:37 AM, Gerhard Petracek < > > > [email protected]> wrote: > > > > > > > hi, > > > > > > > > bean-validation only works with groups -> you have to use a different > > > > add-on. > > > > you can see an example at [1]. > > > > > > > > regards, > > > > gerhard > > > > > > > > [1] http://goo.gl/dM120 > > > > > > > > http://www.irian.at > > > > > > > > Your JSF/JavaEE powerhouse - > > > > JavaEE Consulting, Development and > > > > Courses in English and German > > > > > > > > Professional Support for Apache MyFaces > > > > > > > > > > > > > > > > 2012/1/19 Rudy De Busscher <[email protected]> > > > > > > > > > Hello Igor, > > > > > > > > > > There exists an add-on that can do that , see (1). Don't know how > > well > > > > it > > > > > works with Bean validation, probably not due to the missing > > > > > @SkipValidationSupport on bean validation annotations. > > > > > > > > > > Why is immediate=true not an option? The actionListener on the > > button > > > is > > > > > still executed (invoke application phase) so you can create a new > > empty > > > > > instance of the entity for example. > > > > > > > > > > Regards > > > > > Rudy > > > > > > > > > > (1) > > > > > > > > > > > > > > > > > > > > http://os890.blogspot.com/2009/03/myfaces-extval-add-on-bypassvalidation.html > > > > > > > > > > 2012/1/19 Igor Guimarães <[email protected]> > > > > > > > > > > > Hello, > > > > > > > > > > > > Extval provide a way to skip of Validation Phase of processor? > > > > > > > > > > > > A have a button "New", that puting a new itens on my list or > > create a > > > > new > > > > > > bean, but the property "imediate" jumping other phasses too > (Update > > > > Model > > > > > > Values and Invoke Application), and its not applicable for me. > > > > > > > > > > > > Anybody has a idea? > > > > > > > > > > > > I will try extends class BeanValidator for check this on method > > > > validate, > > > > > > but I wanna do this more simple. > > > > > > > > > > > > Thanks. > > > > > > > > > > > > > > > > > > -- > > > > > > Igor Luiz Vieira Guimarães > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > Rudy De Busscher > > > > > http://www.c4j.be > > > > > > > > > > > > > > > > > > > > > -- > > > Igor Luiz Vieira Guimarães > > > > > > > > > -- > Igor Luiz Vieira Guimarães >

