Didier, I'm curious about your reasoning behind putting a simple HTML file into a database vs. leaving it as an HTML file like most Tapestry apps. Unless the designer is just completely denied access to the HTML file, I wouldn't think it'd be necessary to do this - one of the ideas behind separating presentation from the logic behind it is so that a designer could work on the HTML code, which may not be your specialty (I know it's not mine).
--Phil Ulrich On 10/27/05, Didier Frund <[EMAIL PROTECTED]> wrote: > Hi Dario, > > That would be greet to use the IMarkupWriter. Unfortunately, the content of > the database could be filled with a template like: > > ...(html tags)... > <span jwcid="@MyComponent" /> > ...(html tags)... > > > Now then, if I use the IMarkupWriter, it seems that the components holded in > the template (@MyComponent in the example above) will only be interpreted as > simple html tag. That's the problem. > > Didier > > > Well, I guess you could build a component that would extract its > contents from a database... I mean, retrieve the file from the > database, and then use the IMarkupWriter (in TP3) to output the HTML. > I still think it's easier to do a similar thing without the database, > using @RenderBlock or another of the solutions that have been > discussed on this list. > > Regards, > > > On 10/27/05, Didier Frund <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I'm developing an application with tapestry that uses the @Border > component. > > The template of this @Border component must be saved in an html file in > the > > WEB-INF folder of the application. > > > > I'd like to put this html file outside the application (basically in a > > database system) in order to be edited at any time by a designer. > > (Furthermore, one could choose between a list of different templates for > the > > same @Border component.) > > > > My question is: Is it possible to save an html template outside the > tapestry > > application? > > > > I think this feature is not possible with tapestry if I'm not mistaken. > What > > do you think? > > > > Thank you, > > > > Didier Frund > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > An expert is a person who has made all the mistakes that can be made > in a very narrow field. > Niels Bohr > > --------------------------------------------------------------------- > 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]
