Is it possible to send parameters to the if component?
I'm in a loop component and I would like to do something like this:
<t:Tree treeid='literal:categorytree' source="treeNodes" currentNode="node">
<t:eventlink t:id="tree" t:event="SelectNode"
context="node.identifier">
<t:if test="Testj(node.identifier)">
${node.name}
<t:parameter name="else">
${node.name}
</t:parameter>
</t:if>
</t:eventlink>
</t:Tree>
And then in the java code:
boolean Testj(int nodeid){if(nodeid==nodeSelected) return true; return
false; }
Is there any way to do the trick?
--
View this message in context:
http://www.nabble.com/T5-if-component-tp17667375p17667375.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]