Hi,

Just drop it. No need of it anymore.


On Wed, May 1, 2013 at 11:23 PM, Paul Bors <p...@bors.ws> wrote:

>
>
> I'm migrating from 5.x to 6.x and I have a few classes that make use of the
> older IAjaxCallDecorator and I was wondering what's a simple substitution
> for code like this:
>
>
>
> add(new AjaxEventBehavior("onclick") {
>
>   protected void onEvent(AjaxRequestTarget target) {
>
>     ISortState state = stateLocator.getSortState();
>
>       if (!defaultSortAsc && state.getPropertySortOrder(property) ==
> SortOrder.NONE ) {
>
>         state.setPropertySortOrder(property, SortOrder.ASCENDING);
>
>       }
>
>       onClick();
>
>       onAjaxClick(target);
>
>   }
>
>   protected IAjaxCallDecorator getAjaxCallDecorator() {
>
>     return new CancelEventIfNoAjaxDecorator(decorator);
>
>   }
>
> });
>
>
>
> I have this for my own AjaxFallbackOrderByBorder I use for the sortable
> headers in most of the table.
>
>
>
> ~ Thank you in advance,
>
>     Paul Bors
>
>


-- 
Martin Grigorov
Wicket Training & Consulting
http://jWeekend.com <http://jweekend.com/>

Reply via email to