Ignore:
Timestamp:
01/09/14 16:13:48 (10 years ago)
Author:
twagoo
Message:

Replaced calls getting session (either on component or statically) and casting to VloSession? with new convenience method VloSession?.get()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vlo/branches/to-wicket-1.6/vlo_web_app/src/main/java/eu/clarin/cmdi/vlo/pages/ShowResultPage.java

    r4234 r4240  
    8585            PageParameters newParam = new PageParameters(query.getPageParameters());
    8686            // add the session persistent parameters
    87             newParam.mergeWith(((VloSession) this.getSession()).getVloSessionPageParameters());
     87            newParam.mergeWith(VloSession.get().getVloSessionPageParameters());
    8888
    8989            BookmarkablePageLink<String> backLink = new BookmarkablePageLink<String>("backLink", FacetedSearchPage.class, newParam);
     
    428428        PageParameters newParam = new PageParameters(parameters);
    429429        // add the session persistent paremeters
    430         newParam.mergeWith(((VloSession) this.getSession()).getVloSessionPageParameters());
     430        newParam.mergeWith(VloSession.get().getVloSessionPageParameters());
    431431
    432432        final RequestCycle reqCycle = getRequestCycle();
     
    463463                Application.get().getRequestCycleSettings().getResponseRequestEncoding())); // get current character set from request cycle
    464464        // add the session persistent parameters
    465         newParam.mergeWith(((VloSession) VloSession.get()).getVloSessionPageParameters());
     465        newParam.mergeWith(VloSession.get().getVloSessionPageParameters());
    466466        BookmarkablePageLink<ShowResultPage> docLink = new BookmarkablePageLink<ShowResultPage>(linkId, ShowResultPage.class,
    467467                newParam);
Note: See TracChangeset for help on using the changeset viewer.