Hi,

Sorry, I hit the send button accidently.

I am trying to get the Tree component to work, but I am having some difficulty.
The root node appears with the +/- but when you click it nothing happens (the
page looks like it refreshes or something but nothing otherwise). 

Any help would be appreciated.

Thanks,
Amir


Here is what's in my .html:

<div jwcid="@Tacos:Tree" id="tree" nodeLinkAjax="ognl:true"
value="ognl:locationNode" style="overflow: auto; width: auto; height: auto;"
contentProvider="ognl:locationTreeContentProvider"><span jwcid="@Insert"
value="ognl:locationNode.name"/></div>

in my java class:

        @InjectObject("spring:locationTree")
        public abstract ILocationTree getLocationTree();

        public abstract Location getLocationNode();

        public ITreeContentProvider getLocationTreeContentProvider() {

                return new ITreeContentProvider() {

                        public Collection getChildren(Object o) {
                                final Location location = (Location) o;
                                return location.getChildren();
                        }

                        public boolean hasChildren(Object o) {
                                final Location location = (Location) o;
                                return !location.getChildren().isEmpty();
                        }

                        public Object getParent(Object o) {
                                final Location location = (Location) o;
                                return location.getParent();
                        }

                        public List getElements() {
                                final List list = new ArrayList();
                                list.add(getLocationTree().getRootLocation());
                                return list;
                        }
                };
        }





-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel

Reply via email to