1 Reply Latest reply: Oct 24, 2011 11:09 AM by Tim Snyder RSS

Richfaces 4 select and generating change events

Tim Snyder Newbie

Sorry if this is a newbie question. I have not been able to find the answer. I am moving from Richfaces 3 to 4. In richfaces 4 I have the following code:

 

        <rich:select value="#{registration.memberLevel}" defaultLabel="Select Membership ..." >
          <f:selectItems value="#{registration.memberLevels}"/>
          <a4j:ajax event="change" execute="@this" render="registerForm" />
        </rich:select>

 

The issue is that with Richfaces 3 the "onchange" event was being generated when a selection was made. In Richfaces 4 the "change" event is not generated until focus is removed from the Select dropdown, either via a subsequent tab or by going to some other window. The design goal is to have the user select an item, and on that selection immediately have the appropriate panels rendered. Is there a way of generating the change event, on selection, and not on focus changing from the Select component? Thanks in advance.