You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by jqzone <jq...@gmail.com> on 2011/08/21 02:55:06 UTC
How can I add media="screen" to tapestry build in css,such as
default.css,tapestry-console.css...I'm using tapestry 5.2.6
thanks!
Re: How can I add media="screen" to tapestry build in css,such as
default.css,tapestry-console.css...I'm using tapestry 5.2.6
Posted by Taha Hafeez <ta...@gmail.com>.
http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/services/ClientInfrastructure.html
On Sun, Aug 21, 2011 at 6:35 AM, jqzone <jq...@gmail.com> wrote:
> thanks for reply.
> I know how to add my own stylesheet like this.
> Now I want to know how to add this with tapestry build in
> default.css, core/tapestry-console.css
>
> On Sun, Aug 21, 2011 at 9:00 AM, Taha Hafeez <ta...@gmail.com>wrote:
>
>> @Environmental
>> private JavaScriptSupport javaScriptSupport;
>>
>> @Inject @Path("context:layout/mycss.css")
>> private Asset mycss;
>>
>> void afterRender() {
>> javaScriptSupport.importStylesheet(new StylesheetLink(mycss, new
>> StylesheetOptions("screen", null)) );
>> }
>>
>>
>> On Sun, Aug 21, 2011 at 6:25 AM, jqzone <jq...@gmail.com> wrote:
>> > thanks!
>> >
>>
>>
>>
>> --
>> Regards
>>
>> Taha Hafeez Siddiqi (tawus)
>> http://tawus.wordpress.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
--
Regards
Taha Hafeez Siddiqi (tawus)
http://tawus.wordpress.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: How can I add media="screen" to tapestry build in css,such as
default.css,tapestry-console.css...I'm using tapestry 5.2.6
Posted by jqzone <jq...@gmail.com>.
thanks for reply.
I know how to add my own stylesheet like this.
Now I want to know how to add this with tapestry build in
default.css, core/tapestry-console.css
On Sun, Aug 21, 2011 at 9:00 AM, Taha Hafeez <ta...@gmail.com>wrote:
> @Environmental
> private JavaScriptSupport javaScriptSupport;
>
> @Inject @Path("context:layout/mycss.css")
> private Asset mycss;
>
> void afterRender() {
> javaScriptSupport.importStylesheet(new StylesheetLink(mycss, new
> StylesheetOptions("screen", null)) );
> }
>
>
> On Sun, Aug 21, 2011 at 6:25 AM, jqzone <jq...@gmail.com> wrote:
> > thanks!
> >
>
>
>
> --
> Regards
>
> Taha Hafeez Siddiqi (tawus)
> http://tawus.wordpress.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: How can I add media="screen" to tapestry build in css,such as
default.css,tapestry-console.css...I'm using tapestry 5.2.6
Posted by Taha Hafeez <ta...@gmail.com>.
@Environmental
private JavaScriptSupport javaScriptSupport;
@Inject @Path("context:layout/mycss.css")
private Asset mycss;
void afterRender() {
javaScriptSupport.importStylesheet(new StylesheetLink(mycss, new
StylesheetOptions("screen", null)) );
}
On Sun, Aug 21, 2011 at 6:25 AM, jqzone <jq...@gmail.com> wrote:
> thanks!
>
--
Regards
Taha Hafeez Siddiqi (tawus)
http://tawus.wordpress.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org