You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by Damianos Metallidis <me...@gmail.com> on 2016/07/26 19:40:33 UTC

getJsValuesAfterRendering

Hello to all,
I have used the library of 
timing.js(https://github.com/addyosmani/timing.js/) and it's very handy. 
I want to ask you although one question.

I am running the above client library the client side of a localhost 
webapp. The thing is that i want to get the these javascript values on 
my server-side code. I am using wicket in the front-end.
Is it possible to retrieve them? For example to get the 
/window.performance.timing.connectEnd

/My problem here is that the page should be rendered to have the values 
of timing available.
Perhaps any suggestion?
I have used the onAfterRender() method but it returns me null:

  @Override
     protected void onAfterRenderChildren()
     {
         super.onAfterRenderChildren();
//        StringValue ce = 
RequestCycle.get().getRequest().getRequestParameters().getParameterValue("window.performance.timing.connectEnd");

        System.out.println(ce .toString()); // it's null...
}

My best regards,
Damian