Thanks for your help guys, now I am realizing that my real problem is another one. It concerns more with the logic to know what style to load.
My app can be used in the browser (regular way) or also as a Facebook App. This means an iframe where everything is smaller, and the backgrounds need to be similar to the one in Facebook (so it looks nicer). I have done something in javascript to realize if the app is being used embebed or used "regular way". But this is reloading all the styles so I have a first sight of the default tapestry styles and then the new ones (not nice at all), and there are some problems with the components styles, so the solution is not really a good one. I am wondering if there is a css strategy or some way to load the style according to where from I am visiting the app, regular way or facebook. Thanks in advance for all your help. On Tue, Mar 27, 2012 at 4:52 AM, Lance Java <lance.j...@googlemail.com>wrote: > Tapestry uses the ImportWorker to process @Import annotations > > http://tapestry.apache.org/5.3/apidocs/src-html/org/apache/tapestry5/internal/transform/ImportWorker.html > > You could quite easily write your own annotation (and worker) to do a > similar job with your custom logic > > On Monday, 26 March 2012, Thiago H. de Paula Figueiredo < > thiag...@gmail.com> > wrote: > > On Mon, 26 Mar 2012 12:00:03 -0300, kado <juan.a...@condortech.com.ar> > wrote: > > > >> Hi, > > > > Hi! > > > >> My webapp now is loading the stylesheets in the Layout component in this > >> way: > > @IncludeStylesheet({"context:css/mainLayout.css","context:css/components.css"}) > >> I have been looking for a solution in the mailing list and didn't find > >> anything. I read something about contributing in the AppModule, but I > don't know how to use it with my working scheme. > > > > Just @Inject JavaScriptSupport and use its importStylesheet(Asset > stylesheet) method inside afterRender(). AssetSource provides Asset > instances to you. > > > > -- > > Thiago H. de Paula Figueiredo > > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, > and instructor > > Owner, Ars Machina Tecnologia da Informação Ltda. > > http://www.arsmachina.com.br > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > > For additional commands, e-mail: users-h...@tapestry.apache.org > > > > >