bonjour,
je travail sur un projet dans lequel je veut lancer une fenêtre java en
appuyant sur un bouton
page.jsp
bean.java (la fonction que je lance)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> <body background="D:\\Image\\02_MSI_Wallpaper\\pic.JPG"> <f:view><h:form> <table> <tr> <th style="width: 330px"></th><th> <h:commandButton type="submit" value="Créer un model" style="height: 54px; width: 210px" action="#{tableDeControl.lancer}"></h:commandButton></th> <th style="width: 229px"> </th> <th><h:commandButton type="submit" value="Gérer la base de donnée" style="height: 54px"></h:commandButton> </th> </tr> </table> </h:form></f:view></body>
voici le message d'erreur:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 public String lancer() { System.out.println("Lancemmennnnnnnnnnnnt"); new PageAcceuil1().setVisible(true); return "lancer"; }
il y a aucun problème lorsque je lance la PageAcceuil1() à partir d'eclipse
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 12:05:45,250 INFO [STDOUT] Lancemmennnnnnnnnnnnt 12:05:45,250 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception javax.faces.FacesException: Error calling action method of component with id _idJsp0:_idJsp1 at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74) at javax.faces.component.UICommand.broadcast(UICommand.java:106)
direct.Est ce les pages web sont incapables de lancer des fenetres java?
une aide un peut hâtive sera le bien venue
merci
Partager