Bonjour ,
de nouveau avec des soucis
j'ai un composant JSF
et lorsque j'ai voulu l'utiliser dans une page de test qui elle meme contient un formulaire
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 <ui:composition> <c:if test="#{!empty sessionScope['edit']}"> <h:form id="#{id}Form"> <rich:inplaceInput id="#{id}Input" value="#{bundle[key]}" valueChangeListener="#{i18nBean.update}" onchange="document.getElementById('test:#{id}Form:#{id}Input').component.save();this.form.submit();"> <f:attribute name="key" value="#{key}"/> <f:attribute name="bundleName" value="#{bundleName}"/> </rich:inplaceInput> </h:form> </c:if> <c:if test="#{empty sessionScope['edit']}"> <h:outputLabel id="#{id}Label" value="#{bundle[key]}"> <ui:insert/> </h:outputLabel> </c:if> </ui:composition>
ça fonctionne pas .
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 <h:form id="test"> <h:commandLink value="Editer" actionListener="#{sessionBean.goEditMode}"/> <h:commandLink value="Prévisualiser" actionListener="#{sessionBean.quitEditMode}"/> <h:commandButton value="submit" actionListener="#{naviEx.submit}"/> <h:inputText value="#{naviEx.selectedMovie.title}"> <i18n:label id="director" key="director" bundle="#{kmji18n}" bundleName="kmji18n"/> </h:inputText> </h:form> </body>
J'ai cherché sur le net et j'ai trouvé qu'on doit pas utilser un formulaire imbriqué dans un autre (c'est une specification de html/xhtml) je sais pas s'il y aura un moyen de résoudre ce problème alors.
Merci d'avance
Partager