Re: Just saying thanks

2021-08-11 Thread George Simon K
Hi,

I would like to say a big thank you to GWT team. I started using GWT from
2006. Prior to that I had bit difficulties with ui in html/js, but GWT not
only solved them for me but ui development became interesting once I
started using it.

GWT was indeed an amazing tool!

Regards
George




On Mon, Oct 19, 2020 at 4:24 PM Tom Van Eetvelde 
wrote:

> Hi,
>
> I just wanted to say that I have been using GWT since 2009 and I never
> thought about sharing how much fun GWT has brought to my developer life. So
> I am doing it now :-)
>
> To be honest, there are some libraries/toolkits out there that rise above
> the others. They have this intrinsic quality, they are open instead of
> restrictive on your coding style and when you need to take the extra mile
> in your dev work, the framework goes along, providing what you need. GWT is
> definitely among these.
>
> GWT is the reason that I started browser UI development as a Java backend
> profile.
> I am so happy GWT is still among us and I will be continuing to use this
> framework for many years to come.
>
> Thanks for this great framework!
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-web-toolkit/63a54346-f3fd-45b9-86d9-c1fe3ef9298dn%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/CACq4HnZ86%3DTBEMu8r%3DOQFHyipDhqnvJjcYoSoNg9S-n4dRoAPw%40mail.gmail.com.


Re: GWT 2.8 RC1 - Could not merge 2 super sourced packages

2017-09-02 Thread Simon Logic
I faced same problem with DateTimeFormat class under GWT 2.6 trying to use 
it on sever side. It exists both in user and some other (don't remember 
right now) jar.

вторник, 15 ноября 2016 г., 13:33:09 UTC+3 пользователь Ali Jalal написал:
>
> Hi,
>
> Just try comparing classes inside "gwtx.jar\com\googlecode\gwtx\java" (for 
> example: for "java.util" package, look inside 
> "gwtx.jar\com\googlecode\gwtx\java\util\emul\java\util") and 
> "gwt-user.jar\com\google\gwt\emul\java" and remove classes from gwtx.jar 
> which exists in gwt-user.jar. In my case, java.util.Locale was the only one 
> conflicting class which by deleting 
> "com\googlecode\gwtx\java\util\emul\java\util\Locale.java" file from 
> gwtx.jar, problem solved.
>
> Regards,
> Ali.
>
> On Tue, Nov 15, 2016 at 11:16 AM, Saurabh Joshi  > wrote:
>
>> Hi Ali,
>>
>> I am facing the same issue what you have described (while upgrading from 
>> GWT 2.7 to 2.8) in your post also I am using GWTx library in my 
>> dependencies, so I wanted to try your solution but unfortunately I did not 
>> understand the solution.
>> Can you please elaborate on how did you remove java.util.Locale.java from 
>> emulated classes of GWTx? 
>>
>> Thanks,
>> Saurabh.
>>
>> On Tuesday, 2 August 2016 14:02:01 UTC+5:30, Ali Jalal wrote:
>>>
>>> I compared emulated classes in 'java.util' and 'java.beans' packages of 
>>> GWT and GWTx and I found *java.util.Locale.java* which emulated in both 
>>> packages. By removing java.util.Locale.java from emulated classes of GWTx, 
>>> problem solved.
>>>
>>> Thanks Thomas.
>>>
>>>
>>> On Tue, Aug 2, 2016 at 9:44 AM, Ali Jalal  wrote:
>>>
 Hi, 

 I compiled project with -strict and almost same errors logged (I think 
 GWT compiler does not merge 2 super-source packages like 'java.util' and 
 'java.beans'). Here is the stacktrace:

  [java] Compiling module com.test.sample.Sample
  [java]Tracing compile failure path for type 
 'com.google.gwt.cell.client.EditTextCell'
  [java]   [ERROR] Errors in 
 'com/google/gwt/cell/client/EditTextCell.java'
  [java]  [ERROR] Line 336: ROOT cannot be resolved or is 
 not a field
  [java]Tracing compile failure path for type '
 com.google.gwt.dom.builder.client.DomStylesBuilder'
  [java]   [ERROR] Errors in 
 'com/google/gwt/dom/builder/client/DomStylesBuilder.java'
  [java]  [ERROR] Line 113: ROOT cannot be resolved or is 
 not a field
  [java]Tracing compile failure path for type 
 'com.google.gwt.dom.client.DataTransfer'
  [java]   [ERROR] Errors in 
 'com/google/gwt/dom/client/DataTransfer.java'
  [java]  [ERROR] Line 127: ROOT cannot be resolved or is 
 not a field
  [java]Tracing compile failure path for type 
 'com.google.gwt.user.cellview.client.AbstractCellTable'
  [java]   [ERROR] Errors in 
 'com/google/gwt/user/cellview/client/AbstractCellTable.java'
  [java]  [ERROR] Line 744: ROOT cannot be resolved or is 
 not a field
  [java]  [ERROR] Line 477: ROOT cannot be resolved or is 
 not a field
  [java]Tracing compile failure path for type 
 'com.google.gwt.user.client.ui.MultiWordSuggestOracle'
  [java]   [ERROR] Errors in 
 'com/google/gwt/user/client/ui/MultiWordSuggestOracle.java'
  [java]  [ERROR] Line 534: ROOT cannot be resolved or is 
 not a field
  [java]Tracing compile failure path for type 
 'com.google.gwt.dom.client.HeadingElement'
  [java]   [ERROR] Errors in 
 'com/google/gwt/dom/client/HeadingElement.java'
  [java]  [ERROR] Line 91: ROOT cannot be resolved or is not 
 a field
  [java]Tracing compile failure path for type 
 'com.google.gwt.user.client.ui.AbsolutePanel'
  [java]   [ERROR] Errors in 
 'com/google/gwt/user/client/ui/AbsolutePanel.java'
  [java]  [ERROR] Line 280: ROOT cannot be resolved or is 
 not a field
  [java]Tracing compile failure path for type 
 'com.google.gwt.user.client.ui.UIObject'
  [java]   [ERROR] Errors in 
 'com/google/gwt/user/client/ui/UIObject.java'
  [java]  [ERROR] Line 657: ROOT cannot be resolved or is 
 not a field
  [java]  [ERROR] Line 775: ROOT cannot be resolved or is 
 not a field
  [java]Tracing compile failure path for type 
 'com.google.gwt.safehtml.shared.UriUtils'
  [java]   [ERROR] Errors in 
 'com/google/gwt/safehtml/shared/UriUtils.java'
  [java]  [ERROR] Line 240: ROOT cannot be resolved or is 
 not a field
  [java]  [ERROR] Line 235: ROOT cannot be resolved or is 
 not a field
  [java]  [ERROR] Line 84: ROOT cannot 

JsInterop JS_RC JsProperty name on method

2015-10-29 Thread simon . gijsen
Hi all,

Is seems like the following construction is not working when using the new 
JsInterop (JS_RC):

  @JsProperty(name = "facets")
  public Facet[] getFacetArray() { ... }

  @Override // This method is defined in an interface
  @JsIgnore
  public List getFacets() { ... }

The result is that the compiled property is still called facetArray.

Does anyone perhaps have any suggestions of how to work around this or why 
it is not working? If not, I will raise an issue in the GWT bug tracker, 
but I wanted to check here first.

Thanks!
Simon

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Automatic Testing for Google GWT based Application

2015-03-24 Thread Frank Simon
Hi,

We developed a Design Tool to Create Photobooks using Google GWT. We would 
like to realized automatic testing, especially performance testing from the 
User Interface. That is not so easy, because we habe to simulate a user 
with a Browser to do complex operations (move Elements, Upload Images, 
choose Styles, etc). 

I know there are some tools like SeleniumHQ what help to do this kind of 
testing. But i am looking for more service providers, that use this or 
other kind of tools for this kind of testing for us. 

Any suggestions or recommendations ?

best regards

Frank

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


IE Request Addon Apple when using Google GWT

2015-01-12 Thread Frank Simon
Hello,

we have a strange effect on MSIE 11 in our Google GWT Project. At one point 
the IE ask to install an Addon Apple (siehe Screenshot). 

We have no clue, where this Addon come from. Any hints ?

Frank

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


CHART RENDERING PROBLEMS

2013-10-17 Thread Fabio Simon
Hi 

I can't get my chart fit exactly the div it is contained in.

I would like a thing like this
https://developers.google.com/chart/interactive/docs/gallery

if you look over the html code and css with the ElementInspector you will 
notice the chart fits completely.
Infact I can not remove in my chart the YAXIS.

how to remove it ?
how make my chart fit the div ?

Thanks
F.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


THE APPLICATION IS OUT OF DATE

2013-09-19 Thread Fabio Simon
Hi

Hi just add a method to myService, myServiceAsyn, myServiceImpl but I get 
the following error

THE APPLICATION IS OUT OF DATE please refresh your browser etc etc, the 
method newMethod can be located etc etc..

what is the problem, I can not update my gwt sdk

Thanks in advance

BYE

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


GWT RPC using Object

2013-01-28 Thread simon . ingram
I'm getting errors at certain points when using RPC with a class that 
contains a field of type Object.* *I understand why GWT throws up an error 
in this case (since the Object field could be of any type, and GWT can't 
know how to serialise everything); however, if the field is changed to a 
type of ListObject, everything seems to work fine.

This is reproducible using the sample project code :
1) Create a new Web Application Project using the default project settings 
(which will generate a simple Greeting project).

2) In the shared package, add a new class as follows (import and package 
declarations omitted for brevity) :
  public class Blah implements Serializable {
  public String theString;
  public Object theObject;
  }

3) Add a method declaration to GreetingServiceAsync :
  void breakRPC(Blah blah, AsyncCallbackVoid callback);

4) Add corresponding methods to GreetingService and GreetingServiceImpl.

5) GWT Compile the project to generate the JS. The compilation will fail 
with the expected error of In order to produce smaller client-side code, 
'Object' is not allowed; please use a more specific type (reached via 
Blah).


Up to this point, I understand exactly what's going on. However, if you now 
change the type of theObject to ListObject in Blah, i.e. :
  public class Blah implements Serializable {
  public String theString;
  public ListObject theObject;
  }
and run the GWT Compile again, the compilation runs without errors.

How does this work? Surely in both these cases GWT is attempting to 
serialise Object?

-- 
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.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Chrome 24 and GWT

2013-01-25 Thread Simon K
I can't reproduce it on Chrome 24.0.1312.56 m either.

Is there a particular commit in this patch that might fixed the animation 
problem inadvertently? How likely is it for the issue to come back in the 
near future?


On Friday, 25 January 2013 00:45:46 UTC, John V Denley wrote:

 Looks to me like the latest release (Version 24.0.1312.56 m) fixes this 
 issue...

 On Sunday, 20 January 2013 22:04:32 UTC, darkflame wrote:

 Just to confirm/clarify this problem as I found it today. 


 PopupPanel test = new PopupPanel(); 

 test.add(new Label(test)); 

 test.setAnimationEnabled(true); 

 test.center(); 

 Is all it takes to reproduce it for me. 
 Animation seems to have to be true, it seems to work fine without, so 
 that could be a workaround for some people needing 2.4. 


 On Jan 15, 2:22 am, Thomas Broyer t.bro...@gmail.com wrote: 
  Sorry, didn't see that part of your mail: 
  
  On Monday, January 14, 2013 5:43:36 PM UTC+1, zarfh...@gmail.comwrote: 
  
   Perhaps you have the resources to fully regression test all of your 
   applications every week on all 8 or 9 different supported browsers, 
 plus 
   dev/beta versions, but in the real world of enterprise software, 
 that's 
   simply not feasible. 
  
  I don't have those resources, but I'm aware that it's what I should do. 
  It's actually even worse: I'm paid to build webapps, not maintaining 
 them. 
  We're not proactive on browser changes because that's not part of the 
 deal 
  with our customers, but we're generally in the situation of shipping a 
  fixed version (provided there's an easy fix or workaround) in a matter 
 of 
  hours. Once the warranty period is over however, I bet nobody does 
 testing 
  either and fixes can take ages. 
  BTW, I also know there *are* people in the real world of enterprise 
  software who *do* end-to-end testing, either using Selenium/WebDriver 
 on a 
  cluster of servers, or using SaaS such as Sauce Labs, driven by a CI 
 server 
  (Jenkins/Hudson, TeamCity, Bamboo, etc.) to be run on each commit 
 and/or 
  nightly. 
  
  The root of the issue is that most people (IT deps mostly) ask for 
 webapps 
  rather than native apps (generally to replace native apps) for bad 
 reasons 
  and/or without understanding the consequences. 
  
   Stable software should remain stable. If a customer upgrades his 
 version 
   of Windows, I shouldn't expect the new version to suddenly start 
 working 
   strangely because of a radical change in how animations are rendered. 
 A 
   similar concept should apply for web browsers. 
  
  ROTFL! 
  Are you talking about that Windows OS that breaks its WebDAV support in 
  almost every new version or service pack, and even sometimes hotfixes?
 http://www.greenbytes.de/tech/webdav/webdav-redirector-list.html(I had 
 to 
  do an emergency patch in a server after the SP1 was deployed on Win7 
 this 
  fall; BTW the webapp is 4 years old 'cause nobody allocated the budget 
 to 
  maintain and update it, not even with security fixes: “if it ain't 
 broke, 
  don't fix it”, BS; this is the state of software in the real world of 
  enterprise software: zombie servers on a drip of emergency fixes to 
 keep 
  them alive) 
  The one OS for which every IT department delays hotfix/SP deployment by 
  fear of breaking their payroll or LoB apps? (which is probably the main 
  reason there's still so many IE7 and IE8 out there –last year I would 
 even 
  have added IE6 to the list–). 
  
  But again, we're talking here about a bug in GWT, in the use of a 
 beta 
  API. And that bug was fixed long before the change in Chrome reached 
 end 
  users. 
  Also note that in a closed environment (intranet) running Windows, you 
 can 
  disable Chrome and/or ChromeFrame auto-updates using a group policy. 



-- 
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.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: GWT Designer - MenuBar

2013-01-16 Thread Emeriau Simon
I have the same problem
Simon.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/iR9f_dlRsIAJ.
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.



GWT i18n and images

2012-06-07 Thread Simon-Pierre Gingras
Hi!

See this post I made on Stack Overflow:
http://stackoverflow.com/questions/10884894/gwt-i18n-and-images

Thanks!

-Simon

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Iibk1lG8KKoJ.
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: HtmlUnit not running GWT js - onInjectionDone

2012-03-02 Thread Don Simon
I have noticed these err messages as well, when trying to test a GWT 
application under HTMLUnit.

On Wednesday, November 9, 2011 11:53:36 AM UTC-8, MH wrote:

 I'm trying to use htmlunit as recommended to return ? 
 _escaped_fragment_ queries by Google's crawler 

 I ask htmlunit to load my html page which contains a GWT program and 
 call waitForBackgroundJavaScript(). 

 However the page then returned  by .asXml() has not got any GWT 
 components. The only processing that has occurred is the insertion of 
 the following: 

 script defer=defer 
 //![CDATA[ 
 my gwt module name.onInjectionDone('my gwt module name') 
 //]] 
 /script 

 I don't know if it's relevant but htmlunit output these cryptic error 
 messages: 

 com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter 
 runtimeError 
 SEVERE: runtimeError: message=[Automation server can't create object 
 for 'ChromeTab.ChromeFrame'.] sourceName=[http://127.0.0.1:/ 
 com.procyor.Procyor/com.procyor.Procyor.nocache.js] line=[16] 
 lineSource=[null] lineOffset=[0] 

 com.gargoylesoftware.htmlunit.html.SimpleHTMLParserListener error 
 SEVERE: Empty document. (http://gaeHack_about/blank 1:6) 

 Any help appreciated!

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/NRvDy99AgsIJ.
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: Popup Panels are always displayed behind the youtube iframe

2011-12-27 Thread George Simon K
I too had this issue. Opaque fixed. Thanks

On Tue, Sep 20, 2011 at 12:33 AM, erebrus ereb...@gmail.com wrote:

 Thanks, that did it.

 On Sep 19, 2:47 pm, KevMo kevinps...@gmail.com wrote:
  Try adding wmode=Opaque to the end of the iFrame URL.
 
  On Sep 19, 1:16 am, erebrus ereb...@gmail.com wrote:
 
 
 
 
 
 
 
   Hi,
   I have HTMLPanel in which I include an iframe with a youtube. My
   problem is that whenever I display a popup panel (e.g. custom made
   dialog boxes) that youtube iframe is always displayed on top of the
   popup panel?
   Does anybody know how to solve this problem?
 
   Thanks

 --
 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.



-- 
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: CellTable styles incorrectly on IE9

2011-10-26 Thread Simon
I can confirm this bug.  Not only does this affect CellTable, but
DataGrid, CellSampler, and Cell Validation classes.  Anyone can
validate this by navigating to Google's own GWT Showcase at
http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTable in
IE9.

Where can we officially report this bug so it gets escalated
appropriately?  This is very important because I'm in the midst of a
missionary endeavor to convert to GWT at my company in lieu of
JSF(which in IMHO are much inferior paradigms for most applications),
and I'm losing traction over this! :P

Thanks in advance.

On Sep 24, 9:24 pm, drtman drt...@gmail.com wrote:
 I am using the latest, i.e. 2.4.0, and the latest version of the
 eclipse plugin (just updated last night).  Perhaps it's a some setting
 in IE9, but I have tried turning compatibility view on/off, putting
 the IE=9 meta tag in the html loader file, and a variety of other
 things, but it's just broken.  I am using IE 9.0.8112.16421.

 On Sep 24, 8:14 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
 wrote:

  IE9 is supported sinde GWT 2.3.0, what version of GWT are you use?

  2011/9/24 drtman drt...@gmail.com

   If I take the example code directly from the GWT API docs for
   CellTable (i.e. the code for an entry point module that creates and
   displays a contact table with a manual list), the table that is
   displayed has no formatting whatsoever on IE9.  It is just simple left-
   justified text with no styling and nothing is selectable.  If I
   replace the CellTable with a DataGrid, only the paging control
   displays.  On Chrome and Firefox these appear to work.  I have tried
   all combinations of styling, tried replacing the CellTable.Resources
   with my own styling, etc., etc. and it never works.

   Is there a trick to making the new data widgets style properly on IE9?

   --
   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.-Hide quoted text -

  - Show quoted text -

-- 
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.



Bizzare [ERROR] Invalid module name Bug Upon Launching Dev Server

2011-10-18 Thread Simon
This is without a doubt one of the most bizzare/inexplicable issues
I've experienced since I've begun programming.

I'm developing a multi-module GWT project that formerly had one of its
modules contained entirely within a JAR file.  I decided that this
particular module (the com.allen_sauer.gwt.dnd.gwt-dnd module, to be
specific) needed more work, so I extracted it from its JAR, removed
said JAR from the project's classpath/ build path, and proceeded to
insert all the relevant Java packages and the .gwt,xml file into the
src directory of my Eclipse project (where the rest of my modules
currently live), ensuring to retain exactly the same directory
hierarchy the module had while it was contained in the JAR.

When I tried to run the project as a local Java Development server
from Eclipse, it immediately crashed with an error that read:

Loading modules
   com.allen_sauer.gwt.dnd.gwt-dnd
  [ERROR] Invalid module name: 'com.allen_sauer.gwt.dnd.gwt-dnd'
[ERROR] shell failed in doStartup method

Although I proceeded to attempt to troubleshoot this problem by double-
checking my work and trying various ways to achieve my goal of
bringing the gwt-dnd's source into my project without creating this
error, the error remains.

Here's where the plot thickens:  eventually I just used my SVN
server's revert command to restore my project back to exactly the way
it was working before attempting to bring the other JAR's module into
the main body of my project.  Surprisingly, when I tried to run it,
the  Invalid module name error remained just as if I hadn't reverted
the project at all!  Interestingly enough, when I pulled a fresh copy
of that same project down from SVN, the error was gone and my project
ran just as well as it always had.

Determined to get to the bottom of this issue, I closed Eclipse and
used BeyondCompare3 to do a binary folder comparison between the
broken reversion and the working clean copy.  Although there were
subtle, minor differences between the two (mainly in the log files and
generated timestamps), I copied all these minor changes from the clean
copy back into the broken one.  Now, with both of these projects
BINARILY IDENTICAL, I re-opened Eclipse and lo-and-behold, the broken
project still gives me that same Invalid Module Name error and the
clean copy still works!

Because all the relevant project settings and properties files are
contained within the project directory in Eclipse,I'm at a total loss
on this one, does anyone have any suggestions or guidance?

-- 
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.



Eclipse GWT pluggin code formating

2011-07-27 Thread Simon Borysiewicz
Hi

I work in an organisation with a specified code format.  One of the
rules is no tabs, we use checkstyles to enforce this.  I am heavily
involved in GWT projects which requires some minimal use of JSNI
code.  When I enable the gwt plugin on the project my code formatter
replaces spaces with tabs, just inside the javascript tags (/*-{ }-
*/).  This causes checkstyle errors and I have to manually search and
replace the tabs with spaces to be able to check in my changes.  When
I disable the gwt plugin on the project the output of the formatter
returns to normal.

I could not find a setting or any description about how to disable the
auto formatting.  Is there a way to disable the formatting of JSNI
code?

Thanks in advanced.

Simon

-- 
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: More logs on requestfactory ?

2011-05-29 Thread Simon M
Thanks Stefan for your reply, my function sends null so I have to analyse on 
the server.

-- 
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.



More logs on requestfactory ?

2011-05-26 Thread Simon M
I am getting an exception sent by a Receiver :

Caused by: java.lang.RuntimeException: Server Error: null
at 
com.google.web.bindery.requestfactory.shared.Receiver.onFailure(Receiver.java:36)
at 
com.google.web.bindery.requestfactory.shared.impl.AbstractRequest.onFail(AbstractRequest.java:113)
at 
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext$StandardPayloadDialect.processPayload(AbstractRequestContext.java:271)
at 
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext$4.onTransportSuccess(AbstractRequestContext.java:951)
at 
com.google.web.bindery.requestfactory.gwt.client.DefaultRequestTransport$1.onResponseReceived(DefaultRequestTransport.java:136)

But I have no idea where that comes from, neither do I have any hint from 
the stacktrace. And there is no log on server side as well.

Is it possible to raise the log level of request factory ?

-- 
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.



GWT Cross Site JSON with https Auth

2011-05-06 Thread simon
Hello,

I have to receive some JSON data from a remote server (a Tomcat App.
Server), which is only available at https with username and password.
All the workarounds to bypass the SOP doesnt support the https
authenification. I am well aware that this bring on various security
problem, but it is only for development.

Thank you

-- 
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.



Return false in Window.confirm(msg) in GwtTestCase

2011-04-18 Thread Simon LG
Hi,

I'm trying to return false when Window.confirm(msg) is called in a
GwtTestCase. It is always returning true by HtmlUnit because it has no
ConfirmHandlers.

Is there a way to override this function ?

Thanks

Simon

-- 
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.



Edit multiple properties of an object

2011-04-12 Thread Simon M
Hello,

I want to edit multiple properties of my object in a second class (it is 
messy otherwise).

I saw the following in the documentation:

class HasBagOfStateEditor implements EditorHasBagOfState {
 @Editor.Path(state)
 BagOfStateBiographicalEditor bio;
 
 @Editor.Path(state)
 BagOfStateUserPreferencesEditor prefs;
}


But it looks like it is editing multiple properties of a the sub element 
state of the object, not on multiple properties of the object itself.

How can I edit multiple properties of the top object being edited ?

That would be something like that:

@Editor.Path(this)

-- 
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: Editor+RequestFactory: how to get the new saved object ?

2011-03-27 Thread Simon M
When setting the receiver on the same line as the call of the method I get 
the good Receiver type, but with the RequestContext returned by 
editor.flush() the Receiver has a Void parameter ...

Using the to() method resolved that issue thank you.

-- 
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.



Editor+RequestFactory: how to get the new saved object ?

2011-03-26 Thread Simon M
I am using the editor framework + RequestFactory, and when creating a new 
object I need to get the new saved object (some fields are populated on the 
server).

The problem is, the request context returned by the editorDriver.flush() 
sends a Receiver*Void*, and not a Receiver*EntityProxy*.

How can I do that / workaround that ?

-- 
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.



Using Ant 1.7.1 with GWT 2.2 in Eclipse Dev Mode

2011-03-17 Thread Simon
Hello,

I want to use Ant 1.7.1 on the server side for some zip tasks.
However, if I start the application from within eclipse using the
development mode, there is a conflict between the ant library included
within the gwt-dev.jar (as it includes ant 1.8.2) and ant 1.7.1 I want
to use.

If I deploy my webapp to Tomcat 7, I do not have any problems.

Is it possible to override the ant 1.8.2 library from gwt-dev.jar with
the ant 1.7.1 library and still be able to use the Eclipse
Developement Mode for GWT?

Cheers,
Simon

-- 
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: Programmatic manipulation of the style elements

2011-03-17 Thread Simon M
I used the # 3 : 

   - arrow.getElement().getStyle().setTop(y, Style.Unit.PCT);

Thank you for your help

-- 
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.



Programmatic manipulation of the style elements

2011-03-16 Thread Simon M
I need to position absolutely my div object depending of one field of my 
domain object. 

I mean:

if the field of my object is 2, then top should be 25% ( = 0.5 / 2)

if the field is 3, then top should be 16.6% ( = 0.5 / 3)

etc.

Programmatic update of styles is not allowed right now as specified here:
http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#Runtime_substitution

Does someone have a workaround for that issue ?

-- 
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: Load javascript on the fly

2011-03-14 Thread Simon M
For reference a fine solution is here :
http://technowobble.blogspot.com/2010/06/how-to-integrate-facebooks-javascript.html

-- 
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.



Load javascript on the fly

2011-03-13 Thread Simon M
I try to integrate with Facebook. I want to load the javascript file from 
Facebook dynamically.

I created the following method to load the js file and then initialize FB:

private native void initFacebook(String fbAppId) /*-{
var script = document.createElement(script);
script.src = http://connect.facebook.net/en_US/all.js;;
script.type = text/javascript;
$doc.getElementsByTagName(head)[0].appendChild(script);
var fbroot = document.createElement('div');
fbroot.setAttribute('id', 'fb-root')
$doc.getElementsByTagName(body)[0].appendChild(fbroot);

FB.init({
appId  : fbAppId,
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the 
session
xfbml  : true  // parse XFBML
});
}-*/;

But the FB object is not found :

at java.lang.Thread.run(Thread.java:619)
Caused by: com.google.gwt.core.client.JavaScriptException: (ReferenceError): 
FB is not defined

(I tried also with $wnd.FB without success)

Any idea ?

-- 
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: Load javascript on the fly

2011-03-13 Thread Simon M
Yes that would be easier but I don't want to load the Facebook 
javascript everytime, only when it is needed.

I think the issue happened because the FB object was called before the 
script was loaded.

So I added some code to wait until the code is loaded:

private native void initFacebook(String fbAppId) /*-{
var fbroot = $doc.createElement('div');
fbroot.setAttribute('id', 'fb-root')
$doc.body.appendChild(fbroot);

var script = $doc.createElement(script);
script.src = http://connect.facebook.net/en_US/all.js;;
script.type = text/javascript;
$doc.body.appendChild(script);

function callback() {
$wnd.FB.init({
appId : fbAppId,
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true
// parse XFBML
});
$wnd.FB.login(function(response) {
  if (response.session) {
$wnd.Alert(Logged in);
  } else {
$wnd.Alert(Cancelled);
  }
});
}
 if (script.readyState) { //IE
script.onreadystatechange = function() {
if (script.readyState == loaded
|| script.readyState == complete) {
script.onreadystatechange = null;
callback();
}
};
} else { //Others
script.onload = function() {
callback();
};
}


}-*/;


I guess I need to add some timeout management here, and cleanup as well ...

If anyone has other advise I would be happy to hear it.

-- 
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.



Hyperlink: Why the anchor element is nested into a div ?

2011-03-12 Thread Simon M
I am curious to know.

-- 
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: Can't make @sprite working ...

2011-03-04 Thread Simon M
Yes that's it thank you

-- 
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.



Can't make @sprite working ...

2011-03-03 Thread Simon M
Does someone have a hint I am going no where with that thing ...

Here is the LoginPanel.ui.xml:

ui:style type=my.client.LoginPanel.LoginStyle
@sprite .logo {
gwt-image: googleIcon;
vertical-align: middle;
}
/ui:style

g:Anchor ui:field=googleAnchor styleName={style.logo}Google/g:Anchor



And the code in the associated LoginPanel.java:

public interface LoginStyle extends CssResource {
String logo();
}
@UiField LoginStyle style;
public interface Resources extends ClientBundle {
@Source(images/Google32.png) 
ImageResource googleIcon();
} 
Resources res; 


But I got :
Unable to find ImageResource method value(googleIcon) in 
my.client.LoginPanel_BinderImpl_GenBundle : Could not find no-arg method 
named googleIcon in type my.client.LoginPanel_BinderImpl_GenBundle

-- 
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.



log4j:ERROR setFile(null,true) call failed.

2011-02-23 Thread Simon
Hi, I have added a YAWL api to my GWT project, and am getting the
following error below. Am using eclipse gwt plugin with GWT2.0.0 .
Where can I define those paths with GWT's default jetty server?

--
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /logs/default.log (No such file or
directory)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.init(FileOutputStream.java:177)
at java.io.FileOutputStream.init(FileOutputStream.java:102)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:
165)
at
org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:
223)
at
org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:
307)
at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:
172)
at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:
104)
at
org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:
809)
at
org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:
735)
at
org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:
615)
at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:
502)
at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:
547)
at
org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:
483)
at org.apache.log4j.LogManager.clinit(LogManager.java:127)
at org.apache.log4j.Logger.getLogger(Logger.java:104)
at
org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:
229)
at
org.apache.commons.logging.impl.Log4JLogger.init(Log4JLogger.java:
65)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:
529)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:
235)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:
209)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
at org.apache.jasper.servlet.JspServlet.clinit(JspServlet.java:58)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:
253)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:
616)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:
1220)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:
513)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
448)
at com.google.gwt.dev.shell.jetty.JettyLauncher
$WebAppContextWithReload.doStart(JettyLauncher.java:447)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:
130)
at
org.mortbay.jetty.handler.RequestLogHandler.doStart(RequestLogHandler.java:
115)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:
130)
at org.mortbay.jetty.Server.doStart(Server.java:222)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at
com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:
536)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:377)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:938)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:690)
at com.google.gwt.dev.DevMode.main(DevMode.java:251)

-- 
You received this message 

Need help with how to handle system events like the system sleeping/waking

2011-02-21 Thread Glenn Simon
I have written an app that works fine, but when the user PC sleeps due
to power settings and the channel times out, I have to refresh the
browser to restart the app.  I would like to find a handler that will
do something just before the system sleeps and do something else as
the system wakes up again.  I'm looking for a window or browser
handler with onSleep() and onWake() methods or something like that.
Anybody know where I can find it?

-- 
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: Problem trying to use JSNI to eval() a JSON string

2011-02-21 Thread Glenn Simon
I finally figured this out (a while ago) and thought I would post the
solution in case anybody else has the same problem.  It turns out I
needed to add an inherit line to my app.gwt.xml file, as follows:

  !-- Inherit the JSON parsing stuff.--
  inherits name='com.google.gwt.json.JSON'/

By doing that it made the JSONParser and related classes available on
the client side.  I couldn't find that documented anywhere, but
stumbled upon it on my own.

Happy Apping!
Glenn

On Jan 17, 1:03 am, Glenn Simon glenncochransi...@gmail.com wrote:
 Thanks for trying to help, guys, but after modifying and checking the
 string with JsonUtils, trying com.google.gwt.json.client.JSONParser
 (tells me the code is unavailable and fails to load my app), and
 reading Google docs 'til my eyes hurt I can't for the life of me
 figure out how to make JSON work in my app.  I know I'm doing
 something wrong but I can't figure out what it is.  I just want a way
 of getting some formatted string data from the server to the client in
 push mode using the Channel.  I can get what looks like a JSON string
 to the client in push mode, but can't find any tools that work to help
 me parse the JSON string once it is at the client.  I'll try switching
 to XML.

-- 
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.



Requestfactory server logs

2011-02-15 Thread Simon M
I am trying to use Requestfactory  editors, but when saving a new object I 
get nothing. I mean, the request ends ok, but on server side nothing 
happens, the persist method is not called.

How can I get more logs about what is happening ?

-- 
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: Problem trying to use JSNI to eval() a JSON string

2011-01-17 Thread Glenn Simon
Thanks for trying to help, guys, but after modifying and checking the
string with JsonUtils, trying com.google.gwt.json.client.JSONParser
(tells me the code is unavailable and fails to load my app), and
reading Google docs 'til my eyes hurt I can't for the life of me
figure out how to make JSON work in my app.  I know I'm doing
something wrong but I can't figure out what it is.  I just want a way
of getting some formatted string data from the server to the client in
push mode using the Channel.  I can get what looks like a JSON string
to the client in push mode, but can't find any tools that work to help
me parse the JSON string once it is at the client.  I'll try switching
to XML.

-- 
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.



request factory: collections of collections

2011-01-17 Thread Simon M
Hello,

It would be convenient for me that request factory manages collections of 
collections.

Is that planned ?

If it is not planned, it would be nice to have an explicit error instead of 
current strange error.

-- 
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: Problem trying to use JSNI to eval() a JSON string

2011-01-16 Thread Glenn Simon
Yeah, that makes sense.  And this is only client side anyway.  But I
have tried with and without the Serializable implementation and get
the same result.  Do I somehow need to convert the string to a JSON
object before passing it to eval()?

-- 
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.



Problem trying to use JSNI to eval() a JSON string

2011-01-15 Thread Glenn Simon
Here is some of my code:

public abstract class Message extends JavaScriptObject implements
Serializable { // does it need to be serializable?
protected Message() {}
public final native String getType() /*-{ return this.type; }-*/;
public final native Long getTimeLeft() /*-{ return this.timeleft; }-
*/;
}

public static native Message parseJson(String jsonStr) /*-{
return eval(jsonStr);
}-*/;

String myString = { \type\ : \complete\, \timeleft\ : -5000 };

Message message = parseJson(myString);

Window.alert(type:  + message.getType());

During the parseJson call, I get kicked into MethodDispatch.class when
an exception is caught:

} catch (InvocationTargetException e) {
  // If we get here, it means an exception is being thrown from
  // Java back into JavaScript
  wrapException(returnValue, e.getTargetException());
  return true;
}

I have read the docs numerous times, and can't figure out what I am
doing wrong.  Can anyone help me?  Thanks in advance.

Glenn

-- 
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: Example to test RequestFactory in JRE

2010-12-30 Thread Simon Majou
I completed with that code from RequestFactoryJreTest :

  DomainRequestFactory rF = 
RequestFactoryMagic.create(DomainRequestFactory.class);
  EventBus eventBus = new SimpleEventBus();
  ServiceLayer serviceLayer = ServiceLayer.create();
  SimpleRequestProcessor processor = new 
SimpleRequestProcessor(serviceLayer);
  rF.initialize(eventBus, new InProcessRequestTransport(processor));

But still the same error.

-- 
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-tool...@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: 2.1.1 Documentation Please

2010-12-30 Thread Simon Majou
Where do you find Service Layer into those 2 links ?

-- 
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-tool...@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: Example to test RequestFactory in JRE

2010-12-30 Thread Simon Majou
That's it thank you !

-- 
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-tool...@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.



requestfactory don't allow appengine parent relationship ?

2010-12-30 Thread Simon Majou
I am using GAE and when I create an entity having parents with Request 
Factory, I get this exception:

com.googlecode.objectify.NotFoundException: No entity was found matching the 
key: Key{kindClassName=com.pipo.MyEntity, parent=null, id=2}

This exception is launched when calling:

public static MyEntity findMyEntity(Long id) {
return ObjectifyService.begin().get(MyEntity.class, id);
}

Obviously the parent ID is missing from this method. But requestfactory 
requires this method with this exact signature ...

So I think I need to inject by myself the parent id into that method.

To do that I should use the ServiceLayer API right ?

-- 
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-tool...@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.



Example to test RequestFactory in JRE

2010-12-29 Thread Simon Majou
Hello,

Is there some example of how to test request factory code in JRE ?

I found that :
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/test/com/google/gwt/requestfactory/server/RequestFactoryJreTest.java?r=9485

But I am not sure how to do the actual test ?

-- 
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-tool...@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: Example to test RequestFactory in JRE

2010-12-29 Thread Simon Majou
I tried to use the class  RequestFactoryMagic but I get the following 
exception:

java.lang.IllegalArgumentException: Attempting to edit an EntityProxy 
previously edited by another RequestContext


Here is my code:

  DomainRequestFactory rF = 
RequestFactoryMagic.create(DomainRequestFactory.class);
  UserProxy bob = rF.userRequest().create(UserProxy.class);
  String email = b...@toto.org;
  bob.setEmail(email);
  rF.userRequest().persist().using(bob).fire();
  
  rF.userRequest().findByEmail(email).fire(new ReceiverUserProxy() {
@Override
public void onSuccess(UserProxy user) {
assertNotNull(user);
}
  });

-- 
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-tool...@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.



Something other than an int was returned from JSNI method

2010-12-19 Thread Simon Majou
A wierd bug appeared in my application : 

com.google.gwt.dev.shell.HostedModeException: Something other than an int 
was returned from JSNI method 
'@com.google.gwt.user.client.Timer::createTimeout(Lcom/google/gwt/user/client/Timer;I)':
 
JS value of type JavaScript object(13), expected int at 
com.google.gwt.dev.shell.JsValueGlue.getIntRange(JsValueGlue.java:266) at 
com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:144) at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeInt(ModuleSpace.java:247) 
at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeInt(JavaScriptHost.java:75) 
at com.google.gwt.user.client.Timer.createTimeout(Timer.java) at 
com.google.gwt.user.client.Timer.schedule(Timer.java:110)
at rates.client.Rates$1.onFlashMessage(Rates.java:94)

And here is my code, it fails on the method schedule :
eventBus = new SimpleEventBus(); final Label flashPanel = new Label(); 
flashPanel.addStyleName(topMessage); flashPanel.setVisible(false); 
RootPanel.get(flash).add(flashPanel); 
eventBus.addHandler(FlashMessageEvent.TYPE, new FlashMessageEvent.Handler() 
{ @Override public void onFlashMessage(final FlashMessageEvent event) { 
flashPanel.setText(event.getMessage()); flashPanel.setVisible(true); 
flashPanel.addStyleName(event.getStatus()); Window.scrollTo(0, 0); new 
Timer() { @Override public void run() { flashPanel.setVisible(false); 
flashPanel.removeStyleName(event.getStatus()); // 
flashMessage.removeFromParent(); } }.schedule(1); // Line 94 } });


-- 
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-tool...@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: Something other than an int was returned from JSNI method

2010-12-19 Thread Simon Majou
The issue is general to my application, when I comment the faulty code I get 
the error on another native type :


com.google.gwt.dev.shell.HostedModeException: Something other than a boolean 
was returned from JSNI method 
'@com.google.gwt.user.client.impl.HistoryImplTimer::init()': JS value of 
type JavaScript object(264), expected boolean
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:100)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeBoolean(ModuleSpace.java:186)
at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeBoolean(JavaScriptHost.java:35)
at 
com.google.gwt.user.client.impl.HistoryImplTimer.init(HistoryImplTimer.java)
at com.google.gwt.user.client.History.clinit(History.java:63)

This code causing the error is GWT code, not mine ... Here it is :

impl = GWT.create(HistoryImpl.class);
if (!impl.init()) {


That doesn't make any sense ...

-- 
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-tool...@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: Something other than an int was returned from JSNI method

2010-12-19 Thread Simon Majou
Damn the bug is coming for chrome 10 and the plugin ...

https://groups.google.com/d/topic/google-web-toolkit/1hcrVTxvOh0/discussion

-- 
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-tool...@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: Request factory: key xxx is not permitted to be set

2010-12-14 Thread Simon Majou
Thanks for the advice, I am going to try that one.

On Tue, Dec 14, 2010 at 11:03, Thomas Broyer t.bro...@gmail.com wrote:

 Have you tried 2.1.1-rc1? The server-side part is a complete rewrite.

 --
 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-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
Cordialement / Best regards,

Simon Majou

-- 
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-tool...@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: Request factory: key xxx is not permitted to be set

2010-12-14 Thread Simon Majou
It works fine with 2.1.1-rc1.

-- 
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-tool...@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: Request factory: key xxx is not permitted to be set

2010-12-13 Thread Simon Majou
Ok in fact Request factory checks the fields of the entity and not the 
accessors (into the validateKeys method of the class JsonRequestProcessor).

It is quite unexpected as we expose accessors into the proxy and not fields.

So it seems impossible to use Request factory with relationships using Keys 
right now.

-- 
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-tool...@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.



Request factory: key xxx is not permitted to be set

2010-12-12 Thread Simon Majou
I want to create an object with a relationship with request factory.


I don't have the actual related object, just its id.



So I added into the object a getter and setter to convert the id into a
Key :


KeyUser ownerKey;
public KeyUser getOwnerKey() {
return ownerKey;
}
public void setOwnerKey(KeyUser owner) {
this.ownerKey = owner;
}
public void setOwnerId(Long ownerId) {
this.ownerKey = new KeyUser(User.class, ownerId);
}
public Long getOwnerId() {
return ownerKey == null ? null : ownerKey.getId();
}



But when I try to persist a new object I get this exception :


java.lang.IllegalArgumentException: key ownerId is not permitted to be
set
at
com.google.gwt.requestfactory.server.JsonRequestProcessor.validateKeys(JsonRequestProcessor.java:974)


Where does it come from ?

-- 
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-tool...@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: RequestFactory don't play nice with guice?

2010-12-06 Thread Simon Majou
Thanks for the info.

On Dec 5, 10:48 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 5 déc, 01:06, Simon Majou si...@majou.org wrote:

  When creating an object with RequestFactory the @inject fields are not
  injected. I guess RequestFactory don't use guice to create the
  objects. How can I delegate objects creation to Guice?

 Just wait for the 2.1.1 release and then implement a
 ServiceLayerDecorator.
 Seehttp://code.google.com/p/google-web-toolkit/wiki/RequestFactory_2_1_1
 andhttp://code.google.com/p/google-web-toolkit/source/browse/releases/2
 Javadoc for each method can be find in the ServiceLayer 
 class:http://code.google.com/p/google-web-toolkit/source/browse/releases/2

-- 
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-tool...@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.



RequestFactory don't play nice with guice?

2010-12-04 Thread Simon Majou
When creating an object with RequestFactory the @inject fields are not
injected. I guess RequestFactory don't use guice to create the
objects. How can I delegate objects creation to Guice?

-- 
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-tool...@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.



Requestfactory: server side request are static...

2010-11-28 Thread Simon Majou
I think it would be better to move the requests out of the entity in
their own class and annotate them just like for the proxy (something
like @requestsFor(Entity.class)). Would it be possible?

-- 
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-tool...@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.



Request factory: java.lang.NoClassDefFoundError: org/json/JSONException

2010-11-27 Thread Simon Majou
Hello,

I am trying to run the dynatablerf example for request factory, and I
get :

bodyh2HTTP ERROR: 500/h2preorg/json/JSONException/pre
pRequestURI=/gwtRequest/ph3Caused by:/
h3prejava.lang.NoClassDefFoundError: org/json/JSONException
at
com.google.gwt.requestfactory.server.RequestFactoryServlet.doPost(RequestFactoryServlet.java:
111)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1097)
at
com.google.gwt.sample.dynatablerf.server.SchoolCalendarService.doFilter(SchoolCalendarService.java:
91)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1088)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
360)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
181)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
729)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at
org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:
49)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
505)
at org.mortbay.jetty.HttpConnection
$RequestHandler.content(HttpConnection.java:843)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
395)
at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:488)
Caused by: java.lang.ClassNotFoundException: org.json.JSONException
at java.lang.ClassLoader.findClass(ClassLoader.java:359)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:
352)
at
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:
337)
... 23 more

Can you tell which jar to use to resolve that ? Shouldn't the classes
be included into GWT 2.1 ?

-- 
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-tool...@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.



List Box widgets like in gmail

2010-07-09 Thread Simon B
Hi,
I need to incorporate into a filter widget functionality like that
found in gmail in the Move to, Labels and More actions List Box
widgets that are found in the gmail mail application.

Basically so that I can use the checkboxes and also they need to
support all the event handling as well, does anyone know of a widget
that supports this?

Any help much appreciated

-- 
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-tool...@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: Odd serialization error

2010-06-15 Thread Simon
Finally found it!

One of the referenced classes had itself a inverse reference back to
Translation. It seems like Gilead cannot handle this resulting (at
least for complex PKs) in a immensely large tree beeing sent back.

I now use @ServerOnly on the inverse which solves the problem.

Cheers
Simon

-- 
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-tool...@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.



Odd serialization error

2010-06-14 Thread Simon
Hi all,

I have a strange serialization problem using the following setup:

GWT 2.0.3
GXT 2.1.1
Spring 3.0.2
Hibernate 3.5.1
Gilead 1.3.2

I'd like to serialize the following class:

@Entity
@Table(name=Core_Translation)
public class Translation extends LightEntity{

@Id
private TranslationPK id;

@Column(name = translation_value)
private String translationValue;

@ManyToOne(cascade = CascadeType.ALL, optional = true)
@JoinColumn(name=owner_id)
private Party owner;

//getters / setters
}

Now the strange thing: Under Chome, the class is never included in the
serialization policy file. Using Firefox (or IE), the class is
included about half of the time (pressing F5 to reload the page).

This yields the typical exception:
Type 'ch.wd.domain.core.translation.Translation' was not included in
the set of types which can be serialized by this SerializationPolicy
or its Class object could not be loaded. For security purposes, this
type will not be serialized.: instance =
ch.wd.domain.core.translation.translat...@1d470a6

All involved classes have default constructors and implement
serializable (via LightEntity, though I also tried with Serializable
implemented directly).

BTW: The problem does not occure if run in compiled mode. For none of
the browsers.

Any ideas?

Thanks,
Simon


The full stack trace is:

java.lang.RuntimeException:
com.google.gwt.user.client.rpc.SerializationException:
java.lang.reflect.InvocationTargetException
at
org.gwtwidgets.server.spring.GWTRPCServiceExporter.handleExporterProcessingException(GWTRPCServiceExporter.java:
384)
at
org.gwtwidgets.server.spring.GWTRPCServiceExporter.processCall(GWTRPCServiceExporter.java:
353)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
224)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
62)
at
org.gwtwidgets.server.spring.GWTRPCServiceExporter.handleRequest(GWTRPCServiceExporter.java:
407)
at
org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle(HttpRequestHandlerAdapter.java:
49)
at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:
771)
at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:
716)
at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:
644)
at
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:
560)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1097)
at org.springframework.security.web.FilterChainProxy
$VirtualFilterChain.doFilter(FilterChainProxy.java:343)
at
ch.wd.server.security.GWTExceptionTranslationFilter.doFilter(GWTExceptionTranslationFilter.java:
93)
at org.springframework.security.web.FilterChainProxy
$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
at
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:
109)
at
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:
83)
at org.springframework.security.web.FilterChainProxy
$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
at
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:
188)
at org.springframework.security.web.FilterChainProxy
$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
at
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:
149)
at
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:
237)
at
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:
167)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1088)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
360)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
181)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
729)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at
org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:
49)
at
org.mortbay.jetty.handler.HandlerWrapper.handle

DockLayoutPanel messed up with UiBinder

2010-06-13 Thread Simon
My simple DockLayoutPanel test is all messed up: the south element
appears at the top of the page, the west and center elements don't
appear ...


!DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder
xmlns:g=urn:import:com.google.gwt.user.client.ui
g:DockLayoutPanel unit='EM'
g:north size='5'
g:LabelTop/g:Label
/g:north
g:south size='2'
g:HTMLsouth/g:HTML
/g:south
g:west size='10'
g:HTML
west
/g:HTML
/g:west
g:center
g:LabelBody/g:Label
/g:center
/g:DockLayoutPanel
/ui:UiBinder

And how it is inserted :

@Override
public void onModuleLoad() {
TestUiBinder testUI = new TestUiBinder();
RootPanel.get().add(testUI);
}

I guess I am missing something, but I can't figure what ...

-- 
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-tool...@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: DockLayoutPanel messed up with UiBinder

2010-06-13 Thread Simon
Thanks !

On Jun 13, 6:17 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 13 juin, 17:59, Simon sp.ma...@gmail.com wrote:





  My simple DockLayoutPanel test is all messed up: the south element
  appears at the top of the page, the west and center elements don't
  appear ...

  !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
  ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder
          xmlns:g=urn:import:com.google.gwt.user.client.ui
          g:DockLayoutPanel unit='EM'
                  g:north size='5'
                          g:LabelTop/g:Label
                  /g:north
                  g:south size='2'
                          g:HTMLsouth/g:HTML
                  /g:south
                  g:west size='10'
                          g:HTML
                          west
                          /g:HTML
                  /g:west
                  g:center
                          g:LabelBody/g:Label
                  /g:center
          /g:DockLayoutPanel
  /ui:UiBinder

  And how it is inserted :

          @Override
          public void onModuleLoad() {
                  TestUiBinder testUI = new TestUiBinder();
                  RootPanel.get().add(testUI);
          }

  I guess I am missing something, but I can't figure what ...

 The part where it says you should use RootLayoutPanel instead of
 RootPanel when using layout panels, or give your panel a fixed size
 (Using a LayoutPanel without RootLayoutPanel 
 section):http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html#Re...

-- 
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-tool...@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: GEP include Maven test scoped dependencies in the classpath in DevMode

2010-05-10 Thread Simon
Nobody has a solution ? :)


On 7 mai, 16:16, Simon simon.bar...@gmail.com wrote:
 Hello !

 I made a project in Eclipse to demonstrate this issue when using GEP
 and M2 Eclipse Plugin.

 The project is structured like a standard Maven web project, with
 sources in src/main/java and web files in src/main/webapp.

 I configured it with this pom.xml  :

 ?xml version=1.0 encoding=UTF-8?
 project xmlns=http://maven.apache.org/POM/4.0.0; 
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
         
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0_0.xsd;

         modelVersion4.0.0/modelVersion

         groupIdorg.test/groupId
         artifactIdgwt-sample/artifactId
         version1.0.0-SNAPSHOT/version

         packagingwar/packaging

         properties
                 
 project.build.sourceEncodingUTF-8/project.build.sourceEncoding
                 maven.compiler.source1.6/maven.compiler.source
                 maven.compiler.target1.6/maven.compiler.target
                 gwt.version2.0.3/gwt.version
         /properties

         dependencies

                 dependency
                         groupIdcom.google.gwt/groupId
                         artifactIdgwt-user/artifactId
                         version${gwt.version}/version
                         scopeprovided/scope
                 /dependency

                 dependency
                         groupIdjunit/groupId
                         artifactIdjunit/artifactId
                         version4.8.1/version
                         scopetest/scope
                 /dependency

         /dependencies

         build

                 plugins
                         plugin
                                 artifactIdmaven-compiler-plugin/artifactId
                                 configuration
                                         
 source${maven.compiler.source}/source
                                         
 target${maven.compiler.target}/target
                                         optimizetrue/optimize
                                         showWarningstrue/showWarnings
                                         
 showDeprecationtrue/showDeprecation
                                 /configuration
                         /plugin
                         plugin
                                 groupIdorg.codehaus.mojo/groupId
                                 artifactIdgwt-maven-plugin/artifactId
                                 executions
                                         execution
                                                 goals
                                                         goalclean/goal
                                                         goalcompile/goal
                                                         goaltest/goal
                                                 /goals
                                         /execution
                                 /executions
                         /plugin
                 /plugins

         /build

 /project

 Then, I created a simple EntryPoint, a simple application.html file
 and I ran the project using GEP (Run As  Web Application).

 Here is the resulting JAVA command line (formatted) :

 D:\devel\tools\win32\jdk-1.6.0_18\bin\javaw.exe
 -Xmx512m
 -Dfile.encoding=UTF-8
 -classpath
 D:\devel\sources\base\gwt\gwt-sample\src\main\java;
 D:\devel\sources\base\gwt\gwt-sample\target\classes;
 D:\devel\local-repository\com\google\gwt\gwt-user\2.0.3\gwt-
 user-2.0.3.jar;
 D:\devel\local-repository\junit\junit\4.8.1\junit-4.8.1.jar;
 D:\devel\tools\win32\eclipse-jee-galileo-SR1-win32\plugins
 \com.google.gwt.eclipse.sdkbundle.
 2.0.3_2.0.3.v201002191036\gwt-2.0.3\gwt-user.jar;
 D:\devel\tools\win32\eclipse-jee-galileo-SR1-win32\plugins
 \com.google.gwt.eclipse.sdkbundle.
 2.0.3_2.0.3.v201002191036\gwt-2.0.3\gwt-dev.jar
 com.google.gwt.dev.DevMode
 -war D:\devel\sources\base\gwt\gwt-sample\target\gwt-sample-1.0.0-
 SNAPSHOT
 -remoteUI 3168:274053652797451
 -startupUrl application.html
 -logLevel INFO
 -port 
 org.test.gwt.Application

 You can see that the junit artifact has been included to the
 classpath, though it has the scope set to test in the pom.xml !!!

 To see if it was an issue with the m2eclipse plugin, I added a simple
 main method into my entry point class and then I ran it (Run As  Java
 Application).

 Here is the resulting JAVA command line (formatted) :

 D:\devel\tools\win32\jdk-1.6.0_18\bin\javaw.exe
 -Dfile.encoding=UTF-8
 -classpath
 D:\devel\sources\base\gwt\gwt-sample\target\classes;
 D:\devel\tools\win32\eclipse-jee-galileo-SR1-win32\plugins
 \com.google.gwt.eclipse.sdkbundle.
 2.0.3_2.0.3.v201002191036\gwt-2.0.3\gwt-user.jar;
 D:\devel\tools\win32\eclipse-jee-galileo-SR1-win32\plugins
 \com.google.gwt.eclipse.sdkbundle.
 2.0.3_2.0.3.v201002191036\gwt-2.0.3\gwt-dev.jar;
 D:\devel\local-repository\com\google\gwt\gwt-user\2.0.3\gwt-
 user-2.0.3.jar

GEP include Maven test scoped dependencies in the classpath in DevMode

2010-05-07 Thread Simon
 can do to fix this ?

Cheers,

Simon

-- 
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-tool...@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.



Uncaught exception: java.lang.RuntimeException: Failed to invoke native method

2010-04-22 Thread Simon
Hi Developers,
I get this exception while parsing some xform documents. I am tracing
for the cause of the problem, and a solution to it. Your help is
welcome.
Below is the full stack trace.
--
Uncaught exception: java.lang.RuntimeException: Failed to invoke
native method:
@com.google.gwt.xml.client.impl.XMLParserImpl::getChildNodes(Lcom/
google/gwt/core/client/JavaScriptObject;) with 1 arguments.
at
com.google.gwt.dev.shell.moz.LowLevelMoz.invoke(LowLevelMoz.java:132)
at
com.google.gwt.dev.shell.moz.ModuleSpaceMoz.doInvoke(ModuleSpaceMoz.java:
98)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
447)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
228)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at
com.google.gwt.xml.client.impl.XMLParserImpl.getChildNodes(XMLParserImpl.java)
at
com.google.gwt.xml.client.impl.NodeImpl.getChildNodes(NodeImpl.java:
101)
at
org.purc.purcforms.client.xpath.XPathLocationStep.getResult(XPathLocationStep.java:
115)
at
org.purc.purcforms.client.xpath.XPathExpression.init(XPathExpression.java:
92)
at
org.purc.purcforms.client.util.LanguageUtil.translate(LanguageUtil.java:
114)
at org.openxdata.server.admin.client.view.StudyView
$3.execute(StudyView.java:532)
at
com.google.gwt.user.client.CommandExecutor.doExecuteCommands(CommandExecutor.java:
311)
at com.google.gwt.user.client.CommandExecutor
$2.run(CommandExecutor.java:206)
at com.google.gwt.user.client.Timer.fireImpl(Timer.java:164)
at com.google.gwt.user.client.Timer.fireAndCatch(Timer.java:150)
at com.google.gwt.user.client.Timer.fire(Timer.java:142)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at
com.google.gwt.dev.shell.moz.MethodDispatch.invoke(MethodDispatch.java:
80)
at
org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native
Method)
at
org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1428)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:
2840)
at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720)
at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)
--

Regards,
Simon.

-- 
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-tool...@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: DevMode stopped working on Linux x64 since 2.0.3

2010-04-22 Thread Simon
Nice sharing, Eggsy.

Simon.
On Apr 22, 11:40 am, eggsy84 jimbob...@hotmail.com wrote:
 Hi all,

 Just to let anyone know who stumbles across this thread.

 I have found out what was causing my DevMode to stop working and not
 hit my breakpoints.

 Within my gwt.xml definition file I was using the 'xs' linker as my
 script can be deployed on multiple websites.

 If you specify this linker DevMode does debug successfully.

 So if you comment out the linker whilst you are debugging and remember
 to uncomment the linker for deployment - everything should be hunky
 dory!

 Eggsy

 On Apr 1, 12:49 pm, eggsy84 jimbob...@hotmail.com wrote:



  Hi all

  Has anyone noticed that GWT has stopped working in DevMode since GWT
  2.0.3?

  I have previously managed to get debugging working:

 http://groups.google.com/group/google-web-toolkit/browse_thread/threa...

  But after updating to the latest version of GWT I am no longer hitting
  my breakpoints?

  Also I have noticed that if I uninstall the GWT plugin in from Firefox
  3.5.8 then attempt to hit the debug URL again it now doesn't ask me to
  install the plugin?

  Has something changed with the GWT plugin for Firefox?

  My environment is a Ubuntu 9.10 x64 machine

  As far as I am aware other than upgrading GWT I haven't changed
  anything else? I have made that that I have recompiled my GWT code
  also.

  Any ideas as to what I am doing wrong?

  Many thanks in advance,

  Eggsy

 --
 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-tool...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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-tool...@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.



Image.setUrl / load event / onLoad / LoadHandler / LoadEvent

2010-04-19 Thread Simon Botting
Hi,

I've got a question about the Image onLoad mechanism in GWT 2.0.3 - I
was setting the url of the Image with setUrl(String) call and no
LoadEvent was being fired, which confused me as, according to the
javadoc the setUrl method...

Sets the URL of the image to be displayed. If the image is in the
clipped state, a call to this method will cause a transition of the
image to the unclipped state. Regardless of whether or not the image
is in the clipped or unclipped state, a load event will be fired.

After a while I worked out that because the Image wasn't actually
displayed on the screen (I wanted to load it first to work out its
dimensions and then display it),  the call to setUrl - although it did
retrieve the image from the server (according to the net panel in
firebug) -  didn't fire the LoadEvent.

My question is this, is this a bug in GWT or should the documentation
be a bit more explicit about when the LoadEvent is fired?  Or... am I
just being unreasonably fastidious.

Cheers
Simon

-- 
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-tool...@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: firebug aborted *.cache.html

2010-04-19 Thread Simon B
I think this is a red herring / non problem, when I changed the config
of my apache to:

Files *.cache.*
  SetOutputFilter DEFLATE
  ExpiresActive On
  ExpiresDefault modification plus 2 years
   /Files

   Files *.nocache.*
  SetOutputFilter DEFLATE
  ExpiresActive On
  ExpiresDefault now
   /Files

and then in firebug unchecked the option in the net tab which says
Disable Browser Cache

and the aborted request stopped happening

-- 
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-tool...@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.



gwt rpc - Client did not send 199 bytes as expected - RPCServletUtils.readContentAsUtf8

2010-04-14 Thread Simon Botting
Hi,

The following exception is thrown for around 5% of the requests that
are made through gwt rpc on our production server - the number of
bytes changes (in this case its 199)

04/13 21:36:20 ERROR in
web.HibernateSessionRequestFilter.doFilter(line:57): Exception while
dispatching incoming RPC call
javax.servlet.ServletException: Client did not send 199 bytes as expected
at 
com.google.gwt.user.server.rpc.RPCServletUtils.readContentAsUtf8(RPCServletUtils.java:185)
at 
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.readContent(AbstractRemoteServiceServlet.java:179)
at 
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:215)
at 
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)

I think this is the version of the src file:

http://code.google.com/p/google-web-toolkit/source/browse/branches/snapshot-2010.01.05-r7362/user/src/com/google/gwt/user/server/rpc/RPCServletUtils.java

I suspect that it's something to do with the fact that the html page
that hosts the gwt module is in charset iso-8859-1 and not in utf-8,
although I'm surprised that it only happens periodically in 5% of the
cases, perhaps its a particular browser / version combination.  The
site is a spanish language site, so its very possible that the
information sent would have characters with accents.  Has anyone else
had this problem is there a way that I can indicate to GWT that the
charset of the page is iso-88591.

Any suggestions greatly appreciated.

Cheers
Simon

-- 
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-tool...@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.



firebug aborted *.cache.html

2010-04-12 Thread Simon Botting
Hi,
In firefox firebug a red message is showing in the net tab that the
request for the *.cache.html file is being aborted then re-requested
and reloaded - fresh from the server.   Here is a screen shot of
firebug:

http://www.enbuenosaires.com/images/firebug-aborted-cache-html.png

my apache (v 2.2.9) config as it relates to GWT (as far as I'm aware)
is as follows :

   # cache and compression
   Files *.cache.*
  SetOutputFilter DEFLATE
  ExpiresActive On
  ExpiresDefault modification plus 2 years
   /Files

   Files *.nocache.*
  SetOutputFilter DEFLATE
  ExpiresActive On
  ExpiresActive Off
   /Files


Does anyone know why I'm getting these aborted messages, I imagine it
must to be something to do with my apache.conf

Any help greatly appreciated,

Cheers
Simon

-- 
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-tool...@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.



character encoding IE8 XMLParser.parse problem

2010-04-03 Thread Simon Botting
Hi,

I'm sending a request to get an xml file that I then want to parse.
the file is in latin-1 / ISO-8859-1  encoded and had the following for
some reason firefox / chrome seem to parse the file fine but ie8 (I
haven't tried other ie versions) seems to read it as some other
character set (I assume utf-8)

the xml file has an encoding tag in its ?xml tag

?xml version=1.0 encoding=ISO-8859-1?

city
.
/city


I get the following exception:

com.google.gwt.core.client.JavaScriptException: (Error): line 20, char
31:An invalid character was found in text content.
   description: line 20, char 31:An invalid character was found in text content.

I assume this is an encoding issue / mismatch but the file is in
iso-8859-1 and the xml tag has that encoding specified

If I add this line to my apache2.conf:

AddType 'text/xml; charset=ISO-8859-1' xml

this then means that the Response has an additional header:

Content-Type: text/xml; charset=iso-8859-1

which seems to make ie8 parse the xml file ok.

I'm happy to add the AddType directive to my apache config to make it
work, but if I didn't have that option I'd be looking for some other
fix.  My question is whether this is a bug or is this something that I
should be expecting if so  how do you parse an xml file in ie8 that's
in iso-8859-1 encoding without setting a response header?

Cheers
Simon

-- 
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-tool...@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: Example: (simple) Label with image?

2010-03-24 Thread Simon
I would create a widget by extending Composite and wrapping a native
Image and Label :

public class ImageLabel extends Composite {

@UiConstructor
public ImageLabel(String url, String text) {
Image image = new Image(url);
Label label = new Label(text);

HorizontalPanel panel = new HorizontalPanel();
panel.add(image);
panel.add(label);

initWidget(panel);

}

}

Hope this helps !


On 22 mar, 20:01, Ralf B ralf.bie...@gmail.com wrote:
 Is there a very very simple way to create a label with an image
 without using CSS, or is the only way to use HTML objects? I was
 hoping for a constructor like this:

 Image myImage = new Image(url);
 Label myLabel = new Label(myimage, This is the text);

 Best Regards :)

-- 
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-tool...@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: gwt-dispatch, gwt-presenter, mvp4g

2010-03-22 Thread Simon
I'd love to read what you have done. Unfortunately, I do not have
Google Wave yet as it is not released and I cannot follow your link...

I guess I'm not the only person in this case ! :)

Do you have a link publicly available ?


On 22 mar, 16:10, Nathan Wells nwwe...@gmail.com wrote:
 I've just started designing something new for client-server
 communications:

 https://wave.google.com/wave/#restored:search:group%253Agoogle-web-to...

 I'd love to get feedback on the ideas I put down there.

 On Mar 21, 11:24 am, Jamie Gennis jgen...@gmail.com wrote:



  I'll take this opportunity to insert a shameless plug for
  gwt-remote-actionhttp://code.google.com/p/gwt-remote-action/ as an
  alternative to gwt-dispatch.  The idea behind gwt-remote-action is that it
  enables use of the command pattern using the same RPC interface as
  traditional GWT RPC.  This means you don't have to build your app from the
  ground up with the command pattern in mind, but rather you can just use
  normal GWT RPC and then augment it later when you need caching,
  transactions, undo, or any other command pattern goodness.

  You can also check out
  gwt-remote-action-extensionhttp://code.google.com/p/gwt-remote-action-extension/
  for
  a library than enables the use of Gilead with gwt-remote-action as well as a
  demo app.

  Best,
  Jamie

  On Sun, Mar 21, 2010 at 8:35 AM, zggame zgg...@gmail.com wrote:
   I second that idea.  I start to really understand the gwt-presenter by
   reading its code.  It is actually not that complicated and teach me
   some really nice lessons.  And you also see a few short-coming of it.
   It is open-source under BSD.  So you can do whatever to fit it for
   your purpose.

   On Feb 28, 5:58 pm, Geraldo Lopes geraldo...@gmail.com wrote:
Initiatives like gwt-dispatch andgwt-presenterare welcome.
Reading others code is a very good way to improve our skills.
Even if one don't adopt the library it can be very helpful.

Keep small (but useful) libraries river flow :)

Regards,

Geraldo

On 28 fev, 15:40, Ed post2edb...@hotmail.com wrote:

 Be careful using many third party lib's which are more like hobby-
 projects and will not be updated when gwt will come out with a new
 version such that you can't make the switch to the new gwt version
 I try to do everything myself and learn from others... I already had a
 few times that I was using other frameworks and couldn't make the gwt
 update when I wanted, but had to wait till all frameworks made the
 switch... or didn't made the switch at all. :(

 GWT is awesome, short learning curve for simple things, and makes it
 very easy to create nice things which people then want to share with
 others... So they drop it in a google code project and never look back
 to it anymore

 Of course there are also very good lib's like smartgwt and gxt
 (before: mygwt)... The latter one cost a bit, but there for future
 proof and has a very nice MVC implementation with dispatcher
 integration that is well suited for more complex app's and is very
 lean and mean...

 Goodluck,
 Ed

   --
   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-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
cr...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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-tool...@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: Google Plugin for Eclipse 1.3 is now available

2010-03-17 Thread Simon
Hi !

I tried this new release and unfortunately I can't make it work,
although the Preview release worked fine for me.

I'm using Maven to manage my projects and I prefer not to use WTP as I
had bad XP with it. So I configured a project this way :

- created a pom.xml
- created the directories src/main/java, src/main/webapp
- created a web.xml file in src/main/webap/WEB-INF directory
- imported all that into Eclipse using Import  Existing Maven
Projects
- created a file application.html into src/main/webapp directory
- created a GWT module rootpackage.Application.gwt.xml
- created an Entry point rootpackage.client.ApplicationEntryPoint
- added the GWT Nature to the project
- checked the box 'This project has a WAR directory'
- filled in the WAR directory input with src/main/webapp
- unchecked the box 'Launch and deploy from this directory'

Then I tried to launch the application with 'Run As  Web
Application'. I chose the WAR directory target/project-version. No
errors/warning appeared in the console and the 'Development Mode'
contained the correct URL :

http://127.0.0.1:/application.html?gwt.codesvr=127.0.0.1:9997

So far everything seems fine. I started my Firefox and entered the
above URL and unfortunately the browser displayed a *404 NOT FOUND*
page !!!

I restarted the application with a debug level set to TRACE and I saw
this in the CONSOLE :

-

Linking module 'application'
Invoking Linker RPC policy file manifest
Invoking Linker Standard
Invoking Linker Export CompilationResult symbol maps
Invoking Linker Emit compile report artifacts
Linking compilation into projectpath\war\application

-

Why does it want to link in the /war directory instead of the target/
project-version ???

Did I miss something ?

My plugin versions :
Eclispe 3.5
M2Eclipse 0.10.0.20100209-0800
Google Plugin for Eclipse 1.3.0.v201003161223
Google Web Toolkit SDK 2.0.3 2.0.3.v201002191036

Thanks for any help ! :)







On 17 mar, 02:34, Keith Platfoot kplatf...@google.com wrote:
 Hi everyone,

 I'm happy to announce the release of version 1.3 of the Google Plugin for
 Eclipse (http://code.google.com/eclipse).

 This release is designed to make life easier for developers using GWT and/or
 App Engine alongside third-party tools.  For example, we've taken the pain
 out of using the plugin with projects built with the ever-popular Maven
 build system: no more ugly hacks or workarounds, or polluted WEB-INF/lib
 directories!  We've even added a new FAQ dedicated to Maven 
 usage:http://code.google.com/eclipse/docs/faq.html#gwt_with_maven.

 We've also worked hard to make sure the plugin works well with Dynamic Web
 projects in Eclipse for Java EE.  See the following FAQ for details on this
 scenario:http://code.google.com/eclipse/docs/faq.html#gwt_in_eclipse_for_java_ee.

 In addition to improving third-party interoperability, we've also made the
 plugin more customizable and robust overall.  Launch configurations now
 allow direct editing of generated command line arguments, and a new
 Errors/Warnings preference page lets you tweak the severity of any problem
 marker we create.  We've also fixed a number of bugs related to App Engine
 ORM enhancement.

 To install the Google Plugin for Eclipse, you can find our update site URLs,
 along with detailed instructions, 
 here:http://code.google.com/eclipse/docs/download.html

 If you're upgrading from a previous version of the plugin, you may want to
 consult our Upgrading the Plugin 
 guide:http://code.google.com/eclipse/docs/updating_the_plugin.html

 *Note: If you installed the Google Plugin for Eclipse 1.3 Preview, be sure
 to remove the relevant subfolders from your eclipse/dropins folder before
 installing the official 1.3 release via the update site.*

 *Enhancements*

    - Configurable WAR directory to allow better integration with Eclipse for
    Java EE and projects built with Maven
    - Web Application launch configurations now display and allow editing of
    generated Program and VM arguments
    - Errors/Warnings preference page for customizing the severity of any
    generated problem marker
    - Projects can reference GWT/App Engine SDKs directly via JARs instead of
    through SDK library
    - GWT+App Engine projects automatically configured for optimal caching

 *Fixes*

    - GWT Issue 3583: Google Eclipse Plugin configuration is too strict
    - GWT Issue 3592: Eclipse plugin to add 'cache forever' configuration for
    new 'GWT + App Engine' projects
    - GWT Issue 3902: Allow users to configure the severity of problems
    reported by the eclipse plugin
    - App Engine Issue 1515: Eclipse plugin requires fixed location for war
    directory
    - App Engine Issue 2115: Using the @PersistenceAware annotation puts the
    Eclipse Enhancer in an Infinite Loop
    - App Engine Issue 1941: Plugin fails to enhance dependent classes on
    source level changes

 For a complete list of fixed issues, see the GWT issue tracker and App

Re: Google Plugin for Eclipse 1.3 is now available

2010-03-17 Thread Simon
I see these arguments :

-remoteUI ${gwt_remote_ui_server_port}:${unique_id} -startupUrl
application.html -logLevel TRACE -port  rootpackage.Application

As far as I can tell, there is no '-war' arguments !

I tried to put manually '-war projectpath/target/project-
version' and it works fine ! So this didi the trick !

Why was the behaviour different with the Preview release ?

Thanks for the solution anyway ! :)


On 17 mar, 15:40, Jason Parekh jasonpar...@gmail.com wrote:
 Hi Simon,

 Could you go to Run  Run Configurations..., click on your launch
 configuration on the left, and then click on the Arguments tab.  What do
 you see as the Program arguments:?  Particularly, what is the value for
 the -war argument?

 If it not your target/project-version, try changing it and
 re-launching.  If it is, we'll have to look a bit deeper.

 jason



 On Wed, Mar 17, 2010 at 10:29 AM, Simon simon.bar...@gmail.com wrote:
  Hi !

  I tried this new release and unfortunately I can't make it work,
  although the Preview release worked fine for me.

  I'm using Maven to manage my projects and I prefer not to use WTP as I
  had bad XP with it. So I configured a project this way :

  - created a pom.xml
  - created the directories src/main/java, src/main/webapp
  - created a web.xml file in src/main/webap/WEB-INF directory
  - imported all that into Eclipse using Import  Existing Maven
  Projects
  - created a file application.html into src/main/webapp directory
  - created a GWT module rootpackage.Application.gwt.xml
  - created an Entry point rootpackage.client.ApplicationEntryPoint
  - added the GWT Nature to the project
  - checked the box 'This project has a WAR directory'
  - filled in the WAR directory input with src/main/webapp
  - unchecked the box 'Launch and deploy from this directory'

  Then I tried to launch the application with 'Run As  Web
  Application'. I chose the WAR directory target/project-version. No
  errors/warning appeared in the console and the 'Development Mode'
  contained the correct URL :

 http://127.0.0.1:/application.html?gwt.codesvr=127.0.0.1:9997

  So far everything seems fine. I started my Firefox and entered the
  above URL and unfortunately the browser displayed a *404 NOT FOUND*
  page !!!

  I restarted the application with a debug level set to TRACE and I saw
  this in the CONSOLE :

  -

  Linking module 'application'
     Invoking Linker RPC policy file manifest
     Invoking Linker Standard
     Invoking Linker Export CompilationResult symbol maps
     Invoking Linker Emit compile report artifacts
     Linking compilation into projectpath\war\application

  -

  Why does it want to link in the /war directory instead of the target/
  project-version ???

  Did I miss something ?

  My plugin versions :
  Eclispe 3.5
  M2Eclipse 0.10.0.20100209-0800
  Google Plugin for Eclipse 1.3.0.v201003161223
  Google Web Toolkit SDK 2.0.3 2.0.3.v201002191036

  Thanks for any help ! :)

  On 17 mar, 02:34, Keith Platfoot kplatf...@google.com wrote:
   Hi everyone,

   I'm happy to announce the release of version 1.3 of the Google Plugin for
   Eclipse (http://code.google.com/eclipse).

   This release is designed to make life easier for developers using GWT
  and/or
   App Engine alongside third-party tools.  For example, we've taken the
  pain
   out of using the plugin with projects built with the ever-popular Maven
   build system: no more ugly hacks or workarounds, or polluted WEB-INF/lib
   directories!  We've even added a new FAQ dedicated to Maven usage:
 http://code.google.com/eclipse/docs/faq.html#gwt_with_maven.

   We've also worked hard to make sure the plugin works well with Dynamic
  Web
   projects in Eclipse for Java EE.  See the following FAQ for details on
  this
   scenario:
 http://code.google.com/eclipse/docs/faq.html#gwt_in_eclipse_for_java_ee.

   In addition to improving third-party interoperability, we've also made
  the
   plugin more customizable and robust overall.  Launch configurations now
   allow direct editing of generated command line arguments, and a new
   Errors/Warnings preference page lets you tweak the severity of any
  problem
   marker we create.  We've also fixed a number of bugs related to App
  Engine
   ORM enhancement.

   To install the Google Plugin for Eclipse, you can find our update site
  URLs,
   along with detailed instructions, here:
 http://code.google.com/eclipse/docs/download.html

   If you're upgrading from a previous version of the plugin, you may want
  to
   consult our Upgrading the Plugin guide:
 http://code.google.com/eclipse/docs/updating_the_plugin.html

   *Note: If you installed the Google Plugin for Eclipse 1.3 Preview, be
  sure
   to remove the relevant subfolders from your eclipse/dropins folder
  before
   installing the official 1.3 release via the update site.*

   *Enhancements*

      - Configurable WAR directory to allow better integration with Eclipse
  for
      Java EE and projects built

Re: Google Plugin for Eclipse 1.3 Preview is now available

2010-03-16 Thread Simon
Hi Keith,

Thanks for the improvements !! I've got a clean Maven Web project like
I used to work with before trying GWT ! :)

However, Eclipse seems to keep the folder /war and /war/WEB-INF in my
project. Even if I delete it, it keeps appearing. Any clue on this
behaviour ?

Cheers,

Simon



On 4 mar, 01:25, Keith Platfoot kplatf...@google.com wrote:
 Hi everyone,

 Last month, I announced some of the changes we had planned for the 1.3
 version of the Google Plugin for Eclipse. To recap, this release is focused
 on making life easier for developers using GWT/App Engine alongside
 third-party tools, including Maven and Eclipse for Java EE. In my post, I
 promised we'd let you download a preview of 1.3 to get some hands-on testing
 of the new features and provide us with your feedback before the official
 release.

 I'm happy to announce that the time has come. An early preview of 1.3 is now
 available for download at the following URLs:

 http://dl.google.com/eclipse/plugin/3.5/zips/com.google.gdt.eclipse.s...

 http://dl.google.com/eclipse/plugin/3.4/zips/com.google.gdt.eclipse.s...

 http://dl.google.com/eclipse/plugin/3.3/zips/com.google.gdt.eclipse.s...

 Note: Ensure that your version of Eclipse has Eclipse's Web Standard Tools
 (WST) installed before installing the plugin. WST can be installed by
 navigating to the Software Installation section, and selecting the the
 appropriate WST feature from the update site for your version of Eclipse.
 The update sites and feature names are provided below:

    - 3.5 (Galileo): Galileo  Web, XML, and Java EE Development  Eclipse
    Web Developer Tools
    - 3.4 (Ganymede): Ganymede Update Site  Web and Java EE Development 
    Web Developer Tools
    - 3.3 (Europa): Europa Discovery Site  Web and JEE Development  Web
    Standard Tools Project

 This is a preview build, so the usual caveats and warnings apply: it is not
 officially supported, and we recommend using a clean installation of Eclipse
 and a new workspace. Also, we're distributing this preview as a zip file so
 be sure to follow the instructions on our Installing the Google Plugin for
 Eclipse from zip files page 
 (http://code.google.com/eclipse/docs/install-from-zip.html).

 *Known Issues*

    - If you change launch configuration settings in the Server or GWT tab,
    you'll need to switch to the Arguments tab before clicking Apply or
    Run/Debug.  This will be fixed in the final release.

 That being said, we are very interested in your experience with this new
 release, which we hope will allow the Google plugin to interoperate much
 better with alternative project structures and third-party tools. The
 tentative 1.3 release notes are as follows:

 Enhancements

    - Configurable WAR directory to allow better integration with Eclipse for
    Java EE http://www.eclipse.org/downloads/moreinfo/jee.php and projects
    built with Maven http://maven.apache.org/
    - Web Application launch configurations now display and allow editing of
    generated Program and VM arguments
    - Errors/Warnings preference page for customizing the severity of any
    generated problem marker
    - Projects can reference GWT/App Engine SDKs directly via JARs instead of
    through SDK library
    - GWT+App Engine projects automatically configured for optimal caching

 Fixes

    - GWT Issue 
 3583http://code.google.com/p/google-web-toolkit/issues/detail?id=3583:
    Google Eclipse Plugin configuration is too strict
    - GWT Issue 
 3592http://code.google.com/p/google-web-toolkit/issues/detail?id=3592:
    Eclipse plugin to add 'cache forever' configuration for new 'GWT + App
    Engine' projects
    - GWT Issue 
 3902http://code.google.com/p/google-web-toolkit/issues/detail?id=3902:
    Allow users to configure the severity of problems reported by the eclipse
    plugin
    - App Engine Issue
 1515http://code.google.com/p/googleappengine/issues/detail?id=1515:
    Eclipse plugin requires fixed location for war directory
    - App Engine Issue
 2115http://code.google.com/p/googleappengine/issues/detail?id=2115:
    Using the @PersistenceAware annotation puts the Eclipse Enhancer in an
    Infinite Loop
    - App Engine Issue
 1941http://code.google.com/p/googleappengine/issues/detail?id=1941:
    Plugin fails to enhance dependent classes on source level changes

 For a complete list of fixed issues, see the GWT issue
 trackerhttp://code.google.com/p/google-web-toolkit/issues/list?can=1q=label...
  and App Engine issue
 trackerhttp://code.google.com/p/googleappengine/issues/list?can=1q=label:GP...
 .

 We encourage all interested developers to take the preview build for a spin,
 and let us know what you think. We'll do everything possible to incorporate
 your feedback before the final release, slated for later this month. Thanks!

 Keith, on behalf of the Google Plugin for Eclipse team

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group

Re: Google Plugin for Eclipse 1.3 Preview is now available

2010-03-16 Thread Simon
Resolved !

The problem was that the project Default output folder was still
pointing to the /war/WEB-INF/classes directory instead of /target/
classes...

Thanks for the great job anyway ! :)



On 15 mar, 17:04, Simon simon.bar...@gmail.com wrote:
 Hi Keith,

 Thanks for the improvements !! I've got a clean Maven Web project like
 I used to work with before trying GWT ! :)

 However, Eclipse seems to keep the folder /war and /war/WEB-INF in my
 project. Even if I delete it, it keeps appearing. Any clue on this
 behaviour ?

 Cheers,

 Simon

 On 4 mar, 01:25, Keith Platfoot kplatf...@google.com wrote:



  Hi everyone,

  Last month, I announced some of the changes we had planned for the 1.3
  version of the Google Plugin for Eclipse. To recap, this release is focused
  on making life easier for developers using GWT/App Engine alongside
  third-party tools, including Maven and Eclipse for Java EE. In my post, I
  promised we'd let you download a preview of 1.3 to get some hands-on testing
  of the new features and provide us with your feedback before the official
  release.

  I'm happy to announce that the time has come. An early preview of 1.3 is now
  available for download at the following URLs:

 http://dl.google.com/eclipse/plugin/3.5/zips/com.google.gdt.eclipse.s...

 http://dl.google.com/eclipse/plugin/3.4/zips/com.google.gdt.eclipse.s...

 http://dl.google.com/eclipse/plugin/3.3/zips/com.google.gdt.eclipse.s...

  Note: Ensure that your version of Eclipse has Eclipse's Web Standard Tools
  (WST) installed before installing the plugin. WST can be installed by
  navigating to the Software Installation section, and selecting the the
  appropriate WST feature from the update site for your version of Eclipse.
  The update sites and feature names are provided below:

     - 3.5 (Galileo): Galileo  Web, XML, and Java EE Development  Eclipse
     Web Developer Tools
     - 3.4 (Ganymede): Ganymede Update Site  Web and Java EE Development 
     Web Developer Tools
     - 3.3 (Europa): Europa Discovery Site  Web and JEE Development  Web
     Standard Tools Project

  This is a preview build, so the usual caveats and warnings apply: it is not
  officially supported, and we recommend using a clean installation of Eclipse
  and a new workspace. Also, we're distributing this preview as a zip file so
  be sure to follow the instructions on our Installing the Google Plugin for
  Eclipse from zip files page 
  (http://code.google.com/eclipse/docs/install-from-zip.html).

  *Known Issues*

     - If you change launch configuration settings in the Server or GWT tab,
     you'll need to switch to the Arguments tab before clicking Apply or
     Run/Debug.  This will be fixed in the final release.

  That being said, we are very interested in your experience with this new
  release, which we hope will allow the Google plugin to interoperate much
  better with alternative project structures and third-party tools. The
  tentative 1.3 release notes are as follows:

  Enhancements

     - Configurable WAR directory to allow better integration with Eclipse for
     Java EE http://www.eclipse.org/downloads/moreinfo/jee.php and projects
     built with Maven http://maven.apache.org/
     - Web Application launch configurations now display and allow editing of
     generated Program and VM arguments
     - Errors/Warnings preference page for customizing the severity of any
     generated problem marker
     - Projects can reference GWT/App Engine SDKs directly via JARs instead of
     through SDK library
     - GWT+App Engine projects automatically configured for optimal caching

  Fixes

     - GWT Issue 
  3583http://code.google.com/p/google-web-toolkit/issues/detail?id=3583:
     Google Eclipse Plugin configuration is too strict
     - GWT Issue 
  3592http://code.google.com/p/google-web-toolkit/issues/detail?id=3592:
     Eclipse plugin to add 'cache forever' configuration for new 'GWT + App
     Engine' projects
     - GWT Issue 
  3902http://code.google.com/p/google-web-toolkit/issues/detail?id=3902:
     Allow users to configure the severity of problems reported by the eclipse
     plugin
     - App Engine Issue
  1515http://code.google.com/p/googleappengine/issues/detail?id=1515:
     Eclipse plugin requires fixed location for war directory
     - App Engine Issue
  2115http://code.google.com/p/googleappengine/issues/detail?id=2115:
     Using the @PersistenceAware annotation puts the Eclipse Enhancer in an
     Infinite Loop
     - App Engine Issue
  1941http://code.google.com/p/googleappengine/issues/detail?id=1941:
     Plugin fails to enhance dependent classes on source level changes

  For a complete list of fixed issues, see the GWT issue
  trackerhttp://code.google.com/p/google-web-toolkit/issues/list?can=1q=label...
   and App Engine issue
  trackerhttp://code.google.com/p/googleappengine/issues/list?can=1q=label:GP...
  .

  We encourage all interested developers to take the preview build for a spin

Re: Authenticate before loading the application

2010-02-09 Thread Simon
Thanks for the answers.

About filters : yes I use one for authentication. With that filter all
the servlets are secured. My question was about all the non-servlet
ressources: the html pages, the javascript files, css, images.

So I need to server all those files through servlets (what I suggested
in my first post)(also suggested by thomas).

I am going to move all the files into the WEB-INF directory of the
project, so they will not be public anymore. After that I will define
a servlet to serve them.

code-splitting is also a solution.

On 9 fév, 09:44, dougx douglas.lin...@gmail.com wrote:
 Serve content via servlet, it's fair easy. For an example look 
 here:http://blog.goodcamel.com/2010/01/08/workaround-for-google-app-engine...

 You can then check in the servlet for authentication via cookie / id
 and refuse to serve unauthenticated users.

 ~
 Doug.

 On Feb 9, 6:26 am, Simon sp.ma...@gmail.com wrote:



  Yes that is the basics of app engine security. I use it to get the
  Google account of the user.

  This is the first step of the login: Google authentication.
  Second step I want to validate the Google account against my own set
  of users,
  Last step I want to send to the user the whole javascript app.

  On 8 fév, 23:04, Youngster aecdej...@gmail.com wrote:

   Did you have a look at this 
   page:http://code.google.com/appengine/docs/java/config/webxml.html#Securit...
   ?

-- 
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-tool...@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: Authenticate before loading the application

2010-02-09 Thread Simon
@dougx
Thanks for your post, I didn't knew that app engine did not support
304.

One difference: I want the files to be accessed *only* by servlet, ie
the servlet should serve the files, not redirect to them.

On 9 fév, 09:44, dougx douglas.lin...@gmail.com wrote:
 Serve content via servlet, it's fair easy. For an example look 
 here:http://blog.goodcamel.com/2010/01/08/workaround-for-google-app-engine...

 You can then check in the servlet for authentication via cookie / id
 and refuse to serve unauthenticated users.

 ~
 Doug.

 On Feb 9, 6:26 am, Simon sp.ma...@gmail.com wrote:



  Yes that is the basics of app engine security. I use it to get the
  Google account of the user.

  This is the first step of the login: Google authentication.
  Second step I want to validate the Google account against my own set
  of users,
  Last step I want to send to the user the whole javascript app.

  On 8 fév, 23:04, Youngster aecdej...@gmail.com wrote:

   Did you have a look at this 
   page:http://code.google.com/appengine/docs/java/config/webxml.html#Securit...
   ?

-- 
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-tool...@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.



Authenticate before loading the application

2010-02-08 Thread Simon
I would like to authenticate the user before sending him all the GWT
javascript.

I mean, I rely on Google UserService, which I filter with my own
database of users.
If the user is logged on Google, I want my app to get the user's info
from UserService, then load the app if the user is granted, or
redirect him if he is not.

To do that I think about moving the welcome page with the application
javascript into a servlet, and to do the authentication there.

Is it ok for GWT / do you have any better solution to do that ?

-- 
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-tool...@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: Authenticate before loading the application

2010-02-08 Thread Simon
Yes that is the basics of app engine security. I use it to get the
Google account of the user.

This is the first step of the login: Google authentication.
Second step I want to validate the Google account against my own set
of users,
Last step I want to send to the user the whole javascript app.

On 8 fév, 23:04, Youngster aecdej...@gmail.com wrote:
 Did you have a look at this 
 page:http://code.google.com/appengine/docs/java/config/webxml.html#Securit...
 ?

-- 
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-tool...@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.



Feature Request - Improve Visual Look

2010-01-29 Thread Simon
Hi

I think some of the most aesthetically pleasing UI components can be
found in extJS so I would like to suggest that GWT further improve the
visual appearance of their widgets.

Simon

-- 
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-tool...@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: Feature Request - Improve Visual Look

2010-01-29 Thread Simon
That maybe true but not all programmer are great visual designers not
to mention the time it takes to get it all looking great.  All I am
saying is the default look should be much more visually appealing.
After all Google has spent a lot of time optimizing the javascript
ouput so why not put some more time into a high quality polished
visual look so that everyone benefits.

Simon

On Jan 29, 2:35 pm, mariyan nenchev nenchev.mari...@gmail.com wrote:
 There is no need gwt widgets to be beautiful. They are easy customizable
 with css.

 On Fri, Jan 29, 2010 at 9:30 PM, Paul Grenyer paul.gren...@gmail.comwrote:



  Why not just use GXT then?

  -Original Message-
  From: Marcos Alcantara marc...@gmail.com
  Date: Fri, 29 Jan 2010 11:19:28
  To: Google Web Toolkitgoogle-web-toolkit@googlegroups.com
  Subject: Re: Feature Request - Improve Visual Look

  Couldn´t agree more.

  GWT is great as whole and so flexible, it hurts.

  Although, the core widgets could have a better visual appearance to
  make them as good as Vaadin's or ext's but without the desktop
  application appeal.

  =)

  Marcos Alcantara

  On 28 jan, 16:27, Simon dciphercomput...@gmail.com wrote:
   Hi

   I think some of the most aesthetically pleasing UI components can be
   found in extJS so I would like to suggest that GWT further improve the
   visual appearance of their widgets.

   Simon

  --
  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-tool...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs 
  cr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

  --
  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-tool...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs 
  cr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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-tool...@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.



Deserialize in gwt2.0 calls setters

2010-01-19 Thread Simon Vogensen
Hi

I've been trying to upgrade a project from gwt 1.6.4 to 2.0, but had a
hard time figuring out why I got a nullpointer exception when
deserializing on the serverside.
It turns out that there's been made a change in the way RPC works
between version 1.x and 2.0. (I cant see its documented anywhere - not
even in the issuelist - maybe others can point to something?)

In 1.x when an objects fields are set it's done via reflection on the
field directly. But in 2.0 the serializer first looks for a related
setter method and uses that if it exists instead.

My problem was that in our project we dont use simple DAO classes
between client and server, we use the same domainmodel on both server
and clientside - so the transfered classes contains alot of
businesslogic - which also means that the setters contains logic with
object references which may not have been deserialized yet!

As far as I can see theres no option to disable the new feature.
Correct me if im wrong?

So our solution was to patch deserializeClass(Class? instanceClass,
Object instance) in ServerSerializationStreamReader.java:595 in a way
so it dont use setter methods when deserializing.

Hope this post will help others.. :)

Cheers
Simon



-- 
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-tool...@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.




Unable to load required native library 'gwt-ll'. Detailed error:

2010-01-18 Thread Simon
Hi, I have just switched from openSUSE 10.3 to ubuntu 9.04

Am developing with eclipse 3.4, java 1.6 and gwt-linux-1.5.3
I get the error below after running the projects.
---
Unable to load required native library 'gwt-ll'.  Detailed error:
/home/smuwanga/software/applications/gwt-linux-1.5.3/libgwt-ll.so: /
home/smuwanga/software/applications/gwt-linux-1.5.3/libgwt-ll.so:
undefined symbol: JS_PropertyStub)

Your GWT installation may be corrupt
--

I have done a fresh download of GWT 1.5.3, and the error persists.

I get this from the hosted browser
--
[ERROR] The browser widget class could not be instantiated
java.lang.UnsatisfiedLinkError:
org.eclipse.swt.internal.win32.OS.GetVersionExW(Lorg/eclipse/swt/
internal/win32/OSVERSIONINFOW;)Z
at org.eclipse.swt.internal.win32.OS.GetVersionExW(Native Method)
at org.eclipse.swt.internal.win32.OS.clinit(OS.java:62)
at org.eclipse.swt.internal.ole.win32.COMObject.init(COMObject.java:
38)
at com.google.gwt.dev.shell.ie.IDispatchImpl.init
(IDispatchImpl.java:158)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.init
(BrowserWidgetIE6.java:42)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.init
(BrowserWidgetIE6.java:243)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.google.gwt.dev.shell.PlatformSpecific.createBrowserWidget
(PlatformSpecific.java:59)
at com.google.gwt.dev.GWTShell.openNewBrowserWindow(GWTShell.java:
547)
at com.google.gwt.dev.GWTShell.launchStartupUrls(GWTShell.java:507)
at com.google.gwt.dev.GWTShell.run(GWTShell.java:591)
at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)
-

The other error is :
--
[ERROR] Unable to open new window for startup URL:
http://localhost:/org.openxdata.server.admin.OpenXDataServerAdmin/OpenXDataServerAdmin.html
-

What could the problem be?

Regards,
Simon.
-- 
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-tool...@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: Open a word document online for view and edit with GWT

2009-12-04 Thread George Simon
Hi  AGharbawi
 I am also looking for a similar solution. Did you find any ideas on
this, if yes please share your thoughts.

Thanks in Advance

George


On Wed, Jul 22, 2009 at 11:37 PM, AGharbawi agharb...@gmail.com wrote:


 Hello All,

 I'm trying to build a page that can open a word document inside the
 browser for editing and viewing. The document will be saved in a
 database.
 is it possible to use google docs, or zoho to do that. or do u have
 any other suggestions ...

 Please help...

 Alaa G

 --~--~-~--~~~---~--~~
 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/Google-Web-Toolkit?hl=en
 -~--~~~~--~~--~--~---



--

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-tool...@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.




hosted mode crash in Linux

2009-10-29 Thread simon

I got hosted mode crashed when starting a simple sample project
created by webAppCreator

ArchLinux: (uname -a)
Linux myhost 2.6.30-ARCH #1 SMP PREEMPT Fri Jul 31 18:10:38 UTC 2009
i686 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz GenuineIntel GNU/Linux

GWT: 1.7.1 for linux

Java (java -version; install by pacman -S jdk):
java version 1.6.0_16
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode)

Error:

hosted:
 [java] #
 [java] # A fatal error has been detected by the Java Runtime
Environment:
 [java] #
 [java] #  SIGSEGV (0xb) at pc=0x9ddd38dc, pid=3814,
tid=3076549488
 [java] #
 [java] # JRE version: 6.0_16-b01
 [java] # Java VM: Java HotSpot(TM) Client VM (14.2-b01 mixed mode
linux-x86 )
 [java] # Problematic frame:
 [java] # C  [libmozz.so+0x78dc]  inflate_blocks_reset+0x2c
 [java] #
 [java] # An error report file with more information is saved as:
 [java] # /home/haisgwu/workspace/HelloGWT/hs_err_pid3814.log
 [java] #
 [java] # If you would like to submit a bug report, please visit:
 [java] #   http://java.sun.com/webapps/bugreport/crash.jsp
 [java] # The crash happened outside the Java Virtual Machine in
native code.
 [java] # See problematic frame for where to report the bug.
 [java] #

BUILD FAILED
/home/haisgwu/workspace/HelloGWT/build.xml:63: Java returned: 134

the hs_err_pid3814.log can be found at :
http://personal-study.googlecode.com/files/hs_err_pid3814.log

Can anybody help ?
Thank you in advance!!

-Simon

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Cannot display the uploaded file into frame

2009-10-13 Thread Simon

Hi all, i have a problem to display a uploaded file into frame, it is
workable in hosted mode but not in tomcat (after compilation), i not
sure is my tomcat configuration issue or need to put extra code for
including the host (http://localhost:8080/), the following is my
client side code, hope someone can help me.

- Code
--

private Frame mainFrameLocalFile = new Frame();
String fileName = GWT.getHostPageBaseURL() + images\\ + fileName;
mainFrameLocalFile.setUrl(fileName);

-- Error occurred
-
HTTP Status 404 - /readme/readmesystem/images/Example.txt



type Status report

message /readme/readmesystem/images/Example.txt

description The requested resource (/readme/readmesystem/images/
Example.txt) is not available.




Apache Tomcat/5.5.26

-


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Where is DatePicker Library for GWT 1.5

2009-10-02 Thread Simon

Dear All,

Am working with the DatePicker in GWT 1.5 . However, I can't find the
libraries where it is kept. Could someone direct me to a useful
location ?

There is an example at
http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/datepicker/client/DatePicker.html
.

Any way how I can get the libraries for the DatePicker?

Simon.
--~--~-~--~~~---~--~~
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: Where is DatePicker Library for GWT 1.5

2009-10-02 Thread Simon Peter Muwanga

I got a copy from 
http://gwt-datepicker.googlecode.com/files/gwt-datepicker-r18.jar
.
However some other packages like com.google.gwt.event.logical.shared
can't be resolved. GWT 1.7 has them. What do we do for GWT 1.5?

Regards,
Simon.

On Oct 2, 3:34 pm, Simon smuwa...@gmail.com wrote:
 Dear All,

 Am working with the DatePicker in GWT 1.5 . However, I can't find the
 libraries where it is kept. Could someone direct me to a useful
 location ?

 There is an example 
 athttp://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/g...
 .

 Any way how I can get the libraries for the DatePicker?

 Simon.
--~--~-~--~~~---~--~~
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: If anyone has a google wave invite - cough - please?

2009-09-30 Thread Simon

Also, Invite me please, I want to have a taste. :

On Sep 30, 8:26 am, Paul Hargreaves cbassthef...@yahoo.co.uk wrote:
 If anyone has a google wave invite may I beg an invite off you please :o)
  
 Thx Paul
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



History Token

2009-08-28 Thread Simon Shaw

I have developed a simple web application with 4 pages that uses
Hyperlinks and ValueChangeHandler to move from page to page and store
history.
Although I want to keep the history functionality in this application
I do not want to show the token in the address bar of the browser.
Also, and I am pretty sure this is connected, I would like to prevent
users from entering the site from any location other than the default
landing page.
Thanks,
Simon

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



ant build fail with GWT 1.7.0

2009-08-21 Thread Simon

Hi there,

I met a problem when building the sample Hello in the samples
directory with GWT 1.7.0.
The build process is shown as below.


Buildfile: build.xml

libs:

javac:

gwtc:
 [java] Loading module 'com.google.gwt.sample.hello.Hello'
 [java][ERROR] Failure while parsing XML
 [java] org.xml.sax.SAXNotSupportedException:
http://apache.org/xml/features/nonvalidating/load-external-dtd
 [java]at gnu.xml.stream.SAXParserFactory.setFeature(libgcj.so.
10)
 [java]at com.google.gwt.dev.util.xml.ReflectiveParser
$Impl.parse(ReflectiveParser.java:307)
 [java]at com.google.gwt.dev.util.xml.ReflectiveParser
$Impl.access$100(ReflectiveParser.java:48)
 [java]at com.google.gwt.dev.util.xml.ReflectiveParser.parse
(ReflectiveParser.java:385)
 [java]at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad
(ModuleDefLoader.java:243)
 [java]at com.google.gwt.dev.cfg.ModuleDefLoader$1.load
(ModuleDefLoader.java:155)
 [java]at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule
(ModuleDefLoader.java:269)
 [java]at
com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath
(ModuleDefLoader.java:127)
 [java]at com.google.gwt.dev.Compiler.run(Compiler.java:156)
 [java]at com.google.gwt.dev.Compiler$1.run(Compiler.java:124)
 [java]at com.google.gwt.dev.CompileTaskRunner.doRun
(CompileTaskRunner.java:88)
 [java]at com.google.gwt.dev.CompileTaskRunner.ru

BUILD FAILED
/home/ada/softwares/gwt-linux-1.7.0/samples/Hello/build.xml:34: Java
returned: 1

Total time: 1 second

It seems that there is an error when parsing the XML file.
Can anyone give me some help on this?
Thanks in advance.

Simon

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Installer for Deploying GWT Applications

2009-08-04 Thread Simon

Hi All,

Could someone guide me on how I can make an installer that can be used
to deploy the GWT application I have developed?

I intend to give it out to user, who doesn't have any technical
knowledge on this. The user expects an installer where he can click
all the way through, just like the way one would install Office.

Looking forward to your response!

Simon Peter Muwanga
www.openxdata.org

--~--~-~--~~~---~--~~
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: help on a servlet issue

2009-07-30 Thread Simon

I think there might be something wrong with my web.xml setting

I just add a new module and some servlet calls, it returns correctly.

Thanks


On Jul 27, 7:54 am, Rajeev Dayal rda...@google.com wrote:
 Seehttp://code.google.com/webtoolkit/doc/1.6/DevGuideServerCommunication
 Make sure you read the section on Implementing Services. Post back here if
 you have any problems.



 On Sat, Jul 25, 2009 at 2:48 AM, Simon xingzhi@gmail.com wrote:

  How are you associating the servlet with your module?
  I think that is the part I am confused.
  If I have two modules, how do I specify the association of the servlet
  and the module?
  it seems my servlet can only be used on the default module created by
  eclipse plugin

  Thanks

  On Jul 24, 5:40 am, Rajeev Dayal rda...@google.com wrote:
   Can you post the code for the servlet you're trying to add?
   Also, when you say that you added a new servlet for the setup module,
  what
   exactly do you mean? How are you associating the servlet with your
  module?

   On Fri, Jul 24, 2009 at 3:07 AM, Simon xingzhi@gmail.com wrote:

hi, sorry, I am a newbie on this.

I used eclipse to create the project, and I added a new module called
setup (so I have two modules)
then I tried to add a new servlet for the setup module, but I got the
following error message, if I add a servlet for the original module,
it will be fine. GWT document does not seem to have much document to
discuss multiple modules.

Here is the web.xml that I used for new servlet for the new module
 servlet
   servlet-nametestServlet/servlet-name
   servlet-classcom.simon.chutian.store1.server.TestServiceImpl/
servlet-class
 /servlet

 servlet-mapping
   servlet-nameadduserServlet/servlet-name
   url-pattern/setup/adduser/url-pattern
 /servlet-mapping

my new module is renamed to setup, I directly added the new module
in the existing project. I think there must be something wrong with
the path settings or maybe the servlet mapping, Can anyone help?

Thanks

Jul 24, 2009 6:44:25 AM com.google.apphosting.utils.jetty.JettyLogger
warn
WARNING: /setup/adduser
java.lang.InstantiationException
       at
sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance
(Unknown Source)
       at java.lang.reflect.Constructor.newInstance(Unknown Source)
       at java.lang.Class.newInstance0(Unknown Source)
       at java.lang.Class.newInstance(Unknown Source)
       at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
       at org.mortbay.jetty.servlet.ServletHolder.getServlet
(ServletHolder.java:339)
       at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
463)
       at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1093)
       at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
(TransactionCleanupFilter.java:43)
       at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
       at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:360)
       at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
       at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
       at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:712)
       at
  org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
       at
com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle
(DevAppEngineWebAppContext.java:54)
       at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
       at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:306)
       at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
       at org.mortbay.jetty.Server.handle(Server.java:313)
       at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
506)
       at org.mortbay.jetty.HttpConnection$RequestHandler.content
(HttpConnection.java:844)
       at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
       at
  org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
       at
  org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
       at org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.java:396)
       at org.mortbay.thread.BoundedThreadPool$PoolThread.run
(BoundedThreadPool.java:442)- Hide quoted text -

   - Show quoted text -- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group

Re: onSubmitComplete is not working with GWT Showcase

2009-07-29 Thread Simon
/textarea/url-pattern
/servlet-mapping
/web-app


=
output in Eclipse console
=
first event: com.google.gwt.user.client.ui.FormSubmitEvent[source=
FORM method=post action=http://localhost:8080/readmesystem/textarea
target=FormPanel_1/FORM]


=
where hosted mode console no respond at all. Then, if i try add
servlet in my ReadMeSystem.gwt.xml,
servlet path=/textarea
class=com.google.gwt.sample.showcase.server.TextAreaServlet/,
same issue happened. Note that, i have try this in a default new web
application project using GWT,
everything work smoothly, servlet got reply, onSubmitComplete is
fired. But when i switched to GWT showcase
as stated in first post, the problem occurred. I am not sure whether
GWT showcase disable any communication with
servlet or server, which may be a cause on it.

In addition, i try compile and browse in the IE and Chrome. IE respond
as the hosted mode browser, and Chrome
is a little bit strange, pop up a new page, with correct servlet url,
and the error listed in the first post. Then, if i try
add a parameter in url like this,
http://localhost:8080/readmesystem/textarea?homeTextArea=Hello,

Eclipse console replied as following,
servlet respond!
Hello

Hosted Mode console shown this,
[INFO] 200 - GET /readmesystem/textarea?homeTextArea=Hello (127.0.0.1)

So, once again, i hope you all can help me track the problem, thanks
in advance.

regards,
Simon



--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



onSubmitComplete is not working with GWT Showcase

2009-07-28 Thread Simon

Hi all,

I have a problem regarding FormPanel. Initially, i am working on
default GWT application for submit text through textarea and upload
file to server, all the events are handled by servlet, works pretty
fine. However, when i switched to using the GWT Showcase framework
(http://gwt.google.com/samples/Showcase/Showcase.html), all my
FormPanel events having problem on onSubmitComplete, it is no respond
at all. But if i try to send the request through URL, the servlet is
responded and all the parameters displayed as predicted. Second thing,
when i try compile and browse in the default IE browser (Chrome), i
click the submit button, it popup a new page and show the correct
servlet url, but the content is

HTTP ERROR: 405
HTTP method Get is not supported by this url
RequestURI=.readmesystem/textarea
Powered by Jetty://

again, i try insert some parameters after textarea?Variable=Hello,
servlet is just working fine.

I try search the forum and i found this issue (http://code.google.com/
p/google-web-toolkit/issues/detail?id=528), i try to remove the
history support in the Showcase.java  History,addValueChangeHandler
(historyHandler), it popop up more error, so i give up this method.

Therefore, can someone give me guidance about this issue. Thanks in
advance.
--~--~-~--~~~---~--~~
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: help on a servlet issue

2009-07-25 Thread Simon

How are you associating the servlet with your module?
I think that is the part I am confused.
If I have two modules, how do I specify the association of the servlet
and the module?
it seems my servlet can only be used on the default module created by
eclipse plugin

Thanks



On Jul 24, 5:40 am, Rajeev Dayal rda...@google.com wrote:
 Can you post the code for the servlet you're trying to add?
 Also, when you say that you added a new servlet for the setup module, what
 exactly do you mean? How are you associating the servlet with your module?



 On Fri, Jul 24, 2009 at 3:07 AM, Simon xingzhi@gmail.com wrote:

  hi, sorry, I am a newbie on this.

  I used eclipse to create the project, and I added a new module called
  setup (so I have two modules)
  then I tried to add a new servlet for the setup module, but I got the
  following error message, if I add a servlet for the original module,
  it will be fine. GWT document does not seem to have much document to
  discuss multiple modules.

  Here is the web.xml that I used for new servlet for the new module
   servlet
     servlet-nametestServlet/servlet-name
     servlet-classcom.simon.chutian.store1.server.TestServiceImpl/
  servlet-class
   /servlet

   servlet-mapping
     servlet-nameadduserServlet/servlet-name
     url-pattern/setup/adduser/url-pattern
   /servlet-mapping

  my new module is renamed to setup, I directly added the new module
  in the existing project. I think there must be something wrong with
  the path settings or maybe the servlet mapping, Can anyone help?

  Thanks

  Jul 24, 2009 6:44:25 AM com.google.apphosting.utils.jetty.JettyLogger
  warn
  WARNING: /setup/adduser
  java.lang.InstantiationException
         at
  sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance
  (Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
         at org.mortbay.jetty.servlet.ServletHolder.getServlet
  (ServletHolder.java:339)
         at
  org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
  463)
         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
  (ServletHandler.java:1093)
         at
  com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
  (TransactionCleanupFilter.java:43)
         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
  (ServletHandler.java:1084)
         at org.mortbay.jetty.servlet.ServletHandler.handle
  (ServletHandler.java:360)
         at org.mortbay.jetty.security.SecurityHandler.handle
  (SecurityHandler.java:216)
         at org.mortbay.jetty.servlet.SessionHandler.handle
  (SessionHandler.java:181)
         at org.mortbay.jetty.handler.ContextHandler.handle
  (ContextHandler.java:712)
         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
  405)
         at
  com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle
  (DevAppEngineWebAppContext.java:54)
         at org.mortbay.jetty.handler.HandlerWrapper.handle
  (HandlerWrapper.java:139)
         at com.google.appengine.tools.development.JettyContainerService
  $ApiProxyHandler.handle(JettyContainerService.java:306)
         at org.mortbay.jetty.handler.HandlerWrapper.handle
  (HandlerWrapper.java:139)
         at org.mortbay.jetty.Server.handle(Server.java:313)
         at
  org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
  506)
         at org.mortbay.jetty.HttpConnection$RequestHandler.content
  (HttpConnection.java:844)
         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
         at org.mortbay.io.nio.SelectChannelEndPoint.run
  (SelectChannelEndPoint.java:396)
         at org.mortbay.thread.BoundedThreadPool$PoolThread.run
  (BoundedThreadPool.java:442)- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



help on a servlet issue

2009-07-24 Thread Simon

hi, sorry, I am a newbie on this.

I used eclipse to create the project, and I added a new module called
setup (so I have two modules)
then I tried to add a new servlet for the setup module, but I got the
following error message, if I add a servlet for the original module,
it will be fine. GWT document does not seem to have much document to
discuss multiple modules.

Here is the web.xml that I used for new servlet for the new module
 servlet
servlet-nametestServlet/servlet-name
servlet-classcom.simon.chutian.store1.server.TestServiceImpl/
servlet-class
  /servlet

  servlet-mapping
servlet-nameadduserServlet/servlet-name
url-pattern/setup/adduser/url-pattern
  /servlet-mapping

my new module is renamed to setup, I directly added the new module
in the existing project. I think there must be something wrong with
the path settings or maybe the servlet mapping, Can anyone help?

Thanks


Jul 24, 2009 6:44:25 AM com.google.apphosting.utils.jetty.JettyLogger
warn
WARNING: /setup/adduser
java.lang.InstantiationException
at
sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance
(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
at org.mortbay.jetty.servlet.ServletHolder.getServlet
(ServletHolder.java:339)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
463)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1093)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle
(DevAppEngineWebAppContext.java:54)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:306)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
506)
at org.mortbay.jetty.HttpConnection$RequestHandler.content
(HttpConnection.java:844)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.java:396)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run
(BoundedThreadPool.java:442)

--~--~-~--~~~---~--~~
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: Ubuntu 9.04: com.google.gwt.core.client.JavaScriptException: (SyntaxError): syntax error

2009-07-20 Thread Simon

Bug found. I am using PrintWriter out = resp.getWriter() to generate
the JSON data and return to the client code. I found that the JSON
data received by client code consists of extra tag pre[{blak, blak,
blak},]/pre. So, i removed using the following replace function then
the bug is fixed.

json = json.replace(pre, );
json = json.replace(/pre, );
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



  1   2   >