1 Reply Latest reply on Apr 24, 2012 12:02 PM by bleathem

    Attribute immediate in pickList

    ppitonak

      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
          bleathem

          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.