problème commandButton et action
Bonjour,
J'utilise un commandButton qui ne déclenche pas la méthode
voila mon commandbutton
Code:
1 2 3 4
| <h:form id="form1">
<h:commandButton id="cmdbtn" value="Afficher résultats" action="#{FormulaireTraitement.submit}"/>
</h:form> |
et voila la méthode à laquelle il doit accéder dans le managed bean
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
| public void submit() throws FileNotFoundException
{
resultat.setDate_deb((Date) getDated().getValue());
resultat.setDate_fin((Date) getDatef().getValue());
String s="C:\\log" ;
OutputStream os = new FileOutputStream(s);
PrintStream ps = new PrintStream(os);
System.setOut(ps);
ps.println(resultat.getDate_deb());
ps.flush();
ps.close();
System.out.println("******"+resultat.getMode());
} |
le println ne renvoie rien et le fichier n'est pas crée.
une idée??