Problème de syntaxe JSF

Fermé
sophia_soop Messages postés 2 Date d'inscription mardi 19 mai 2015 Statut Membre Dernière intervention 3 juin 2015 - 3 juin 2015 à 20:20
salut!

Je travaille avec JSF2.2 et j'ai un petit problème:

<h:form id="form">
<h3 style="margin-top: 0">Selectionnez un canal </h3>
<p:ring id="basic" value="#{canalService.canals}" var="canal">
<p:outputPanel style="text-align: center;" layout="block">
#{canal.name}
<br />
<p:graphicImage name="6a00e554e5b1be88330115704c221b970b-120wi.jpg" library="images" />
<p:commandButton update=":form" icon="ui-icon-search" title="View" oncomplete="PF('carDialog').show();" value="Clickez-ici">
<f:setPropertyActionListener value="#{canal}" target="#{canalService.selectedCanal}" />
<p:dialog header="Membre Info" widgetVar="carDialog" modal="false" showEffect="fade" hideEffect="fade" resizable="false" width="400" closeOnEscape="true">
<p:outputPanel id="carDetail" style="text-align:center;" layout="block">
<p:panelGrid columns="2" rendered="#{not empty canalService.selectedCanal}" columnClasses="value">
<f:facet name="header">
<p:graphicImage name="6a00e554e5b1be88330115704c221b970b-120wi.jpg" library="images" />
</f:facet>

<h:outputText value="Canal:" />
<h:outputText value="#{canalService.selectedCanal.name}" />

<h:outputText value="Description" />
<h:outputText value="#{canalService.selectedCanal.name}" />

<p:commandButton value="Rejoindre le canal" action="canal 1" ajax="false" id="rejoindreUnCanal"/>


</p:panelGrid>

</p:outputPanel>
</p:dialog>
<!--fin dialog-->
</p:commandButton>
</p:outputPanel>
</p:ring>

<!--dialog-->
<p:dialog header="Membre Info" widgetVar="carDialog" modal="false" showEffect="fade" hideEffect="fade" resizable="false" width="400" closeOnEscape="true">
<p:outputPanel id="carDetail" style="text-align:center;" layout="block">
<p:panelGrid columns="2" rendered="#{not empty canalService.selectedCanal}" columnClasses="value">
<f:facet name="header">
<p:graphicImage name="6a00e554e5b1be88330115704c221b970b-120wi.jpg" library="images" />
</f:facet>

<h:outputText value="Canal:" />
<h:outputText value="#{canalService.selectedCanal.name}" />

<h:outputText value="Description" />
<h:outputText value="#{canalService.selectedCanal.name}" />

<p:commandButton value="Rejoindre le canal" action='#{controllerCanal.rejoindreUnCanal("#{canalService.selectedCanal}")}' ajax="false" id="rejoindreUnCanal"/>


</p:panelGrid>

</p:outputPanel>
</p:dialog>
<!--fin dialog-->
</h:form>


dans le dernier bouton, j'ai un problème dans "ACTION" la syntaxe est incorrecte je crois. "controllerCanal " est un managedBean et "rejoindreUnCanal" est une methode de ce bean. et "canalService" est un Managedbean et "selectedCanal" est une property of this bean (dans le premier bean j'ai défini la methode "rejoindreUnCanal(Canal c)" ). le probleme est que catte action n'est pas correcte. et l'éditeur me dit que cette méthode est inconnue.

votre aide svp, j'en ai vraiment besoin.