You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Rene Lavoie <re...@aparapar.com> on 2006/08/02 20:14:57 UTC
myfaces and dojo
Hello,
I ran into a bit of a problem getting dojo to work with my JSF project.
After doing some digging, I realised that the file "richtextframe.html" was returning a 404 and then it hit me.
*.html extension are forwarded to javax.faces.webapp.FacesServlet, so the DOJO *.html files are never found.
<servlet-mapping>
<servlet-name>faces</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>
Any idea how I can configure web.xml to ignore /scripts/* or any other suggestions on how to handle the problem?
Thanks,
Ren
Re: myfaces and dojo
Posted by octoberdan <da...@october5th.net>.
Map the faces servlet to somthing other then *.html?
--
View this message in context: http://www.nabble.com/myfaces-and-dojo-tf2041427.html#a5634122
Sent from the MyFaces - Users forum at Nabble.com.
Re: myfaces and dojo
Posted by Rene Lavoie <re...@aparapar.com>.
The problem is that on the server, every html extension goes through the
Faces servlet.
On the client side, Dojo loads html files from the server, the server sees
the request has a HTML extension, so its treated like a JSF page.
If I were to resolve this problem on the server side, it would require me to
rename all Dojo HTML files references to some other extension.
----- Original Message -----
From: "Gerald Müllan" <bi...@gmail.com>
To: "MyFaces Discussion" <us...@myfaces.apache.org>
Sent: Thursday, August 03, 2006 10:25 AM
Subject: Re: myfaces and dojo
> Hi,
>
> what are you doing exactly with dojo and jsf? Writing components, or
> just doing plain Dojo-scripting with embedding in JSPs/Facelets?
>
> To my mind, your problem should not be solved on the server, there is
> some failure in client
> side scripting.
>
> cheers,
>
> Gerald
>
> On 8/3/06, Rene Lavoie <re...@aparapar.com> wrote:
>>
>>
>> Since I got no response, I as wondering if I could write a filter that
>> would
>> detect "/scripts/" in the URL and serve the file without forwarding it
>> the
>> faces servlet.
>>
>> Could this be a solution?
>>
>>
>>
>> ----- Original Message -----
>> From: Rene Lavoie
>> To: users@myfaces.apache.org
>> Sent: Wednesday, August 02, 2006 2:14 PM
>> Subject: myfaces and dojo
>>
>>
>>
>> Hello,
>>
>> I ran into a bit of a problem getting dojo to work with my JSF project.
>>
>> After doing some digging, I realised that the file "richtextframe.html"
>> was
>> returning a 404 and then it hit me.
>>
>> *.html extension are forwarded to javax.faces.webapp.FacesServlet, so the
>> DOJO *.html files are never found.
>>
>>
>> <servlet-mapping>
>>
>> <servlet-name>faces</servlet-name>
>>
>> <url-pattern>*.html</url-pattern>
>>
>> </servlet-mapping>
>> Any idea how I can configure web.xml to ignore /scripts/* or any other
>> suggestions on how to handle the problem?
>>
>> Thanks,
>> Ren
>>
>>
>>
>>
>
>
> --
> Gerald Müllan
> Schelleingasse 2/11
> 1040 Vienna, Austria
> 0043 699 11772506
> gerald.muellan@gmail.com
>
Re: myfaces and dojo
Posted by Gerald Müllan <bi...@gmail.com>.
Hi,
what are you doing exactly with dojo and jsf? Writing components, or
just doing plain Dojo-scripting with embedding in JSPs/Facelets?
To my mind, your problem should not be solved on the server, there is
some failure in client
side scripting.
cheers,
Gerald
On 8/3/06, Rene Lavoie <re...@aparapar.com> wrote:
>
>
> Since I got no response, I as wondering if I could write a filter that would
> detect "/scripts/" in the URL and serve the file without forwarding it the
> faces servlet.
>
> Could this be a solution?
>
>
>
> ----- Original Message -----
> From: Rene Lavoie
> To: users@myfaces.apache.org
> Sent: Wednesday, August 02, 2006 2:14 PM
> Subject: myfaces and dojo
>
>
>
> Hello,
>
> I ran into a bit of a problem getting dojo to work with my JSF project.
>
> After doing some digging, I realised that the file "richtextframe.html" was
> returning a 404 and then it hit me.
>
> *.html extension are forwarded to javax.faces.webapp.FacesServlet, so the
> DOJO *.html files are never found.
>
>
> <servlet-mapping>
>
> <servlet-name>faces</servlet-name>
>
> <url-pattern>*.html</url-pattern>
>
> </servlet-mapping>
> Any idea how I can configure web.xml to ignore /scripts/* or any other
> suggestions on how to handle the problem?
>
> Thanks,
> Ren
>
>
>
>
--
Gerald Müllan
Schelleingasse 2/11
1040 Vienna, Austria
0043 699 11772506
gerald.muellan@gmail.com
Re: myfaces and dojo
Posted by Rene Lavoie <re...@aparapar.com>.
Since I got no response, I as wondering if I could write a filter that would detect "/scripts/" in the URL and serve the file without forwarding it the faces servlet.
Could this be a solution?
----- Original Message -----
From: Rene Lavoie
To: users@myfaces.apache.org
Sent: Wednesday, August 02, 2006 2:14 PM
Subject: myfaces and dojo
Hello,
I ran into a bit of a problem getting dojo to work with my JSF project.
After doing some digging, I realised that the file "richtextframe.html" was returning a 404 and then it hit me.
*.html extension are forwarded to javax.faces.webapp.FacesServlet, so the DOJO *.html files are never found.
<servlet-mapping>
<servlet-name>faces</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>
Any idea how I can configure web.xml to ignore /scripts/* or any other suggestions on how to handle the problem?
Thanks,
Ren