Yeah, I see what you mean. The AjaxPagingNavigationIncrementLink is not really an AjaxLink, but has had an AjaxBehavior grafted in. I think your best bet would be to build a PagingNavigationIncrementLink and add a behavior similar to AjaxPagingNavigationBehavior to it, but with the scriptaculous stuff added in as well.
hth, jim On 5/31/07, Tremelune <[EMAIL PROTECTED]> wrote: > > I misspoke a earlier, the method I need to override is > newPagingNavigationIncrementLink(). Looks like this: > > public AjaxPagingNavigationIncrementLink(final String id, final > IPageable > pageable, final int increment) > { > super(id, pageable, increment); > add(new AjaxPagingNavigationBehavior(this, pageable, > "onclick")); > > setOutputMarkupId(true); > } > > Because the behavior is plugged into the constructor, there isn't anything I > can override to change that, unless I duplicate the code in this constructor > elsewhere. I may try using mouseup or onblur or something...My end goal is > to use Scriptaculous to fade from one page to the next. > > > > > James McLaughlin-3 wrote: > > > > Is this not possible for you: > > > > protected Link newPagingNavigationLink(String id, IPageable pageable, > > int pageNumber) > > { > > return new AjaxPagingNavigationLink(id, pageable, pageNumber) > > { > > > > @Override > > protected IAjaxCallDecorator > > getAjaxCallDecorator() { > > return new > > MyBrilliantAjaxPagingCallDecorator(); > > } > > }; > > } > > > > best, > > jim > > > > On 5/31/07, Tremelune <[EMAIL PROTECTED]> wrote: > >> > >> Sooo...getAjaxCallDecorator() is in AjaxPagingNavigationBehavior, which > >> is > >> constructed in AjaxPagingNavigationLink, which is constructed in > >> AjaxPagingNavigator.newPagingNavigatorLink(), which my subclass > >> overrides. > >> Is there a way to add this decorator without having to pass an object up > >> the > >> whole chain or duplicate all the constructor code in > >> AjaxPagingNavigator.newPagingNavigatorLink()? > >> > >> > >> > >> > >> James McLaughlin-3 wrote: > >> > > >> > If you mean getAjaxCallDecorator(), it is surely there. Just override > >> > it to return your implementation of AjaxCallDecorator. To add to the > >> > onclick, you will need to override the decorateScript method of > >> > AjaxCallDecorator. > >> > > >> > best, > >> > jim > >> > > >> > On 5/30/07, Tremelune <[EMAIL PROTECTED]> wrote: > >> >> > >> >> I'm looking to add an additional script to the onclick of a (paging) > >> ajax > >> >> link. I stumbled on this thread: > >> >> > >> >> > >> http://www.nabble.com/Appending-to-AJAX-Submit-Button-onclick-tf1695285.html#a4600751 > >> >> > >> >> I can't seem to find the additional code in 1.3. The thread is a year > >> >> old, > >> >> perhaps the code was discarded. Is there a new and better way to add > >> >> additional onclick scripting somewhere else? > >> >> -- > >> >> View this message in context: > >> >> > >> http://www.nabble.com/Adding-more-onclick-script-to-ajax-link--tf3843103.html#a10883013 > >> >> Sent from the Wicket - User mailing list archive at Nabble.com. > >> >> > >> >> > >> >> > >> ------------------------------------------------------------------------- > >> >> This SF.net email is sponsored by DB2 Express > >> >> Download DB2 Express C - the FREE version of DB2 express and take > >> >> control of your XML. No limits. Just data. Click to get it now. > >> >> http://sourceforge.net/powerbar/db2/ > >> >> _______________________________________________ > >> >> Wicket-user mailing list > >> >> Wicket-user@lists.sourceforge.net > >> >> https://lists.sourceforge.net/lists/listinfo/wicket-user > >> >> > >> > > >> > > >> ------------------------------------------------------------------------- > >> > This SF.net email is sponsored by DB2 Express > >> > Download DB2 Express C - the FREE version of DB2 express and take > >> > control of your XML. No limits. Just data. Click to get it now. > >> > http://sourceforge.net/powerbar/db2/ > >> > _______________________________________________ > >> > Wicket-user mailing list > >> > Wicket-user@lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/wicket-user > >> > > >> > > >> > >> -- > >> View this message in context: > >> http://www.nabble.com/Adding-more-onclick-script-to-ajax-link--tf3843103.html#a10896587 > >> Sent from the Wicket - User mailing list archive at Nabble.com. > >> > >> > >> ------------------------------------------------------------------------- > >> This SF.net email is sponsored by DB2 Express > >> Download DB2 Express C - the FREE version of DB2 express and take > >> control of your XML. No limits. Just data. Click to get it now. > >> http://sourceforge.net/powerbar/db2/ > >> _______________________________________________ > >> Wicket-user mailing list > >> Wicket-user@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/wicket-user > >> > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > -- > View this message in context: > http://www.nabble.com/Adding-more-onclick-script-to-ajax-link--tf3843103.html#a10897476 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user