Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > comp.lang.java.programmer > #4616

Re: Dealing with application names in a JEE web app

From Steve Sobol <sjsobol@JustThe.net>
Newsgroups comp.lang.java.programmer
Subject Re: Dealing with application names in a JEE web app
Date 2011-05-26 14:51 -0700
Organization Glorb Internet Services, http://www.glorb.com
Message-ID <MPG.28486b392281b1a0989763@news.justthe.net> (permalink)
References <irebhd$16t$1@dont-email.me> <alpine.DEB.2.00.1105241802310.27717@urchin.earth.li> <irjkiq$ocr$1@dont-email.me> <alpine.DEB.2.00.1105261801170.19918@urchin.earth.li>

Show all headers | View raw


In article <alpine.DEB.2.00.1105261801170.19918@urchin.earth.li>, Tom 
Anderson says...
> 
> On Wed, 25 May 2011, markspace wrote:
> 
> > On 5/24/2011 10:16 AM, Tom Anderson wrote:
> >> 
> >> It doesn't help you deal with this in resources which are not 
> >> programmatic, like static CSS, so here you have to depend on relative 
> >> references. This doesn't strike me as difficult - you decide early on 
> >> to keep all your css under /contextpath/css, and your site furniture 
> >> images under /contextpath/images, and then because CSS image paths are 
> >> relative to the stylesheet, in your CSS you can write:
> >> 
> >> background:url(../images/bbg.jpg) left top repeat;
> >
> > Thanks for replying Tom, but this doesn't appear to be quite correct. 
> > According to some sources on the 'net, you CAN put EL expressions in 
> > static CSS resources: [...] This works because apparently when you load 
> > with a Faces tag like h:outputStylesheet, it emits HTML that loads the 
> > static resource through the Faces servlet.
> 
> In which case it's not static CSS! Anything that gets mangled by code 
> before being served is dynamic, and is able to evade this problem.
> 
> > I really appreciated you guys trying to help me out, but I'm really 
> > frustrated at the lack of a single, authoritative source where all this 
> > is spelled out. I looked in the JSF 2.1 spec and it barely even mentions 
> > h:outputStylesheet, and certainly doesn't discuss its tags or parameters 
> > anywhere that I could find.
> 
> So the "all this" you'd like to see spelled out is JSF? I can't comment - 
> i have never used JSF, and have absolutely no desire to. I'm surprised and 
> disappointed to hear that JSF is poorly documented, since it's a flagship 
> J2EE technology. I think the servlet and JSP specs (i'm thinking of 
> javadocs, actually) do explain their parts of this reasonably well, FWIW.

I <heart> JSF and Facelets. I stopped using JSP and Struts a long time 
ago.

And... Just for the record: The outputStylesheet tag is most definitely 
documented, on the official Mojarra website, among other places:

http://javaserverfaces.java.net/nonav/docs/2.0/pdldocs/facelets/h/output
Stylesheet.html



-- 
Steve Sobol - Programming/WebDev/IT Support
sjsobol@JustThe.net

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Find similar


Thread

Dealing with application names in a JEE web app markspace <-@.> - 2011-05-23 12:11 -0700
  Re: Dealing with application names in a JEE web app Lew <noone@lewscanon.com> - 2011-05-23 15:30 -0400
    Re: Dealing with application names in a JEE web app markspace <-@.> - 2011-05-23 12:41 -0700
    Re: Dealing with application names in a JEE web app markspace <-@.> - 2011-05-23 13:10 -0700
      Re: Dealing with application names in a JEE web app Lew <noone@lewscanon.com> - 2011-05-23 17:02 -0400
        Re: Dealing with application names in a JEE web app jebblue <n@n.nnn> - 2011-05-23 19:30 -0500
          Re: Dealing with application names in a JEE web app Lew <noone@lewscanon.com> - 2011-05-23 21:13 -0400
        Re: Dealing with application names in a JEE web app markspace <-@.> - 2011-05-24 09:32 -0700
  Re: Dealing with application names in a JEE web app Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-05-23 19:01 -0300
  Re: Dealing with application names in a JEE web app Owen Jacobson <angrybaldguy@gmail.com> - 2011-05-23 23:20 -0400
  Re: Dealing with application names in a JEE web app Tom Anderson <twic@urchin.earth.li> - 2011-05-24 18:16 +0100
    Re: Dealing with application names in a JEE web app markspace <-@.> - 2011-05-25 12:16 -0700
      Re: Dealing with application names in a JEE web app markspace <-@.> - 2011-05-25 16:40 -0700
      Re: Dealing with application names in a JEE web app Tom Anderson <twic@urchin.earth.li> - 2011-05-26 18:07 +0100
        Re: Dealing with application names in a JEE web app Lew <noone@lewscanon.com> - 2011-05-26 13:25 -0400
          Re: Dealing with application names in a JEE web app markspace <-@.> - 2011-05-26 12:57 -0700
            Re: Dealing with application names in a JEE web app Lew <noone@lewscanon.com> - 2011-05-26 19:39 -0400
              Re: Dealing with application names in a JEE web app Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-05-27 07:31 -0300
                Re: Dealing with application names in a JEE web app Lew <noone@lewscanon.com> - 2011-05-27 10:14 -0400
        Re: Dealing with application names in a JEE web app markspace <-@.> - 2011-05-26 12:51 -0700
        Re: Dealing with application names in a JEE web app Steve Sobol <sjsobol@JustThe.net> - 2011-05-26 14:51 -0700

csiph-web