Yes, this doesn't skip the process validation phase so much as execute
your action in the apply values phase and short-circuit the
process-validation and update-model phases.

The optional validation framework can allow you to ignore or skip
validations, and I'm currently using it for the same purpose (to
update a page after a pulldown item is selected).

-Mike

On 8/29/05, Sean Schofield <[EMAIL PROTECTED]> wrote:
> If you use "immediate=true" in a *command* this will cause the
> ProcessValidations phase to be skipped.  (ie. "Cancel" button)
> 
> sean
> 
> On 8/29/05, Bjørn T Johansen <[EMAIL PROTECTED]> wrote:
> > Yes, you are absolutely correct... I was sure that I had read somewhere 
> > that I could use
> > immediate to skip the validation and I can... But I forgot something... I 
> > also need to
> > call renderResponse from my valueChangeListener and now it works... :)
> >
> >
> > BTJ
> >
> > Jonas Jacobi wrote:
> > > Hi Bjorn,
> > >
> > > Directly from the JavaDoc:
> > >
> > > "By default, during the /Process Validators/ phase of the request
> > > processing lifecycle, the submitted value will be converted to a
> > > typesafe object, and, if validation succeeds, stored as a local value
> > > using |setValue()|. However, if the |immediate| property is set to
> > > |true|, this processing will occur instead at the end of the /Apply
> > > Request Values/ phase."
> > >
> > > Meaning that convertion and validation will *instead *occur in the Apply
> > > Request Values phase, not that it will skip convertion/validation.
> > >
> > > Jonas
> > >
> > >
> > > Bjørn T Johansen wrote:
> > >
> > >>I thought the reason for setting this property to true, was so the submit 
> > >>would skip the
> > >>validation phase, but that doesn't work for me...
> > >>
> > >>I have the following...:
> > >>
> > >><h:selectOneMenu accesskey="D" value="#{bean.domainID}" immediate="true" 
> > >>onchange="submit();">
> > >>      <f:selectItems value="#{selectMain.listDomain}"/>
> > >></h:selectOneMenu>
> > >>
> > >><h:inputText id="text" value="#{bean.name}" size="40" maxlength="40" 
> > >>required="true">
> > >>      <f:validateLength minimum="3" maximum="30" />
> > >></h:inputText>
> > >>
> > >>But when I change a value in the drop down box, the validation still 
> > >>occurs...
> > >>Does anyone know why?
> > >>
> > >>
> > >>Regards,
> > >>
> > >>BTJ
> > >>
> > >>
> > >>
> > >>
> > >
> > > --
> > >
> > > -------------------------------------------------------
> > > *Jonas Jacobi
> > > *Principal Product Manager - JSF & ADF Faces
> > > Oracle JDeveloper
> > > *Author*: Pro JSF: Building Rich Internet Components
> > > <http://apress.com/book/bookDisplay.html?bID=10044>
> > > *Blog*: http://www.orablogs.com/jjacobi
> > >
> >
>

Reply via email to