Re: Deploying GWT application on a web server

2010-11-24 Thread hazy1
Um..the RPC implementations are servlet class file in the war.  Have
you even tried it?

On Nov 23, 11:43 am, Noor baken...@gmail.com wrote:
 But only the client sides files are compiled to javascript then what
 happens to the server files, such as the a server file for handling
 rpc services

-- 
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: RegEx

2010-08-09 Thread hazy1
This sounds like a great idea.

Matt

On Aug 9, 6:10 am, Dunlord esque...@gmail.com wrote:
 For a Open Source project I'm working on I needed the
 java.util.regex.Matcher (and so the java.util.regex.Pattern) classes,
 in the client side. They are not in the GWT JRE emulation library, but
 the source code for both classes are published by SUN (I'm not sure if
 under the GPL).

 So I copy-pasted the source code of both clases (and a bunch of clases
 they needed), cleaned them to work in gwt's client side and it all
 worked wonderfully.

 The question is: SUN's JRE source code licensing allows me to do this
 and publish it? And under which license? And as a bonus: What I'm
 allowed to do with it (or not allowed to do)?

 Thankyou

-- 
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 hostmode in weblogic

2010-06-03 Thread hazy1
Use -noserver

On Jun 2, 10:29 pm, GWT_novice ssu...@gmail.com wrote:
 i am very new to GWT. I want deploy GWT app in weblogic app server
 instead of using in-built jetty. Can someone let me know how to do
 that? I googled it but not much info regarding set up in weblogic.
 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-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: FastTree in GWT 2.0.3

2010-05-30 Thread hazy1
Fast tree has always had a lot of bugs, we basically took some of the
concepts from Fast Tree but wrote our own.

On May 28, 5:03 am, jla ner...@gmail.com wrote:
 Hi,

 Are there any known problems about the GWT-Incubator fastTree and GWT
 2.0.3. I can't seem to be able to get it to work properly. Even when
 copying the demo source code into my project. On the other hand the
 native Tree control is working fine.

 Thanks,
 Jerome

-- 
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: does anyone fancy testing the security on my test application?

2010-04-27 Thread hazy1
A lot of your problems are because you don't seem to have any idea how
Java enterprise or web applications (of any kind) work with sessions -
which is a totally separate issue from GWT.  I suggest reading up on
this prior to trying to use sophisticated frameworks like GWT/GAE.  It
is usually better to understand the basics of the underlying
technology prior to using the most abstract ones.

1)  You do not need to send any session id (unless you have some
application token - to mitigate XSRF attacks for example).  The web
container will send the session id in the response header.  This
session id is kept in the browser memory.  The browser maps the cookie
id to the originating domain.  When making requests to the originating
domain, the browser automatically will put the session id in the
request headers.  Look at the response/request headers yourself.
2)  You do not 'set a timeout' on a session id or touch it or whatever
else you think you do.  This is typically a server/domain
configuration parameter.  Prior to worrying about regenerating session
ids during the course of a session - learn the basics.

On Apr 27, 7:55 pm, John Denley johnvden...@googlemail.com wrote:
 OK, I think Im getting somewhere with all this, thanks so much for your
 input Sri!

 Essentially all I need is an interim solution until GAE supports SSL. We are
 actually not going to be storing data thats likely to be particularly
 exciting for any hacker, the best they can hope for is a list of addresses
 of people who use any one hairdresser in any one town!

 Regarding the 5 points (Which I think we can now cut down to just one (the
 use of sessions) going forward!)

    1. I understand that any kind of encryption on the client is effectively
    pointless without SSL, but its always going to be better than nothing! A 
 bit
    like saying that hding your front door key under a rock in your neighbours
    front garden is no different to leaving it in your front door
    2. I figured TLS was something like SSL, either way its not on GAE yet,
    so I cant use it yet!
    3. My passwords are being salted and hashed
 (jBcrypthttp://www.mindrot.org/projects/jBCrypt/)
    before being stored.
    4.  5. Still not sure i get how sessions really work. Ill keep reading
    and trying to figure it out. But surely at some point I still need to send
    the session ID from the server to the client right? As far as I can tell so
    far, the session ID is generated on the server, so the right thing to do it
    set a timeout on that sessionID and touch it every time the user makes a
    call to the server, making sure that the sessionID has not timed out. There
    are mentions in various places that you should refresh/regenerate the
    sessionID on a regular basis during a logged in session, to keep it
    fresh.

 On 27 April 2010 10:16, Sripathi Krishnan sripathikrish...@gmail.comwrote:



  If you can recommend a security framework that works with App Engine and
  custom URL's without SSL/HTTPS and has really good documentsation for
  complete dummies then please do let me know

  As far as I know, the above is impossible. You cannot have security without
  ssl. You cannot have a custom domain *and* ssl *and* GAE (because it is
  prohibitively expensive for google). And you have already starred the GAE
  issue that speaks about 
  ithttp://code.google.com/p/googleappengine/issues/detail?id=792,
  so there really isn't anything new for me to add.
  If you cannot use google's authentication, and if you can't use any of the
  (not-so-secure) workarounds described in that issue, I am afraid there is no
  way you can use GAE. I'd recommend discussing this in GAE discussion thread
  to get ideas from people. Either that, or just wait till GAE starts
  supporting SSL.

  Additional responses to your comments

     1. It doesn't matter what encryption method you use on client side; it
     may be the most secure algo on earth. The problem is with the key
     management. JS code needs the key to encrypt. And if it is in the JS 
  code,
     an attacker will always be able to get it. Ofuscation is just a very 
  minor
     hurdle, its easy to read through it.
     2. TLS is transport layer 
  securityhttp://en.wikipedia.org/wiki/Transport_Layer_Security,
     which is essentially the new SSL.
     3. On the server side as well - you should NOT encrypt passwords.
     Encryption means there is a way to decrypt and recover the password. If 
  you
     can decrypt it, an attacker will find a way as well. The recommended way 
  to
     store passwords is to Salt and Hash 
  themhttp://www.aspheute.com/english/20040105.asp
     .
     4. Sessions can loosely be described as 'per-user-server-side-hashmap'.
     The server automatically creates a cookie 'jsessionid' to track the 
  user. So
     when you call request.getSession(), the container gets the session id 
  from
     the jsessionid cookie and then gets the state corresponding to 

Re: how large of your GWT compiled code? My one is 850K

2009-11-13 Thread hazy1
Our code size, uncompressed is several megabytes.  We compress and
cache it (both on the client and on the server - cache the zipped file
in memory).  It is not much trouble after doing this.

On Nov 12, 6:48 pm, Edgenius dapeng...@edgenius.com wrote:
 I am very excited for code split feature on Gwt 2.0 as the HTML code
 size after compiled already bloats to 850k. I give a quick try but it
 looks not work like a breeze. I know I have to do more research. I
 don't use lots of third party libraries, actually, only 2 libraries:
 GWT-DND, GWT-LOG. My GWT client code is about 350 classes.

 So, do you have any good practice to reduce code size? Does code split
 give you very good result?

 Or just tell us what is your compiled code size and how many your
 classes...

--

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




Re: I'm a web developer - where do i fit in?

2009-10-22 Thread hazy1

There is no 'spreading thin'.  All these languages, design patterns,
idioms, hacks all start to look the same, regardless of language,
after you get enough experience and then it is just picking the right
tool for the job.

On Oct 22, 11:05 pm, mattkime mattk...@gmail.com wrote:
 I think its correct that I'd become a java developer, even if I'd
 slide in slowly. I enjoy learning new tech but I don't want to spread
 myself too thin.

 I've been examining various front end technologies lately and cringe
 whenever someone claims a particular framework fixes something in
 javascript. Its almost never a javascript problem but a dom problem or
 its just a variation from how java works. Additionally, there is no
 inherent barrier to writing large apps in js any more than there is in
 java.

 The determining factor as to whether we'll use GWT will be how we want
 to build our dev team. As it is, our java developers are quite busy so
 i couldn't understand why we'd saddle them with more responsibility.
 That said, its a decision for the people above me.

 I'm not sure if its an inherent part of the approach but I fault GWT
 for largely ignoring page based content loading and navigation. It
 would be preferable if the content was loaded into an html page before
 any js was attached. GWT v3?

 And one more outstanding question - how GWT would relate to our
 existing codebase which is a mix of spring/jsp and xslt - yes, its a
 mess. Other front end technologies seems like they'd merge a bit
 easier.

 thanks for the advice!
--~--~-~--~~~---~--~~
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: Pre-Compress GWT compiler output for web server

2009-07-22 Thread hazy1

It is dead simple to create a simple in-memory cache in your web
application for gzipped data.  Gzip the web page in memory the first
time it is created and then use this for subsequent requests to that
resource.

On Jul 22, 7:06 am, martinhansen martin.hanse...@googlemail.com
wrote:
 Hello,

 I am evaluating some approaches to reduce the amount of data being
 transmitted to the client browser. I am using the Apache Tomcat web
 server. I successfully managed to enable GZIP output for the Tomcat
 server by editing the server config file. It works fine. However, this
 way the data is compressed on-the-fly by the web server for every
 request which considerably increases server CPU load. Is this
 assumption correct?

 Is there a way to pre-compress the contents of my GWT app and have
 this pre-compressed content delivered by the web 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
-~--~~~~--~~--~--~---



Re: The future of GWTTestCase (and OOPHM)

2009-07-12 Thread hazy1

I hope that they make GWTTestCase work with the hosted mode and any
OOPHM-enabled browser depending on configuration...lets hope we get
it.

On Jul 12, 10:12 pm, Daniel Wellman etl...@gmail.com wrote:
 With OOPHM coming in GWT 2.0, which will as I understand will no
 longer require the Hosted Mode browser for running GWT applications in
 Java mode, what will happen with GWTTestCases?  It sounds like
 GWTTestCases still use the Hosted Mode browser in headless mode.

 Is this the plan for GWT 2.0?  What's the post-2.0 plan for
 GWTTestCases (if there is one this early on)?

 Curious,
 Dan
--~--~-~--~~~---~--~~
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: java.util.Date, TimeZone and RPC Serialization

2009-07-10 Thread hazy1

Why don't you just use Date.getTime() and Calendar.setTimeInMillis()
on the serverside?

On Jul 10, 3:11 pm, Monica premamon...@gmail.com wrote:
 thakker,

 I have the same issue as well, we are live in production and found
 this issue for users accessing from a different timezone , we pushed
 in a temp fix locally by overriding the default behavior of GWT Date,
 the solution provided in the below link, and it worked.

 http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...

 But We would like to know if there are any other fix or
 recommendations which could be implemented without affecting the
 client files, Any recommendation would be highly appreciated.

 Thanks

 On Jul 10, 2:39 pm, b.thakker bhavesh.thak...@gmail.com wrote:

  I have an issue where, when a java.util.Date is sent via an RPC from
  another time zone than the server, the date changes on the server due
  to the server interpreting the long sent via RPC from the client into
  its own time zone.

  I am able to get past this issue by implementing the solution provided
  here:http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...

  The problem with this solution is it affects both client and server.

  I'd like to ask, if anyone knows of a way how we could apply this
  change without affecting the client as I'd prefer making only server-
  side changes and not change the large number of client-side files.

  I'd highly appreciate any related information.

  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-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: call more than one service

2009-07-10 Thread hazy1

'Better' depends on what you are trying to do.

It is easy to know when a service finishes because the onSuccess/
Failure handler will execute at that time.  You probably need to
familiarize yourself with async programming.

On Jul 10, 5:49 am, retha pasalli re...@wacana-inti.com wrote:
 Hi guys,

 I want to know if I need to call more than one service, is it better
 if I call them all together, or I need to finish one service call
 before calling another service? if calling them together is much
 better, how do I know when all service is successfully called? I'm
 quite confuse because of the asynchronous issue so we can't detect
 which service last sucessfully called.

 Thx for any replies..

 Regards,
 Retha
--~--~-~--~~~---~--~~
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 with storing into session and accessing the session value in a Panel

2009-07-10 Thread hazy1

Yes, obviously you had better check the role on the client and on the
server.  It is best if you use a shared class (one that is compiled to
JS and is also available as Java on the server) to do this.

On May 21, 6:29 am, Magius antonio.diaz@gmail.com wrote:
 You can create a RPC to ask the server what is the current user role.

 You'll need to create a session when the user creates a new session
 and then you can store inside some user data like the login,
 profile, ...

 For a stronger security, you'd have to validate in server RPCs that
 the current profile is authorised to execute this RPC. It's not secure
 to rely only on the button because it can be cracked easily.

 On May 21, 4:00 am,hazy1matt.egyh...@gmail.com wrote:

  Send the role information to your GWT client side application.

  On May 20, 1:38 am, Chetan chetan.minaj...@gmail.com wrote:

   Hi,

   I am new to GWT.We have a requirement to hide a button based on the
   role of the user.
   We are able to get the correct data from the database based on SOP
   statements but invariably it is getting overwritten elsewhere.
   Is there a way where I can add this role that we get from the DB to
   add it into session and use that value to hide the button on the form?
   If so can you please let us know with a snippet.Another problem is how
   to access the session variable in our Panel in which this button is to
   be hidden.

   It is seemingly an extremely trivial requirement but we have spent
   quite sometime to understand how the existing application works but
   not able to make much headway.
   Would appreciate if some one from the community can help us out here.

   Regards,
   Chetan
--~--~-~--~~~---~--~~
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: FF 3.5 + GWT 1.5.3 + Large App (script/stack errors)

2009-07-08 Thread hazy1

Yes, we have run into browser limits but these were mostly solved by
optimizing search algorithms and using lazy panel to separate
rendering from the client side data model processing.

On Jul 7, 11:14 am, JacoGr jac...@gmail.com wrote:
 Hi all,

 I'm not 100% sure how to address this, or who/where to log it, so I
 thought I'll start here...

 We are close to launching a new medium-sized application using GWT
 1.5.3 + GXT 1.2.4. At this point the application is around 81,000
 lines (61K of this is the actual web client, the remainder is the
 server-side), along with another 4,300 DTO objects used in the RPC
 (don't ask), translated into 3 languages (600+ strings per language)
 and weighs in at a (not-too small) 5,632KB compiled size.

 Up to a week ago, everything was fine and then FireFox 3.5 happened.
 (Our main target for our enterprise app is IE and FF, as an ISV that
 seems to be where the action is although I personally would love more
 Chrome  Safari users...)

 At the end of last week, straight after the release of FF 3.5, the
 application started reporting the following errors when executing:
 (All other browsers are fine)

 script too large

 This week (with some code added in the meantime) the original error
 was replaced by a

 script stack space quota is exhausted

 Judging by these and the work that happened in the JS engine in the FF
 3.5 release, I'm starting to assume that this browser release is not
 too friendly to our sized compiled GWT applications. I'm not too
 excited by the fact that we will need to ship without FF 3.5 upport,
 but that seems to be the current scenario. (We could try to address
 this with the next release when we are planning to go 1.6.4 +
 runAsync)

 Are there any work-around that we may be able to try in the short-
 term? I can see these coming back to haunt us again, but I'm looking
 more to a breather as to a permanent solution. (If we can cut now
 and get things smaller, we will no-doubt run into this again - soon
 enough.) Anybody else out there who has started to run into browser
 limits?

 Thanks for any pointers,
 Jaco
--~--~-~--~~~---~--~~
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: how to authenticate user in GWT RPC(include Async)

2009-07-08 Thread hazy1

GWT has easy ways to access the HttpSession through the request in the
normal way: getThreadLocalRequest

On Jul 8, 5:39 am, 任胜韦 slayersxi...@gmail.com wrote:
 under jsp + servlet,  I usually set the username into session,then in the
 servlet  writes code like:
 request.getSession().getAttribute(username)  , I can easily get the username

 but in the GWT 'RPC , we see no request(also response).is it mean: I have to
 give the username from client side as the RPC service'parameter everytime?

 --XiaoR
--~--~-~--~~~---~--~~
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: RootPanel.get(aaa) in Junit test throws NPE

2009-07-06 Thread hazy1

The work around I ended up using is to parameterize the RootPanel.get
(xxx) call with a public static member.  In my JUnit test cases, I
set this public static to null prior to calling onModuleLoad.

On Jul 3, 10:58 pm, hazy1 matt.egyh...@gmail.com wrote:
 I have the same problem.  No solution/work around that I know of.

 On Jun 26, 12:45 pm, Владимир Петрухин mylonglongn...@gmail.com
 wrote:

  I generate a simple project with maven gwt plugin:

  mvn archetype:generate \
     -DarchetypeGroupId=org.codehaus.mojo \
     -DarchetypeArtifactId=gwt-maven-plugin \
     -DarchetypeVersion=1.1 \
     -DgroupId=myGroupId \
     -DartifactId=myArtifactId

  In GwtTestSample I change:

     public void testSomething()
     {
        final Label label = new Label ( gwt-maven-plugin Archetype ::
  Project myGroupId.myArtifactId );
        RootPanel.get(aaa).add( label );
     }

  And in Application.html i add div id=aaa/div

  All works ok, but in JUnit test (mvn gwt:test) RootPanel.get(aaa)
  throws

  java.lang.NullPointerException
  [INFO]  at myGroupId.client.GwtTestSample.testSomething
  (GwtTestSample.java:23)
  [INFO]  at myGroupId.client.__GwtTestSample_unitTestImpl.doRunTest
  (transient source for myGroupId.client.__GwtTestSample_unitTestImpl:7)
  [INFO]  at junit.framework.TestCase.runTest(TestCase.java:62)
  [INFO]  at com.google.gwt.junit.client.GWTTestCase.runBare
  (GWTTestCase.java:206)
  [INFO]  at com.google.gwt.junit.client.GWTTestCase.__doRunTest
  (GWTTestCase.java:137)
  [INFO]  at com.google.gwt.junit.client.impl.GWTRunner.runTest
  (GWTRunner.java:188)
  [INFO]  at com.google.gwt.junit.client.impl.GWTRunner.doRunTest
  (GWTRunner.java:163)
  [INFO]  at com.google.gwt.junit.client.impl.GWTRunner.access$3
  (GWTRunner.java:157)
  [INFO]  at com.google.gwt.junit.client.impl.GWTRunner
  $JUnitHostListener.onSuccess(GWTRunner.java:61)
  [INFO]  at com.google.gwt.junit.client.impl.GWTRunner
  $JUnitHostListener.onSuccess(GWTRunner.java:1)
  [INFO]  at
  com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived
  (RequestCallbackAdapter.java:215)
  [INFO]  at
  com.google.gwt.http.client.Request.fireOnResponseReceivedImpl
  (Request.java:264)
  [INFO]  at com.google.gwt.http.client.Request.fireOnResponseReceived
  (Request.java:229)
  [INFO]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  [INFO]  at sun.reflect.NativeMethodAccessorImpl.invoke
  (NativeMethodAccessorImpl.java:39)
  [INFO]  at sun.reflect.DelegatingMethodAccessorImpl.invoke
  (DelegatingMethodAccessorImpl.java:25)
  [INFO]  at java.lang.reflect.Method.invoke(Method.java:597)
  [INFO]  at com.google.gwt.dev.shell.MethodAdaptor.invoke
  (MethodAdaptor.java:103)
  [INFO]  at com.google.gwt.dev.shell.moz.MethodDispatch.invoke
  (MethodDispatch.java:80)
  [INFO]  at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration
  (Native Method)
  [INFO]  at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration
  (OS.java:1428)
  [INFO]  at org.eclipse.swt.widgets.Display.readAndDispatch
  (Display.java:2840)
  [INFO]  at com.google.gwt.dev.SwtHostedModeBase.processEvents
  (SwtHostedModeBase.java:235)
  [INFO]  at com.google.gwt.dev.HostedModeBase.pumpEventLoop
  (HostedModeBase.java:558)
  [INFO]  at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:
  652)
  [INFO]  at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:
  346)
  [INFO]  at com.google.gwt.junit.client.GWTTestCase.runTest
  (GWTTestCase.java:219)
  [INFO]  at junit.framework.TestCase.runBare(TestCase.java:134)
  [INFO]  at junit.framework.TestResult$1.protect(TestResult.java:110)
  [INFO]  at junit.framework.TestResult.runProtected(TestResult.java:
  128)
  [INFO]  at junit.framework.TestResult.run(TestResult.java:113)
  [INFO]  at junit.framework.TestCase.run(TestCase.java:124)
  [INFO]  at com.google.gwt.junit.client.GWTTestCase.run
  (GWTTestCase.java:132)
  [INFO]  at junit.framework.TestSuite.runTest(TestSuite.java:232)
  [INFO]  at junit.framework.TestSuite.run(TestSuite.java:227)
  [INFO]  at org.codehaus.mojo.gwt.test.MavenTestRunner.doRun
  (MavenTestRunner.java:105)
  [INFO]  at junit.textui.TestRunner.start(TestRunner.java:180)
  [INFO]  at org.codehaus.mojo.gwt.test.MavenTestRunner.main
  (MavenTestRunner.java:63)

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



Re: Best pattern for client/server communication?

2009-07-03 Thread hazy1

I typically share as much as possible.  If it has to be different then
subclass for the server-side only stuff and don't compile the subclass
on the client.

On Jul 3, 2:34 am, Kwhit kwhitting...@gmail.com wrote:
 I don't have a boilerplate pattern available as I'm still
 experimenting myself. There seems to be two schools of thought:

 1/ Try and reuse classes on both server and client sides which means
 exporting server logic to clients and vice versa

 2/ Separating client and server logic and evolving the two separately

 At first I tried to do the former but I didn't like it: it's just not
 clean IMHO.

 What I'm trying to do now is focus on the service interface offered by
 the server to the client. Using Google App Engine helps this
 discipline. I define the service interface in terms of actions:
 'Create new user', 'Transfer X from account x to account y', 'Get
 Employee details'. I'm at the frustrating phase that there's a lot of
 similar objects on both sides of the fence. But, over time, I'm seeing
 these diverge and evolve differently solving their own use cases
 without the restraint of trying to maintain a one-size-fits-all
 approach.

 In many of my core server-side and persistent objects: Employee,
 Account, etc., I have/had a method: EmployeeVo Employee.toVo(): i.e.
 to value object (as opposed to toString()). But, as my use cases
 become more refined I find that things evolve to having a Person
 object with toUserVo(), toEmployee()  and toCustomerVo() methods that
 create client side objects that are shipped out to log in, update
 employee details or have a customer select a shipping address.

 I love these types of problems - that's what makes programming so much
 fun.
--~--~-~--~~~---~--~~
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: New site created with GWT

2009-07-03 Thread hazy1

Wow, the text boxes are ginormous in FF 3.5.

On Jun 30, 4:34 pm, Michael W mwang_2...@yahoo.com wrote:
 I am happy to announce that we launched beta version of holidayinn
 website written with GWT this past weekend.
 The new sitehttp://www.holidayinn.com/hotels/us/en/reservationwill
 replace existing sitehttp://www.ichotelsgroup.com/h/d/hi/1/en/homein
 the future.

 The existing site has over 2 million hit a day.

 GWT is used in client side and Spring MVC is applied in server side

 Following lists some of the features including the package we used:

 --Multi-language (currently only support US English and Queen English)
 --Spring SL
 --JSON.
 --RPC.encodeResponseForSuccess
 --Suggest Box
 --Client side logging
 --Customized SEO
 --RPC timed out
 --Session backup, once refresh page, client side data is retrieved
 from server again by using RPC
 --Visual effect to display hotel images
 --Integrated dynamic content management
--~--~-~--~~~---~--~~
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: RootPanel.get(aaa) in Junit test throws NPE

2009-07-03 Thread hazy1

I have the same problem.  No solution/work around that I know of.

On Jun 26, 12:45 pm, Владимир Петрухин mylonglongn...@gmail.com
wrote:
 I generate a simple project with maven gwt plugin:

 mvn archetype:generate \
    -DarchetypeGroupId=org.codehaus.mojo \
    -DarchetypeArtifactId=gwt-maven-plugin \
    -DarchetypeVersion=1.1 \
    -DgroupId=myGroupId \
    -DartifactId=myArtifactId

 In GwtTestSample I change:

    public void testSomething()
    {
       final Label label = new Label ( gwt-maven-plugin Archetype ::
 Project myGroupId.myArtifactId );
       RootPanel.get(aaa).add( label );
    }

 And in Application.html i add div id=aaa/div

 All works ok, but in JUnit test (mvn gwt:test) RootPanel.get(aaa)
 throws

 java.lang.NullPointerException
 [INFO]  at myGroupId.client.GwtTestSample.testSomething
 (GwtTestSample.java:23)
 [INFO]  at myGroupId.client.__GwtTestSample_unitTestImpl.doRunTest
 (transient source for myGroupId.client.__GwtTestSample_unitTestImpl:7)
 [INFO]  at junit.framework.TestCase.runTest(TestCase.java:62)
 [INFO]  at com.google.gwt.junit.client.GWTTestCase.runBare
 (GWTTestCase.java:206)
 [INFO]  at com.google.gwt.junit.client.GWTTestCase.__doRunTest
 (GWTTestCase.java:137)
 [INFO]  at com.google.gwt.junit.client.impl.GWTRunner.runTest
 (GWTRunner.java:188)
 [INFO]  at com.google.gwt.junit.client.impl.GWTRunner.doRunTest
 (GWTRunner.java:163)
 [INFO]  at com.google.gwt.junit.client.impl.GWTRunner.access$3
 (GWTRunner.java:157)
 [INFO]  at com.google.gwt.junit.client.impl.GWTRunner
 $JUnitHostListener.onSuccess(GWTRunner.java:61)
 [INFO]  at com.google.gwt.junit.client.impl.GWTRunner
 $JUnitHostListener.onSuccess(GWTRunner.java:1)
 [INFO]  at
 com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived
 (RequestCallbackAdapter.java:215)
 [INFO]  at
 com.google.gwt.http.client.Request.fireOnResponseReceivedImpl
 (Request.java:264)
 [INFO]  at com.google.gwt.http.client.Request.fireOnResponseReceived
 (Request.java:229)
 [INFO]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 [INFO]  at sun.reflect.NativeMethodAccessorImpl.invoke
 (NativeMethodAccessorImpl.java:39)
 [INFO]  at sun.reflect.DelegatingMethodAccessorImpl.invoke
 (DelegatingMethodAccessorImpl.java:25)
 [INFO]  at java.lang.reflect.Method.invoke(Method.java:597)
 [INFO]  at com.google.gwt.dev.shell.MethodAdaptor.invoke
 (MethodAdaptor.java:103)
 [INFO]  at com.google.gwt.dev.shell.moz.MethodDispatch.invoke
 (MethodDispatch.java:80)
 [INFO]  at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration
 (Native Method)
 [INFO]  at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration
 (OS.java:1428)
 [INFO]  at org.eclipse.swt.widgets.Display.readAndDispatch
 (Display.java:2840)
 [INFO]  at com.google.gwt.dev.SwtHostedModeBase.processEvents
 (SwtHostedModeBase.java:235)
 [INFO]  at com.google.gwt.dev.HostedModeBase.pumpEventLoop
 (HostedModeBase.java:558)
 [INFO]  at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:
 652)
 [INFO]  at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:
 346)
 [INFO]  at com.google.gwt.junit.client.GWTTestCase.runTest
 (GWTTestCase.java:219)
 [INFO]  at junit.framework.TestCase.runBare(TestCase.java:134)
 [INFO]  at junit.framework.TestResult$1.protect(TestResult.java:110)
 [INFO]  at junit.framework.TestResult.runProtected(TestResult.java:
 128)
 [INFO]  at junit.framework.TestResult.run(TestResult.java:113)
 [INFO]  at junit.framework.TestCase.run(TestCase.java:124)
 [INFO]  at com.google.gwt.junit.client.GWTTestCase.run
 (GWTTestCase.java:132)
 [INFO]  at junit.framework.TestSuite.runTest(TestSuite.java:232)
 [INFO]  at junit.framework.TestSuite.run(TestSuite.java:227)
 [INFO]  at org.codehaus.mojo.gwt.test.MavenTestRunner.doRun
 (MavenTestRunner.java:105)
 [INFO]  at junit.textui.TestRunner.start(TestRunner.java:180)
 [INFO]  at org.codehaus.mojo.gwt.test.MavenTestRunner.main
 (MavenTestRunner.java:63)

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



Re: show/hide widget based on user's credentials

2009-06-23 Thread hazy1

This is correct, the RPC must also verify user permissions.  The
easiest way to do this is to keep the 'user validation/permission'
code the same on the client and on the server.  This can easily be
accomplished in GWT since the client code is Java compiled to
JavaScript.  BTW, you should be doing the same with your input
validation code.

In my applications we give the client the user's roles and it uses
them to decide which parts of the application the user can access.
However, ALL RPCs are subject to the same checks so some clever guy
cannot just reverse engineer the javascript RPCs and call methods
without having any real roles.

On Jun 23, 6:55 pm, ailinykh ailin...@gmail.com wrote:
 I understand that. But you can't trust the client. If someone who has
 read only access tries to write, server has to reject such request.
 In other words how do you implement authorization?

 Thank you,
   Andrey
 On Jun 23, 4:42 pm, Chad chad...@gmail.com wrote:

  Permissions aren't really checked on the server. I have tables in a
  database for users, roles, and rights. And I have tables that link
  them together users_roles and roles_rights. When the user logs in, and
  authentication is complete, the user data is retrieved along with the
  roles the user belongs to and the rights that belong to each role. The
  roles and rights are added to the user and sent back to the client.
  From that point on, the application can just query the user object for
  everything that it needs to know about the user.

  HTH,
  Chad

  On Jun 23, 3:28 pm, ailinykh ailin...@gmail.com wrote:

   I see. How do you check user permissions on server side?

   Andrey

   On Jun 23, 2:47 pm, Chad chad...@gmail.com wrote:

Andrey,

RPC is the way I do it. I have a User object that can be passed
between the client and server. It's kept on the client after login so
the entire UI can easily refer to it. My security scheme contains
roles that are a collection of rights. On the server side, at the time
of login, the roles and rights are retrieved from the database for the
user and added to the user object. The user object is only retrieved
from the server once since it is not stored anywhere (other than in
memory) on the client side. When the app is first entered, the user
object won't exist and therefore require a login. On the client side,
the UI can use the existence (or non-existence) of rights to determine
what to display:
--~--~-~--~~~---~--~~
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: Fast Tree Migration Path

2009-06-23 Thread hazy1

Thomas,

Thank you!

Matt

On Jun 18, 5:37 am, Thomas Broyer t.bro...@gmail.com wrote:
 On 18 juin, 04:23,hazy1matt.egyh...@gmail.com wrote:

  Hi,

  We are using the Fast Tree widget in the 1.6 incubator with the 1.6.4
  GWT release.  The Fast Tree still uses the old event model so we get a
  lot of warnings.

 FYI, there's a gen2 FastTree in module
 com.google.gwt.gen2.complexpanel.ComplexPanel.

  We have trees with potentially thousands of nodes
  (don't worry, it has a client side search option to find nodes), so
  Fast Tree is absolutely required.  We noticed severe slow downs with
  around 100 nodes in the normal GWT tree.

  Will Fast Tree be maintained when GWT 2.0 comes out and the old event
  model is removed?

 AFAICT, FastTree will be moved out of the incubator for the GWT 2.0
 release.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Fast Tree Migration Path

2009-06-17 Thread hazy1

Hi,

We are using the Fast Tree widget in the 1.6 incubator with the 1.6.4
GWT release.  The Fast Tree still uses the old event model so we get a
lot of warnings.  We have trees with potentially thousands of nodes
(don't worry, it has a client side search option to find nodes), so
Fast Tree is absolutely required.  We noticed severe slow downs with
around 100 nodes in the normal GWT tree.

Will Fast Tree be maintained when GWT 2.0 comes out and the old event
model is removed?

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



Re: GWT RPC Encryption

2009-05-30 Thread hazy1

If you are worried about replay attacks use a random token as part of
each response/request pair.

On May 29, 11:09 pm, Deep Blue deep.blue...@gmail.com wrote:
 Hi,

 Thanks all for the comments / opinions.
 I agreed with Daniel and Jason that we shouldn't send any extra info.
 to client and protect from server side.

 However, some of my clients are paranoid about the data is being
 exposed to users as clear text and they are able to forge the request
 to retrieve data from server.
 This is just one step more protection, but should be effective in
 prevent normal users from forging the request just by using plugin in
 firefox.

 GWT has already obfuscated the javascript source code when compiling,
 this is great.
 I was thinking maybe we can take one step further to encrypt the data
 (only for sensitive information rpc.)

 We will protect the data / request from server side, but to let
 clients able to rest assure, I am just trying to look out any way we
 can implement the encryption in GWT.
 I know it sounds ridiculous, but sometimes clients are ridiculuous.
--~--~-~--~~~---~--~~
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 with storing into session and accessing the session value in a Panel

2009-05-20 Thread hazy1

Send the role information to your GWT client side application.

On May 20, 1:38 am, Chetan chetan.minaj...@gmail.com wrote:
 Hi,

 I am new to GWT.We have a requirement to hide a button based on the
 role of the user.
 We are able to get the correct data from the database based on SOP
 statements but invariably it is getting overwritten elsewhere.
 Is there a way where I can add this role that we get from the DB to
 add it into session and use that value to hide the button on the form?
 If so can you please let us know with a snippet.Another problem is how
 to access the session variable in our Panel in which this button is to
 be hidden.

 It is seemingly an extremely trivial requirement but we have spent
 quite sometime to understand how the existing application works but
 not able to make much headway.
 Would appreciate if some one from the community can help us out here.

 Regards,
 Chetan
--~--~-~--~~~---~--~~
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: GWT Upgradation error from 1.4 to 1.5/1.6

2009-05-20 Thread hazy1

Incubator releases have breaking changes so you will have to adjust.
Some of the classes get moved to the main GWT trunk.

On Apr 23, 5:56 am, Satya Bobba nasbo...@yahoo.com wrote:
 Hi hazy,

 thanks,

 i tried with latest version of incubator, but i am getting different
 errors means some of the classes are not available in that new jar.

 we have used 1.4 incubator classes in our applications those classes
 are not avaliable in that new jar.

 so to avoid the compilation errors, i am keeping the 1.4 incubator jar
 with the latest version of GWT jars, then i am not getting any
 compilation errors in eclipse.

 But i am getting problem, while generating the script files by using
 the shells(compile, shell bat files).

 On Apr 23, 12:16 am,hazy1matt.egyh...@gmail.com wrote:

  Um, there is probably a new incubator release for 1.6.  Might want to
  try it.

  On Apr 22, 11:40 am, Satya Bobba nasbo...@yahoo.com wrote:

   Hi,

   I am upgrading my existing code from GWT 1.4 to GWT 1.6.we have used
   the FastTree.java in our code. it is compiling fine with 1.4.

   I have kept the latest jar files(gwtuser, gwt windows, gwt servlet,
   and  gwt-incubator_1-4_final.jar) in the path, but still it is
   throwing an error.

   I have used eclipse editor and also kept all jar file in the
   reference.

   i also tested with jdk 1.5 and jdk 1.6 , same problem i am getting.

   I am getting the below message eror message while trying to compile
   the code.

      [ERROR] Errors in 'jar:file:/C:/path/gwt-incubator_1-4_final.jar!/
   com/google/gwt/widgetideas/client/FastTree.java'
         [ERROR]  Internal compiler error
   java.lang.IncompatibleClassChangeError: Found class
   com.google.gwt.core.ext.TreeLogger, but interface was expected
           at
   com.google.gwt.libideas.resources.rebind.context.InlineResourceBundleGenera­tor.createResourceContext
   (Unknown Source)
           at
   com.google.gwt.libideas.resources.rebind.AbstractResourceBundleGenerator.ge­nerate
   (Unknown Source)
           at com.google.gwt.dev.cfg.RuleGenerateWith.realize
   (RuleGenerateWith.java:49)
           at com.google.gwt.dev.shell.StandardRebindOracle
   $Rebinder.tryRebind(StandardRebindOracle.java:113)
           at com.google.gwt.dev.shell.StandardRebindOracle
   $Rebinder.rebind(StandardRebindOracle.java:62)
           at com.google.gwt.dev.shell.StandardRebindOracle.rebind
   (StandardRebindOracle.java:172)
           at com.google.gwt.dev.shell.StandardRebindOracle.rebind
   (StandardRebindOracle.java:161)
           at com.google.gwt.dev.Precompile
   $DistillerRebindPermutationOracle.getAllPossibleRebindAnswers
   (Precompile.java:204)
           at
   com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRe­binds
   (WebModeCompilerFrontEnd.java:128)
           at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.process
   (AbstractCompiler.java:151)
           at org.eclipse.jdt.internal.compiler.Compiler.compile
   (Compiler.java:444)
           at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile
   (AbstractCompiler.java:85)
           at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile
   (AbstractCompiler.java:181)
           at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.access
   $400(AbstractCompiler.java:71)
           at com.google.gwt.dev.jdt.AbstractCompiler.compile
   (AbstractCompiler.java:473)
           at
   com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclaratio­ns
   (WebModeCompilerFrontEnd.java:73)
           at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile
   (JavaToJavaScriptCompiler.java:254)
           at com.google.gwt.dev.Precompile.precompile(Precompile.java:
   300)
           at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:180)
           at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:150)
           at com.google.gwt.dev.GWTCompiler$1.run(GWTCompiler.java:119)
           at com.google.gwt.dev.CompileTaskRunner.doRun
   (CompileTaskRunner.java:84)
           at
   com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger
   (CompileTaskRunner.java:78)
           at com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:126)

   [ERROR] Unexpected
   java.lang.IncompatibleClassChangeError: Found class
   com.google.gwt.core.ext.TreeLogger, but interface was expected
           at
   com.google.gwt.libideas.resources.rebind.context.InlineResourceBundleGenera­tor.createResourceContext
   (Unknown Source)
           at
   com.google.gwt.libideas.resources.rebind.AbstractResourceBundleGenerator.ge­nerate
   (Unknown Source)
           at com.google.gwt.dev.cfg.RuleGenerateWith.realize
   (RuleGenerateWith.java:49)
           at com.google.gwt.dev.shell.StandardRebindOracle
   $Rebinder.tryRebind(StandardRebindOracle.java:113)
           at com.google.gwt.dev.shell.StandardRebindOracle
   $Rebinder.rebind(StandardRebindOracle.java:62)
           at 

Re: how to integrate an ejb jar within my gwt web application ?

2009-05-19 Thread hazy1

Uh, just make an .ear in the normal way and call your EJBs from your
RPC servlets.  Hopefully you used stateless session beans.

On May 19, 6:43 am, adel2009 adel.say.e...@gmail.com wrote:
 Hi,

 I have an ear which contains an ejb jar file and a war file (the old
 application).
 I created a new war which contains presentation layer similar to the
 old war but developped with GWT and some RPC services.
 I would like to integrate the old ejb jar with the new war, i.e,
 communicate the GWT application with the existant business layer.
 I tried several ~solutions, but everytime it failed.
 here are two articles I tried to run, but it was not clear:

  http://www.dotnetguru2.org/sami/index.php?title=integration_gwt_ejb3;...
   and
  http://dobesland.wordpress.com/2007/07/22/gwt-using-a-stateful-ejb-in...,

 how is that possible?

 Thanks
 Adel.
--~--~-~--~~~---~--~~
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: How to compile code for UNIX

2009-05-05 Thread hazy1

Do you know what the output of the GWTCompiler is?  It is Javascript
and HTML.

The bar to the IT industry is so low sometimes I wonder how any
software works at all.  Sorry to be mean, but seriously.  How many
seconds would it take to deploy your javascript/html/etc to a Unix web
server and see for yourself?  30?

On May 5, 12:59 am, Brijesh brijesh.j...@gmail.com wrote:
 Hi,

 I have written some code in Windows for gwt and compiled it through
 gwc compiler, can i compile this code for unix in windows itself as i
 need to integrate this with the existing code running on unix servers.

 Regards
 Brijesh
--~--~-~--~~~---~--~~
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: GWT Upgradation error from 1.4 to 1.5/1.6

2009-04-22 Thread hazy1

Um, there is probably a new incubator release for 1.6.  Might want to
try it.

On Apr 22, 11:40 am, Satya Bobba nasbo...@yahoo.com wrote:
 Hi,

 I am upgrading my existing code from GWT 1.4 to GWT 1.6.we have used
 the FastTree.java in our code. it is compiling fine with 1.4.

 I have kept the latest jar files(gwtuser, gwt windows, gwt servlet,
 and  gwt-incubator_1-4_final.jar) in the path, but still it is
 throwing an error.

 I have used eclipse editor and also kept all jar file in the
 reference.

 i also tested with jdk 1.5 and jdk 1.6 , same problem i am getting.

 I am getting the below message eror message while trying to compile
 the code.

    [ERROR] Errors in 'jar:file:/C:/path/gwt-incubator_1-4_final.jar!/
 com/google/gwt/widgetideas/client/FastTree.java'
       [ERROR]  Internal compiler error
 java.lang.IncompatibleClassChangeError: Found class
 com.google.gwt.core.ext.TreeLogger, but interface was expected
         at
 com.google.gwt.libideas.resources.rebind.context.InlineResourceBundleGenerator.createResourceContext
 (Unknown Source)
         at
 com.google.gwt.libideas.resources.rebind.AbstractResourceBundleGenerator.generate
 (Unknown Source)
         at com.google.gwt.dev.cfg.RuleGenerateWith.realize
 (RuleGenerateWith.java:49)
         at com.google.gwt.dev.shell.StandardRebindOracle
 $Rebinder.tryRebind(StandardRebindOracle.java:113)
         at com.google.gwt.dev.shell.StandardRebindOracle
 $Rebinder.rebind(StandardRebindOracle.java:62)
         at com.google.gwt.dev.shell.StandardRebindOracle.rebind
 (StandardRebindOracle.java:172)
         at com.google.gwt.dev.shell.StandardRebindOracle.rebind
 (StandardRebindOracle.java:161)
         at com.google.gwt.dev.Precompile
 $DistillerRebindPermutationOracle.getAllPossibleRebindAnswers
 (Precompile.java:204)
         at
 com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds
 (WebModeCompilerFrontEnd.java:128)
         at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.process
 (AbstractCompiler.java:151)
         at org.eclipse.jdt.internal.compiler.Compiler.compile
 (Compiler.java:444)
         at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile
 (AbstractCompiler.java:85)
         at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile
 (AbstractCompiler.java:181)
         at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.access
 $400(AbstractCompiler.java:71)
         at com.google.gwt.dev.jdt.AbstractCompiler.compile
 (AbstractCompiler.java:473)
         at
 com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations
 (WebModeCompilerFrontEnd.java:73)
         at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile
 (JavaToJavaScriptCompiler.java:254)
         at com.google.gwt.dev.Precompile.precompile(Precompile.java:
 300)
         at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:180)
         at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:150)
         at com.google.gwt.dev.GWTCompiler$1.run(GWTCompiler.java:119)
         at com.google.gwt.dev.CompileTaskRunner.doRun
 (CompileTaskRunner.java:84)
         at
 com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger
 (CompileTaskRunner.java:78)
         at com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:126)

 [ERROR] Unexpected
 java.lang.IncompatibleClassChangeError: Found class
 com.google.gwt.core.ext.TreeLogger, but interface was expected
         at
 com.google.gwt.libideas.resources.rebind.context.InlineResourceBundleGenerator.createResourceContext
 (Unknown Source)
         at
 com.google.gwt.libideas.resources.rebind.AbstractResourceBundleGenerator.generate
 (Unknown Source)
         at com.google.gwt.dev.cfg.RuleGenerateWith.realize
 (RuleGenerateWith.java:49)
         at com.google.gwt.dev.shell.StandardRebindOracle
 $Rebinder.tryRebind(StandardRebindOracle.java:113)
         at com.google.gwt.dev.shell.StandardRebindOracle
 $Rebinder.rebind(StandardRebindOracle.java:62)
         at com.google.gwt.dev.shell.StandardRebindOracle.rebind
 (StandardRebindOracle.java:172)
         at com.google.gwt.dev.shell.StandardRebindOracle.rebind
 (StandardRebindOracle.java:161)
         at com.google.gwt.dev.Precompile
 $DistillerRebindPermutationOracle.getAllPossibleRebindAnswers
 (Precompile.java:204)
         at
 com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds
 (WebModeCompilerFrontEnd.java:128)
         at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.process
 (AbstractCompiler.java:151)
         at org.eclipse.jdt.internal.compiler.Compiler.compile
 (Compiler.java:444)
         at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile
 (AbstractCompiler.java:85)
         at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile
 (AbstractCompiler.java:181)
         at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.access
 $400(AbstractCompiler.java:71)
         at com.google.gwt.dev.jdt.AbstractCompiler.compile
 

Re: GWT RPC filter

2009-04-17 Thread hazy1

Yes, use the GWT RPC classes to return failure or exception to the
client in the servlet filter.

On Apr 17, 4:49 am, dialloma malim...@gmail.com wrote:
 Hello group,

 I would like to implement the method or class that will be called
 before each GWT-RPC. Is there any method in GWT to do that ?

 I was trying to implement J2EE Filter on GWT server side. But when I
 throw Exception in my filter throws Exception but my GWT-RPC call
 return success. Is there any method to force my GWT-RPC call to return
 onFailure method when I throw exception in my filter.
 Thanks
 dialloma
--~--~-~--~~~---~--~~
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: GWT for Solaris

2009-04-05 Thread hazy1

Wow, you actually develop on Solaris?  I think your kind will soon be
extinct.

You realize that GWT runs just fine on Solarisright?

On Apr 5, 12:02 pm, Peter Ondruška peter.ondru...@gmail.com wrote:
 Hello,

 Are there any plans to provide GWT for Solaris? If not is it OK to
 request this by creating bug a let vote/star for it?

 Thanks,

 Peter
--~--~-~--~~~---~--~~
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: Dealing with session timeout and container managed security

2009-03-08 Thread hazy1

I handle this in the following way:

Use a servlet filter to check the status of the authentication.  Check
the URL requested (this can be done using a specific kind of filter
mapping and initialization parameter), if it is a GWT request then
send back an encoded exception that the GWT client will understand.
If it is a request for a 'normal' html/jsp/etc then forward to an
error page.

On Feb 28, 3:26 am, marcelstoer mar...@frightanic.com wrote:
 Is there some consensus or best practice in the GWT community as for
 how to deal with session timeout and container managed security? There
 are some pointers if you search for this subject, but some of the
 ideas are wild...

 In my case I use the Servlet container's built in security features
 for authentication as described in the Servlet specification. Hence,
 in my web.xm I protect access to the GWT application like so:

   security-constraint
     web-resource-collection
       web-resource-namemy app/web-resource-name
       url-pattern/app/*/url-pattern
       http-methodGET/http-method
       http-methodPOST/http-method
       http-methodPUT/http-method
       http-methodDELETE/http-method
     /web-resource-collection
     auth-constraint
       role-name*/role-name
     /auth-constraint
   /security-constraint

   login-config
     auth-methodFORM/auth-method
     form-login-config
       form-login-page/public/login.jsp/form-login-page
       form-error-page/public/login.jsp?retry=true/form-error-page
     /form-login-config
   /login-config

   security-role
     role-name*/role-name
   /security-role

 So, the application (host/bootstrap page, RPC Servlet, etc.) is in the
 app folder and the login form (login.jsp) is in the public folder.
 This works flawlessly except for the session timeout use case.
 The application sends an RPC request to /app/AppServlet, the Servlet
 container requires authentication because the session had timed out
 and dutifully *forwards* to the login page. Hence, the result of the
 request is not some RPC/JSON/XML object as expected by the client but
 the login page HTML structure. The client simply isn't prepared for
 that and freezes i.e. doesn't do anything.

 I believe that on the server side everything is set up correctly. If
 the session timed out the requests don't even reach the RPC Servlet
 because it's intercepted by the container, fine.

 But how do you deal with this in the client?
 Should one write some custom AsyncCallback class that handles the
 reponse sent by the container?

 Thanks for your feedback.
 Marcel
--~--~-~--~~~---~--~~
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: Sequential workflow in an asynchronous GWT world

2009-03-04 Thread hazy1

Making an async call appear to be sequential is easy, just block or
fade out or have a pop up progress bar until the async operation
completes.

On Mar 4, 10:15 pm, rlaferla robertlafe...@comcast.net wrote:
 How is everyone managing to implement sequential workflows when GWT
 only allows async calls?

 I have a series of panels that user must respond to in sequence and
 their answers may lead to a different path of panels (warnings, error
 panels, etc..)  I think every GWT programmer working on a large
 project must have run into this.   I'm interested in what strategies/
 techniques/code you used to help keep the complexity down.
--~--~-~--~~~---~--~~
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: No source code is available for type com.google.gwt.xml.client.XMLParser Erorr

2009-01-31 Thread hazy1

Add the xml module to your gwt.xml.


On Jan 31, 11:03 am, taha taha...@gmail.com wrote:
 i wanna use XMLParser class in my project but i've faced below error
 message
 No source code is available for type
 com.google.gwt.xml.client.XMLParser; did you forget to inherit a
 required module?

 my code is

 package org.nts.client;

 import com.google.gwt.user.client.ui.DecoratorPanel;
 import com.google.gwt.user.client.ui.VerticalPanel;
 import com.google.gwt.user.client.ui.ListBox;
 import com.google.gwt.user.client.HTTPRequest;
 import com.google.gwt.user.client.ResponseTextHandler;
 import com.google.gwt.xml.client.*;

 public class IntroPanel extends DecoratorPanel {

         static final String TERM_PATH = term.xml;
         static final String TERM_TAG = term;
         static final String  ATTRIBUTE_ID= id;
         static final String ATTRIBUTE_NAME = name;
         private VerticalPanel panel = new VerticalPanel();
         private ListBox termList = new ListBox(false);

         public IntroPanel() {
                 setWidth(900px);
                 HTTPRequest.asyncGet(TERM_PATH, new ResponseTextHandler() {
                         public void onCompletion(String responseText) {
                                 XMLParser.parse(responseText);
                                 NodeList terms = 
 document.getElementsByTagName(TERM_TAG);
                                 for (int i=0; i  terms.getLength(); i++) {
                                         Element currentElement = 
 (Element)terms.item(i);
                                         String item = 
 currentElement.getAttribute(ATTRIBUTE_ID);
                                         String value = 
 currentElement.getAttribute(ATTRIBUTE_NAME);
                                         termList.addItem(item, value);
                                 }
                         }
                 });

                 panel.add(termList);
         }

 }
--~--~-~--~~~---~--~~
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: How to log/audit/track GWT RPC calls?

2009-01-27 Thread hazy1

Here are some options:

1)  Using a servlet filter mapped to the URL pattern of your GWT
servlets
2)  Log yourself inside of the GWT servlet

Matt

On Jan 27, 4:01 pm, ka1n leskap...@gmail.com wrote:
 I'd like to track the usage of my GWT application.  Specifically, I'd
 like to be able to log the service class and method of each RPC call.
 I wasn't able to find anything in RemoteServiceServlet that might help
 me to do this.  Can anyone point me in the right direction?
--~--~-~--~~~---~--~~
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: How to Debug GWT code using eclipse Remote Debugging feature

2009-01-26 Thread hazy1

Once compiled into JavaScript you cannot use a Java remote debugger on
your GWT project.  You can debug using hosted mode, see the docs.

On Jan 25, 1:30 pm, Ashish Soni learnspr...@gmail.com wrote:
 Hi All ,

 I am new to GWT and have below problem , please help...

 I have a java web application which uses GWT and as per my best
 knowledge the client side code is pre compiled into gwt javscript
 which make RPC calls. Now when i put the debug breakpoints into the
 eclipse project  which is attached to remote debugger the flow doesn't
 stop at the point , Please help how can i debug the application GWT
 code.

 Thanks,
 Ashish Soni
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Servlet filter compression interfere with GWT RPC?

2009-01-25 Thread hazy1

Hello all,

Assume the following:

1)  A GWT application using RPC
2)  A servlet filter that dynamically gzip's HttpServletResponses
based on file size

Given that GWT-RPC already will compress responses, will the response
potentially be compressed twice?  If so, will this have any impact?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---