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 <[email protected]>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 <[email protected]> > > > 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 < > [email protected] > > >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 <[email protected]> > > > > > > > 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, <[email protected]> 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 <[email protected]> > > > > > 04/07/2010 11:16 AM > > > > > Please respond to > > > > > [email protected] > > > > > > > > > > > > > > > To > > > > > Wicket User Mailing List <[email protected]> > > > > > 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. > > > > > > > > > >
