struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Musachy Barroso" <musa...@gmail.com>
Subject Re: templateCssPath does not work for images in a TabbedPanel
Date Tue, 03 Apr 2007 16:41:48 GMT
Struts isn't really involved here, at the end it is html elements with
styles, as long as the right style are applied to the right elements, and
the image paths are right, it should work. Can you post a section of your
css?

regards
musachy

On 4/3/07, Felipe Rodrigues <feliperod777@yahoo.com.br> wrote:
>
>
> Yes,
> I tried this. But seems like struts gives preference to css inside the
> jar.
> But even if I remove the css inside the jar, it does not work and I got no
> images.
> Is there some way to take out the images files like the template dir, so
> we
> can just copy it to our web app root and chenge the images.
> Anyway, I believe it will be fixed when dojo becomes a external plugin to
> Struts2.
>
> Thanks,
>
> Felipe
>
>
> Musachy Barroso wrote:
> >
> > How are you specifying the image path on the css file? This is from
> > TabContainer.css:
> >
> > .dojoTab div {
> >     display : block;
> >     padding : 4px 15px 4px 6px;
> >     background : url(images/tab_top_right.gif) no-repeat right top;
> >     color : #333;
> >     font-size : 90%;
> > }
> >
> > here "images/tab_top_right.gif" is relative to where the css file is,
> > which
> > is inside the S2 core.jar file.
> >
> > regards
> > musachy
> >
> > On 4/3/07, Musachy Barroso <musachy@gmail.com> wrote:
> >>
> >> That would be news for me, do you have a link?
> >>
> >> thanks
> >> musachy
> >>
> >> On 4/3/07, Felipe Rodrigues <feliperod777@yahoo.com.br > wrote:
> >> >
> >> >
> >> > Reading the dojo documentation, I found a note telling that
> >> > templateCssPath
> >> > is deprecated.
> >> > Is that right? If yes, could it be the problem?
> >> >
> >> >
> >> > Felipe Rodrigues wrote:
> >> > >
> >> > > I've trying to use my own css file and My own images in a
> >> TabbedPanel,
> >> > > but it is quite hard and so confuse.
> >> > > The first thing I did was use the templateCssPath pointing to my
> own
> >> > css
> >> > > file.
> >> > > It just works for color and fonts, but didn't changed the images.
> >> > > So, I put the images inside the jar, but with another name. I
> renamed
> >> > it
> >> > > in my css file,
> >> > > and didn't changed.
> >> > > The only way is change the images and the css file inside the jar,
> >> and
> >> > > don't use the templateCssPath.
> >> > > Does somebody have any idea about this issue?
> >> > >
> >> > > Thanks a lot,
> >> > >
> >> > > Felipe
> >> > >
> >> >
> >> > --
> >> > View this message in context:
> >>
> http://www.nabble.com/templateCssPath-does-not-work-for-images-in-a-TabbedPanel-tf3515320.html#a9814588
> >> >
> >> > Sent from the Struts - User mailing list archive at Nabble.com.
> >> >
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> > For additional commands, e-mail: user-help@struts.apache.org
> >> >
> >> >
> >>
> >>
> >> --
> >> "Hey you! Would you help me to carry the stone?" Pink Floyd
> >
> >
> >
> >
> > --
> > "Hey you! Would you help me to carry the stone?" Pink Floyd
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/templateCssPath-does-not-work-for-images-in-a-TabbedPanel-tf3515320.html#a9817687
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message