Bonsoir,
J'ai un problème dans mon application web, si quelqu'un peut m'aider à appeler 2 fonctions (showCreate et showCreate1) de ma classe Mbean: commandeachat par un bouton dans une page JSP "commandeachatList" pour passer à une deuxième page JSP: "commandeachatADD"
j'ai essayé le code suivant:
<input type="button" value="2 fonctions" onclick="commandeachat.showCreate(newcommandeachat);commandeachat.showCreate1(newcommandeachatHasArticle)">
voila le Mbean:commandeachat:
1 2 3 4 5 6 7 8 9 10
| public String showCreate(Commandeachat newcommandeachat)
{
this.newCommandeachat=new Commandeachat();
return"NEW";
}
public String showCreate1(CommandeachatHasArticle newcommandeachatHasArticle)
{
this.newCommandeachatHasArticle=new CommandeachatHasArticle();
return"NEW";
} |
J'ai bien fait la configuration de fichier faces-config.xml et pourtant le bouton ne fonctionne pas:en le cliquant rien ne se passe.
Merci pour votre aide
Partager