commandButton ko dans panelGoup
bonjour a tous
j'ai ma page jsf suivante
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
| <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<f:view>
<%@include file="/messages.jspf"%>
<html>
<head>
<t:stylesheet path="/css/skills.css"/>
</head>
<body>
<h:form>
<h:outputText styleClass="popupTitle" value="#{messages['popup.rechercheCompetence.title']}" />
<f:verbatim><BR /><BR /><BR /><BR /></f:verbatim>
<h:outputText value="#{messages['popup.rechercheCompetence.text']}" />
<f:verbatim><BR /><BR /></f:verbatim>
<h:inputText binding="#{updateCV.competenceRecherche}" />
<f:verbatim><BR /><BR /></f:verbatim>
<h:commandButton value="Rechercher" type="submit" action="#{updateCV.rechercherConnaissance}" />
<f:verbatim>
<br />
<br />
<br />
</f:verbatim>
<h:panelGroup rendered="#{updateCV.listTermeRecherche != null}">
<t:outputText value="Sélectionnez la competence recherchée en cliquant sur son nom : " style="font-family: Times New Roman , font-weight: bold ,font-size: 12pt" />
<f:verbatim>
<br />
<br />
</f:verbatim>
<t:dataTable id="competenceEquivalent" styleClass="standardTable"
headerClass="headerText" rowClasses="oddRow,evenRowCV" columnClasses=""
var="competenceEqui" value="#{updateCV.listTermeRecherche}"
preserveDataModel="true" binding="#{updateCV.competenceEquiDataTable}"
width="300px" border="2">
<h:column>
<f:facet name="header">
<h:panelGroup>
<h:outputText value="#{messages['global.connaissance']}" />
</h:panelGroup>
</f:facet>
<t:outputText value="#{competenceEqui.libelleTerme}" />
<h:commandButton action="#{updateCV.associeConnaissance}"/>
</h:column>
</t:dataTable>
</h:panelGroup>
</h:form>
<h:messages styleClass="error"/>
</body>
</html>
</f:view> |
dans mon panel groupe j'ai un bouton qui m'execute une action
Code:
<h:commandButton action="#{updateCV.associeConnaissance}"/>
sauf que lorsque j'appuis sur le bonton ca ne rentre pas dans le code de ma fonction.
j'ai remarqué en deplacant le commandButton en dehors de panel groupe que ca executé bien l'action demandé.
quelcun aurrai t'il une idée :calim2:
Merci d'avance