You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by psvk <vv...@hotmail.com> on 2007/05/18 18:49:32 UTC

Tree2 Inputtext is null on submit

My code is as below. Displaying product and available quantity to purchase
more. when the quantity field is entered it is captured as
orderbean.quantity for processing, however that value turns out to be null.
I am beginner, please advise what I am doing wrong

<%@ taglib uri="../WEB-INF/myfaces_html.tld" prefix="h" %>
<%@ taglib uri="../WEB-INF/myfaces_core.tld" prefix="f" %>
<%@ taglib uri="../WEB-INF/tomahawk.tld" prefix="t" %>
<t:tree2 imageLocation="img" id="serverTreePool" value="#{myBean.poolTree}"
var="node" clientSideToggle="true">
	<f:facet name="PoolRoot">
		<h:panelGroup>
			<h:outputText value="#{node.description}" /> 
		</h:panelGroup>
	</f:facet>
	<f:facet name="PoolReport">
		<h:panelGroup>
			<h:panelGrid columns="2" rowClasses="row1, row2">
				<h:outputText value="Product" />
				<h:outputText value="Available Quantity" />
				<h:outputText value="#{node.description}" />
				<h:outputText value="#{node.quantity}" />
				<h:outputText value="Want More ?" />
				<h:outputText value="Additional Quantity" />
				<h:commandButton value="Purchase"
action="#{orderController.updatePool}">
				<t:updateActionListener property="#{myBean.assignPool}"
value="#{node.profileTypeId}" />
				</h:commandButton>
				<h:inputText id = "quantity1" value="#{orderBean.quantity}"/> 
				<f:facet name="footer">
					<f:verbatim><hr></f:verbatim>
				</f:facet>
			</h:panelGrid>
			
		</h:panelGroup>
	</f:facet>
</t:tree2>
-- 
View this message in context: http://www.nabble.com/Tree2-Inputtext-is-null-on-submit-tf3778896.html#a10686069
Sent from the MyFaces - Users mailing list archive at Nabble.com.