Jump to content

Primefaces commandlink : window.onload


Recommended Posts

I use JSF (2.2) and Primefaces (6.1.2) frameworks.

In a page I display charts (chart.js) and I have to use window.onload for loading.

The page is called by p: commandLink but window.onload does not work.

Can you help me please ?

Thank you.

My code:

<p:commandLink value="Espace standard" 
               style="position: absolute; top: 455px; left: 700px"
<script type="text/javascript">
        window.onload = function ()
            drawChart('espaceStandardGraphique1', 'idCanvasGraphique1');
            drawChart('espaceStandardGraphique2', 'idCanvasGraphique2')


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...