Re: GWTShell and facelet.

2009-01-08 Thread olivier

Ok, after a long time with this issue not solved I've finally been
able to get rid of it :-)
I post here the explanation, just in case someone googles the same
problem.

In fact, it's only an XHTML issue.

* When a request is made from firefox the Accept parameter of the
header is this one :

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/
*;q=0.8
and the HTTP response has this content type :
Content-Type: text/html;charset=UTF-8


* From the hosted browser (same issue with Chrome  safari BTW )
Accept: text/xml,application/xml,application/xhtml+xml,text/
html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
and the response...
Content-Type: application/xhtml+xml;charset=UTF-8

So the hosted browser prefers XHTML over text/html... and this is a
real issue with GWT, as Scripts and some DOM manipulation
doesn't work (or very bad) when the response mime type is XHTML.

The solution is to force the mime type to text /html.
You can't use a meta attribute, as it is overridden by some JSF
phase I guess.
Instead, in your xhtml pages, use

 f:view contentType=text/html
 
/f:view

regards,

O.


On 5 déc 2008, 12:05, olivier olivier.fre...@gmail.com wrote:
 Hi,
 I'm facing a strange issue.

 I'm using GWT within a facelet page.

 This means that I have the following URL

 http://myserver:8080/MyApp/conf/test.faces

 test.faces is resolved to test.xtml by the servlet.

 Compiled mode works fine. But in hosted mode, the module is not
 loaded. No errors, no traces, nothing. However, the static HTML is
 displayed !
 I tried the verbose mode, but it didn't help.

 Any clue ? :-)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWTShell and facelet.

2008-12-12 Thread olivier FRESSE
Yes, all the needed scripts are here.
It seems that the GWTShell doesn't find the needed data to start of the GWT
java mode.
Really strange.

2008/12/12 acc a...@google.com


 Hi Olivier,

 Have you added a script to include the nocache.js bootstrap file in
 your JSF JSP?

 -alex

 On Dec 10, 7:57 am, olivier FRESSE olivier.fre...@gmail.com wrote:
  I'm not sure that it's the issue.
  From my understanding, the noserver mode is really useful when you wan't
 to
  use
  GWT RPC.
  I've made a network capture to see what's going on between the server and
  the hosted browser,
  and I've seen good html, ie JSF tags are translated by the servlet.
 
  But for some reasons, GWTShell doesn't see the GWT JScript, and doesn't
  start to work with the java code.
  Sadly, I have no traces or error at all.
 
  2008/12/9 acc a...@google.com
 
 
 
   Hi Olivier,
 
   The hosted mode embedded Tomcat server isn't configured with a JSF
   servlet out of the box, and hence wouldn't be able to handle the
   *.faces mapping.  Are you using hosted mode with the embedded Tomcat
   server, or with your own server using the -noserver option? If it's
   the former, you should run hosted mode with the -noserver option and
   use the same server that you use when you work in web mode.
 
   Here's an FAQ on how to setup hosted mode with the -noserver option:
 
  http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=goog.
 ..
 
   -alex
 
   On Dec 9, 3:25 am, olivier FRESSE olivier.fre...@gmail.com wrote:
Hmm no, I have a script/script tag.
I'm still digging :-)
O.
 
2008/12/9 Sumit Chandel sumitchan...@google.com
 
 Hi Olivier,
 
 Can you double-check to make sure that you're not using an empty
   script
 tag to reference your GWT bootstrap script? I..e, script
 src=com.google.app.MyModule.nocache.js / versus script
 src=com.google.app.MyModule.nocache.js/script? The empty
 script
   tag has
 been known to cause issues in hosted mode, and is also known to
 cause
 problems in IE 6/7 if I remember correctly.
 
 Hope that helps,
 -Sumit Chandel
 
 On Fri, Dec 5, 2008 at 3:05 AM, olivier olivier.fre...@gmail.com
   wrote:
 
 Hi,
 I'm facing a strange issue.
 
 I'm using GWT within a facelet page.
 
 This means that I have the following URL
 
http://myserver:8080/MyApp/conf/test.faces
 
 test.faces is resolved to test.xtml by the servlet.
 
 Compiled mode works fine. But in hosted mode, the module is not
 loaded. No errors, no traces, nothing. However, the static HTML is
 displayed !
 I tried the verbose mode, but it didn't help.
 
 Any clue ? :-)
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWTShell and facelet.

2008-12-11 Thread acc

Hi Olivier,

Have you added a script to include the nocache.js bootstrap file in
your JSF JSP?

-alex

On Dec 10, 7:57 am, olivier FRESSE olivier.fre...@gmail.com wrote:
 I'm not sure that it's the issue.
 From my understanding, the noserver mode is really useful when you wan't to
 use
 GWT RPC.
 I've made a network capture to see what's going on between the server and
 the hosted browser,
 and I've seen good html, ie JSF tags are translated by the servlet.

 But for some reasons, GWTShell doesn't see the GWT JScript, and doesn't
 start to work with the java code.
 Sadly, I have no traces or error at all.

 2008/12/9 acc a...@google.com



  Hi Olivier,

  The hosted mode embedded Tomcat server isn't configured with a JSF
  servlet out of the box, and hence wouldn't be able to handle the
  *.faces mapping.  Are you using hosted mode with the embedded Tomcat
  server, or with your own server using the -noserver option? If it's
  the former, you should run hosted mode with the -noserver option and
  use the same server that you use when you work in web mode.

  Here's an FAQ on how to setup hosted mode with the -noserver option:

 http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=goog...

  -alex

  On Dec 9, 3:25 am, olivier FRESSE olivier.fre...@gmail.com wrote:
   Hmm no, I have a script/script tag.
   I'm still digging :-)
   O.

   2008/12/9 Sumit Chandel sumitchan...@google.com

Hi Olivier,

Can you double-check to make sure that you're not using an empty
  script
tag to reference your GWT bootstrap script? I..e, script
src=com.google.app.MyModule.nocache.js / versus script
src=com.google.app.MyModule.nocache.js/script? The empty script
  tag has
been known to cause issues in hosted mode, and is also known to cause
problems in IE 6/7 if I remember correctly.

Hope that helps,
-Sumit Chandel

On Fri, Dec 5, 2008 at 3:05 AM, olivier olivier.fre...@gmail.com
  wrote:

Hi,
I'm facing a strange issue.

I'm using GWT within a facelet page.

This means that I have the following URL

   http://myserver:8080/MyApp/conf/test.faces

test.faces is resolved to test.xtml by the servlet.

Compiled mode works fine. But in hosted mode, the module is not
loaded. No errors, no traces, nothing. However, the static HTML is
displayed !
I tried the verbose mode, but it didn't help.

Any clue ? :-)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWTShell and facelet.

2008-12-10 Thread olivier FRESSE
I'm not sure that it's the issue.
From my understanding, the noserver mode is really useful when you wan't to
use
GWT RPC.
I've made a network capture to see what's going on between the server and
the hosted browser,
and I've seen good html, ie JSF tags are translated by the servlet.


But for some reasons, GWTShell doesn't see the GWT JScript, and doesn't
start to work with the java code.
Sadly, I have no traces or error at all.



2008/12/9 acc [EMAIL PROTECTED]


 Hi Olivier,

 The hosted mode embedded Tomcat server isn't configured with a JSF
 servlet out of the box, and hence wouldn't be able to handle the
 *.faces mapping.  Are you using hosted mode with the embedded Tomcat
 server, or with your own server using the -noserver option? If it's
 the former, you should run hosted mode with the -noserver option and
 use the same server that you use when you work in web mode.

 Here's an FAQ on how to setup hosted mode with the -noserver option:


 http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=FAQ_HostedModeNoServer

 -alex

 On Dec 9, 3:25 am, olivier FRESSE [EMAIL PROTECTED] wrote:
  Hmm no, I have a script/script tag.
  I'm still digging :-)
  O.
 
  2008/12/9 Sumit Chandel [EMAIL PROTECTED]
 
   Hi Olivier,
 
   Can you double-check to make sure that you're not using an empty
 script
   tag to reference your GWT bootstrap script? I..e, script
   src=com.google.app.MyModule.nocache.js / versus script
   src=com.google.app.MyModule.nocache.js/script? The empty script
 tag has
   been known to cause issues in hosted mode, and is also known to cause
   problems in IE 6/7 if I remember correctly.
 
   Hope that helps,
   -Sumit Chandel
 
   On Fri, Dec 5, 2008 at 3:05 AM, olivier [EMAIL PROTECTED]
 wrote:
 
   Hi,
   I'm facing a strange issue.
 
   I'm using GWT within a facelet page.
 
   This means that I have the following URL
 
  http://myserver:8080/MyApp/conf/test.faces
 
   test.faces is resolved to test.xtml by the servlet.
 
   Compiled mode works fine. But in hosted mode, the module is not
   loaded. No errors, no traces, nothing. However, the static HTML is
   displayed !
   I tried the verbose mode, but it didn't help.
 
   Any clue ? :-)
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWTShell and facelet.

2008-12-09 Thread olivier FRESSE
Hmm no, I have a script/script tag.
I'm still digging :-)
O.


2008/12/9 Sumit Chandel [EMAIL PROTECTED]

 Hi Olivier,

 Can you double-check to make sure that you're not using an empty script
 tag to reference your GWT bootstrap script? I..e, script
 src=com.google.app.MyModule.nocache.js / versus script
 src=com.google.app.MyModule.nocache.js/script? The empty script tag has
 been known to cause issues in hosted mode, and is also known to cause
 problems in IE 6/7 if I remember correctly.

 Hope that helps,
 -Sumit Chandel

 On Fri, Dec 5, 2008 at 3:05 AM, olivier [EMAIL PROTECTED] wrote:


 Hi,
 I'm facing a strange issue.

 I'm using GWT within a facelet page.

 This means that I have the following URL

 http://myserver:8080/MyApp/conf/test.faces

 test.faces is resolved to test.xtml by the servlet.

 Compiled mode works fine. But in hosted mode, the module is not
 loaded. No errors, no traces, nothing. However, the static HTML is
 displayed !
 I tried the verbose mode, but it didn't help.

 Any clue ? :-)



 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWTShell and facelet.

2008-12-09 Thread acc

Hi Olivier,

The hosted mode embedded Tomcat server isn't configured with a JSF
servlet out of the box, and hence wouldn't be able to handle the
*.faces mapping.  Are you using hosted mode with the embedded Tomcat
server, or with your own server using the -noserver option? If it's
the former, you should run hosted mode with the -noserver option and
use the same server that you use when you work in web mode.

Here's an FAQ on how to setup hosted mode with the -noserver option:

http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=FAQ_HostedModeNoServer

-alex

On Dec 9, 3:25 am, olivier FRESSE [EMAIL PROTECTED] wrote:
 Hmm no, I have a script/script tag.
 I'm still digging :-)
 O.

 2008/12/9 Sumit Chandel [EMAIL PROTECTED]

  Hi Olivier,

  Can you double-check to make sure that you're not using an empty script
  tag to reference your GWT bootstrap script? I..e, script
  src=com.google.app.MyModule.nocache.js / versus script
  src=com.google.app.MyModule.nocache.js/script? The empty script tag has
  been known to cause issues in hosted mode, and is also known to cause
  problems in IE 6/7 if I remember correctly.

  Hope that helps,
  -Sumit Chandel

  On Fri, Dec 5, 2008 at 3:05 AM, olivier [EMAIL PROTECTED] wrote:

  Hi,
  I'm facing a strange issue.

  I'm using GWT within a facelet page.

  This means that I have the following URL

 http://myserver:8080/MyApp/conf/test.faces

  test.faces is resolved to test.xtml by the servlet.

  Compiled mode works fine. But in hosted mode, the module is not
  loaded. No errors, no traces, nothing. However, the static HTML is
  displayed !
  I tried the verbose mode, but it didn't help.

  Any clue ? :-)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWTShell and facelet.

2008-12-08 Thread Sumit Chandel
Hi Olivier,

Can you double-check to make sure that you're not using an empty script
tag to reference your GWT bootstrap script? I..e, script
src=com.google.app.MyModule.nocache.js / versus script
src=com.google.app.MyModule.nocache.js/script? The empty script tag has
been known to cause issues in hosted mode, and is also known to cause
problems in IE 6/7 if I remember correctly.

Hope that helps,
-Sumit Chandel

On Fri, Dec 5, 2008 at 3:05 AM, olivier [EMAIL PROTECTED] wrote:


 Hi,
 I'm facing a strange issue.

 I'm using GWT within a facelet page.

 This means that I have the following URL

 http://myserver:8080/MyApp/conf/test.faces

 test.faces is resolved to test.xtml by the servlet.

 Compiled mode works fine. But in hosted mode, the module is not
 loaded. No errors, no traces, nothing. However, the static HTML is
 displayed !
 I tried the verbose mode, but it didn't help.

 Any clue ? :-)
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



GWTShell and facelet.

2008-12-05 Thread olivier

Hi,
I'm facing a strange issue.

I'm using GWT within a facelet page.

This means that I have the following URL

http://myserver:8080/MyApp/conf/test.faces

test.faces is resolved to test.xtml by the servlet.

Compiled mode works fine. But in hosted mode, the module is not
loaded. No errors, no traces, nothing. However, the static HTML is
displayed !
I tried the verbose mode, but it didn't help.

Any clue ? :-)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---