0 Replies Latest reply on Feb 20, 2008 12:01 PM by Mike Hanafey

    AJAX makeVisible attribute needed

    Mike Hanafey Newbie

      a4j provides a "focus" attribute which gives an input component focus after the ajax request, and has the side effect of scrolling the component into view.

      Sometimes you just want to ensure that a component is visible after the ajax update, but setting focus to a non-input component does nothing.

      It would be nice to have another attribute where one could specify an arbitrary client id to be made visible after ajax. This would probably require a companion attribute that indicted how the view should be scrolled, for example, "top of element at top of viewport".

      This scrolling into view is essential in something like a tree component where the ajax request may add a new node and this node is off the bottom of the screen, and the user has no idea it is even there.