Component for Network Speedtest

Community Driven Extensions Project
stefan.sibitz
Posts: 38
Joined: 11 Nov 2016, 09:44

13 Oct 2017, 12:47

What's about a component the measure the Up-/Download Speed and Ping Response Time
for using on "own" server and getting a callback on server when finished with the "Result's" ?

At current state i need a way to check if one of our customers have problems with
the speed to one of our server.

The access is worldwide so a performance-component like speedtest.net would be fine
for my user's and i also know how to implement :-)
------------
Using Wildfly 11.0.0,
Mojarra 2.2.13.SP4

Melloware
Posts: 3716
Joined: 22 Apr 2013, 15:48

13 Oct 2017, 14:39

Sounds good to me. Feel free to put something together and either submit a PR or send me the code and I can get into PF Extensions.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

stefan.sibitz
Posts: 38
Joined: 11 Nov 2016, 09:44

16 Oct 2017, 14:39

OK,

I think it will take a little bit of time,
but my destination is to made a working beta version until the end of the year :)

So i will contact you when the component is generally working :)
------------
Using Wildfly 11.0.0,
Mojarra 2.2.13.SP4

Melloware
Posts: 3716
Joined: 22 Apr 2013, 15:48

16 Oct 2017, 14:41

No problem!
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

stefan.sibitz
Posts: 38
Joined: 11 Nov 2016, 09:44

18 Oct 2017, 10:20

My current "plan" is to re-write an existing/working solution from PHP to Java EE/JSF
which is currently also open source.

First I will start by creating a new JSF-Testpage and when it work's in Java/JSF
i will create a component of it...
------------
Using Wildfly 11.0.0,
Mojarra 2.2.13.SP4

stefan.sibitz
Posts: 38
Joined: 11 Nov 2016, 09:44

30 Oct 2017, 18:15

I have now finished creating the needed JavaScripts and the SVG-Graphics by simply using justgage for showing the speed-results.
Here i have a first screen-shot of my already running JSF/Primefaces Page:

Image

I will now try to build a component which can be used within the primefaces-extension...


By the way:
This example run against my virtual machine,
so the data's are shown are very good but real :-)
------------
Using Wildfly 11.0.0,
Mojarra 2.2.13.SP4

Melloware
Posts: 3716
Joined: 22 Apr 2013, 15:48

30 Oct 2017, 18:30

Nice progress!
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

stefan.sibitz
Posts: 38
Joined: 11 Nov 2016, 09:44

31 Oct 2017, 08:38

By the way:

What is the default process to implement a "new" component to Primefaces-Extensions Project ?

1.) By making a Fork of the Primefaces-Extension Project and implement it there

or

2.) Cloning the Primefaces-Extension Project, implement it and push it back

Greetings,
Stefan.
------------
Using Wildfly 11.0.0,
Mojarra 2.2.13.SP4

Melloware
Posts: 3716
Joined: 22 Apr 2013, 15:48

31 Oct 2017, 13:35

#1. Fork the project and implement the component. Then in GitHub you can "submit it as a Pull Request" for me to review.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

stefan.sibitz
Posts: 38
Joined: 11 Nov 2016, 09:44

01 Nov 2017, 20:11

Ok, so i have now implemented this as component and it's working by now:

It get be rendered and after you call the Method start via e.g.

Code: Select all

onclick="PF('speedtest').start()"

in a button the speedtest does the test's and show the result.

The only thing i want to realize is to add a kind of listener for the component
to get all result's of the speedtest's javascript on the server.

Here i can't found any example on how i can pass the 5 double values from the javascript
via ajax back to the method which was entered into the listener MethodExpression...

Do you have any "example" how i can do this in primefaces via ajax ?
------------
Using Wildfly 11.0.0,
Mojarra 2.2.13.SP4

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests