I know this, but for skip validation phase I'm using call:

         FacesContext context = FacesContext.getCurrentInstance();

         context.renderResponse();

 

Thanks,

Yura.

-----Original Message-----
From: Mike Kienenberger [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 23, 2006 6:26 PM
To: MyFaces Discussion
Subject: Re: Skip Validation Phase

 

Short answer: immediate doesn't skip validation phase.

 

Long answer:

 

http://wiki.apache.org/myfaces/How_The_Immediate_Attribute_Works

 

 

On 3/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

> 

> 

> 

> Hi, All!!!

> 

> 

> 

> I've confused with it in JSF. I have some validation logic on my form:

> 

> 

> 

> 2 textboxes which have required attribute

> 

> And also one drop-down ( I used immediate=true, because I don't want to run

> validation before valueChangeListener ).

> 

> In my valueChangeListener I tried to ignore validation phase at all, so in

> the end of this method I called

> FacesContext.getCurrentInstance().renderResponse();

> 

> Here is code:

> 

>     public void vendorChanged(ValueChangeEvent event) {

> 

>         FacesContext context = FacesContext.getCurrentInstance();

> 

>         String value = (String) event.getNewValue();

> 

>         if (value != null) {

> 

>             … updating bean data, I expected that data will be appear on my

> page

> 

>         }

> 

>         context.renderResponse();

> 

>     }

> 

> 

> 

> But when this valueChangeListener finished data isn't updates on the my

> page? Why? Any ideas?

> 

> 

> 

> Thanks in advance,

> 

> Yura.

Reply via email to