Bonjour,

j'aimerais appeler dans une page .xhtlm, une méthode " getconnection" dans ma classe ManagedBeanO.java

code welcome.xhtml:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core">
 
<ui:composition template="/WEB-INF/templates/BasicTemplate.xhtml">
    <ui:define name="content">
        <h:outputLabel value="Welcome #{ManagedBeanO.getConnection(#{ManagedBeanO.host}, #{ManagedBeanO.port}, #{ManagedBeanO.baseName}, #{ManagedBeanO.user}, #{ManagedBeanO.mdp})}"></h:outputLabel>
    </ui:define>
</ui:composition>
</html>
l'erreur est :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
Syntax error in EL
Expression must be a value expression but is a methode expression