1 Reply Latest reply on Nov 30, 2010 6:16 AM by Ilya Shaikovsky

    Doubleclick on table entry

    Jens Mander Newbie

      Hi,

       

      you're still on RichFaces3.3 and trying to migrate to 4.0 now. In 3.3 we added a a4j:support componenten as a child element to a scrollable data table to add double-click capabilities to the component. Unfortunately this component has been replaced by aj4:ajax which doesn't offer the action or actionlistener attribute to implement the redirection. May anybody give me a piece of information how to implement it in RF4?

       

      Sascha

        • 1. Re: Doubleclick on table entry
          Ilya Shaikovsky Master

          actually according to JSF spec - ajax behavior - not an action component as support was in 3.3.3 and parent component action/actionListener or value/valueChangeListener should be used to trigger business logic. But any behavior provides behavior listener which should be fired when Behavior event risen so something like that could be used in that listener

              public void listener(BehaviorEvent event){
                  FacesContext.getCurrentInstance().getApplication().getNavigationHandler().handleNavigation(context, fromAction, outcome)
              }

              public void listener(BehaviorEvent event){

                  FacesContext.getCurrentInstance().getApplication().getNavigationHandler().handleNavigation(context, fromAction, outcome)

              }

          P.S. we still discussion option of returning back the action to a4j:ajax so vote if interested . https://jira.jboss.org/browse/RF-7827