[facelets] protection des champs
Bonjour
Je vous plante le décors
- JBoss 4.0.4
- Framework JBoss Seam 1.0.1
- JSF par My Faces 1.1.3
- Facelets
Fichier xhtml
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:s="http://jboss.com/products/seam/taglib"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/js"
xmlns:h="http://java.sun.com/jsf/html"
template="./layout/main_template.xhtml">
<h:form id="formTextEditor">
<div id="texteditortoolbar">
<s:validateAll>
<h:inputTextarea value="#{textobject.content}" id="content" required="true" isELIgnored="true"/>
</s:validateAll>
</div>
<div style="align:center;">
<h:commandButton type="submit" value="Par Formulaire" action="#{editoraction.save}"/>
<h:commandButton type="button" value="Par Ajax" onclick="javascript:sendTextByAjax()"/>
<br/><h:messages/>
</div>
</h:form> |
Mon problème :
Lorsque j'écrit des # dans mon champ de formulaire, ils sont interprétés comme des EL.
Apres vérification, les #{} sont anti-slashés, mais les # posent tjs problèmes.
J'ai essayé l'attribut isELIgnored, mais ça ne fonctionne pas pour un champ donné.
l'erreur :
Code:
1 2
|
Error calling action method of component with id formTextEditor:_id10 |
Merci d'avance