You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by RR DD <ra...@yahoo.fr> on 2006/07/10 18:40:16 UTC
Data from inputText within popup is not saved
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
RE : Re: RE : Re: Data from inputText within popup is not saved
Posted by ud...@yahoo.fr.
--- Mario Ivankovits <ma...@ops.co.at> a écrit :
> Ok, so now lets open a jira ticket for this ;-)
http://issues.apache.org/jira/browse/TOMAHAWK-536
___________________________________________________________________________
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.
http://fr.mail.yahoo.com
Re: RE : Re: Data from inputText within popup is not saved
Posted by Mario Ivankovits <ma...@ops.co.at>.
Hi!
> It does not work even if I delete the second
> inputText.
Ok, so now lets open a jira ticket for this ;-)
Ciao,
Mario
RE : Re: Data from inputText within popup is not saved
Posted by ud...@yahoo.fr.
Hi Mario
--- Mario Ivankovits <ma...@ops.co.at> a écrit :
> In real live, are the both inputText at the same
> time in your view?
Yes, they are. Well, the popup appears when hovering
over the node.
> If this is the case, then this might be the reason
> whats wrong. I think
> JSF cant know which of both fields hold the "wanted"
> value.
It does not work even if I delete the second
inputText. (Actually, the original JSF page had only
the inputText within the popup; I have inserted the
second inputText only when I have observed that the
first does not work.)
Regards,
Radu
___________________________________________________________________________
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.
http://fr.mail.yahoo.com
Re: Data from inputText within popup is not saved
Posted by Mario Ivankovits <ma...@ops.co.at>.
Hi!
> 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?
>
In real live, are the both inputText at the same time in your view?
If this is the case, then this might be the reason whats wrong. I think
JSF cant know which of both fields hold the "wanted" value.
Hmmm .... I have no idea how to workaround this limitation, maybe you
can use two different properties and decide on server side which of both
to use.
Ciao,
Mario