[jsf] modifier le JSP avec un bouton
bonjour :)
Voici Page jsp :
Code:
1 2 3 4 5 6 7 8 9 10 11 12
|
<h:panelGrid border="1" columns="2">
<h:outputText value="nom"></h:outputText>
<h:outputText value="prenom"></h:outputText>
<!-- 1er enregistrement -->
<h:inputText value=" 1 "></h:inputText>
<h:inputText value=" 2 "></h:inputText>
<!-- 2eme enregistrement -->
<h:inputText value=" 3 "></h:inputText>
<h:inputText value=" 4 "></h:inputText>
</h:panelGrid>
<h:commandButton action="#####" value="Ajouter enregistrement"/> |
Je veut que le bouton me permet d'ajouter un enregistrement dans la panelGrid (modifier la page jsp).
donc la page jsp (après modification):
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
<h:panelGrid border="1" columns="2">
<h:outputText value="nom"></h:outputText>
<h:outputText value="prenom"></h:outputText>
<!-- 1er enregistrement -->
<h:inputText value=" 1 "></h:inputText>
<h:inputText value=" 2 "></h:inputText>
<!-- 2eme enregistrement -->
<h:inputText value=" 3 "></h:inputText>
<h:inputText value=" 4 "></h:inputText>
<!-- 3eme enregistrement -->
<h:inputText value=" 5 "></h:inputText>
<h:inputText value=" 6 "></h:inputText>
</h:panelGrid>
<h:commandButton action="#####" value="Ajouter enregistrement"/> |
Merci pour vos aides . . .