Probably not the /best/ solution to your dilemma, but, /one/ solution would be to go ahead and make the duplicated html a component, but just change the bindings. Rather than something like: "ognl:someProperty", you would do "ognl:page.someProperty".
Alternatively (and I like this a little better, because it's more explicit in stating: I will be accessing page properties), is to make your component, and define one of this parameters to be of type IPage, or of your superclass, or whatever. Then you can include the component and pass in your page. You'll still have to tweak the bindings in the redundant html. Either way, I think you're looking at a faster, and probably cleaner, solution than trying to include template html statically... I think you may run into issues there since the components included in the static-dynamic template aren't going to be part of the component tree... Any thoughts on this from anybody else? Robert Dan Adams wrote: > well, this is just a very specific situation when refactoring out to a > component actually isnt the best way of avoiding duplicated html/code. > The java code behind it is in superclass that is a page class and if I > pull it out into a component I loose a lot of what's in place in my page > classes. > > On Fri, 2005-10-14 at 13:46 -0700, Robert Zeigler wrote: > >>I've never personally used the delegator component. >>Q: Why do you not want to make the html a component? >> >>Robert >> >>Dan Adams wrote: >> >>>Yeah, I want to html to be included and processed as it were in the >>>original page. How do you do this with delegator? >>> >>>On Thu, 2005-10-13 at 15:39 -0700, Robert Zeigler wrote: >>> >>> >>>>Depends on whether you want tapestry to process the html or not. >>>>Somebody mentioned the delegator, which may handle the case where the >>>>text being included contains tapestry components, etc. >>>>In the case where you're dealing with a .html that does /not/ utilize >>>>any "tapestry-isms", you can try "Include" from tassel. >>>>Something like: >>>><div jwcid="@incl:Include" file="ognl:assets.myHtmlFile"/> >>>> >>>>Robert >>>> >>> >>> >>> >>> >>>--------------------------------------------------------------------- >>>To unsubscribe, e-mail: [EMAIL PROTECTED] >>>For additional commands, e-mail: [EMAIL PROTECTED] >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
