Hi,
I'm actually evaluating the JSF-Controls for our Product, so I'm not very experienced with NetAdvantage.
Is there a way to call clientside Javascript-functions when an item is getting selected in a treeView.
I managed it to define some ActionListeners in my ControllerBeanfor my treeNodes, but I can't call any JS-Functions.
ELContext elContext = context.getELContext(); MethodExpression exprActionListener = application.getExpressionFactory().createMethodBLOCKED EXPRESSION.
Thanks in advance ,Mike
Hello Mike,
Have you tried this with version 9.1 of NetAdvantage. The new CSOM feature has been introduced for this and I hope you can definitely do this using it. You can have a look for this feature by following sample at NetAdvantage site:
http://java.samples.infragistics.com/NetAdvantage/JSF/2009.1/featurebrowser/webtree/csom/index.faces
Roshan.
Hello Roshan,
first of all thanks four your answer. This is exactly what I needed, if it would work :-).
Here is what I have done:
Before I had this in my jsp-page:
<ig:treeView dataKeyName="name" pageSize="5" dataSource="#{editDeviceTree.nodes}"> </ig:treeView>
This did show me the nodes in the way I wanted them. When I now insert the Client Event tag, the tree disappears completely on my rendered page:
<ig:treeView dataKeyName="name" pageSize="5" dataSource="#{editDeviceTree.nodes}"> <ig:treeViewClientEvents id="testid" nodeExpanded="nodeExpanded"/> </ig:treeView>
On the other hand, when I try the CSOM feature with the datechooser-Example of the developersGuide, it works fine and the javascript-function gets called.
<ig:dateChooser> <ig:dateChooserClientEvents popupOpening="nodeExpanded"/> </ig:dateChooser>
Do you have an idea why it does not work with the tree?
Thanks,
Mike