> -----Original Message----- > From: Joe Germuska [mailto:[EMAIL PROTECTED]> Right now, if you accidentally enter a > bogus form name in the > html:javascript tag, it omits the wrapping <script> tags, but prints > all the javascript anyway. > > This doesn't seem right, but for some reason I have a feeling that > the solutions I'm thinking of are a bit contentious, so rather than > just change it, I thought I'd test the waters. > > My first thought was to print an HTML comment, something like > <!-- No form 'formName' found in 'formSet' --> > > But I think some people might not like that. Alternatives include > throwing a JSPException; logging a warning and returning quietly, or > doing something more in-your-face that would actually be visible, as > opposed to in a comment. Part of me really likes the last because > this is something that should only ever happen during development > time, and the current spew of javascript is certainly in-your-face, > but...
I am all for in-your-face. Tapestry has sort of a built in debugging web page that gives all sorts of stats, on your running web app. The least we can do is Blow up in a loud usefull way. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]