When modifying the node description using the first inputText (the one from the popup) and pressing "Submit", the description is not saved to the bean. When modifying the node description from the second inputText, it is saved. What is wrong?
<%@ page contentType="text/html; charset=ISO-8859-1" %> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> <%@ taglib uri="http://myfaces.apache.org/sandbox" prefix="s"%> <%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %> <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%> <h:form id="treedemoForm"> <t:tree2 id="mytree" value="#{treedemo.treeData}" var="node" varNodeToggler="t" clientSideToggle="true"> <f:facet name="normal"> <h:panelGroup id="mypanelgroup"> <t:popup styleClass="popup" closePopupOnExitingElement="true" closePopupOnExitingPopup="true" displayAtDistanceX="1" displayAtDistanceY="1"> <h:outputText value="#{node.description}"/> <f:facet name="popup"> <h:panelGroup> <h:panelGrid columns="2" align="left" styleClass="gridTable" cellpadding="5" cellspacing="0" columnClasses="gridLabelColumn,gridInputColumn,gridErrorColumn"> <h:outputText value="Descr"/> <h:inputText value="#{node.description}" /> <h:outputFormat value="Submit -> "/> <h:commandButton value="Submit"/> </h:panelGrid> </h:panelGroup> </f:facet> </t:popup> <t:commandLink value="AddNode" action="#{treedemo.addNode}"> <t:updateActionListener property="#{treedemo.activeNode}" value="#{node.identifier}" /> </t:commandLink> <h:panelGrid columns="2" align="left" styleClass="gridTable" cellpadding="5" cellspacing="0" columnClasses="gridLabelColumn,gridInputColumn,gridErrorColumn"> <h:outputText value="Descr"/> <h:inputText value="#{node.description}" /> <h:outputFormat value="Submit -> "/> <h:commandButton value="Submit"/> </h:panelGrid> </h:panelGroup> </f:facet> </t:tree2> </h:form> ___________________________________________________________________________ Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire. http://fr.mail.yahoo.com