1 Reply Latest reply: Apr 24, 2012 12:02 PM by Brian Leathem RSS

Attribute immediate in pickList

Pavol Pitonak Master

Hi,

 

why does pickList have attribute "immediate" even if it itself doesn't do Ajax request? What is the use case for this attribute?

 

What should happen in the following case?

 

<rich:pickList immediate="false"...>
    <a4j:ajax immediate="true" .../>
</rich:pickList>

 

Regards,

Palo

  • 1. Re: Attribute immediate in pickList
    Brian Leathem Master

    Immediate on a value holder means the value is applied before the validation phase of the JSF lifecycle.  Immediate on an action event means the action is executed before the validations phase of the JSF lifecycle.

     

    In the snippet you posted, the picklist value would *not* be updated immediately, but any actions listeners attached to the ajax component would execute immediately (where immediate means before validations, in the "apply request values" phase.