Nathan Bubna <[EMAIL PROTECTED]> wrote: > > I tried to extend StrutsLinkTool for a different task, but all of the > > LinkTool uri components are declared private. > > hmm. you'll have to do a *lot* of convincing to get me to change this. the > LinkTool was very carefully designed to be extensible while still ensuring it > will behave in a particular way.
Re-reading what I wrote, my comment was more extreme than what was needed. Providing a getAnchor() either publicly or privately would be sufficient. It also would have provided nice symmetry with setAnchor(). > can you give more explanation of this > "different task"? perhaps there is another way to solve your problem. I'm not sure if you've followed any of the various emails I've posted to the struts mailing list about a possible "page state cache" implementation, but last week, I finished implementing it. http://www.mail-archive.com/[EMAIL PROTECTED]/msg79816.html This involved modifying the URL generated by the StrutsLinkTool under certain conditions while preserving parts of the original URL. However, since the anchor portion of the URL is always sent to the client under all conditions, my subclass had to either reimplement the full functionality of toString() or decompose the output of toString() in order to get at the anchor piece. If my employer allows, I'll announce a release next week on the Struts mailing list. > hope you don't mind me CCing this to the velocity-dev list. i think this > would be a useful conversation to carry on there where others might have > valuable input or have similar questions/problems. i'd be happy to discuss > ways we can improve the tools and their extensibility in that forum. :) No, that's a good idea, but I already receive 300+ messages a day from user Struts + user Velocity + user/dev Cayenne, and I think joining yet another mailing list just to post one comment will probably be the death of me. (-: I'm sure my cc to the list will bounce, but please feel free to repost it if you feel it's something worthwhile. Sorry I can't contribute more right now. When things calm down a bit (one of my clients went live this weekend) and I've used Velocity a bit more extensively beyond just generating html, email and java classes, I'll probably join velocity-dev and discuss adding some of the nicer MiscMerge Objective C template engine features, like support for configurable delimiters around directives and expressions. ================================================ delimiters This option is followed by two parameters, which specify a starting and ending delimiter. The rest of the template will be processed using these delimiters. Be aware that the command itself must end with the delimiter that was in use before this command was called. For instance if { and } are the starting and stopping delimiters, ie: {option delimiters ( )} ================================================ Official site: http://www.misckit.com/Documentation/IntroMiscMergeKit.htmld/ Only place I know still distributing MiscMerge 2.0.6 http://www.rubicode.com/Software [any source package for EOGenerator, EOReport, or TGen] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
