Tree2 inputtext values are null
-------------------------------

                 Key: TOMAHAWK-997
                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-997
             Project: MyFaces Tomahawk
          Issue Type: Bug
          Components: Tree2
    Affects Versions: 1.1.1
         Environment: windows, jboss, java5,  myfaces1.1
            Reporter: VENKAT VARADARAJAN


In our code we get display multiple products and availble qty each node is 
identified by assignpool variable, with option to purchase more in tree2. Code 
is as below.
Input text value as orderbean.quantity value and submited for further 
processing. However  on submit the qunatity is null.
I am beginner with myfaces. 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>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to