java - Glassfish 4.0 with Primefaces 5.0 triggers automatically all methods -
i'm deploying little website on glassfish , have 2 method runs python file. methon 1 runs python file nil more. when access site automatically phone call functions...
public void reservate() { system.out.println("almaaa"); string start, end; start = time1.substring(0,5); end = time1.substring(6,11); reserv = new reservation("asd", room, "19.00", "20.00"); reserv.getoutput(); } <p:commandlink value="#{navigationto.time1button}" onclick="#{navigationto.reservate()}" style="font-size: 300%"/>
the reserv.getoutput() triggers file , runs python file. if access site if dont click on actionlink triggers everyting , made reservation...
i want run python file if click commadnlink.
any suggestion?
java python jsf primefaces glassfish-4
No comments:
Post a Comment