Looks like you did the correct thing. I'd check with the debugger that your contribute method is being invoked, then many put a break point inside SaxTemplateParserImpl as well.
On Fri, Mar 11, 2011 at 10:43 PM, Kartweel <r...@exemail.com.au> wrote: > Hi, > > I have a mobile web application using the doctype <!DOCTYPE html PUBLIC > "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" > "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">. On the first > page request the application hangs for several hours before it will send a > response. It used to only take several seconds (about 20 seconds), but I am > assuming something has happened in the cosmos causing the dtd not to > download correctly. If I remove this doctype and use a standard one then the > application works correctly (but doesn't render correctly in a mobile > browser). > > So I have tried contributing to the template parser so it uses a local copy > of the DTD, but it doesn't seem to make any difference (I am assuming I am > not contributing it correctly). I am having a hard time finding any > documentation on this. > > My code is: > > public static void > contributeTemplateParser(MappedConfiguration<String, URL> config) > { > config.add("-//WAPFORUM//DTD XHTML Mobile 1.0//EN", > AppModule.class.getResource("xhtml-mobile10.dtd")); > } > > I have put the dtd in the same folder as the AppModule class. > > Any help would be appreciated. > > Thanks, Ryan > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/T5-Page-Doctype-Causing-Application-to-Hang-tp3445827p3445827.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org