Re: Tapestry-5.4-alpha-2 css overriding

2013-02-09 Thread Lance Java
If I was to take a guess, it would be the new usage of require.js in tapestry
5.4. Tapestry has defined a bootstrap module. You might need to define a
module which depends on the bootstrap module to guarantee that yours is
loaded after bootstrap.

As I said, this is a guess... I've not yet dug too far in this area yet
myself.



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-5-4-alpha-2-css-overriding-tp5719856p5719904.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



Re: Tapestry-5.4-alpha-2 css overriding

2013-02-09 Thread Steve Eynon
There are few T5.4-a2 components (that I seem to use) that pull in the
core stack which then imports the bootstrap.css. Alerts is one of
them, which I've Munky Patched not to. You're then free to import
whatever CSS you want in whatever order as per usual.

Another option (which I also do to keep the exception screens looking
pretty) is to define your own Bootstrap asset dir:

@Contribute(SymbolProvider.class) @ApplicationDefaults
public static void
contributeApplicationDefaults(MappedConfigurationString, String
config) {
// use a newer version of bootstrap
config.add(SymbolConstants.BOOTSTRAP_ROOT,
classpath:/META-INF/assets/bootstrap-2.2.2);
}

Steve.



On 9 February 2013 20:54, Lance Java lance.j...@googlemail.com wrote:
 If I was to take a guess, it would be the new usage of require.js in tapestry
 5.4. Tapestry has defined a bootstrap module. You might need to define a
 module which depends on the bootstrap module to guarantee that yours is
 loaded after bootstrap.

 As I said, this is a guess... I've not yet dug too far in this area yet
 myself.



 --
 View this message in context: 
 http://tapestry.1045711.n5.nabble.com/Tapestry-5-4-alpha-2-css-overriding-tp5719856p5719904.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


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



Re: Tapestry-5.4-alpha-2 css overriding

2013-02-09 Thread Lance Java
FYI, I found it necessary to add the following to my Layout component
@Import(stack=core)

Otherwise the bootstrap CSS was only included if I had a t:alerts / on my
page.



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-5-4-alpha-2-css-overriding-tp5719856p5719906.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



Re: Tapestry-5.4-alpha-2 css overriding

2013-02-08 Thread Lance Java
Note that @Import does not need to be used at the class level. You can
specify @Import on one of the later render phases, eg: afterRender()



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-5-4-alpha-2-css-overriding-tp5719856p5719863.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



Re: Tapestry-5.4-alpha-2 css overriding

2013-02-08 Thread Matías Blasi
Thanks guys, but I tried both with no success.
My custom.css is loaded first in any case

Is there any change on this in 5.4-alpha-2? I am used to override
default.css definitions with a custom.css in 5.3.x through @Import with no
problem.

Regards,
Matías.

Saludos,
Matias.


On Thu, Feb 7, 2013 at 5:23 PM, Matías Blasi matias.bl...@gmail.com wrote:

 Hi all,

 I'm using Tapestry-5.4-alpha-2 in a new project, and I am not beeing able
 to override some bootstrap.css definitions.

 I'm @Importing my custom stylesheet in my Layout component, but it
 included before bootstrap one, and the bootstrap.css overrides mine...

 How could I override bootstrap.css styles?

 Regards,
 Matias.



Tapestry-5.4-alpha-2 css overriding

2013-02-07 Thread Matías Blasi
Hi all,

I'm using Tapestry-5.4-alpha-2 in a new project, and I am not beeing able
to override some bootstrap.css definitions.

I'm @Importing my custom stylesheet in my Layout component, but it included
before bootstrap one, and the bootstrap.css overrides mine...

How could I override bootstrap.css styles?

Regards,
Matias.


Re: Tapestry-5.4-alpha-2 css overriding

2013-02-07 Thread René Bernhardsgrütter
Hi Matias,

does it work, if you include the stylesheet manually via

link type=text/css rel=stylesheet href=${context:to/stylesheet.css}/

at the end of the HTML head?
I'm not yet using T5.4, so I don't know if this works, but you could
try, just as workaround for the moment.

René

On 07.02.2013 21:23, Matías Blasi wrote:
 Hi all,

 I'm using Tapestry-5.4-alpha-2 in a new project, and I am not beeing able
 to override some bootstrap.css definitions.

 I'm @Importing my custom stylesheet in my Layout component, but it included
 before bootstrap one, and the bootstrap.css overrides mine...

 How could I override bootstrap.css styles?

 Regards,
 Matias.