Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.1.4-SNAPSHOT
-
None
-
None
-
JBoss 4.0.4.GA
MyFaces 1.1.3
Tomahawk+Sandbox 1.1.5.snapshot
Description
When modifying the node description using the inputText (the one from the popup) and pressing "Submit", the description is not saved to the bean.
<%@ 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="#
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>
</h:panelGroup>
</f:facet>
</t:tree2>
</h:form>
I have removed the popup and placed the inputText directly on the form; the description does get saved to the bean:
<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">
<h:outputText value="#
<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}
" id="descr"/>
<h:outputFormat value="Submit -> "/>
<h:commandButton value="Submit"/>
</h:panelGrid>
</h:panelGroup>
</h:panelGroup>
</f:facet>
</t:tree2>
</h:form>