Data from inputText within popup is not saved
---------------------------------------------

         Key: TOMAHAWK-536
         URL: http://issues.apache.org/jira/browse/TOMAHAWK-536
     Project: MyFaces Tomahawk
        Type: Bug

  Components: Popup  
    Versions: 1.1.5-SNAPSHOT    
 Environment: JBoss 4.0.4.GA
MyFaces 1.1.3
Tomahawk+Sandbox 1.1.5.snapshot
    Reporter: RD


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="#{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>
                        </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="#{node.description}"/>
                                                <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>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to