J'ai eu une erreur quand j'ai inséré un code JSF dans un code java script

function afficherMessage(){
alert(<h:outputText value="#{msgs.info}"/>);
}