IComponentSpecification spec = new ComponentSpecification(); spec.setComponentClassName(CommonPage.class.getName());
Resource componentResource = ??? how to instanciate a resource and fill it with a String retrieved from a database ??? spec.setSpecificationLocation(componentResource); AssetSpecification template = new AssetSpecification(); ??? how to fill the asset with a String retrieved from a database ??? template.setLocation(new DescribedLocation(spec.getSpecificationLocation(), "")); spec.addAsset("$template", template); Any idea ? D. 2006/12/1, Tapestry User List <[EMAIL PROTECTED]>:
Hi, I would like retrieve a tapestry specification definition (.page) and the template (.html) from a database. For doing that, I create a class that implements ISpecificationResolverDelegate . The method findPageSpecification must return a IComponentSpecification. So I instanciate a ComponentSpecification object. The problem is: how can I fill my componentSpecification object with the .page content (xml) and .html content retrieved from a database ? Thank you very much, D.