Hi,

Thanks for your support, I am new to Wicket framework.
Using the custom page navigation api for capturing the event to drop here, 
In BlockLinkEvent could you please suggest how I can use/call
updateAjaxAttributes method  .

table = new LabTestPageNavigation<LabTestData, String>(tableId, columns,
dataProvider, tableRows);
table.addBottomToolbar(new BlockLinkEvent(table));



@SuppressWarnings({ "serial", "rawtypes" })
public class LabTestPageNavigation<T> extends AjaxFallbackDefaultDataTable {

    @SuppressWarnings("unchecked")
    public <S> LabTestPageNavigation(final String id, final List<? extends
IColumn<T, S>> columns, final ISortableDataProvider<T, S> dataProvider,
final int rowsPerPage) {
        super(id, columns, dataProvider, rowsPerPage);
        setOutputMarkupId(true);
        setVersioned(false);
        addTopToolbar(new BlockLinkEvent(this));
        addTopToolbar(new AjaxFallbackHeadersToolbar(this, dataProvider));
        addBottomToolbar(new NoRecordsToolbar(this));
    }

    private class BlockLinkEvent extends NavigationToolbar {

        public BlockLinkEvent(DataTable<?, ?> table) {
            super(table);
        }

        @Override
        protected PagingNavigator newPagingNavigator(final String
navigatorId, final DataTable<?, ?> table) {
            return new AjaxPagingNavigator(navigatorId, table) {

                private static final long serialVersionUID = 1L;

                @Override
                protected void onAjaxEvent(final AjaxRequestTarget target) {
                    target.add(table);
                }
                
                @Override
                protected void onConfigure() {
                    // TODO Auto-generated method stub
                    super.onConfigure();
                   
                }

                @Override
                protected void updateAjaxAttributes(AjaxRequestAttributes
attributes) {
                    super.updateAjaxAttributes(attributes);
                    System.out.println("Hello world!  
updateAjaxAttributes-----------------------------------------------------------------------------");
                    attributes.setChannel(new AjaxChannel("myChannel",
AjaxChannel.Type.DROP));
                }
            };
        }

    }
}

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Page-navigation-multiple-click-events-put-in-queue-tp4666862p4666867.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to