Hi,
 In fact i have message in faceContext.
I have modified <f:convertNumber/> by <f:converter
converterId="javax.faces.Long"/>

The last message i have : 
Parsed Expression of unsupported type for this operation. Expression class:
org.apache.commons.el.ExpressionString. 
Expression: ' #{ node.selection }' 


I don't inderstand what it mean.

Many thanks,
Igor


-----Message d'origine-----
De : Igor devor 
Envoyé : lundi 28 août 2006 17:51
À : 'MyFaces Discussion'
Objet : dynamic form problem

Hi,
 
    I have a many form included in a t:tree2 :
    
<t:tree2 imageLocation="/images" id="ProdTree" value="#{Builder.tree}"  
                                                var="node" 
                                                varNodeToggler="t" 
                                                showLines="true" 
                                                showRootNode="false" 
                                                showNav="false" 
                                                clientSideToggle="false"
                                                >
                <f:facet name="ensemble">
                    <h:panelGroup>
                        <h:outputText value="#{node.description}"/>
                                <f:verbatim><br/></f:verbatim>
                                <h:form>
                                        <h:panelGroup
rendered="#{node.isRendered }">
                                                <t:selectOneMenu value=" #{
node.selection }">
                                                <f:selectItems  value="#{
node.selectItemListe }" />
                                                <f:convertNumber/>
                                        </t:selectOneMenu>
                                        <h:commandLink action="#{
node.action }" >
                                                <h:outputText
value="+Add+"/>
                                        </h:commandLink>
                                    </h:panelGroup>
                        </h:form>
                    </h:panelGroup>
                </f:facet>
             <f:facet other facet ../>
</t:tree2>
 
Well, when "add" link is click node.setSelection() is never call. Nor
node.action().
If I remove the <form> tag setSelection is call, but with null parameter (
but the good parameter is in FaceContext ).
node.action() is not call either.
With fixed id it does'nt work either.

What is the mistake ?
Is it possible to do this sort of dynamic form ?

Many thanks,
Igor



Reply via email to