My preference would be for the first option, and then if I want to add my own default CSS then I could contribute a service similar to the one used currently for the Tapestry default.css or by some other means.
My desire to not use the default.css is not due to any bugs with the Tapestry CSS, but rather that the base tapestry components in the context of the application I am developing need to closely match their surroundings. I am happy to contribute any fixes I find in the Tapestry default.css. The client side validation on blur sounds very interesting. I was thinking that another type of validation for the form might be allowed through Ajax. A JavaScript event listener on the forms submits would trigger an Ajax call to some action in the form component that returns the error component (as a zone replacement?) when validation fails, or continues with the form submit if it passes validation. The only real savings here is that the user does not have to suffer through a page refresh if validation fails (when client validation is disabled). This might be useful in the case where the validation of a field is hard to mimic in the Tapestry.Validator JavaScript (does JavaScript's regex implementation map one to one to Java's regex?). Adam -----Original Message----- From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] Sent: Thursday, November 29, 2007 5:01 PM To: Tapestry users Subject: Re: T5: How to remove default.css? There's two options: 1) Add a configuration value that would turn off the contribution of default.css. Your page (or layout component) would then provide appropriate CSS. 2) Allow replacement of default.css with some other file (or files?). What do people think is the best option? I'd prefer, personally, that people help with default.css, fixing any problems (such as the issue with IE). On a related note ... I've put a big experiment into place just now, with fields validating as you tab out of them, and using a kind of popup bubble to identify the error. It's really neat, though it may need some tweaking for cases where there are a huge number of errors on the page. I'm still working on the graphics for the popup bubble and related styles (in default.css). On Nov 29, 2007 12:34 PM, Daniel Jue <[EMAIL PROTECTED]> wrote: > This would be very nice. I understand the "usable defaults" point of > view, but sometimes I'd rather not deal with default.css raising it's > head during development. Maybe there is a way to configure default > assets in the AppModule? That way we could just change the default > contribution that would come with the Tapestry jar. > > Daniel > > > On Nov 29, 2007 3:07 PM, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > > Not sure if there is an easy way to do it as I don't know the codebase > > well enough but I would second the opinion that this should be made > > very easy / obvious to do... > > > > (for people that don't care they don't care, but for people that do > > they will care a ~lot~) > > > > > > On Nov 29, 2007 2:43 PM, Adam Ayres <[EMAIL PROTECTED]> wrote: > > > I am using Tapestry 5.0.6 and would like to prevent the default.css from > > > being added to my pages. Since the default.css is contributed as a > > > service in the TapestryModule I do not see a way of preventing this from > > > being added. Please advise if there is a way to customize this? > > > > > > > > > > > > There are a couple of reasons I do not want the default CSS added: > > > > > > * I do not plan on using any of the default styles > > > * I prefer not to have to override the default styles of tapestry > > > components by contributing a style with the same selector in my CSS > > > > > > > > > > > > Thanks, > > > > > > Adam > > > > > > > > > > > > > > -- > > Jesse Kuhnert > > Tapestry / OGNL / Dojo team member/developer > > > > Open source based consulting work centered around > > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com > > > > --------------------------------------------------------------------- > > 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] > > -- Howard M. Lewis Ship TWD Consulting, Inc. Creator Apache Tapestry and Apache HiveMind --------------------------------------------------------------------- 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]