If someone can give me an overview of how smith is built and how tags are added, I've got a pojo that does all the heavy lifting for CFDOCUMENT... it's just a matter of interfacing the HTML/PDF rendering pojo to the tag parsing code.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How to implement new ColdFusion(R) tag in Smith:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
In most cases it is needed to perform the following steps:
* Create on <project_root>src/web/src/com/youngculture/smith/translator/handlers/taghandle class named Cf<tag_name_in_lowercase>TagHandler.java which extends TagHandler class and implements translate(Node node) method. This class recognizes the tag during translation.
* create tag implementation class on <project_root>src/web/src/com/youngculture/smith/engine/tagimpl which extends AbstractTagImpl class and implements doTag() method and optionally validate() method.
* write appropriate Java template in the templates file <project_root>src/web/src/com/youngculture/smith/_config_files/templates.cfg
* delete the folder WEB-INF/_smithwork
NOTE: the best way is to check how some other tag is implemented, say CFAPPLICATION. Check: CfapplicationTagHandler class, ApplicationTagImpl class and ********** application definition in templates.cfg file.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=1762024
Originator: YES
once upon a time, Shannon Hicks said "charting should be easy enough to accomplish using Flex 2"
Logged In: NO
a vote for cfdocument
Jón Gaasedal
Logged In: NO
If someone can give me an overview of how smith is built and how tags are added, I've got a pojo that does all the heavy lifting for CFDOCUMENT... it's just a matter of interfacing the HTML/PDF rendering pojo to the tag parsing code.
Logged In: NO
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
for startup with smith, please check http://smithos.svn.sourceforge.net/viewvc/smithos/docs/
you can always ask for help at contact@smithproject.org
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
How to implement new ColdFusion(R) tag in Smith:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
In most cases it is needed to perform the following steps:
* Create on <project_root>src/web/src/com/youngculture/smith/translator/handlers/taghandle class named Cf<tag_name_in_lowercase>TagHandler.java which extends TagHandler class and implements translate(Node node) method. This class recognizes the tag during translation.
* create tag implementation class on <project_root>src/web/src/com/youngculture/smith/engine/tagimpl which extends AbstractTagImpl class and implements doTag() method and optionally validate() method.
* write appropriate Java template in the templates file <project_root>src/web/src/com/youngculture/smith/_config_files/templates.cfg
* delete the folder WEB-INF/_smithwork
NOTE: the best way is to check how some other tag is implemented, say CFAPPLICATION. Check: CfapplicationTagHandler class, ApplicationTagImpl class and ********** application definition in templates.cfg file.
Logged In: YES
user_id=539224
Originator: NO
CFDocument has been implemented, and is sitting in the Patches Tracker.