You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Wolf Benz <eu...@gmail.com> on 2007/08/06 11:48:48 UTC
MF1.2.0 & faces: no Images rendered?
Hi List,
Has anyone tried the combination Facelets + MF1.2.0 and rendering an image?
Setup: I keep all my pics in /WEB-INF/resources/pics (and then per Use
Case subfolders)
I've tried with both style elements on the HTML element itself, like
for Table Data:
style="background-image:url('/WEB-INF/resources/pics/metal.jpg');
... and with the HTML "img" element, like e.g.:
<img src="/WEB-INF/resources/pics/login/frame_hr.gif" alt="pic"
border="0" height="13" vspace="8" width="412" />
But both fail.
The paths are right; Eclipse renders all well in it's Web Page editor view.
(btw I'm using Tomcat 6.0.13, Java 5, on OSX)
-Wolf
t:dataScroller does not scroll without javascript
Posted by "Dipl.-Ing. Torsten Liermann" <li...@liermann-it.de>.
Hi,
I'm using facelet 1.1.11, myfaces 1.1.5 and tomahawk 1.1.5.
t:datascroller does not scroll when javascript is disabled (org.apache.myfaces.ALLOW_JAVASCRIPT=false). Is this a bug or simply impossibly?
Thanks
Torsten
Re: MF1.2.0 & faces: no Images rendered?
Posted by Matthias Wessendorf <ma...@apache.org>.
yes, it's restricted for sb. outside (for security reasons)
Since this
<img src="/WEB-INF/resources/pics/login/frame_hr.gif"
is "mapped" to an URL like
http://yourhost:yourport/yourwebapplicationcontext/WEB-INF/resources/pics/login/frame_hr.gif
it's not possible to access.
your own resource can access it
(inside of "java code")
but your example not, of course, because plain standard HTML
-M
On 8/6/07, Wolf Benz <eu...@gmail.com> wrote:
> Peter was right - I moved all pics to /resources/pics from
> /WEB-INF/resources/pics, now all works.
> And what is the exact reason for this?
> I thought all you put under /WEB-INF is secret for the *outside*, but
> that yoru own resources (pages e.g.) could still access it!
> -Wolf
>
> On 8/6/07, Matthias Wessendorf <ma...@apache.org> wrote:
> > no!
> >
> > /web-inf/web.xml (or web-inf/faces-config) you are not interested in
> > serving them.
> >
> > -M
> >
> > On 8/6/07, Wolf Benz <eu...@gmail.com> wrote:
> > > No? - I'll try that, just a sec.
> > > -Wolf.
> > >
> > > On 8/6/07, Fleischer Peter <pe...@munich-airport.de> wrote:
> > > > Just a quick thought, but I think Tomcat doesn't allow access to WEB-INF folder via HTTP.
> > > >
> > > > Peter
> > > >
> > > > -----Ursprüngliche Nachricht-----
> > > > Von: Wolf Benz [mailto:eurojava@gmail.com]
> > > > Gesendet: Montag, 6. August 2007 12:38
> > > > An: users@myfaces.apache.org
> > > > Betreff: MF1.2.0 & faces: no Images rendered?
> > > >
> > > >
> > > > Hi List,
> > > >
> > > > Has anyone tried the combination Facelets + MF1.2.0 and rendering an image?
> > > > Setup: I keep all my pics in /WEB-INF/resources/pics (and then per Use
> > > > Case subfolders)
> > > >
> > > > I've tried with both style elements on the HTML element itself, like
> > > > for Table Data:
> > > > style="background-image:url('/WEB-INF/resources/pics/metal.jpg');
> > > > ... and with the HTML "img" element, like e.g.:
> > > > <img src="/WEB-INF/resources/pics/login/frame_hr.gif" alt="pic"
> > > > border="0" height="13" vspace="8" width="412" />
> > > >
> > > > But both fail.
> > > > The paths are right; Eclipse renders all well in it's Web Page editor view.
> > > > (btw I'm using Tomcat 6.0.13, Java 5, on OSX)
> > > >
> > > >
> > > > -Wolf
> > > >
> > >
> >
> >
> > --
> > Matthias Wessendorf
> >
> > further stuff:
> > blog: http://matthiaswessendorf.wordpress.com/
> > mail: matzew-at-apache-dot-org
> >
>
--
Matthias Wessendorf
further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org
Re: MF1.2.0 & faces: no Images rendered?
Posted by Wolf Benz <eu...@gmail.com>.
Peter was right - I moved all pics to /resources/pics from
/WEB-INF/resources/pics, now all works.
And what is the exact reason for this?
I thought all you put under /WEB-INF is secret for the *outside*, but
that yoru own resources (pages e.g.) could still access it!
-Wolf
On 8/6/07, Matthias Wessendorf <ma...@apache.org> wrote:
> no!
>
> /web-inf/web.xml (or web-inf/faces-config) you are not interested in
> serving them.
>
> -M
>
> On 8/6/07, Wolf Benz <eu...@gmail.com> wrote:
> > No? - I'll try that, just a sec.
> > -Wolf.
> >
> > On 8/6/07, Fleischer Peter <pe...@munich-airport.de> wrote:
> > > Just a quick thought, but I think Tomcat doesn't allow access to WEB-INF folder via HTTP.
> > >
> > > Peter
> > >
> > > -----Ursprüngliche Nachricht-----
> > > Von: Wolf Benz [mailto:eurojava@gmail.com]
> > > Gesendet: Montag, 6. August 2007 12:38
> > > An: users@myfaces.apache.org
> > > Betreff: MF1.2.0 & faces: no Images rendered?
> > >
> > >
> > > Hi List,
> > >
> > > Has anyone tried the combination Facelets + MF1.2.0 and rendering an image?
> > > Setup: I keep all my pics in /WEB-INF/resources/pics (and then per Use
> > > Case subfolders)
> > >
> > > I've tried with both style elements on the HTML element itself, like
> > > for Table Data:
> > > style="background-image:url('/WEB-INF/resources/pics/metal.jpg');
> > > ... and with the HTML "img" element, like e.g.:
> > > <img src="/WEB-INF/resources/pics/login/frame_hr.gif" alt="pic"
> > > border="0" height="13" vspace="8" width="412" />
> > >
> > > But both fail.
> > > The paths are right; Eclipse renders all well in it's Web Page editor view.
> > > (btw I'm using Tomcat 6.0.13, Java 5, on OSX)
> > >
> > >
> > > -Wolf
> > >
> >
>
>
> --
> Matthias Wessendorf
>
> further stuff:
> blog: http://matthiaswessendorf.wordpress.com/
> mail: matzew-at-apache-dot-org
>
Re: MF1.2.0 & faces: no Images rendered?
Posted by Matthias Wessendorf <ma...@apache.org>.
no!
/web-inf/web.xml (or web-inf/faces-config) you are not interested in
serving them.
-M
On 8/6/07, Wolf Benz <eu...@gmail.com> wrote:
> No? - I'll try that, just a sec.
> -Wolf.
>
> On 8/6/07, Fleischer Peter <pe...@munich-airport.de> wrote:
> > Just a quick thought, but I think Tomcat doesn't allow access to WEB-INF folder via HTTP.
> >
> > Peter
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Wolf Benz [mailto:eurojava@gmail.com]
> > Gesendet: Montag, 6. August 2007 12:38
> > An: users@myfaces.apache.org
> > Betreff: MF1.2.0 & faces: no Images rendered?
> >
> >
> > Hi List,
> >
> > Has anyone tried the combination Facelets + MF1.2.0 and rendering an image?
> > Setup: I keep all my pics in /WEB-INF/resources/pics (and then per Use
> > Case subfolders)
> >
> > I've tried with both style elements on the HTML element itself, like
> > for Table Data:
> > style="background-image:url('/WEB-INF/resources/pics/metal.jpg');
> > ... and with the HTML "img" element, like e.g.:
> > <img src="/WEB-INF/resources/pics/login/frame_hr.gif" alt="pic"
> > border="0" height="13" vspace="8" width="412" />
> >
> > But both fail.
> > The paths are right; Eclipse renders all well in it's Web Page editor view.
> > (btw I'm using Tomcat 6.0.13, Java 5, on OSX)
> >
> >
> > -Wolf
> >
>
--
Matthias Wessendorf
further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org
Re: MF1.2.0 & faces: no Images rendered?
Posted by Wolf Benz <eu...@gmail.com>.
No? - I'll try that, just a sec.
-Wolf.
On 8/6/07, Fleischer Peter <pe...@munich-airport.de> wrote:
> Just a quick thought, but I think Tomcat doesn't allow access to WEB-INF folder via HTTP.
>
> Peter
>
> -----Ursprüngliche Nachricht-----
> Von: Wolf Benz [mailto:eurojava@gmail.com]
> Gesendet: Montag, 6. August 2007 12:38
> An: users@myfaces.apache.org
> Betreff: MF1.2.0 & faces: no Images rendered?
>
>
> Hi List,
>
> Has anyone tried the combination Facelets + MF1.2.0 and rendering an image?
> Setup: I keep all my pics in /WEB-INF/resources/pics (and then per Use
> Case subfolders)
>
> I've tried with both style elements on the HTML element itself, like
> for Table Data:
> style="background-image:url('/WEB-INF/resources/pics/metal.jpg');
> ... and with the HTML "img" element, like e.g.:
> <img src="/WEB-INF/resources/pics/login/frame_hr.gif" alt="pic"
> border="0" height="13" vspace="8" width="412" />
>
> But both fail.
> The paths are right; Eclipse renders all well in it's Web Page editor view.
> (btw I'm using Tomcat 6.0.13, Java 5, on OSX)
>
>
> -Wolf
>
AW: MF1.2.0 & faces: no Images rendered?
Posted by Fleischer Peter <pe...@munich-airport.de>.
Just a quick thought, but I think Tomcat doesn't allow access to WEB-INF folder via HTTP.
Peter
-----Ursprüngliche Nachricht-----
Von: Wolf Benz [mailto:eurojava@gmail.com]
Gesendet: Montag, 6. August 2007 12:38
An: users@myfaces.apache.org
Betreff: MF1.2.0 & faces: no Images rendered?
Hi List,
Has anyone tried the combination Facelets + MF1.2.0 and rendering an image?
Setup: I keep all my pics in /WEB-INF/resources/pics (and then per Use
Case subfolders)
I've tried with both style elements on the HTML element itself, like
for Table Data:
style="background-image:url('/WEB-INF/resources/pics/metal.jpg');
... and with the HTML "img" element, like e.g.:
<img src="/WEB-INF/resources/pics/login/frame_hr.gif" alt="pic"
border="0" height="13" vspace="8" width="412" />
But both fail.
The paths are right; Eclipse renders all well in it's Web Page editor view.
(btw I'm using Tomcat 6.0.13, Java 5, on OSX)
-Wolf
MF1.2.0 & faces: no Images rendered?
Posted by Wolf Benz <eu...@gmail.com>.
Hi List,
Has anyone tried the combination Facelets + MF1.2.0 and rendering an image?
Setup: I keep all my pics in /WEB-INF/resources/pics (and then per Use
Case subfolders)
I've tried with both style elements on the HTML element itself, like
for Table Data:
style="background-image:url('/WEB-INF/resources/pics/metal.jpg');
... and with the HTML "img" element, like e.g.:
<img src="/WEB-INF/resources/pics/login/frame_hr.gif" alt="pic"
border="0" height="13" vspace="8" width="412" />
But both fail.
The paths are right; Eclipse renders all well in it's Web Page editor view.
(btw I'm using Tomcat 6.0.13, Java 5, on OSX)
-Wolf