Hi
 
  Now that the script issue is solved, I am having another problem...
 
  I have the following link in my jsf page....
 
            <f:verbatim>
                 <a href="" >
                   <img src="" border="0">
                 </a>
            </f:verbatim>
 
 The _javascript_ file is in /<webroot>/xde folder, but when I clicked the link above it is trying to access the _javascript_ from /<webroot>/classnotes/xde folder,   /<webroot>/classnotes is the folder where my jsf page is located.
 
Again the struts pages correctly access from /<webroot>/xde folder. I have the link built exactly similar to the above one in the struts page (just with no verbatim, obviously).
 
I tried to put the link directly to href attribute instead of in onClick event, got the same behavior.
 
TIA
Srikanth
 
-----Original Message-----
From: techie techie [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 21, 2005 9:24 AM
To: MyFaces Discussion
Subject: Re: script is not found in JSF

Try using full path of the file to be included..

Something like:

<script   src=""/>

> Another thing I observed is... When I looked at the formatted
> source using FireFox's plug-in, with struts pages I can see the
> source with no problems, but for the source of jsf pages (with the
> above script ), I get a File Not Found (404) error in the formatted
> source.

This is the expected behaviour. The relative path mapping is different in IE and other browsers like firefox or Netscape.



 

----- Original Message -----
From: "Srikanth Madarapu" <[EMAIL PROTECTED]>
To: "Apache My Faces (E-mail)"
Subject: script is not found in JSF
Date: Tue, 21 Jun 2005 09:07:28 -0400

>
> Hi
>
> I have the following lines in struts pages and it works fine.
>
>
>
> When I put the same lines in a verbatim tag in jsf pages, the
> browser cannot find the .js file. Is there a special way of
> including _javascript_ for jsf files ?
>
>
>
> TIA
>
> -Srikanth Madarapu

--

___________________________________________________________
Sign-up for Ads Free at Mail.com
http://www.mail.com/?sr=signup

Reply via email to