[JET] How to load a java file with a fully qualified name? [message #664185] |
Thu, 07 April 2011 14:50  |
Eclipse User |
|
|
|
Hi,
I know we can use the c:load tag to load a (java) model, but the problem is that we have to specify its physical address (relative to workspace or a project). What if I have a fully qualified name, and I know this java file is somewhere in an Eclipse project? Its physical address in the project may be different from project to project, but it is on the classpath of the project.
Does anyone know how to do this?
Thanks,
William
|
|
|
|
|
|
Re: [JET] How to load a java file with a fully qualified name? [message #664949 is a reply to message #664240] |
Tue, 12 April 2011 11:02  |
Eclipse User |
|
|
|
William:
Several things might be going wrong.
1) The tag isn't imported into the template. Two ways to do this:
i) an <%@taglib %> directive, with the fully qualified id of the tag library (plugin-id + '.' + id-used-in-the-declaring-plug.xml)
ii) import the tag library (with the same id as above) via the hosting JET project's plugin.xml. Need an 'importLibrary' tag with the autoImport attribute set to 'true'.
2) You developed your tag in a separate plug-in project (from the JET project), and you are trying to run the JET project from the workspace. This won't work. JET does some magic to load the JET project out of the workspace - it does not extend this ability to referenced plug-ins. The solution? Launch a runtime workbench that includes both the JET project and the plug-in project defining the tag, and test from there. OR, declare the tag in the sample plug-in as the JET templates
Paul
|
|
|
Powered by
FUDForum. Page generated in 0.03531 seconds