2 Replies Latest reply on Dec 9, 2010 7:30 AM by lfryc

    a4j:ajax with multiple events specified

    lfryc

      The JSR-314 speaks about event as

       

      "A String identifying the type of event the Ajax

      action will apply to. If specified, it must be one of

      the events supported by the component the Ajax

      behavior is being applied to. If not specified, the

      default event is determined for the component. The

      default event is “action” for ActionSource

         components and “valueChange” for

            EditableValueHolder components."

       


      But it is really convenient to avoid code duplication in cases like [1],

      and use several events for specifyng ajax request.

       

      <a4j:ajax event="slide, arrowkey" ... />

       

      Do you think it is reasonable to specify more events for one f:ajax/a4j:ajax.

      Can we found some side-effects which can broke this concept?

       

       

      [1] http://community.jboss.org/message/570477#570477

       

      A String identifying the type of event the Ajax
      action will apply to. If specified, it must be one of
      the events supported by the component the Ajax
      behavior is being applied to. If not specified, the
      default event is determined for the component. The
      default event is “action” for ActionSource
         components and “valueChange” for
            EditableValueHolder components.But But in