You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Adam Ayres <ad...@lithium.com> on 2007/11/29 20:43:40 UTC

T5: How to remove default.css?

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


Re: T5: How to remove default.css?

Posted by Jesse Kuhnert <jk...@gmail.com>.
p.s.  That client side validation does sound pretty cool.   It'd be
neat to have the field sort of "glow red" around the edges with the
bubble popping up when you mouse over or focus it telling you what you
screwed up.

One big regret I have with t4.1 is incorporating the new client side
validation UI stuff without making it theme-able or at least not the
default....makes it much harder to create new UI related changes such
as what you are doing.

On Nov 29, 2007 8:00 PM, Howard Lewis Ship <hl...@gmail.com> wrote:
> 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 <te...@gmail.com> 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 <jk...@gmail.com> 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 <ad...@lithium.com> 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: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
>
> --
> Howard M. Lewis Ship
> TWD Consulting, Inc.
>
> Creator Apache Tapestry and Apache HiveMind
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


RE: T5: How to remove default.css?

Posted by Adam Ayres <ad...@lithium.com>.
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:hlship@gmail.com] 
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 <te...@gmail.com> 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 <jk...@gmail.com> 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 <ad...@lithium.com> 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: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship
TWD Consulting, Inc.

Creator Apache Tapestry and Apache HiveMind

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5: How to remove default.css?

Posted by Howard Lewis Ship <hl...@gmail.com>.
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 <te...@gmail.com> 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 <jk...@gmail.com> 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 <ad...@lithium.com> 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: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship
TWD Consulting, Inc.

Creator Apache Tapestry and Apache HiveMind

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5: How to remove default.css?

Posted by Daniel Jue <te...@gmail.com>.
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 <jk...@gmail.com> 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 <ad...@lithium.com> 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: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5: How to remove default.css?

Posted by Jesse Kuhnert <jk...@gmail.com>.
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 <ad...@lithium.com> 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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org