hi mark,

that's basically right for std. jsf2 (and it's more like a workaround).
however, extval doesn't support the usage of the tag because it isn't
type-safe.
(currently just the groups get transferred due to a different reason.)

instead of providing support for this workaround, we will provide a
different feature based on the existing add-on soon (it will be also
proposed to the expert-group).

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/21 Mark Struberg <strub...@yahoo.de>

> Hi!
>
> Something I did sometimes is to use an explicit request parameter combined
> with <f:validateBean> :
>
>
> <f:validateBean disabled="#{!empty param['check']}">
>  .... your stuff
>
> and the button looks like the following:
>
>
> <h:commandButton id="personAddBtn" action="#{searchForm.startSearch()}"
> value="#{amsg.searchPerson}">
>     <f:param name="check" value="false"/>
> </h:commandButton>
>
>
>
> The reason I don't use immediate=true is that this would skip the 'update
> model' step, thus I would loose all the values entered in the fields.
> With my solution, it just passes the values, sets it into the model but
> does no validation so far. Of course, on the 'save' button it will be
> validated.
> Please note that this only works when you have some 'stateful' backing
> beans, e.g CDI (see MyFaces CODI) @SessionScoped, @WindowScoped,
> @ConversationScoped or similar Spring contexts (e.g. MyFaces Orchestra
> Conversations).
>
>
>
> LieGrue,
> strub
>
>
>
>
> ----- Original Message -----
> > From: Rudy De Busscher <rdebussc...@gmail.com>
> > To: MyFaces Discussion <users@myfaces.apache.org>
> > Cc:
> > Sent: Thursday, January 19, 2012 12:19 PM
> > Subject: Re: Skip the Validation Phase of JSF with ExtVal
> >
> > 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 <igorcicomp...@gmail.com>
> >
> >>  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
> >
>

Reply via email to