You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Joel Trunick <jo...@webifysolutions.com> on 2004/07/23 23:00:07 UTC

Component parameters - Dynamic access

I was trying to dynamically load a Tapestry component and read its
available bindings. I tried this and it didn't work. How would I do
this?

        IResourceResolver rr = new DefaultResourceResolver();
        SpecificationParser sp = new SpecificationParser(rr);
        IResourceLocation rl = new ClasspathResourceLocation(rr,
"org.apache.tapestry.components.Foreach");
        IComponentSpecification cs = sp.parseComponentSpecification(rl);
        List list = cs.getParameterNames();
        Iterator iter = list.iterator();
        while (iter.hasNext()) {
            System.out.println(iter.next());
        }

J


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org