thank you Apple Grew I can't receive your attachments. Are you sure they have been attached ?
On Thu, Apr 8, 2010 at 6:34 AM, Apple Grew <appleg...@gmail.com> wrote: > Maybe u can try writing a stream locator as I did. I am attaching my stream > locator with this mail. > > The necessary plumbing required with this is:- > > resourceSettings.addResourceFolder("WEB-INF/res"); > resourceSettings.setResourceStreamLocator(new AppStreamLocator()); > getSharedResources().putClassAlias(ApplicationCore.class, "global"); > > The above needs to be put in your Application class. > > Regards, > Apple Grew > my blog @ http://blog.applegrew.com/ > > > > On Wed, Apr 7, 2010 at 10:19 PM, Stefan Lindner <lind...@visionet.de>wrote: > >> You could e.g. write your own page class >> >> class MyCustomersPage extens Page { >> @Override >> public void renderHead(HtmlHeaderContainer container) { >> super.renderHead(container); >> cssResourceReference = >> Session.get().getCssResourceReferenceForcustomer() >> >> container.getHeaderResponse().renderCSSReference(cssResourceReference); >> } >> } >> >> And then let each of your pages be a child of MyCustomersPage >> >> Stefan >> -----Ursprüngliche Nachricht----- >> Von: sahar rostami [mailto:sahar.rost...@gmail.com] >> Gesendet: Mittwoch, 7. April 2010 18:42 >> An: users@wicket.apache.org >> Betreff: Re: resource (css) loading >> >> thank you moèz >> but i want to set the location for whole application not a specific file. >> >> On Wed, Apr 7, 2010 at 8:53 PM, moèz ben rhouma <benrhouma.m...@gmail.com >> >wrote: >> >> > In java >> > >> > add(new StyleSheetReference("stylesheet", BasePage.class, >> *"style.css"*)); >> > >> > style.css is the path of the file style.css (i.e you can write >> > "/stylesheets/style.css ...) >> > >> > 2010/4/7 sahar rostami <sahar.rost...@gmail.com> >> > >> > > No , i want to know how wicket knows where is style.css? >> > > >> > > On Wed, Apr 7, 2010 at 8:24 PM, moèz ben rhouma < >> > benrhouma.m...@gmail.com >> > > >wrote: >> > > >> > > > If I understand , you can use in constructor of class java the >> > following >> > > > code: >> > > > add(new StyleSheetReference("stylesheet", BasePage.class, >> > "style.css")); >> > > > >> > > > and in the html page you add: >> > > > <link wicket:id="stylesheet" > >> > > > >> > > > 2010/4/7 sahar rostami <sahar.rost...@gmail.com> >> > > > >> > > > > Thanks MZemeck >> > > > > But my question in another form is "Where wicket load css (which >> > > class)?" >> > > > > how wicket knows where look up a css file? >> > > > > >> > > > > i'm trying to override default location of css file and read them >> > from >> > > > > path(s) specified in application start up ,but i can't because i >> > don't >> > > > know >> > > > > how wicket loads them. >> > > > > >> > > > > any idea would help me! >> > > > > thanks >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > On Wed, Apr 7, 2010 at 7:50 PM, <mzem...@osc.state.ny.us> wrote: >> > > > > >> > > > > > One difference I am aware of (and community correct me if I am >> > > wrong), >> > > > > > Wicket GZIPs resources. So if you directly link to the css >> using >> > an >> > > > > > "href" you will not have that feature. >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > sahar rostami <sahar.rost...@gmail.com> >> > > > > > 04/07/2010 11:16 AM >> > > > > > Please respond to >> > > > > > users@wicket.apache.org >> > > > > > >> > > > > > >> > > > > > To >> > > > > > Wicket User Mailing List <users@wicket.apache.org> >> > > > > > cc >> > > > > > >> > > > > > Subject >> > > > > > resource (css) loading >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > Hi all, >> > > > > > I want to know how wicket loads css files from location >> specified >> > in >> > > > > > HeaderContributer or using "href" in header? >> > > > > > >> > > > > > Thanks in advanced! >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > Notice: This communication, including any attachments, is >> intended >> > > > solely >> > > > > > for the use of the individual or entity to which it is >> addressed. >> > > This >> > > > > > communication may contain information that is protected from >> > > disclosure >> > > > > > under State and/or Federal law. Please notify the sender >> > immediately >> > > if >> > > > > > you have received this communication in error and delete this >> email >> > > > from >> > > > > > your system. If you are not the intended recipient, you are >> > requested >> > > > not >> > > > > > to disclose, copy, distribute or take any action in reliance on >> the >> > > > > > contents of this information. >> > > > > >> > > > >> > > >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org >