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

Reply via email to