How to send data to client in a regular interval?

2009-06-01 Thread Suren

Hi all,

Is it possible to send the updated data from DB to the client in a
periodic interval and without any request or call from the client?

I want to know about this because, I have a grid with set of rows and
columns fetched from DB, after populating the grid, if there is any
further updates in DB to the data displayed, that should get reflected
in my Grid.

so I thought of placing a code inside the timer (in Server) and get
the latest data and pass that on to the client. In this case, client
should be always ready to get any data comes from the server.

Can anyone help me in this regards?

Thanks in advance
Suren
--~--~-~--~~~---~--~~
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 send data to client in a regular interval?

2009-06-01 Thread Matías Costa

On Mon, Jun 1, 2009 at 9:47 AM, Suren nsurendi...@gmail.com wrote:

 Hi all,

 Is it possible to send the updated data from DB to the client in a
 periodic interval and without any request or call from the client?

No, it is not posible.

--~--~-~--~~~---~--~~
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: debugging doesn't work with -noserver

2009-06-01 Thread ahhat...@gmail.com

Yes, I can debug normally without -no server..
I am using glassfish, eclipse (with gwt plugin), gwt 1.6.4 and
netbeans for rails

I am not sure if I have done the right steps, I tried to follow steps
in the FAQs..
I will try to read them again, It looks like no one else suffers from
this but me

Thanks for the reply

On May 31, 12:13 pm, Ed post2edb...@hotmail.com wrote:
 I do exactly this and can put a breakpoint where ever I want, on the
 server/client side and it stops as well...

 Can you debug in hosted mode without the  -noserver option ?
 Do you start the hosted mode correctly (in debug mode)?

 Btw: I am using MyEclipse, tomcat 6.x, gwt 1.6.4.

 -- 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-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 send data to client in a regular interval?

2009-06-01 Thread Suren

Hi,

Thanks for the reply.

OK. Now I can confirm my predictions was right. I already checked that
from my end, but I want to confirm is there any other ways of doing
it. So at the end, its not possible..hmm.

So now what I am trying to do is,  Storing the keycolumns of the rows
initially sent to client in an array, and I am initiating the request
from the client now, and fetching the same values from the DB and
comapring with the existing values. If there is a difference then
sending that to client, else leave that row as such..

Tell me if anyother way of doing it, or is there any disadvantages of
doing it?

Thanks again
Suren

On Jun 1, 1:23 pm, Matías Costa m.costac...@gmail.com wrote:
 On Mon, Jun 1, 2009 at 9:47 AM, Suren nsurendi...@gmail.com wrote:

  Hi all,

  Is it possible to send the updated data from DB to the client in a
  periodic interval and without any request or call from the client?

 No, it is not posible.
--~--~-~--~~~---~--~~
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 send data to client in a regular interval?

2009-06-01 Thread Matías Costa

Mail fail.

Oops, very wrong post. My brain got a shortcircuit and I was thinking
this was for the django list.

Sorry.

Almost everything apply to GWT except the jquery and djangosnippets
statements. For coment exists various solutions with 3rd party
modules.

2009/6/1 Matías Costa m.costac...@gmail.com:
 I use auto_increment primery keys, so new rows are greater than the
 last send to client. Each minute the client polls the server
 /example/path/new_objects?from=2353 (beware IE caching). JQuery in
 client, and json encoding in the server  (search djangosnippets.com)
 makes this a joke, no more than a few hours to implement.

 If you want also notify modifications (my model is inmutable) you
 should store some kind of version indicator.

 If you need near real-time updates investigate comet. I have no
 experience with 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: How to send data to client in a regular interval?

2009-06-01 Thread Matías Costa

Further reading:

http://code.google.com/p/google-web-toolkit-incubator/wiki/ServerPushFAQ

2009/6/1 Matías Costa m.costac...@gmail.com:
 Mail fail.

 Oops, very wrong post. My brain got a shortcircuit and I was thinking
 this was for the django list.

 Sorry.

 Almost everything apply to GWT except the jquery and djangosnippets
 statements. For coment exists various solutions with 3rd party
 modules.

 2009/6/1 Matías Costa m.costac...@gmail.com:
 I use auto_increment primery keys, so new rows are greater than the
 last send to client. Each minute the client polls the server
 /example/path/new_objects?from=2353 (beware IE caching). JQuery in
 client, and json encoding in the server  (search djangosnippets.com)
 makes this a joke, no more than a few hours to implement.

 If you want also notify modifications (my model is inmutable) you
 should store some kind of version indicator.

 If you need near real-time updates investigate comet. I have no
 experience with 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: GWT RPC Encryption

2009-06-01 Thread Deep Blue

Thanks for the comments.

So, we are not able to implement this in current version of GWT?

On May 30, 10:13 pm, Mark  Renouf mark.ren...@gmail.com wrote:
 Re: request signing

 At the GWT fireside chat at Google I/O, I asked about the possibility
 of a per-request handler for the new RPCRequestBuilder coming in GWT2.
 They mentioned it had been considered.

 With a user method invoked just before the request is sent, you could
 easily implement GWT-RPC signature/authentication transparently and
 protect the integrity of the entire request. MD5, SHA1 and event
 HmacSHA1 work reasonably when ported to translatable Java source. I've
 successfully performed authenticated Amazon S3 requests in this way,
 straight from the browser.

 On May 30, 2:21 am, hazy1 matt.egyh...@gmail.com wrote:

  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: How to send data to client in a regular interval?

2009-06-01 Thread Rvanlaak

I'm using the GWTEventService for the server push principal. It is
implementing server-push independently from Tomcat or Jetty.

http://code.google.com/p/gwteventservice/

On Jun 1, 10:59 am, Suren nsurendi...@gmail.com wrote:
 Hi,

 Thanks for the reply.

 OK. Now I can confirm my predictions was right. I already checked that
 from my end, but I want to confirm is there any other ways of doing
 it. So at the end, its not possible..hmm.

 So now what I am trying to do is,  Storing the keycolumns of the rows
 initially sent to client in an array, and I am initiating the request
 from the client now, and fetching the same values from the DB and
 comapring with the existing values. If there is a difference then
 sending that to client, else leave that row as such..

 Tell me if anyother way of doing it, or is there any disadvantages of
 doing it?

 Thanks again
 Suren

 On Jun 1, 1:23 pm, Matías Costa m.costac...@gmail.com wrote:

  On Mon, Jun 1, 2009 at 9:47 AM, Suren nsurendi...@gmail.com wrote:

   Hi all,

   Is it possible to send the updated data from DB to the client in a
   periodic interval and without any request or call from the client?

  No, it is not posible.
--~--~-~--~~~---~--~~
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 Compile error

2009-06-01 Thread bruce

I do have this class (com.extjs.gxt.ui.client.data.BeanModelLookup) in
my classpath. any idea?

On Apr 19, 4:25 pm, Salvador Diaz diaz.salva...@gmail.com wrote:
 If you read the whole stacktrace you'll see that there are other
 errors:

  Scanning for additional dependencies: jar:file:/D:/Program%20Files/
 gxt-2.0-m1/gxt.jar!/com/extjs/gxt/ui/client/data/BeanModelLookup.java
       Computing all possible rebind results for
 'com.extjs.gxt.ui.client.data.BeanModelLookup'
          Rebinding com.extjs.gxt.ui.client.data.BeanModelLookup
             Invoking generate-with
 class='com.extjs.gxt.ui.rebind.core.BeanModelGenerator'/
                [ERROR] Class
 com.extjs.gxt.ui.client.data.BeanModelLookup not found.

 It looks like it's a problem with your module declarations but without
 more details I can't be sure.

 Cheers,

 Salvador

 On Apr 18, 1:22 pm, bruce bruce.gao@gmail.com wrote:

  when I try compile a sample of Extjs-GWT. it hit the follow exception.
  but I have the missing class
  com.pipnet.resources.client.model.Customer in the same project.
  anybody can tell me why? thanks a lot

  Compiling module com.pipnet.desktop.Desktop
     Refreshing module from source
        Refreshing TypeOracle
           Processing types in compilation unit: file:/C:/Documents%20and
  %20Settings/bruce.gao/workspace_3.4/Desktop/src/com/pipnet/resources/
  client/model/CustomerBeanModel.java
              Found type 'CustomerBeanModel'
                 Resolving annotation '@BEAN
  (com.pipnet.resources.client.model.Customer.class)'
                    [ERROR]
  java.lang.ClassNotFoundException:
  com.pipnet.resources.client.model.Customer
          at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
          at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
          at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
          at java.lang.Class.forName0(Native Method)
          at java.lang.Class.forName(Class.java:242)
          at com.google.gwt.dev.javac.TypeOracleMediator.getClassLiteral
  (TypeOracleMediator.java:763)
          at
  com.google.gwt.dev.javac.TypeOracleMediator.getAnnotationElementValue
  (TypeOracleMediator.java:674)
          at
  com.google.gwt.dev.javac.TypeOracleMediator.createAnnotationInstance
  (TypeOracleMediator.java:442)
          at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotation
  (TypeOracleMediator.java:836)
          at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotations
  (TypeOracleMediator.java:857)
          at 
  com.google.gwt.dev.javac.TypeOracleMediator.resolveTypeDeclaration
  (TypeOracleMediator.java:1384)
          at com.google.gwt.dev.javac.TypeOracleMediator.addNewUnits
  (TypeOracleMediator.java:389)
          at com.google.gwt.dev.javac.TypeOracleMediator.refresh
  (TypeOracleMediator.java:417)
          at com.google.gwt.dev.javac.CompilationState.refresh
  (CompilationState.java:179)
          at com.google.gwt.dev.javac.CompilationState.init
  (CompilationState.java:93)
          at com.google.gwt.dev.cfg.ModuleDef.getCompilationState
  (ModuleDef.java:264)
          at com.google.gwt.dev.Precompile.precompile(Precompile.java:283)
          at com.google.gwt.dev.Compiler.run(Compiler.java:170)
          at com.google.gwt.dev.Compiler$1.run(Compiler.java:124)
          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.Compiler.main(Compiler.java:131)
     Scanning for additional dependencies: jar:file:/D:/Program%20Files/
  gxt-2.0-m1/gxt.jar!/com/extjs/gxt/ui/client/data/BeanModelLookup.java
        Computing all possible rebind results for
  'com.extjs.gxt.ui.client.data.BeanModelLookup'
           Rebinding com.extjs.gxt.ui.client.data.BeanModelLookup
              Invoking generate-with
  class='com.extjs.gxt.ui.rebind.core.BeanModelGenerator'/
                 [ERROR] Class
  com.extjs.gxt.ui.client.data.BeanModelLookup not found.
  java.lang.NullPointerException
          at com.extjs.gxt.ui.rebind.core.BeanModelGenerator.getMarkerBean
  (BeanModelGenerator.java:170)
          at com.extjs.gxt.ui.rebind.core.BeanModelGenerator.generate
  (BeanModelGenerator.java:53)
          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
  

Re: How to send data to client in a regular interval?

2009-06-01 Thread Suren

Hi All,

Thanks for the update.

I'm using the GWTEventService for the server push principal. It is
implementing server-push independently from Tomcat or Jetty.
 http://code.google.com/p/gwteventservice/

Any demo's or samples available some where, so that I can have a close
look.

Thanks
Suren

On Jun 1, 3:09 pm, Rvanlaak rvanl...@gmail.com wrote:
 I'm using the GWTEventService for the server push principal. It is
 implementing server-push independently from Tomcat or Jetty.

 http://code.google.com/p/gwteventservice/

 On Jun 1, 10:59 am, Suren nsurendi...@gmail.com wrote:



  Hi,

  Thanks for the reply.

  OK. Now I can confirm my predictions was right. I already checked that
  from my end, but I want to confirm is there any other ways of doing
  it. So at the end, its not possible..hmm.

  So now what I am trying to do is,  Storing the keycolumns of the rows
  initially sent to client in an array, and I am initiating the request
  from the client now, and fetching the same values from the DB and
  comapring with the existing values. If there is a difference then
  sending that to client, else leave that row as such..

  Tell me if anyother way of doing it, or is there any disadvantages of
  doing it?

  Thanks again
  Suren

  On Jun 1, 1:23 pm, Matías Costa m.costac...@gmail.com wrote:

   On Mon, Jun 1, 2009 at 9:47 AM, Suren nsurendi...@gmail.com wrote:

Hi all,

Is it possible to send the updated data from DB to the client in a
periodic interval and without any request or call from the client?

   No, it is not posible.- 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
-~--~~~~--~~--~--~---



Re: Returning to Java after a long lapse and starting with GWT. Any recommended books that cover both?

2009-06-01 Thread Noel King

Hi

Agree with Lars here the documentation on GWT website is excellent
and
If you use eclipse plugin you should be up and running.  I have read a
number
 of the GWT books and think GWT in Practice  is great book for showing
the bigger
picture for GWT demonstrating other technologies it integrates with.
Other than that
Google Web Toolkit Applications was another good read.  Have not
looked lately but you
Should ask yorself how up todate some of these books really are GWT
has made some
Excellent enhancements over last few releases which would not be
picked up in older books

Cheers

Noel

On May 31, 6:58 pm, vogella lars.vo...@googlemail.com wrote:
 Hi,

 I recommed to start with a few GWT online tutorials and see what your
 learning need is.

 Best regards, Lars

 On 30 Mai, 20:50, paw shalo...@gmail.com wrote:

  I've read a few posts with recommended books for GWT, but I haven't
  touched Java since around 1996.  Should I study up on Java before
  learning GWT or do any of the GWT books cover enough Java to learn as
  I go?

  Thanks for any help and suggestions.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Server code giving error at Runtime..

2009-06-01 Thread Sagar

Hello geeks,
I have an application running in GWT 1.5 . I moved this application to
GWT1.6 and now this application is giving errors in Server code at
runtime. Compilation is done without any problem.

At run time.
 The import java.rmi cannot be resolved
 The import javax.naming are not resolved.

also flush() and close() methods of Output Stream are not resolved at
runtime.

I have placed all my libraries in the /lib as well as the eclipse
build path configuration setting.

Kindly provide me the possible help.

Thanks in advance,
Sagar
--~--~-~--~~~---~--~~
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: Google-Web-Toolkit - 33 new messages in 16 topics - abridged

2009-06-01 Thread JAN WU
http://my-way.ettoday.com/cgi-bin/pt1new_wheel2?show_doc=qojuzkq3675CFxq=ET

--~--~-~--~~~---~--~~
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 Theme Like Google

2009-06-01 Thread Paulo Coutinho
Anyone have it?

2009/5/30 Paulo Coutinho pa...@prsolucoes.com

 Hi ppl,

 Anyone knows how i can get a theme like Google apps (eg.: gmail) ?

 I like the buttons, the colors, the font-size, borders and the default GWT
 theme is horrible.

 --
 Atenciosamente,
 Paulo Coutinho.
 Blog: www.prsolucoes.com/blog
 Site: www.prsolucoes.com
 Msn:  pa...@prsolucoes.com




-- 
Atenciosamente,
Paulo Coutinho.
Blog: www.prsolucoes.com/blog
Site: www.prsolucoes.com
Msn:  pa...@prsolucoes.com

--~--~-~--~~~---~--~~
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: Accessing external widgets from my Handler

2009-06-01 Thread wouter

Trevor,

Somehow you need to pass references. You could do that in your own
EventHandler or Callback implementation.
In my app I have a Callback implementation that takes a reference to a
panel, I suppose the equivalent of your Page object, in the
contructor.
The Callback keeps the reference in an instance variable, parses the
response from the server and then sends that response to some method
in the panel.
The panel itself has the necessary references to its children., like
your button and table.
I think you could implement an EventHandler in a similar way.

Of course you have to evaluate if all that referencing is worth the
trouble. If you want to do something simple, perhaps keeping all the
code in the Page object is not such a bad idea after all.

Wouter

--~--~-~--~~~---~--~~
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 use GWT to build a bottom bar with pop up menu

2009-06-01 Thread Donald.W.Long

All you really need is a panel, any basic type would do.  And
dynamically add contacts to this pannel as hyper text or buttons.

Not sure you really need a stack panel for this.

Example:

private VerticalPanel myVerticalPanel = new VerticalPanel();

protected ArrayListButton myButtons   = new ArrayListButton();

ClickHandler myButtonHandler = new ClickHandler() {

@Override
public void onClick(ClickEvent event) {
if (button != null  button instanceof Button) {
String mytitle = button.getTitle();

// Use the title that has the name in it to do what you 
need to do
} else {
//TODO: Some error
}
}
};

// Load the buttons into the panel
public void load();
myVerticalPanel.clear();
for (ButtonBase button : myButtons) {
myVerticalPanel.add(button);
}
}

// Add a button to the list
public void add(String name) {
Button myButton = new Button(name, myButtonHandler);
myButton.setTitle(name);
myButtons.add(myButton);
load();
}


The above simple example is an example.  You can add and remove items
from the veritical panel, thus you would not have
to reload the complete panel everytime.

Hope this helps


private VerticalPanel myVerticalPanel = new VerticalPanel();

On May 31, 1:54 am, Tharindu Madushanka tharindu...@gmail.com wrote:
 Hi All,

 I am new to GWT and just started to study about it. I am reading 'GWT
 in Practice' book as a start. What I am planning to do while learning
 GWT is to implement a web chat client and server. I need to add this
 to a web site, some thing similar to what FB does. But I don't need it
 to be much advanced like that. Only displaying a list of contacts as a
 popup menu or even in a stack panel or something. Still I have no idea
 on how to implement, but I know GWT is the tool I should learn.

 I would be really thankful, if any of you kindly point me some
 instructions on how to continue with my work, it would be helpful if
 some one just point me some steps to work on.

 Kind Regards,
 -Tharindu
--~--~-~--~~~---~--~~
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: Introducing Shandor Xul: Run you app as Gwt, Swing and SWT

2009-06-01 Thread nicknbarb...@gmail.com

We do have some screenshots showing an app running on all three
technologies. There's also a sample application in the repository.
I'll try to get a quick tutorial application up on the wiki soon



On May 28, 2:24 am, maku martin.k...@gmx.at wrote:
 Hi,

 I would also interested in seeing a online demo to get a better
 understanding what's possible in context with GWT (and of course the
 source code).

 Regards,
 Martin

 On 20 Mai, 19:20, codeoncoffee codeoncof...@gmail.com wrote:

  For the past year Pentaho has been developing a JavaXulframework for
  writing apps that run in Swing, Swt and Gwt without code modification.
  It's been open source from the start (LGPLv2) but not advertised.
  We've recently moved the project out into BitBucket.org as ShandorXul
  and are looking for contributors!

  About ShandorXul:
  Shandor allows you to write applications in a UI agnostic framework
  built on the MozillaXULdeclarative mark-up syntax. Shandor is not
  code-gen! It's a runtime framework with agnostic interfaces that you
  code against. There's an live abstract DOM representing your
  application that you can interact with and bind your code to.

  Below are some of the Killer things Shandor can do for you:

  Built-in Binding Framework (including collections to UI)
  Includes and Overlays (overlays allow runtime changing of the UI, free
  plug-in framework!)
  IOC ready (Spring, Juice, etc.)
  Groovy event handler support.
  Built-in i18n

  Being able to change a UI without recompiling is fantastic for our
  users as well as our Graphic Designers. Not having to write and
  maintain the same code in 3 places... dead sexy.

  Shandor has been of great use to us and we hope that it can do the
  same for the larger java community. We're looking for anyone who would
  like to contribute to the project, from users to coders!

  The code, doc (some) and a sample application can be found 
  here:http://bitbucket.org/codeoncoffee/shandor-xul/wiki/Home
--~--~-~--~~~---~--~~
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: SuggestBox:How to show suggestion list when clicking?

2009-06-01 Thread wouter

Alex,

You don't need to click for the list to appear. Just type part of the
search text in the box, the list of corresponding items should appear
(if the limit is respected, I think default value is 20).
You scroll to or click one of those items to select. Your
SelectionHandler then processes the selected item.

Wouter

--~--~-~--~~~---~--~~
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: Doing a mailto: with a gwt button

2009-06-01 Thread Donald.W.Long

Ok, thanks give me something to work from.  Both examples look like a
method.

Thanks again for the help


On Jun 1, 12:41 am, Dean S. Jones deansjo...@gmail.com wrote:
 depending on the platform, this works, but always pops up a blank
 browser window,... I was trying to avoid that

 On May 31, 11:40 pm, Ian Bambury ianbamb...@gmail.com wrote:



          final Button button = new Button(button, new ClickHandler()
          {
              @Override
              public void onClick(final ClickEvent event)
              {
                  Window.open(mailto:x...@x.x;, _blank, );
              }
          });

  Ian

 http://examples.roughian.com

  2009/6/1 Dean S. Jones deansjo...@gmail.com

   this is a little hackey, and doesnt work in hosted mode, but...

   public void onModuleLoad() {
                  final Button sendButton = new Button(Send);

                  RootPanel.get(sendButtonContainer).add(sendButton);

                  sendButton.addClickHandler(new ClickHandler()
                  {
                          public void onClick(ClickEvent event) {
                                  mailto(whate...@gmail.com,hello);
                          }
                  });
          }

          public void mailto(String address, String subject)
          {
                  this.mailtoImpl(address, URL.encode(subject));
          }

          private native void mailtoImpl(String address, String subject) /*-{
                  $wnd.location = mailto:; + address + ?subject= +
   subject;
          }-*/;

   On May 31, 10:13 pm, Donald.W.Long
   donald.w.l...@thelongsfamily.com wrote:
Hi all,

Most likely this is a stupid question but what I need to do is have a
button that the user hits and then it does the normal mailto: href.

What is the code to accompilish this?

Thanks and sorry for such a simple question.

Donald W. Long- 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
-~--~~~~--~~--~--~---



Deployment

2009-06-01 Thread Midou

Hello

I have created a GWT-EJB project and it used MySQL data base and JBoss
server.
I have not problemes when i run my project from eclipse all parts it's
OK.
I have created a War,Ear and jar files and i have copied into deploy
Jboss folder
I can't deploy my project in jboss.
How can jboss deploy all my project. It is necessary to conficure some
important files.

Please please i need your help.
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
-~--~~~~--~~--~--~---



Re: Is it possible to compile a no javascript version using gwt toolkit

2009-06-01 Thread Jason Essington

You have to remember that GWT is not a single solution for creating a  
web site. It is (or rather can be) just one part of the whole system.  
GWT primarily performs DOM modification and XMLHTTP requests (with  
lots of other fancyness that makes those tasks much easier for the  
developer). These things tend to not be spiderable or convertable to  
raw HTML.

The host pages that the GWT modules inhabit are, on the other hand,  
very spider friendly, and can be designed in such a way that they  
display content that you would like to have indexed.

These host pages don't necessarily need to be static html but could be  
JSP or PHP or any other server side technology that provides HTML to  
the browser.

There are quite a few long discussions on this list about SEO and how  
GWT fits into the big picture as it were.

-jason


On May 30, 2009, at 5:54 AM, Saurabh Agarwal wrote:


 Thanks Ian for your input.

 Actually I am little bit concerned about the SEO of my website..I read
 at many places that using gwt is not good for SEO of a site as page
 content is not shown , I am trying to research on this so just got
 this idea.

 Thanks
 Saurabh

 On Sat, May 30, 2009 at 5:15 PM, Ian Bambury ianbamb...@gmail.com  
 wrote:
 Hi,
 GWT translates Java into JavaScript (See paragraph 1 of the GWT home
 page http://code.google.com/webtoolkit/) therefore a no-JavaScript  
 version
 of an app is a blank page. It's a nice idea, but is in the same  
 category as
 dehydrated water.
 Ian

 http://examples.roughian.com


 2009/5/30 Saurabh Agarwal sagarwal1...@gmail.com

 Hi ,

 I am little bit concerned about SEO and site usability for the
 browsers which doesnt support javascript.

 Is it possible that GWT can also compile a no javascript version for
 my site and have a simple text site also...

 google might not be keeping two versions of site altogether, is this
 thing that hard 



 --

 Successful people make more mistakes because they do more 
 Thanks
 Saurabh Agarwal









 -- 

 Successful people make more mistakes because they do more 
 Thanks
 Saurabh Agarwal

 


--~--~-~--~~~---~--~~
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 VS GWT-EXT

2009-06-01 Thread Jason Essington

UHM ... that question is a bit confused.

GWT is the Toolkit in which GWT-EXT exists. without GWT there is not  
GWT-EXT.

the EXT variants (GWT libraries based on EXT) seem to be rather  
popular, but also seem to have more than their fair share of detractors.

You can search the list for information on the Pros and Cons of using  
various external Libraries with GWT.

That said, I tend to try to stick to straight GWT (and occasionally  
GWT-Incubator) for my projects. It reduces number of externally  
induced headaches.

But, your situation may be different. Best to create a sample app  
using the proposed libraries to determine if it is fit for your project.

-jason

On May 31, 2009, at 11:11 AM, Fitrah Elly Firdaus wrote:

 Dear All,

 I'm New Member, I want Ask about this,

 what's differences GWT and GWT-EXT?

 Which one the best between GWT and GWT-EXT?

 Regards,

 Firdaus

 
 firdaus_linux.vcf


--~--~-~--~~~---~--~~
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: Getting an error saying Did you forget to inherit

2009-06-01 Thread Rajeev Dayal
Generally, you should not have any dependencies from code in src on code in
test. I believe that the problem here is that the Utils class is in the
test folder, but the source path for your module is client. You can add
test to your module's source path, but I'd recommend that you move the
Utils class under your src folder, and then create a module for your tests
that inherits from your Start module.

On Thu, May 28, 2009 at 2:40 AM, Hara haraprav...@gmail.com wrote:


 Hello All

 When I am trying to compile I am getting back an error saying Did you
 forget to inherit

 The application structure is as follows:

 src--
  |-- client package (Contains the client GUI part)
  |-- sever package (Contains the server part)
  |-- test package (Contains some useful java class while Client
 server
   communication.) lets say a file Utils.java in test
 package.


 my Start.gwt.xml file has

 ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE module PUBLIC -//Google Inc.//DTD Google Web Toolkit 1.6.4//
 EN http://google-web-toolkit.googlecode.com/svn/tags/1.6.4/distro-
 source/core/src/gwt-module.dtdhttp://google-web-toolkit.googlecode.com/svn/tags/1.6.4/distro-%0Asource/core/src/gwt-module.dtd
 
 module rename-to='start'
  !-- Inherit the core Web Toolkit stuff.--
  inherits name='com.google.gwt.user.User'/

  !-- Inherit the default GWT style sheet.  You can change   --
  !-- the theme of your GWT application by uncommenting  --
  !-- any one of the following lines.--
  inherits name='com.google.gwt.user.theme.standard.Standard'/
  !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ --
  !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ --

  !-- Other module inherits  --

  !-- Specify the app entry point class. --
  entry-point class='com.mycompany.client.Start'/
 /module


 when I am trying to compile it says Did you forget to inherit
 com.mycompany.test.Utils

 Can any please help me in sorting out this issue.

 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: dependencies on GWT project in eclipse gives exception..whats problem?

2009-06-01 Thread Rajeev Dayal
There are a couple things to be aware of here.

There are some issues with having a WebApp project depend on a Java project.
The crux of the problem is that the artifacts from the Java project are not
automatically copied over to the WebApp's war directory. See the following
thread for more information:

http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/951499c5773693c9

Another problem may be that you're explicitly including Xerces as part of
your WebApp project libraries (or maybe one of the libraries that you're
using bundles Xerces). There is no need to deploy your own Xerces library;
one is already available to the platform, and adding your own can cause
ClassLoading issues.

On Thu, May 28, 2009 at 9:32 AM, Pratik evolution.g...@gmail.com wrote:


 Hello,
 I've created a 'new web application project' in eclipse and also added
 a dependency of another Java project on it. It compiles successfully,
 but while starting built in server it gives exception as
 WARNING: failed
 com.google.apphosting.utils.jetty.devappenginewebappcont...@d8ddc6{/,D:
 \workspace\Work\er\war}
 javax.xml.parsers.FactoryConfigurationError: Provider
 org.apache.xerces.jaxp.SAXParserFactoryImpl not found
at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
at org.mortbay.xml.XmlParser.setValidating(XmlParser.java:92)
at org.mortbay.xml.XmlParser.init(XmlParser.java:84)
at org.mortbay.jetty.webapp.TagLibConfiguration.configureWebApp
 (TagLibConfiguration.java:202)
at org.mortbay.jetty.webapp.WebAppContext.startContext
 (WebAppContext.java:1215)
at org.mortbay.jetty.handler.ContextHandler.doStart
 (ContextHandler.java:500)
at
 org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
 448)
at org.mortbay.component.AbstractLifeCycle.start
 (AbstractLifeCycle.java:40)
at org.mortbay.jetty.handler.HandlerWrapper.doStart
 (HandlerWrapper.java:117)
at org.mortbay.component.AbstractLifeCycle.start
 (AbstractLifeCycle.java:40)
at org.mortbay.jetty.handler.HandlerWrapper.doStart
 (HandlerWrapper.java:117)
at org.mortbay.jetty.Server.doStart(Server.java:217)
at org.mortbay.component.AbstractLifeCycle.start
 (AbstractLifeCycle.java:40)
at
 com.google.appengine.tools.development.JettyContainerService.startContainer
 (JettyContainerService.java:147)
at
 com.google.appengine.tools.development.AbstractContainerService.startup
 (AbstractContainerService.java:115)
at com.google.appengine.tools.development.DevAppServerImpl.start
 (DevAppServerImpl.java:205)
at
 com.google.appengine.tools.development.gwt.AppEngineLauncher.start
 (AppEngineLauncher.java:86)
at
 com.google.gwt.dev.HostedMode.doStartUpServer(HostedMode.java:365)
at
 com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:590)
at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:397)
at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)
 May 28, 2009 6:52:55 PM com.google.apphosting.utils.jetty.JettyLogger
 warn
 WARNING: Nested in javax.xml.parsers.FactoryConfigurationError:
 Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found:
 java.lang.ClassNotFoundException:
 org.apache.xerces.jaxp.SAXParserFactoryImpl
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
 com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass
 (IsolatedAppClassLoader.java:142)
at java.lang.ClassLoader.loadClass(Unknown Source)
at javax.xml.parsers.FactoryFinder.getProviderClass(Unknown Source)
at javax.xml.parsers.FactoryFinder.newInstance(Unknown Source)
at javax.xml.parsers.FactoryFinder.findJarServiceProvider(Unknown
 Source)
at javax.xml.parsers.FactoryFinder.find(Unknown Source)
at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
at org.mortbay.xml.XmlParser.setValidating(XmlParser.java:92)
at org.mortbay.xml.XmlParser.init(XmlParser.java:84)
at org.mortbay.jetty.webapp.TagLibConfiguration.configureWebApp
 (TagLibConfiguration.java:202)
at org.mortbay.jetty.webapp.WebAppContext.startContext
 (WebAppContext.java:1215)
at org.mortbay.jetty.handler.ContextHandler.doStart
 (ContextHandler.java:500)
at
 org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
 448)
at org.mortbay.component.AbstractLifeCycle.start
 (AbstractLifeCycle.java:40)
at org.mortbay.jetty.handler.HandlerWrapper.doStart
 (HandlerWrapper.java:117)
at org.mortbay.component.AbstractLifeCycle.start
 (AbstractLifeCycle.java:40)
at org.mortbay.jetty.handler.HandlerWrapper.doStart
 (HandlerWrapper.java:117)
at 

HMVC - GWT GUI Pattern

2009-06-01 Thread Vishal Shukla
Hi all,

Have a look at HMVC GWT GUI pattern to put development efforts in right
direction by keeping it highly maintainable and simplified.

http://ooerabegins.wordpress.com/2009/05/29/hmvc-pattern1/

-- 
Vishal Shukla
SCJP
Digi-corp Information Systems Pvt. Ltd.

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



Getting HttpSession from JAX-WS Soap message handler class.

2009-06-01 Thread dziugas

Hello,

i wrote up GWT application who acts as proxy between client( browser
in that case) and web services. Communication with web services is
used using JAX-WS libraries. Here need to save each user id to
maintain session with web services application service.
That id i save reading and writing soap messages header, i use
SOAPHandler class for that. From here all is ok.
But then i need to save that id for each browser window who connects
my servlet using rpc call. And here is the problem: i can get
HttpSession object only from class that extends RemoteServiceServlet,
like this getThreadLocalRequest().getSession(). But cant get that
object from soap handler class, or pass it as parameter.

How i can get HttpSession in any other way?
Or there is any other way for storing things in servlet?

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



JAX-WS Web Service and GWT

2009-06-01 Thread shane.resc...@gmail.com

Hi there,

I am developing a user front end application using GWT where I want to
connect it to an already existing Web Service. What I have gathered
from the GWT documentation is that I require a server instance using
GWT-RPC which sits between the User Client Brower front end and the
existing Web Service, i.e.

Users Browser
GWT Client (1)
  |
 V
GWT-RPC Server (2)
  |
 V
   (JAX-WS)
Web Service (wsdl) (existing)

I am not interested in developing the UI on the clients side yet but
what I have done is I have created the GWT-RPC above and have used the
WSDL of the Web Services and JAX-WS's 'wsimport' to create a client
proxy. The problem that I am getting is that I get the following
errors appear in the Problems section of Eclipse 3.4 J2EE

javax.jws.soap.SOAPBinding is not supported by Google App Engine's
Java runtime environment
javax.jws.WebResult is not supported by Google App Engine's Java
runtime environment
javax.jws.WebMethod is not supported by Google App Engine's Java
runtime environment
javax.jws.WebParam is not supported by Google App Engine's Java
runtime environment

It a bit obvious from the errors that the Google App Engine doesnt
support the JAX-WS library

Does anyone know how I can get around this?, or even is there another
Web Service tool that the Google App Engine does support in being able
to connect to Web Services?

Thanks, Any help will be 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-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: Returning to Java after a long lapse and starting with GWT. Any recommended books that cover both?

2009-06-01 Thread Amzad Basha


It is always recommended to know basics of JAva programming before
moving onto GWT, an AJAX based framework using Java.

Cheers!
Amzad Basha.

On May 31, 10:58 pm, vogella lars.vo...@googlemail.com wrote:
 Hi,

 I recommed to start with a few GWT online tutorials and see what your
 learning need is.

 Best regards, Lars

 On 30 Mai, 20:50, paw shalo...@gmail.com wrote:

  I've read a few posts with recommended books for GWT, but I haven't
  touched Java since around 1996.  Should I study up on Java before
  learning GWT or do any of the GWT books cover enough Java to learn as
  I go?

  Thanks for any help and suggestions.

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



This html file is for hosted mode support.

2009-06-01 Thread Natman

Hey there.

I'm a complete newbie with GWT. I completed the StockWatcher tutorial
and it works locally but when I upload the files to my webserver and
load the hosted.html file, all I get is This html file is for hosted
mode support.. I reread the tutorial but can't seem to connect the
dots where I went wrong. I did some searching around and couldn't find
any help. Anyone have an idea where to go from here or where I may
have went wrong?


I did some sleuthing to help:

In Firefox's error console, I get an error external.gwtOnLoad in not
a function

I also tried calling the stockwatcher.nocache.js java script from a
brand new html file but all I got was the CSS background color. I
didn't get the external.gwtOnLoad in not a function,error but i did
get a is null.

I'm sure there's a simple solution to this, maybe I took a wrong turn
somewhere or skipping a step but I would surely appreciate any help so
I can move on to more cool stuff. 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: GWT VS GWT-EXT

2009-06-01 Thread Amzad Basha

Please refer: http://gwt-ext.com/

Cheers!
Amzad Basha.

On May 31, 10:11 pm, Fitrah Elly Firdaus firdaus.li...@gmail.com
wrote:
 Dear All,

 I'm New Member, I want Ask about this,

 what's differences GWT and GWT-EXT?

 Which one the best between GWT and GWT-EXT?

 Regards,

 Firdaus

  firdaus_linux.vcf
  1KViewDownload

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



Extending RichTextArea with new commands

2009-06-01 Thread aectann

Is it possible somehow add a new command to e.g. ExtendedFormatter?
Basically i need to insert a certain symbol (mathematical or greek)
into the current cursor position. Reading the group and googling
stayed me at mind that it only possible we a great amount of browser
dependant javascript (JSNI). Does anyone know better way? 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
-~--~~~~--~~--~--~---



FileUpload / FormPanel example in java docs does not work

2009-06-01 Thread aaaaaaaaaaaaaaaaaaaaaaaaaa

FormPanel does not have parameters with it.  Yes the setName() has
been called.  That is in the example.

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



Resizable Disclosure panel

2009-06-01 Thread java_hunter

Hello ,

I am using Disclosure panel to populate some customer information.
I need to make the disclosure panel as resizable.
But I could not find any functions for it.
Is there a way to make the disclosure panel as resizable?
Or any other panel options that I can use as resizable?

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



PHP and GWT

2009-06-01 Thread Peter

Hello, I searched through most of the threads that have anything to do
with PHP and GWT but I haven't really come across any good information
about the two. I wanted to create a AJAX / interactive front end  but
at the same time I want to run PHP in the back end on the server. Does
anyone know of any good documentation on this or example code of this?

Thanks for your time!

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: gwt + spring acegi @Secured problem

2009-06-01 Thread sandro.he...@the-software.de


We did not use @Secured, but

applicationContext.xml

  !-- SECUTRITY CONFIGURATION --
  security:http auto-config='true' access-denied-page=/pub/
nopage.jsf
security:intercept-url pattern=/pub/** filters=none /
security:intercept-url pattern=/** access=ROLE_USER /
security:form-login login-page='/pub/login.jsf' authentication-
failure-url=/pub/login.jsf?login_error=1 default-target-url=//
security:remember-me key=_secret_key_ /
security:logout logout-success-url=/pub/loggedout.jsf/
  /security:http

important is that everything will be intercepterd, except /pub/**

web.xml

  !-- security --
  filter
filter-namespringSecurityFilterChain/filter-name
filter-
classorg.springframework.web.filter.DelegatingFilterProxy/filter-
class
  /filter
  filter-mapping
filter-namespringSecurityFilterChain/filter-name
url-pattern/*/url-pattern
  /filter-mapping

the filter is applied to all urls

Hope it helped

On May 31, 4:48 am, asianCoolz second.co...@gmail.com wrote:
 I wonder any Gurus able to identify the problem . My method is
 annotated with @Secured but when each time my gwt client make a rpc
 request, i able to execute the method even though user not yet login
 in.

 the codes athttp://forum.springsource.org/showthread.php?t=72734

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



Re: Tab Panel does not resize for FlexTable

2009-06-01 Thread Amzad Basha

You can try with setAutoHeight(true) and / or setAutoWidth(true). This
may give a way to resize automatically.

cheers,
Amzad Basha.

On May 31, 10:25 pm, KodeMaestro troypeter...@rogers.com wrote:
 Hi Everyone,

 I'm hoping someone can help me out with a really frustrating issue
 I've been having. I've searched the web for days on this and have
 found nothing. My issue is that I have a TabPanel with a number of
 tabs on it. Each tab has a similar sort of layout with a text box, a
 button, and a flextable. The flextable initially starts out invisible
 (.setVisible(false)). When the user clicks on the button a simple
 database lookup is performed and the flextable is populated and made
 visible. The problem is, the TabPanel does not expand to accomodate
 it.  I only see the first couple of rows of the tab panel. There is no
 scrollbar, but I can scroll the window by selecting the table and
 dragging the mouse inside of it. Changing tabs and changing back
 causes the window to resize.

 I have not been able to find a redraw method or any other way to force
 the widget to update to accommodate the larger child. I've tried
 setting it to invisible and back to visible again to cause it to
 resize, but nothing I can do from code seems to have any effect. I
 can't have the users clicking another tab every time to get their
 window to resize. Is there any solution to this problem? What can I
 do?

 Thanks,
 Troy.

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



Statistical functions help

2009-06-01 Thread Dan W

Hi,

I have an app that i would like to perform client side calculations
involving the Cumulative Normal Density Function.  (normally denoted
as N(x) )

Is there a GWT supported lib that can be used to achieve 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: GWT server side access to web service from another server

2009-06-01 Thread shane.resc...@gmail.com

Hi there,

Are you using the Google App Engine by any chance? The reason I ask is
that I am trying to develop a front-end UI using GWT and have been
able to developed a proxy server using GWT-RPC with intentions to
connect to an existing Web Service (very similar to your architecture
you have described). I have used 'wsimport' to can generate a jax-ws
proxy using the WSDL all fine but I am getting errors as below:

javax.jms.soap.SOAPBinding is not supported by Google App Engines JVM
environment,
javax.jms.WebParam is not supported by Google App Engines JVM
environment,
javax.jms.WebMethod is not supported by Google App Engines JVM
environment, and
javax.jms.WebResult is not supported by Google App Engines JVM
environment

Does anyone have an idea of how I could go about fixing this?

On Apr 22, 3:35 am, Alcor alcor.wal...@gmail.com wrote:
 Hi,

 I'm creating aGWT(1.6) app from scratch and I have done the current
 thing:

 User Web Browser (1)GWTclient-side
           |
      (gwtrpc)
           VGWTserver-side (2)
           |
    (JAXws rpc)
           V
 another server (3)

 everything's done :
 - thegwtrpc between (1) and (2)
 - the web service on (3) is done withJAX-WS wsgen
 - the client web service on (2) is done withJAX-WS wsimport

 so everything's ok BUT :
 the client web service class located on (2) uses theJAX-WS annotation
 @WebServiceRef to populate the 'service' static var and the value is
 'null'.

 The workaround : to comment @WebServiceRef and uncomment (a) - see
 code below : manually instantiate the generated artifact (by
 wsimport). This is OK.
 but why is it not using the annotation @WebServiceRef withGWT?

 here is the class :
 __
 package fr.server.ws_client;
 import javax.xml.ws.WebServiceRef;
 import fr.server.ws_client.gen.Info;
 import fr.server.ws_client.gen.InfoService;

 public class InfoClient {
         @WebServiceRef(wsdlLocation=http://localhost:9091/Info?wsdl;) static
 InfoService service;

         public static String getServerVersion() {
                 String server_version;
                 try {
                         server_version = InfoClient / getServerVersion : 
 try;
                         InfoClient client = new InfoClient();
                         server_version = client.doGetServerVersion();
                 } catch (Exception e) {
                         server_version = InfoClient / getServerVersion : 
 catch;
                         e.printStackTrace();
                 }
                 return server_version;
         }

         public String doGetServerVersion() {
                 try {
 //(a)                   InfoService service = new InfoService();
                         Info port = service.getInfoPort();
                         return port.getServerVersion();
                 } catch (Exception e) {
                         e.printStackTrace();
                         return InfoClient / doGetServerVersion : catch;
                 }
         }

 }



--~--~-~--~~~---~--~~
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 and backend technology

2009-06-01 Thread Rajeev Dayal
Can you provide a bit more information on how you're launching the debug
session? Is it a remote-debugging session, can you provide some more
information about the listening process (the one being debugged) and the one
connecting to the listener (which would be in your IDE)? I'm specifically
interested in how you're launching both processes.

If this is an in-IDE debug session, and you're using Eclipse, are you making
sure that your launching the application using a Debug launch
configuration, as opposed to a Run launch configuration?


On Fri, May 29, 2009 at 5:13 AM, ahhat...@gmail.com ahhat...@gmail.comwrote:


 Thanks Thomas,
 I was banned of this group and I really have no idea why...
 Anyway, I followed your advice and it worked nicely.
 Now, I can run both of them with no problems but I can't debug gwt...
 I doesn't stop in the breakpoints in eclipse.
 Do you have any ideas why may that happen?

 Thank again, I really appreciate the help.

 On May 29, 1:44 am, Thomas Broyer t.bro...@gmail.com wrote:
  On 28 mai, 17:52, Ahmed ahha...@gmail.com wrote:
 
   Hello everybody,
   I am about to begin a new project using gwt 1.6.
   I was planning to use ruby on rails as the backend... but I had a
   problem during the development with the same origin policy... and as
   I don't know any way to make both the gwt project and the ruby on
   rails project to work on the same server, I decided to move to jruby.
 
  It's as easy as:
  1. deploying your GWT app *once* to your server running rails
  2. launch the HostedMode (or GWTShell) in -noserver mode
 
  http://code.google.com/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.h...

 


--~--~-~--~~~---~--~~
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: DatePicker and setting the time

2009-06-01 Thread Isaac Truett

Thad,

I would suggest adding a feature request to the GWT issue tracker.
That's a good way to make it known that you're interested in seeing
such a Widget in the core library. If you liked the Incubator's
DateTimePicker, I would mention that in the report and suggest getting
the ball rolling to have it promoted. Also, if you could post in this
thread with a link to the new issue then others can star the issue to
show their interest.

- Isaac

On Sun, May 31, 2009 at 3:23 PM, Thad thad.humphr...@gmail.com wrote:

 I understand that DatePicker will allow setting the hour, minute, etc.
 if that is set in the Date.  What I'm looking for is a UI like the
 incubator's now deprecated DateTimePicker class had.  Otherwise users
 are left having to enter a time format correctly in text boxes.

 To my mind, DateTimePicker should not be deprecated because the
 DateTime widget does not have the full functionality of the former.
 As DateTime has CalenderModel/View, I think there should be a
 TimeModel/View and the option to display a TimePicker in the
 DatePicker.

 On May 29, 1:42 pm, Kwame iweg...@gmail.com wrote:
 Hi Thad,
 Have you tried datePicker.setValue(new Date(year, month, date)) or
 to format the output, maybe something like:

 String dateString = DateTimeFormat.getMediumDateFormat().format
 (datePicker.getValue());

 I have a similar problem. I think the 1.6 DateBox/DatePicker lets you
 format the Date using something called DateBox.Format, but I'm not
 sure how. I've spent many hours looking at the API, and still can't
 figure out how to format the default DateBox textField value)

 On May 29, 1:20 pm, Thad thad.humphr...@gmail.com wrote:

  The incubator's DateTimePicker (now deprecated) allowed for setting
  hour, minute, and AM/PM, a feature my application requires.  I don't
  see this feature in GWT 1.6's DatePicker.  Am I missing something?  Is
  this capability coming and when?
 


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

2009-06-01 Thread Rajeev Dayal
Did you copy the Postgres libraries into your war/WEB-INF/lib folder?

On Fri, May 29, 2009 at 9:28 PM, nagileon
pkirklew...@gabaedevelopment.comwrote:


 Hi there

 I'm following this tutorial:http://www-lehre.inf.uos.de/~btenberg/misc/
 DB-Access-in-GWT-The-Missing-Tutorial.pdfhttp://www-lehre.inf.uos.de/%7Ebtenberg/misc/%0ADB-Access-in-GWT-The-Missing-Tutorial.pdf

 Everything is the same except I'm connecting to Postgres.
 I managed to get rid of many problems but when I start the application
 then I get:
 HTTP ERROR: 503
 SERVICE_UNAVAILABLE
 REQUESTURI=/LogIn.html

 In the Console:

 WARNING: EXCEPTION
 java.lang.ClassNotFoundException:
 com.gabae.login.server.PSQLconnection
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)

 .

 WARNING: failed pSQLconnection
 javax.servlet.UnavailableException:
 com.gabae.login.server.PSQLconnection
at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:79)

 ...

 WARNING: Failed startup of context
 com.google.apphosting.utils.jetty.devappenginewebappcont...@17b71d9{/,/
 root/workspace/LogIn/war}
 javax.servlet.UnavailableException:
 com.gabae.login.server.PSQLconnection
at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:79)

 Web.xml looks like this:

  /welcome-file-list

  !-- Servlets --
  servlet
servlet-namegreetServlet/servlet-name
servlet-classcom.gabae.login.server.GreetingServiceImpl/servlet-
 class
  /servlet

  !--  servlet-mapping
servlet-namegreetServlet/servlet-name
url-pattern/login/greet/url-pattern
  /servlet-mapping --

 servlet
  servlet-namepSQLconnection/servlet-name
  servlet-classcom.gabae.login.server.PSQLconnection/servlet-class
 /servlet
 servlet-mapping
  servlet-namepSQLconnection/servlet-name
  url-pattern/login/PSQLconnection/url-pattern
 /servlet-mapping
 /web-app

 I don't understand why the service is not available.
 Can you help guys ?

 Reagrds

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



BasicFormatter toggleBold()

2009-06-01 Thread alberto

Hi

I am working with a RichTextArea. I have created a basic formatter
like this:

BasicFormatter bf = rta.getBasicFormatter();

Now suppose I write a word in the RichTextArea, for example while.

I know that while starts at position 0 and ends at position 4. Is
there a way to have this word bold using the metod
bf.toggleBold()??

I have seen this example: 
http://examples.roughian.com/index.htm#Widgets~RichTextArea
but this is not what i want: in that example the user chooses with the
mouse the text that he want to be bold.

I want to see bold the text from a startIndex to an EndIndex!

Is this possible? cuold someone help me??

thank you!

Alberto
--~--~-~--~~~---~--~~
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: Login

2009-06-01 Thread Peter Kirklewski




The problem was that the class name is PSQLConnection and in web.xmal I
said PSQLconnection ;)
Also the URL path was wrong: /login/PSQLconnection versus
//login/server/PSQLConnection

Purely PICNIC problem ;)

Regards

Peter


Rajeev Dayal wrote:

  
Did you copy the Postgres libraries into your war/WEB-INF/lib folder?
  
  On Fri, May 29, 2009 at 9:28 PM, nagileon pkirklew...@gabaedevelopment.com
wrote:
  
Hi there

I'm following this tutorial:http://www-lehre.inf.uos.de/~btenberg/misc/
DB-Access-in-GWT-The-Missing-Tutorial.pdf

Everything is the same except I'm connecting to Postgres.
I managed to get rid of many problems but when I start the application
then I get:
HTTP ERROR: 503
SERVICE_UNAVAILABLE
REQUESTURI=/LogIn.html

In the Console:

WARNING: EXCEPTION
java.lang.ClassNotFoundException:
com.gabae.login.server.PSQLconnection
   at java.net.URLClassLoader$1.run(URLClassLoader.java:217)

.

WARNING: failed pSQLconnection
javax.servlet.UnavailableException:
com.gabae.login.server.PSQLconnection
   at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:79)

...

WARNING: Failed startup of context
com.google.apphosting.utils.jetty.devappenginewebappcont...@17b71d9{/,/
root/workspace/LogIn/war}
javax.servlet.UnavailableException:
com.gabae.login.server.PSQLconnection
   at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:79)

Web.xml looks like this:

/welcome-file-list

!-- Servlets --
servlet
 servlet-namegreetServlet/servlet-name

servlet-classcom.gabae.login.server.GreetingServiceImpl/servlet-
class
/servlet

!-- servlet-mapping
 servlet-namegreetServlet/servlet-name
 url-pattern/login/greet/url-pattern
/servlet-mapping --

servlet
servlet-namepSQLconnection/servlet-name
servlet-classcom.gabae.login.server.PSQLconnection/servlet-class
/servlet
  
  



  
  servlet-mapping
servlet-namepSQLconnection/servlet-name
url-pattern/login/PSQLconnection/url-pattern
/servlet-mapping
/web-app

I don't understand why the service is not available.
Can you help guys ?

Reagrds

Peter



  
  
  
  
  



-- 













Peter
Kirklewski Systems Architect  GABAE DEVELOPMENT
75 Bathurst Drive, Waterloo, ON N2V 1N2
Cell: 226-339-1512 
Fax: 519-342-1315  E-mail:
pkirklew...@gabaedevelopment.com


CONFIDENTIALITY NOTICE: This email and any
attachments are for the sole use of the intended recipient(s) and
contain
information that may be confidential, proprietary and/or legally
privileged
that is exempt from disclosure under law. If you have received this
message in error, please notify the sender by reply email and delete
the
message. Any disclosure, copying, distribution or use of this
communication
by someone other than the intended recipient is prohibited.




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





What is the equivalence of web.config in GWT?

2009-06-01 Thread Pham Tran Quoc Viet
Hi,In C#, web.config is an xml file where you store global infomration such
as connection string, domain name, etc so that you can modify in one place.
What is the equivalent way of doing this in GWT? Any tutorial pointer is
greatly appreciated. Thanks.

Viet Pham
Viet Pham

--~--~-~--~~~---~--~~
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: Doing a mailto: with a gwt button

2009-06-01 Thread Donald.W.Long

I did the below and it worked fine in hosted mode, I am running GWT
1.6

What version are you running?

On May 31, 10:19 pm, Dean S. Jones deansjo...@gmail.com wrote:
 this is a little hackey, and doesnt work in hosted mode, but...

 public void onModuleLoad() {
                 final Button sendButton = new Button(Send);

                 RootPanel.get(sendButtonContainer).add(sendButton);

                 sendButton.addClickHandler(new ClickHandler()
                 {
                         public void onClick(ClickEvent event) {
                                 mailto(whate...@gmail.com,hello);
                         }
                 });
         }

         public void mailto(String address, String subject)
         {
                 this.mailtoImpl(address, URL.encode(subject));
         }

         private native void mailtoImpl(String address, String subject) /*-{
                 $wnd.location = mailto:; + address + ?subject= + subject;
         }-*/;

 On May 31, 10:13 pm, Donald.W.Long



 donald.w.l...@thelongsfamily.com wrote:
  Hi all,

  Most likely this is a stupid question but what I need to do is have a
  button that the user hits and then it does the normal mailto: href.

  What is the code to accompilish this?

  Thanks and sorry for such a simple question.

  Donald W. Long- 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
-~--~~~~--~~--~--~---



Re: Statistical functions help

2009-06-01 Thread Jason Essington

you could check out the JSci project

http://jsci.sf.net

And adjust the bits you need. I generally do that sort of thing on the  
server, but I don't see any reason why you couldn't do it on the  
client if you wanted.

-jason

On May 31, 2009, at 9:36 PM, Dan W wrote:


 Hi,

 I have an app that i would like to perform client side calculations
 involving the Cumulative Normal Density Function.  (normally denoted
 as N(x) )

 Is there a GWT supported lib that can be used to achieve 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: Wierd errors when trying to test GWT app in IE 7.0

2009-06-01 Thread Sumit Chandel
Hi Neo,
Is the class from which that stack trace stems declared without any access
modifiers? I recall a previous thread which described a similar issue. The
problem there was that there was a class defined with no access modifier
that lived in a different package than the module entry point class. Adding
public to the class to make it visible to the GWT compiler fixed the
issue.

Hope that helps,
-Sumit Chandel

On Wed, May 27, 2009 at 4:40 AM, Neo deepak.krv2...@gmail.com wrote:


 Hi,
 I am working on a database driven GWT application. In my application I
 have a Multi Column Tree control which again is populated by db values
 and it allows user edits also. I have used Smart GWT in my application
 to create the Multi-Column tree.

 My application runs fine when I run it in hosted mode but when I try
 running it in IE (by using Compile/Browse) button it the following
 compile errors :

 [ERROR]  The type com.google.gwt.dev.js.rhino.ObjToIntMap$Iterator
 cannot be resolved. It is indirectly referenced from required .class
 files

 [ERROR] An internal compiler exception occurred
 com.google.gwt.dev.jjs.InternalCompilerException: Failed to get JNode
at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:75)
at com.google.gwt.dev.jjs.impl.BuildTypeMap
 $BuildDeclMapVisitor.createParameter(BuildTypeMap.java:392)
at com.google.gwt.dev.jjs.impl.BuildTypeMap
 $BuildDeclMapVisitor.mapParameters(BuildTypeMap.java:514)
at
 com.google.gwt.dev.jjs.impl.BuildTypeMap$BuildDeclMapVisitor.visit
 (BuildTypeMap.java:314)


 Could you please help me out in resolving these issues ?
 I want to deploy my application but due to these errors I am not to
 proceed.
 Please help me.

 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: PHP and GWT

2009-06-01 Thread Ian Bambury
You just use RequestBuilder  and deal with the callback.
What problems are you running into?

Ian

http://examples.roughian.com


2009/6/1 Peter s...@phyn3t.com


 Hello, I searched through most of the threads that have anything to do
 with PHP and GWT but I haven't really come across any good information
 about the two. I wanted to create a AJAX / interactive front end  but
 at the same time I want to run PHP in the back end on the server. Does
 anyone know of any good documentation on this or example code of this?

 Thanks for your time!

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



Spring Security login forwarding to blank page issue

2009-06-01 Thread tim.clymer

I've done a bit of searching around the forums but haven't seen this
issue crop up (though there are plenty of blank page issues from what
I've seen).  I'm having an intermittent issue where when I login to my
application (I use Spring Security as my security framework), it
forwards to my app's HTML page (my application's entry point).
Sometimes it will then load and show the application, other times it
shows just a blank page.  If I refresh the blank page, my application
comes up without fail.  This would lend me to believe that this is a
caching issue.  Has anyone else experienced this and have any advice
on solving it?

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: What is the equivalence of web.config in GWT?

2009-06-01 Thread Jim

There is a web.xml in WEB-INF  For more information, please see
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd. You can download GWT
mail sample from http://code.google.com/p/dreamsource-orm/downloads/list,
which is a database-related web application. You can find how to use
web.xml there.


Jim


On Jun 1, 12:58 pm, Pham Tran Quoc Viet phamtranquocv...@gmail.com
wrote:
 Hi,In C#, web.config is an xml file where you store global infomration such
 as connection string, domain name, etc so that you can modify in one place.
 What is the equivalent way of doing this in GWT? Any tutorial pointer is
 greatly appreciated. Thanks.

 Viet Pham
 Viet Pham
--~--~-~--~~~---~--~~
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: What is the equivalence of web.config in GWT?

2009-06-01 Thread Jim

For C# developers, I recommend 
http://tomcat.apache.org/tomcat-6.0-doc/appdev/index.html.

Jim

On Jun 1, 2:06 pm, Jim jim.p...@gmail.com wrote:
 There is a web.xml in WEB-INF  For more information, please 
 seehttp://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd. You can download GWT
 mail sample fromhttp://code.google.com/p/dreamsource-orm/downloads/list,
 which is a database-related web application. You can find how to use
 web.xml there.

 Jim

 On Jun 1, 12:58 pm, Pham Tran Quoc Viet phamtranquocv...@gmail.com
 wrote:



  Hi,In C#, web.config is an xml file where you store global infomration such
  as connection string, domain name, etc so that you can modify in one place.
  What is the equivalent way of doing this in GWT? Any tutorial pointer is
  greatly appreciated. Thanks.

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



GWT Application aspects

2009-06-01 Thread Rafael Barrera Oro
¡Hello everyone!

I am trying to set up an initial skeleton for an application. In order to
achieve this i considered every aspect (not EVERY ONE of them, of course) of
the application i'd like to handle and reached the following decision:

Views, presentation, etc: GWT (or else it would not be on this list now
would it? :P)
Data access layer: Spring/Hibernate/postgreSQL
client side validation: GWT-Validation
Flow: Not yet decided if i am going to use Spring Web Flow or plain old
GWT
Deployment environment: Tomcat 5.5 or later


I thought about creating a second GWT Module to store my custom widgets

What i'd like to ask you people is the following:

1)I've seen a couple of posts about Spring Web Flow but neither are simple
enough for me to comprehend, has any of you had a pleasant experience
integrating GWT and Spring Web Flow? if not, how do you implement flow
control within screens, pages, etc

2)I am a bit confused about how i should organize my application
(considering i just made the leap to web 2.0). For example, i used to split
every application into several modules (LoginModule, ClientModule,
SalesModule, etc) so every module could contain the services related to
them. I guess that such modules should only exist on the server side
adjusting to their role of service providers right? nevertheless, i thought
they should have some kind of client counterpart in order to be able to
access their services in a organized way, is this correct?

3)Most important, did i say something terribly wrong at the beginning of
this mail? (you know, like, oh my god, this guy does not know what he is
talking about kinda wrong)

I think of GWT as a source of great power, however, i do not seem able to
harness such power yet...

As usual, thank you all in advance

Yours trully

Rafael

--~--~-~--~~~---~--~~
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: Typo @ Product Overview

2009-06-01 Thread Alex Rudnick

It seems to be typo-finding day :)

Fixing. Thanks!

On Sat, May 30, 2009 at 11:35 PM, Bakulkumar bakul.ku...@gmail.com wrote:

 Great Catch !!!

 On May 29, 10:03 pm, Murilo Juchem mjuc...@gmail.com wrote:
 edit - ***refesh*** - view

-- 
Alex Rudnick
swe, gwt, atl

--~--~-~--~~~---~--~~
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: Spring Security login forwarding to blank page issue

2009-06-01 Thread tim.clymer

Perhaps this may help in providing an answer.  When I log out from my
app and go to a different browser tab and go to the URL of my app, I'd
expect to see a login screen.

Instead, it seems as though the browser is caching the page and
attempting to make calls to my services.  In the response to these
services, the server (tomcat) is sending back the login page (since
I'm not logged in) as a response.

It seems like the correct approach in this case would be to make sure
the browser attempts to refresh my entry point every time so that it
will be redirected to the login.  I've tried adding meta http-
equiv=Pragma content=no-cache to the top of my html file to force
this like so:

html
  head
meta http-equiv=Pragma content=no-cache
meta http-equiv=content-type content=text/html;
charset=UTF-8

But to no avail.  Any ideas?  I'm in uncharted waters here with this
caching stuff so your help would be greatly appreciated.

Tim

On Jun 1, 1:00 pm, tim.clymer tim.cly...@gmail.com wrote:
 I've done a bit of searching around the forums but haven't seen this
 issue crop up (though there are plenty of blank page issues from what
 I've seen).  I'm having an intermittent issue where when I login to my
 application (I use Spring Security as my security framework), it
 forwards to my app's HTML page (my application's entry point).
 Sometimes it will then load and show the application, other times it
 shows just a blank page.  If I refresh the blank page, my application
 comes up without fail.  This would lend me to believe that this is a
 caching issue.  Has anyone else experienced this and have any advice
 on solving it?

 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: PHP and GWT

2009-06-01 Thread twdarkflame

I use PHP+GWT all the time, it works great together.
The two important things I found I needed to know where

a) Communicating to/from php silently while the app is running. As Ian
says, this is done with RequestBuilder..

b) Passing variables to the gwt app before its run. (ie, its start-up
variables, or those specific to the page).
This can be done by using variables in javascript.
eg;

In the HTML before the GWT stuff:

script type=text/javascript

var Data = {
Username: Anonymous,
FieldA: data one,
FieldB: data two
};
/script

Then you can access that with just;

static Dictionary theme = Dictionary.getDictionary(Data);

Then theme.get() to retrieve each field.

Thus you can use php to echo data you want into the html in the form
of javascript variables, and gwt can read it in as a dictionary
object.






On Jun 1, 8:26 am, Peter s...@phyn3t.com wrote:
 Hello, I searched through most of the threads that have anything to do
 with PHP and GWT but I haven't really come across any good information
 about the two. I wanted to create a AJAX / interactive front end  but
 at the same time I want to run PHP in the back end on the server. Does
 anyone know of any good documentation on this or example code of this?

 Thanks for your time!

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



TabPanel -- How to Customize So That Tabs Are the Same Height

2009-06-01 Thread JAppetta

Hello:
   I am new to GWT and CSS, creating my first UI. I added a TabPanel
and noted to my dismay, that the Tabs were of different height
depending on the text for the tab ... How can I customize the Tabs so
that they are the same height?  I've looked through the doc but
possibly I'm missing something ...

Thanks,
Jennifer
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Sudden problem in Nebeans 6.5 + GWT plugin

2009-06-01 Thread serega.shey...@gmail.com

I was using GWFT+NB for a long time, but suddenly I got:

attached JPDA debugger to localhost:tomcat_shared_memory_id
init:
debug-connect-gwt-shell:
java.lang.NoClassDefFoundError: ${gwt/shell/jvmargs}
Caused by: java.lang.ClassNotFoundException: ${gwt.shell.jvmargs}
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:
319)
Exception in thread main
Exception in thread main C:\SVN\src\FStoreGWT\nbproject\build-
gwt.xml:35: The following error occurred while executing this line:
C:\SVN\src\FStoreGWT\nbproject\build-gwt.xml:51: Java returned: 1
BUILD FAILED (total time: 34 seconds)

It happens when I try to debug my project. What does it mean? Early I
could do debug without any problem.


--~--~-~--~~~---~--~~
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: RPC Serialization of abstract classes

2009-06-01 Thread mirceade

Come on guys, hasn't anybody else used more than plain strings and
ints with GWT RPC? Is this really a bug (not serializing correctly up
on the inheritance chain) or am I doing it all wrong? Help!

On 14 Mai, 18:35, Paul Robinson ukcue...@gmail.com wrote:
 I don't see anything wrong.
--~--~-~--~~~---~--~~
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: Resizable Disclosure panel

2009-06-01 Thread Rakesh

try gwt-mosaic or gwt-dnd panels/widgets for your purpose.

On Jun 1, 4:42 am, java_hunter anoop...@gmail.com wrote:
 Hello ,

 I am using Disclosure panel to populate some customer information.
 I need to make the disclosure panel as resizable.
 But I could not find any functions for it.
 Is there a way to make the disclosure panel as resizable?
 Or any other panel options that I can use as resizable?

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



How to replicate GWT's History.addItem in native javascript?

2009-06-01 Thread darkflame

I need to add a history item to parent window from within a Frame, I
can do this in native javascript with just;

public static native void sendHistory(String arg) /*-{
 $wnd.parent.document.location.hash=arg;
}-*/;

However, this triggers a refresh in IE.

Seeing as GWT's History.addItem() dosnt trigger a refresh, I
wondered how to replicate it in javascript. (so I can send it to the
parent frame).

Any ideas?
--~--~-~--~~~---~--~~
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 replicate GWT's History.addItem in native javascript?

2009-06-01 Thread Alex Rudnick

One of the neat things about GWT is that it's open source :)

You could take a look at HistoryImplIE6 to see (exactly) how GWT does it.

On Mon, Jun 1, 2009 at 3:52 PM, darkflame darkfl...@gmail.com wrote:

 I need to add a history item to parent window from within a Frame, I
 can do this in native javascript with just;

 public static native void sendHistory(String arg) /*-{
     $wnd.parent.document.location.hash=arg;
 }-*/;

 However, this triggers a refresh in IE.

 Seeing as GWT's History.addItem() dosnt trigger a refresh, I
 wondered how to replicate it in javascript. (so I can send it to the
 parent frame).

 Any ideas?

-- 
Alex Rudnick
swe, gwt, atl

--~--~-~--~~~---~--~~
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 replicate GWT's History.addItem in native javascript?

2009-06-01 Thread Isaac Truett

You could expose History.newItem() using this technique:

http://groups.google.com/group/Google-Web-Toolkit/msg/c23f2c1685f66b55


On Mon, Jun 1, 2009 at 3:52 PM, darkflame darkfl...@gmail.com wrote:

 I need to add a history item to parent window from within a Frame, I
 can do this in native javascript with just;

 public static native void sendHistory(String arg) /*-{
     $wnd.parent.document.location.hash=arg;
 }-*/;

 However, this triggers a refresh in IE.

 Seeing as GWT's History.addItem() dosnt trigger a refresh, I
 wondered how to replicate it in javascript. (so I can send it to the
 parent frame).

 Any ideas?
 


--~--~-~--~~~---~--~~
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 replicate GWT's History.addItem in native javascript?

2009-06-01 Thread twdarkflame

I did look, I didnt understand it ;)

I did try a few things I saw in it like;
$wnd.__gwt_historyToken = arg;

But that failed.

On Jun 1, 9:57 pm, Alex Rudnick a...@google.com wrote:
 One of the neat things about GWT is that it's open source :)

 You could take a look at HistoryImplIE6 to see (exactly) how GWT does it.





 On Mon, Jun 1, 2009 at 3:52 PM, darkflame darkfl...@gmail.com wrote:

  I need to add a history item to parent window from within a Frame, I
  can do this in native javascript with just;

  public static native void sendHistory(String arg) /*-{
      $wnd.parent.document.location.hash=arg;
  }-*/;

  However, this triggers a refresh in IE.

  Seeing as GWT's History.addItem() dosnt trigger a refresh, I
  wondered how to replicate it in javascript. (so I can send it to the
  parent frame).

  Any ideas?

 --
 Alex Rudnick
 swe, gwt, atl
--~--~-~--~~~---~--~~
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 build takes forever

2009-06-01 Thread Pandaman

I am trying to compile a GWT module located in a source folder with
quite a few files.  I am using ANT builder to do this.  Here is an
excerpt from my build file that shows the GWT compile target:

path id=gwt.project.class.path
fileset dir=gen /
pathelement location=${gwt.sdk}/gwt-user.jar/
fileset dir=${gwt.sdk} includes=gwt-dev*.jar/
fileset dir=${smartgwt.sdk} includes=smartgwt*.jar/
fileset dir=lib includes=**/*.jar/
/path

!-- This is the target responsible for compiling GWT class files
into JavaScript --
target name=GWTCompile depends=compileApp description=GWT
compile to JavaScript
  java failonerror=true fork=true
classname=com.google.gwt.dev.Compiler
classpath
  pathelement location=src/
  path refid=gwt.project.class.path/
/classpath
!-- add jvmarg -Xss16M or similar if you see a
StackOverflowError --
jvmarg value=-Xmx512M/
!-- Additional arguments like -style PRETTY or -logLevel DEBUG --

arg value=${app.gwtmodule}/
  /java
/target

My issue is that running this build script takes forever (let's say
30 min on a Pentium D, I haven't tested it for longer).  I think it
has to do with the fact that there is a huge amount of source in the
src directory and huge number of resulting class files in the gen
directory.  My GWT module touches only 1% of the rest of the source
though.  Is it possible to optimize the GWT compiler such that it only
looks at the source reachable from the module (i.e. source that the
module calls)?  So far, all that I can think of is specifying the
minimal amount of inherits in the gwt.xml file.

Thanks,
Mayur
--~--~-~--~~~---~--~~
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: Is there size limitation on data passed thru GWT-RPC?

2009-06-01 Thread Sumit Chandel
Hi Zmitro,
Glad to know that you figured this out. Either workaround would work, with
the following considerations:

1) If you go with setting the server to not zip responses with
application/json content-types, any other JSON data that is sent from your
server outside GWT RPC payloads won't be gzipped, which could hurt if you do
have other resources that are served under application/json content-types.

2) Overriding shouldCompressResponse() might be the better solution given
the caveat in 1). There is the possibility of handling this in GWT core, but
given that double-zipped responses is a specific enough corner-case, it
probably makes more sense to handle it on the server or in
application-specific server-side code.

Hope that helps,
-Sumit Chandel

On Tue, May 26, 2009 at 6:06 AM, Zmitro Lapcjonak idob...@gmail.com wrote:


 More details: the data is gzipped by GWT-RPC on server-side
 class RPCServletUtils
 writeResponse()
 {
   byte[] responseBytes = responseContent.getBytes(CHARSET_UTF8);
   ...
   ByteArrayOutputStream output = new ByteArrayOutputStream
 (responseBytes.length);
   gzipOutputStream = new GZIPOutputStream(output);
   responseBytes = output.toByteArray();
   ...
   response.getOutputStream().write(responseBytes);
 }

 and then the zipped array was zipped second time
 by the SAP server:

 class GzipResponseStream
 public void write(byte b[], int off, int len)
 {
   if( len = buf.length )
 System.arraycopy(b, off, buf, count, len);
   else
 gzipmultistream.write(servletoutput, b, off, len);
 }

 On the client-side the browser unzips the response only once
 (regardless of two content-encoding: gzip headers :)

 And then GWT-RPC client-side code tries to decode the response:

 class RequestCallbackAdapter
 onResponseReceived()
 {
   String encodedResponse = response.getText();
   // but the this is zipped json, not encoded text.
   // and thus
   caught = new InvocationException(encodedResponse);
 }

 So, as solution I can add application/json to list
 of content-types which are not zipped by the server.
 Or override the shouldCompressResponse() of
 RemoteServiceServlet and return false there.

 Additional solution is to create bug ticket to GWT-RPC
 client-side, which doesn't try to unzip response :)


 --
 Zmitro Lapcionak

 


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



Character Encoding is 'iso-8859-15'. Expected 'charset=utf-8' at com.google.gwt.user.server.rpc.RPCServletUtils.checkCharacterEncoding

2009-06-01 Thread maru

Im developing with GWT 1.5 and have a servlet that extends
RemoteServiceServlet
local (tomcat 1.6) works okay...but when its deploy to the testsystem
with tomcat and iso-8859-1 the rpc fails and give the following error

Character Encoding is 'iso-8859-15'. Expected 'charset=utf-8' at
com.google.gwt.user.server.rpc.RPCServletUtils.checkCharacterEncoding

Any suggestion?
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
-~--~~~~--~~--~--~---



Manual Serialization / Deserialization of objects

2009-06-01 Thread mayop100

Hi Guys -

I'm trying to write my own custom transport solution for client /
server communication so that I can make my project work cross-site. I
would like to serialize objects on the client side, send them to my
Jetty server using my own custom transport, and then deserialize those
objects on the server side for handling.

I've written the client code, and it seems to be working. It looks
like this:
(not that NetworkPacket implements IsSerializable, and EventService is
a dummy RemoteService)

public String serializePacket(NetworkPacket np)
{
String retVal = null;

SerializationStreamFactory fact = (SerializationStreamFactory)
GWT.create(EventService.class);
SerializationStreamWriter theSW = fact.createStreamWriter();
try
{
theSW.writeObject(np);
retVal = theSW.toString();
}
catch(Exception e)
{
e.printStackTrace();
}

return retVal;
}

This code seems to be working (it produces a reasonable-looking
string). I can't test if it deserializes though because the
serialization is asymmetric. The part I can't figure out though, is
how to deserialize on the server side. The closest I've found is the
ServerSerializationStreamReader class, which I found while poking
through the GWT source. It seems to be undocumented though, and its in
the com.google.gwt.user.server.rpc.impl package, which tells me it's
probably not intended for use by my code. How am I supposed to do
this?

Any help will be greatly appreciated!

-Andrew

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



Cloning Panels

2009-06-01 Thread bugg_tb

Hi Guys,

Highly embarrassing question but not something i've come across until
now. I have a list of panels that a user can select and open, we'd
like the user to be able to open more than 1 of each panel should they
require, but this ends up being an issue because you can't clone
objects in GWT.

So, what options do I have to implement such a function?

Cheers

Tom

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



Browser compatibility issue??

2009-06-01 Thread Rob Tanner

It's my first app and this might be a newbie rite of passage.

I've built an app for managing members of groups defined on an LDAP
server.  In both Firefox and Safari, the differences bewteen how the
app looks is insignificant.  However, in IE7 (don't have IE8 to test
with) there are huge gaps between rows in vertical panels.  The empty
space between the rows looks to be about the same height as the rows
themselves.

Is this a compatibility issue or a code issue.  I'm using GWT 1.6.4
for the Mac and doing my development in Eclipse.  What do I need to do
to fix it or where do I need to look to see what the problem might
be?

Thanks,
Rob

--~--~-~--~~~---~--~~
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: PHP and GWT

2009-06-01 Thread spam
Thanks everyone for the help. I haven't run int any problems with it yet
because I haven't really done anything yet with both of them. I was just
wondering before I kept doing my research with GWT that it was possible
later down the road! =)
Thanks for the info, if I have any problems ill make sure to post them.

Also does anyone have any example code they don't mind sharing
that demonstrates passing data between the two?

Thanks!

On Mon, Jun 1, 2009 at 12:03 PM, twdarkflame darkfl...@gmail.com wrote:


 I use PHP+GWT all the time, it works great together.
 The two important things I found I needed to know where

 a) Communicating to/from php silently while the app is running. As Ian
 says, this is done with RequestBuilder..

 b) Passing variables to the gwt app before its run. (ie, its start-up
 variables, or those specific to the page).
 This can be done by using variables in javascript.
 eg;

 In the HTML before the GWT stuff:

 script type=text/javascript

 var Data = {
 Username: Anonymous,
 FieldA: data one,
 FieldB: data two
 };
 /script

 Then you can access that with just;

 static Dictionary theme = Dictionary.getDictionary(Data);

 Then theme.get() to retrieve each field.

 Thus you can use php to echo data you want into the html in the form
 of javascript variables, and gwt can read it in as a dictionary
 object.






 On Jun 1, 8:26 am, Peter s...@phyn3t.com wrote:
  Hello, I searched through most of the threads that have anything to do
  with PHP and GWT but I haven't really come across any good information
  about the two. I wanted to create a AJAX / interactive front end  but
  at the same time I want to run PHP in the back end on the server. Does
  anyone know of any good documentation on this or example code of this?
 
  Thanks for your time!
 
  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
-~--~~~~--~~--~--~---



DialogBox with a close button in the caption - Events not fired

2009-06-01 Thread Hannson

Hi,

I'm aware of multiple topics on the DialogBox with a close button in
the caption subject and multiple alternatives (other libraries
extending GWT) but I've got a question.

In my testing class I extended DialogBox like follows:

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.MouseOutEvent;
import com.google.gwt.event.dom.client.MouseOutHandler;
import com.google.gwt.event.dom.client.MouseOverEvent;
import com.google.gwt.event.dom.client.MouseOverHandler;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.Element;
import com.google.gwt.user.client.Event;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.DialogBox;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;

public class MyDialogBox extends DialogBox {

Cross cross = new Cross(); // Close button

HTML caption = new HTML(); // The caption aka title
HorizontalPanel captionPanel = new HorizontalPanel(); // Contains
caption and cross




private class crossHandler implements ClickHandler, MouseOverHandler,
MouseOutHandler
{

@Override
public void onClick(ClickEvent event) {
Object sender = event.getSource();
//  Element e = event.getRelativeElement();
if(event.getRelativeElement() == cross.getElement())
{
Window.alert(get relative);
}

if(sender == cross)
{
hide();
}
}

@Override
public void onMouseOver(MouseOverEvent event) {
DOM.setStyleAttribute(cross.getElement(), 
font-weight, bold);

}

@Override
public void onMouseOut(MouseOutEvent event) {
DOM.setStyleAttribute(cross.getElement(), 
font-weight, normal);

}


}

private class Cross extends Label
{
crossHandler crosshandler = new crossHandler();

public Cross()
{
super(X);
addHandler(crosshandler, ClickEvent.getType());
this.sinkEvents(Event.ONCLICK);
this.getElement().dispatchEvent(evt);
}
}


  /**
   * Creates an empty dialog box. It should not be shown until its
child widget
   * has been added using {...@link #add(Widget)}.
   */
public MyDialogBox()
{
this(false);
}

  /**
   * Creates an empty dialog box specifying its auto-hide property.
It should
   * not be shown until its child widget has been added using
   * {...@link #add(Widget)}.
   *
   * @param autoHide codetrue/code if the dialog should be
automatically
   *  hidden when the user clicks outside of it
   */
public MyDialogBox(boolean autoHide) {
this(autoHide, true);
  }

/**
 * Creates an empty dialog box specifying its auto-hide
property. It should
 * not be shown until its child widget has been added using
 * {...@link #add(Widget)}.
 *
 * @param autoHide codetrue/code if the dialog should be
automatically
 *  hidden when the user clicks outside of it
 * @param modal codetrue/code if keyboard and mouse events for
widgets not
 *  contained by the dialog should be ignored
 */
public MyDialogBox(boolean autoHide, boolean modal)
{
super(autoHide, modal);

DOM.setStyleAttribute(cross.getElement(), background, 
green);

/*  this.addDomHandler(crosshandler, ClickEvent.getType());
this.addHandler(crosshandler, ClickEvent.getType());

cross.addClickHandler(crosshandler);
cross.addMouseOutHandler(crosshandler);
cross.addMouseOverHandler(crosshandler);
*/
captionPanel.add(caption);
captionPanel.add(cross);
captionPanel.setStyleName(caption);

Element td = getCellElement(0, 1);  // Get the cell element that
holds the caption
td.setInnerHTML(); // Remove the old caption (FIXME: there's
probably a better way to do this)
td.appendChild(captionPanel.getElement());



}

@Override
public void setText(String text)
{
caption.setText(text);
}

public String getText()
{
return caption.getText();

Re: Tab Panel does not resize for FlexTable

2009-06-01 Thread KodeMaestro

What class would that be a member of? I cannot find a method called
setAutoHeight on any of the widget classes.

Thanks,
Troy.

On Jun 1, 6:58 am, Amzad Basha amzad.ba...@gmail.com wrote:
 You can try with setAutoHeight(true) and / or setAutoWidth(true). This
 may give a way to resize automatically.

 cheers,
 Amzad Basha.

 On May 31, 10:25 pm, KodeMaestro troypeter...@rogers.com wrote:

  Hi Everyone,

  I'm hoping someone can help me out with a really frustrating issue
  I've been having. I've searched the web for days on this and have
  found nothing. My issue is that I have a TabPanel with a number of
  tabs on it. Each tab has a similar sort of layout with a text box, a
  button, and a flextable. The flextable initially starts out invisible
  (.setVisible(false)). When the user clicks on the button a simple
  database lookup is performed and the flextable is populated and made
  visible. The problem is, the TabPanel does not expand to accomodate
  it.  I only see the first couple of rows of the tab panel. There is no
  scrollbar, but I can scroll the window by selecting the table and
  dragging the mouse inside of it. Changing tabs and changing back
  causes the window to resize.

  I have not been able to find a redraw method or any other way to force
  the widget to update to accommodate the larger child. I've tried
  setting it to invisible and back to visible again to cause it to
  resize, but nothing I can do from code seems to have any effect. I
  can't have the users clicking another tab every time to get their
  window to resize. Is there any solution to this problem? What can I
  do?

  Thanks,
  Troy.
--~--~-~--~~~---~--~~
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: What is the equivalence of web.config in GWT?

2009-06-01 Thread Pham Tran Quoc Viet
Thank you all for your replies. Man, the documentation is huge, but what
choice do I have? :):):)
By the way, configuring Tomcat's web.xml is when you deploy to the
application server. How about in hosted mode where you do not have a browser
to point to the application server?

Viet Pham


On Mon, Jun 1, 2009 at 11:13 AM, Jim jim.p...@gmail.com wrote:


 For C# developers, I recommend
 http://tomcat.apache.org/tomcat-6.0-doc/appdev/index.html.

 Jim

 On Jun 1, 2:06 pm, Jim jim.p...@gmail.com wrote:
  There is a web.xml in WEB-INF  For more information, please seehttp://
 java.sun.com/xml/ns/j2ee/web-app_2_4.xsd. You can download GWT
  mail sample fromhttp://code.google.com/p/dreamsource-orm/downloads/list,
  which is a database-related web application. You can find how to use
  web.xml there.
 
  Jim
 
  On Jun 1, 12:58 pm, Pham Tran Quoc Viet phamtranquocv...@gmail.com
  wrote:
 
 
 
   Hi,In C#, web.config is an xml file where you store global infomration
 such
   as connection string, domain name, etc so that you can modify in one
 place.
   What is the equivalent way of doing this in GWT? Any tutorial pointer
 is
   greatly appreciated. Thanks.
 
   Viet Pham
   Viet Pham- 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
-~--~~~~--~~--~--~---



Re: RPC Serialization of abstract classes

2009-06-01 Thread Paul Robinson

I (and presumably many others) am serializing things from an inheritance
hierarchy without any problems.

I can suggest two things for you:
(1) reduce your code to the simplest working code that will show the
problem, and then append that code to the issue you created. The source
you posted to this thread didn't include all your code (eg State wasn't
there)
(2) Have you tried stepping through the GWT RPC code in a debugger to
see if the data gets written out and it if then gets read in? This
should tell you where the problem lies.

Paul

mirceade wrote:
 Come on guys, hasn't anybody else used more than plain strings and
 ints with GWT RPC? Is this really a bug (not serializing correctly up
 on the inheritance chain) or am I doing it all wrong? Help!

 On 14 Mai, 18:35, Paul Robinson ukcue...@gmail.com wrote:
   
 I don't see anything wrong.
 
 

   

--~--~-~--~~~---~--~~
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: Button.click() not working

2009-06-01 Thread Josué

Thanks Ian. I see your great help to others here. You information
resolved the problem.

Explaining what I was trying to do to others, I am developing a GWT
view using the MVP pattern. It is because a I want to use as minimal
as possible GWTTestCase or GWTTestSuite. They are slow to start run.
So I prefer to use conventional JUnit tests whenever possible.

But there are cases where the only way to test is calling directly the
View. In that cases GWTTestCase and GWTestSuite come to rescue.

What I was trying to do is to ensure that when i click in a button in
the view, the expected delegation to presenter is done. Some code:

* * *
@Override
protected void gwtSetUp() throws Exception {
viewTask = new ViewTask(ObjectMother.getConstantsStub
());
RootPanel.get().add(viewTask);

};

public void
testClickOnInsertShouldCallPresenterPrepareTaskInsert() throws
Exception {
TaskPresenterMock presenterMock = new TaskPresenterMock
();
viewTask.setPresenter(presenterMock);
viewTarefa.insertButton.click();
assertTrue(presenterMock.isCalledPrepareTaskInsert());
}
* * *

The code that I was missing was this: RootPanel.get().add(viewTask);

For instance, the tests that use GWTTestCase and Suite I call slow
tests and run with less frequency.

Sorry my English,

Abraços,

Josué.




On May 31, 11:12 pm, Ian Bambury ianbamb...@gmail.com wrote:
 Because you haven't added it to the DOM?
 Maybe GWT should throw an error if it's not attached, but it doesn't.

 Ian

 http://examples.roughian.com

 2009/6/1 Josué josuesan...@gmail.com





  Hello All,

  The following code is not throwing a RuntimeException. Someone here
  know why?

  button = new Button(button);

  button.addClickHandler(new ClickHandler(){
    �...@override
     public void onClick(ClickEvent event) {
         throw new RuntimeException(.onClick() not implemented);
     }});

  button.click();
  ...

  My version of GWT is 1.6.4. The one that came with google eclipse
  plugin for Eclipse.

  Thanks for any 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
-~--~~~~--~~--~--~---



Re: GWT build takes forever

2009-06-01 Thread Mark Renouf

On Jun 1, 4:25 pm, Pandaman p4nda...@gmail.com wrote:
 My issue is that running this build script takes forever (let's say30 min on 
 a Pentium D, I haven't tested it for longer).  I think it

 has to do with the fact that there is a huge amount of source in the
 src directory and huge number of resulting class files in the gen
 directory.  My GWT module touches only 1% of the rest of the source
 though.  Is it possible to optimize the GWT compiler such that it only
 looks at the source reachable from the module (i.e. source that the
 module calls)?  So far, all that I can think of is specifying the
 minimal amount of inherits in the gwt.xml file.

The GWT compiler aready does this. I'm not familiar with SmartGWT but
it may be partly to blame here. Anything which does something
nontrivial with a huge number of classes may prevent that code from
being discarded and this would increase compile times and the size of
the final script output. You may want to try running with slightly
more verbose logging (-DlogLevel=DEBUG) and tee that to a file. You
can then review it to see if there is a lot of things being pulled in
you might not expect.
--~--~-~--~~~---~--~~
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: Manual Serialization / Deserialization of objects

2009-06-01 Thread Mark Renouf

Can you eloborate on your goals (re: cross-site)? I'd like to
understand the motivation so I can comment on the approach. Obviously
there is a reason why cannot make use of RemoteServiceServlet, but I'm
not sure I know why.

On Jun 1, 3:41 pm, mayop100 mayop...@gmail.com wrote:
 Hi Guys -

 I'm trying to write my own custom transport solution for client /
 server communication so that I can make my project work cross-site. I
 would like to serialize objects on the client side, send them to my
 Jetty server using my own custom transport, and then deserialize those
 objects on the server side for handling.

 I've written the client code, and it seems to be working. It looks
 like this:
 (not that NetworkPacket implements IsSerializable, and EventService is
 a dummy RemoteService)

         public String serializePacket(NetworkPacket np)
         {
                 String retVal = null;

                 SerializationStreamFactory fact = (SerializationStreamFactory)
 GWT.create(EventService.class);
                 SerializationStreamWriter theSW = fact.createStreamWriter();
                 try
                 {
                         theSW.writeObject(np);
                         retVal = theSW.toString();
                 }
                 catch(Exception e)
                 {
                         e.printStackTrace();
                 }

                 return retVal;
         }

 This code seems to be working (it produces a reasonable-looking
 string). I can't test if it deserializes though because the
 serialization is asymmetric. The part I can't figure out though, is
 how to deserialize on the server side. The closest I've found is the
 ServerSerializationStreamReader class, which I found while poking
 through the GWT source. It seems to be undocumented though, and its in
 the com.google.gwt.user.server.rpc.impl package, which tells me it's
 probably not intended for use by my code. How am I supposed to do
 this?

 Any help will be greatly appreciated!

 -Andrew
--~--~-~--~~~---~--~~
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-06-01 Thread Mark Renouf

Not without modifications to the RPC subsystem. code generators and
API.

There is a Wiki doc on the proposed design:

http://code.google.com/p/google-web-toolkit/wiki/RpcAuth

On Jun 1, 5:46 am, Deep Blue deep.blue...@gmail.com wrote:
 Thanks for the comments.

 So, we are not able to implement this in current version of GWT?

 On May 30, 10:13 pm, Mark  Renouf mark.ren...@gmail.com wrote:

  Re: request signing

  At the GWT fireside chat at Google I/O, I asked about the possibility
  of a per-request handler for the new RPCRequestBuilder coming in GWT2.
  They mentioned it had been considered.

  With a user method invoked just before the request is sent, you could
  easily implement GWT-RPC signature/authentication transparently and
  protect the integrity of the entire request. MD5, SHA1 and event
  HmacSHA1 work reasonably when ported to translatable Java source. I've
  successfully performed authenticated Amazon S3 requests in this way,
  straight from the browser.

  On May 30, 2:21 am, hazy1 matt.egyh...@gmail.com wrote:

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



Google plugin can not auto create build.xml?

2009-06-01 Thread jvincent

use google plugin can not auto create ant build file?
but user command can create this file.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



ANN: Kauthara project

2009-06-01 Thread Trung

Hello,

Would like to announce a new project at http://code.google.com/p/kauthara/

Kauthara allows you to develop GWT User Interface faster and easier by
mean of JSP page:
- Translate JSP to GWT UI code
- Supports data binding
- Supports method binding

Appreciated for your feedback, suggestions and/or contribution.

--~--~-~--~~~---~--~~
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: SuggestBox:How to show suggestion list when clicking?

2009-06-01 Thread Alex Luya

Sorry,I just need this effect,I mean,when suggest box get focus,show 
suggestion list immediately.
wouter a écrit :
 Alex,

 You don't need to click for the list to appear. Just type part of the
 search text in the box, the list of corresponding items should appear
 (if the limit is respected, I think default value is 20).
 You scroll to or click one of those items to select. Your
 SelectionHandler then processes the selected item.

 Wouter

 

   


--~--~-~--~~~---~--~~
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 VS GWT-EXT

2009-06-01 Thread Adligo

Hi,

   As I see the world, GWT is newer than EXT (javascript library) and
a lot more robust.  GWT-EXT is a port of EXT so that it works with in
the GWT (java souce code) framework.   In general they do the same
thing, GWT-EXT looks nicer, but GWT is more generally developer
friendly.
   EXT was written by web developers and comes from a web developer
mind set (usually modifies the DOM directly), where GWT was written by
people who are web developers but have more of a traditional GUI
(Swing, SWT, AWT, VB exc) mindset (seems to have the concept of double
buffering, or in other words writing to a off screen DOM for things
that aren't visible).
   However on the oppisite argument GWT-EXT has some featurs that are
built in to it, that GWT does not yet have.  Most notibly Drag and
Droping Object between Grids (Tables) and Trees.  Sorting in Grids and
dragging (reordering) columns in the Ext Grid.   Another way of saying
this is that the GWT-EXT grid behaves like a swing Table, and the GWT
FlexTable behaves more like a swing Grid Bag Layout (for a panel).
   Answering which one is 'Best' really depends on what your trying to
do...

Hope this helps,
Scott


On Jun 1, 6:18 am, Amzad Basha amzad.ba...@gmail.com wrote:
 Please refer:http://gwt-ext.com/

 Cheers!
 Amzad Basha.

 On May 31, 10:11 pm, Fitrah Elly Firdaus firdaus.li...@gmail.com
 wrote:

  Dear All,

  I'm New Member, I want Ask about this,

  what's differences GWT and GWT-EXT?

  Which one the best between GWT and GWT-EXT?

  Regards,

  Firdaus

   firdaus_linux.vcf
   1KViewDownload
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Fire select event of listbox

2009-06-01 Thread zeroonea

can i fire select event of listbox myself? and how 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-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: Browser compatibility issue??

2009-06-01 Thread Rob Tanner

Preliminary screwing around with my code suggests a solution to the
IE7 problem.  The following code works as expected in Firefox and
Safari:

VerticalPanel entries = new VerticalPanel();
entries.setStyleName(bottom20-padding);

The expected behavior is that there is 20 points of padding at the
bottom of the panel (padding-bottom: 20px;).  But IE7 puts the padding
between each row of the vertical panel.  If I remove the style setting
then the rows stack properly (the latter row immediately beneath the
former).  Since I can achieve the same results in the display by
adding an additional empty row or adding another empty panel as
filler, I can get around the problem but that seems to me to be a very
awkward way to work around the issue.

Is there a simpler solution?

Thanks,
Rob

On Jun 1, 1:58 pm, Rob Tanner caspersg...@gmail.com wrote:
 It's my first app and this might be a newbie rite of passage.

 I've built an app for managing members of groups defined on an LDAP
 server.  In both Firefox and Safari, the differences bewteen how the
 app looks is insignificant.  However, in IE7 (don't have IE8 to test
 with) there are huge gaps between rows in vertical panels.  The empty
 space between the rows looks to be about the same height as the rows
 themselves.

 Is this a compatibility issue or a code issue.  I'm using GWT 1.6.4
 for the Mac and doing my development in Eclipse.  What do I need to do
 to fix it or where do I need to look to see what the problem might
 be?

 Thanks,
 Rob
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



EditorGridPanel rendering problem

2009-06-01 Thread Bhushan

Hi,

I am using GWT 1.6.4 and GWT-Ext 2.0.6. I am trying to use
EditorGridPanel and facing rendering problems.

When the module loads I create a Panel (TopPanel) with BorderLayout
and add that to the ViewPort. I then create another Panel
(CenterPanel) and add EditorGridPanel, three buttons to the center of
the BorderLayout Panel (TopPanel). I tried many layouts for
CenterPanel but still not able to get what I want.

I want the table to showup with the required data and scrollbars. All
the three buttons comes below the table. The data for the table come
via Async call when the module loads, so when the screen is rendered
to the user, the data is populated in the table. But looks like the
table gets rendered with no data and when the async process finishes
the table gets populated but don’t get resized to fit the screen so
only show me one row.

The problem is with the Grid, I am not getting any scrollbars.
Secondly I don’t want to define the height and width of the Grid. I
want it to take as much as possible and show scrollbars, just like we
do in html table by setting width and height as 100%.

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



Array vs. ArrayList

2009-06-01 Thread Jacob

What is the difference in how arrays and arraylists end up in
javascript? I am working on performing animations in parallel, and an
arraylist would be very nice and easy to use, but if an array is
faster, I can initialize for the common case and the resize the array
as needed. Is there anything I could do that would be faster than an
array or an arraylist for storing an arbitrary amount of animations?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



$doc.selection is undefined

2009-06-01 Thread bhomass

I have a native method which uses
$doc.selection.createRange()

I am not sure why the $ before doc. I simply copied it from some
sample code. this method works find when in hosted mode. but after
compile and called directly from a browser I get the $doc.selection is
undefined error.

any ideas?

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



GWT-RPC and Axis2/JAX-WS with Jetty Problem

2009-06-01 Thread shane.resc...@gmail.com

Hi Guys,

I have created the appropriate client/server side classes using GWT-
RPC, also i am trying to connect to a J2EE Web Service, so I have
tried using both JAX-WS and also Apache Axis2 to generate the java
client proxy and stubs to connect to the service, which both works
fine. But in either case (it doesnt matter which I use) when I go to
host the GWT Project (Module) configured with Google Web Toolkit Host
Mode using Jetty, i get import errors. It seems that the web service's
client generated code at runtime can not be seen, which is weird as
the .java source code is compiled and place inside the WEB-INF/classes
directory, The jetty console output received

- Loading an instance of module 'amwac'
  - Refreshing module 'amwac'
- Refreshing module from source
  - Validating newly compiled unit
- Errors in 'file.the java class.java'
  - Line 6: The import . cannot be resolved

Any ideas what the problem might be would be 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-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
-~--~~~~--~~--~--~---



RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:192) problem on Gilead

2009-06-01 Thread Sanj

Hi All,

I am using GWT 1.6.4 and Gilead.

When i am trying to return the (List)data after executing the sql
successfully then I am facing this issue.

com.google.gwt.user.client.rpc.StatusCodeException: The call failed on
the server; see server log for details
at
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived
(RequestCallbackAdapter.java:192)
at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl
(Request.java:264)
at com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch
(Request.java:236)
at com.google.gwt.http.client.Request.fireOnResponseReceived
(Request.java:227)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod
(IDispatchImpl.java:126)
at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke
(IDispatchProxy.java:155)
at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke
(IDispatchImpl.java:294)
at com.google.gwt.dev.shell.ie.IDispatchImpl.method6
(IDispatchImpl.java:194)
at org.eclipse.swt.internal.ole.win32.COMObject.callback6
(COMObject.java:117)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
at com.google.gwt.dev.SwtHostedModeBase.processEvents
(SwtHostedModeBase.java:235)
at com.google.gwt.dev.HostedModeBase.pumpEventLoop
(HostedModeBase.java:558)
at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405)
at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)


Thanks and regards,

Sunil
--~--~-~--~~~---~--~~
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: RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:192) problem on Gilead

2009-06-01 Thread Ian Petersen

On Mon, Jun 1, 2009 at 10:04 PM, Sanj sunil.ban...@daffodildb.com wrote:
 com.google.gwt.user.client.rpc.StatusCodeException: The call failed on
 the server; see server log for details

The only useful information will be in the server log, as the
exception trace says.

Ian

--~--~-~--~~~---~--~~
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: $doc.selection is undefined

2009-06-01 Thread Adam T

$doc is GWT's JSNI's variable to access the Javascript document
variable - see the documentation:
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=DevGuideJavaScriptFromJava

You don't mention which browsers/operating system you're using, but as
far as I know document.selection.createRange is IE only, so I guess
you're developing on a Windows system (who's hosted mode uses IE) and
then using a non IE browser when in web mode?

If so, try googling for something like cross-browser
document.selection; if not, maybe someone with more IE experience can
help answer your question.

//Adam

On 2 Juni, 06:31, bhomass bhom...@gmail.com wrote:
 I have a native method which uses
 $doc.selection.createRange()

 I am not sure why the $ before doc. I simply copied it from some
 sample code. this method works find when in hosted mode. but after
 compile and called directly from a browser I get the $doc.selection is
 undefined error.

 any ideas?

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



RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:192) problem on Gilead

2009-06-01 Thread Sanj

Hi All,

I am using GWT 1.6.4 and Gilead.

When i am trying to return the (List)data after executing the sql
successfully then I am facing this issue.

com.google.gwt.user.client.rpc.StatusCodeException: The call failed on
the server; see server log for details
at
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived
(RequestCallbackAdapter.java:192)
at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl
(Request.java:264)
at com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch
(Request.java:236)
at com.google.gwt.http.client.Request.fireOnResponseReceived
(Request.java:227)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod
(IDispatchImpl.java:126)
at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke
(IDispatchProxy.java:155)
at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke
(IDispatchImpl.java:294)
at com.google.gwt.dev.shell.ie.IDispatchImpl.method6
(IDispatchImpl.java:194)
at org.eclipse.swt.internal.ole.win32.COMObject.callback6
(COMObject.java:117)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
at com.google.gwt.dev.SwtHostedModeBase.processEvents
(SwtHostedModeBase.java:235)
at com.google.gwt.dev.HostedModeBase.pumpEventLoop
(HostedModeBase.java:558)
at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405)
at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)


Thanks and regards,

Sunil
--~--~-~--~~~---~--~~
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 Compile error

2009-06-01 Thread Raul

Hello I am too having the same problem...

it is fixed but donno how..??
 http://extjs.net/forum/showthread.php?t=67501


My stack trace look like :

Refreshing module from source
Refreshing TypeOracle
Processing types in compilation unit:

file:/C:/Documents%20and%20Settings/User/workspace/myApp/src/com/myApp/
data/user/User

BeanModel.java
Found type 'UserBeanModel'
Resolving annotation '@BEAN(UserModel.class)'
[ERROR]
java.lang.ClassNotFoundException: com.myApp.data.user.UserModel
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at

com.google.gwt.dev.javac.TypeOracleMediator.getClassLiteral
(TypeOracleMediator.java:7

63)
at

com.google.gwt.dev.javac.TypeOracleMediator.getAnnotationElementValue
(TypeOracleMedia

tor.java:674)
at

com.google.gwt.dev.javac.TypeOracleMediator.createAnnotationInstance
(TypeOracleMediat

or.java:442)
at

com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotation
(TypeOracleMediator.java

:836)
at

com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotations
(TypeOracleMediator.jav

a:857)
at

com.google.gwt.dev.javac.TypeOracleMediator.resolveTypeDeclaration
(TypeOracleMediator

.java:1384)
at

com.google.gwt.dev.javac.TypeOracleMediator.addNewUnits
(TypeOracleMediator.java:389)
at com.google.gwt.dev.javac.TypeOracleMediator.refresh
(TypeOracleMediator.java:417)
at com.google.gwt.dev.javac.CompilationState.refresh
(CompilationState.java:179)
at com.google.gwt.dev.javac.CompilationState.init
(CompilationState.java:93)
at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:
264)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:283)
at com.google.gwt.dev.Compiler.run(Compiler.java:170)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:124)
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.Compiler.main(Compiler.java:131)
Scanning for additional dependencies:

jar:file:/D:/Ext%20GWT/gxt-forEclipse/gxt.jar!/com/extjs/gxt/ui/client/
data/BeanModel

Lookup.java
Computing all possible rebind results for

'com.extjs.gxt.ui.client.data.BeanModelLookup'
Rebinding com.extjs.gxt.ui.client.data.BeanModelLookup
Invoking generate-with
class='com.extjs.gxt.ui.rebind.core.BeanModelGenerator'/
[ERROR] Class com.extjs.gxt.ui.client.data.BeanModelLookup not found.
java.lang.NullPointerException
at

com.extjs.gxt.ui.rebind.core.BeanModelGenerator.getMarkerBean
(BeanModelGenerator.java

:170)
at

com.extjs.gxt.ui.rebind.core.BeanModelGenerator.generate
(BeanModelGenerator.java:53)
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.ja

va: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.getAllPossibleRebindAn

swers(Precompile.java:204)
at

com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds
(WebM

odeCompilerFrontEnd.java:128)
at

com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.process
(AbstractCompiler.java:15

1)
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:18

1)
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
(WebMode

CompilerFrontEnd.java:73)
at

com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile
(JavaToJavaScriptCompiler.j

ava:254)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:300)
at com.google.gwt.dev.Compiler.run(Compiler.java:170)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:124)
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.Compiler.main(Compiler.java:131)
[ERROR] Errors in

'jar:file:/D:/Ext%20GWT/gxt-forEclipse/gxt.jar!/com/extjs/gxt/ui/
client/data/BeanMode


Re: RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:192) problem on Gilead

2009-06-01 Thread SunilBansal

lan thanks for your response which log you are talking about. because
when i checked in hibernate.log then i found no exception.

On Jun 2, 10:06 am, Ian Petersen ispet...@gmail.com wrote:
 On Mon, Jun 1, 2009 at 10:04 PM, Sanj sunil.ban...@daffodildb.com wrote:
  com.google.gwt.user.client.rpc.StatusCodeException: The call failed on
  the server; see server log for details

 The only useful information will be in the server log, as the
 exception trace says.

 Ian
--~--~-~--~~~---~--~~
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-contrib] Comment on CssResource in google-web-toolkit

2009-06-01 Thread codesite-noreply

Comment by rosycampbell:

[http://www.seozap.com SEO Bangalore]
[http://www.mindalbum.com Free Tutorials]


For more information:
http://code.google.com/p/google-web-toolkit/wiki/CssResource

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Create overridesView lazily in StandardClassMember

2009-06-01 Thread bobv

LGTM, just some nits.


http://gwt-code-reviews.appspot.com/33835/diff/1/2
File
dev/core/src/com/google/gwt/core/ext/soyc/impl/StandardClassMember.java
(right):

http://gwt-code-reviews.appspot.com/33835/diff/1/2#newcode44
Line 44: private SortedSetClassMember overridesView = null;
The explicit initialization isn't necessary.

http://gwt-code-reviews.appspot.com/33835/diff/1/2#newcode65
Line 65:
Whitespace.

http://gwt-code-reviews.appspot.com/33835/diff/1/2#newcode106
Line 106: // Compute overrides on demand
Use a javadoc-style comment here

http://gwt-code-reviews.appspot.com/33835

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: GWT-RPC broken in GAE/J

2009-06-01 Thread Mark Renouf

Glad to see progress on this. Ray, did anything come out of
discussions at Google I/O?

There seems to be two schools of thought here (both equally valid
approaches mind you):

1. Help the client participate in the persistence, maintain detached
state, dirty field lists, etc. This seems lofty and makes me more
concerned about tight coupling, but is probably exactly what is needed
for some applications.

2. Make a clean cut and keep the client free from persistence
concerns. This could be RPC with seperate DTOs or marshalled XML/JSON.
The client is only able to save by sending the modified object which
is then fully updated in the database (all fields, since we lost track
of what changed). This would typically happen by having the server
reconstruct the object (unmarshal), then merge this over an existing
entity.

Our app actually functions as #2. Currently we use GWT-generated XML
conversion code on the client. It's inefficient if your entity has
many fields and you change just one. We've employed sparse xml to
help, where we send back only the elements we want to modify (all of
them are optional). When this is applied to the entity, only one field
is triggered in the update. In theory this is great but I haven't
implemented to dirty field tracking in the client, so in practice we
serialize the whole object and we don't get any benefit from it.

So I guess I'm sort of sitting on fence on this one. I beleive #1 can
work, but I need to see proof of it in a large-ish app before we go
and touch anything.

On May 30, 4:24 pm, Piotr Jaroszyński p.jaroszyn...@gmail.com wrote:
 Hey Ray,

  I've pretty much decided to go the DTO approach at this point as it is
  known to work 100%. I don't feel the current hacks are production
  worthy.

 You have mentioned on your blog that you use protobufs for DTOs. Could
 you please elaborate on that?

 P.S. Can't wait for gwt sessions to be uploaded on youtube!

 --
 Best Regards,
 Piotr Jaroszyński
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: possible ant changes

2009-06-01 Thread Rajeev Dayal
Hey Freeland,

All of this sounds great. The build scripts have been in severe need of
tweaking for a while, and I'm glad that you've decided to tackle this tricky
issue. I've got a couple of comments about the ant test behavior.

If it is the case that a subsequent ant build after running ant build is
zero work provided that there are no code changes, then I am okay with
having ant test depend on ant build. However, if running ant build in
a zero-work case takes a non-trivial amount of time, then we should
re-consider having ant test depend on ant build.

I'd also recommend that running ant test rebuild the test classes
themselves, and the build step for test code should be zero-work if ant
test is run back-to-back with no test code changes in-between.

A nice-to-have (i.e. less important than all of the other things you
mentioned) would be the ability to specify specific tests via the
command-line (maybe via a system property?).


Rajeev



On Wed, May 27, 2009 at 1:38 PM, Freeland Abbott fabb...@google.com wrote:

 So, I'm looking at our ant files, and trying to unwind several problems...
 but I figure I'll ask what other people have as pet peeves, to see if there
 are other games I should play, too.

 Here's what's on my mind right now:

- If you run ant clean build; ant build, the second build should be
zero work.  It's not, and in particular it painfully builds samples twice.
It shouldn't.
- Right now, tests require a staging directory, which implies requiring
a full distro kit including samples.  That's unnecessary; tests should
require build, but not much more.
   - Related to that, too much depends on the semi-recursive -do, which
   is actually a no-op that depends on dist, which pulls too much in for 
 simple
   cases.
- Largely orthogonal, we have checked in files with $ in their names,
which are supposed to also be usable wtih _ instead.  I've got a system
which is badly allergic to the $'s, which is why this causes me pain, but
generally it seems this should be addressed with alternate classpath 
 roots
anyway, so we can test both the two cases easily.

 Does anyone have other pain points to add?


 What I was thinking of doing is:

- Shoot the top-level -do target, in favor of having subtargets
directly invoke what they need from subprojects, via antcall, and setting
target as is done today... so e.g. target test can depend target 
 build
or buildonly and then antcall the test targets of dev, user, etc.
explicitly.  Since -do would no longer exist, it wouldn't depend on dist
to get the fan-out effects, and fan-out can be more selectively controlled.
- Untangle whatever our double-build is caused by; at first blush, it
seems to think my directories are out of date relative to the existing jar
(not the files in them, but the directories themselves).
- Change the default target to dist, for back compatibility, since
that's what build today really does (build depends on -do which depends on
dist which depends on build in all the subprojects).
- Twiddle the semantics of build to be just building.  I haven't
decided whether that would include building samples (probably; buildonly
exists to skip that), but it wouldn't assemble the distro archive and then
unpack it as dist does.
- Introduce user/test_dollar and user/test_underbar as java-root
directories with the obvious subset of files from today's user/test, and an
adjustment to the test target one or the other is on classpath, controlled 
 I
think by a system property.

 Thoughts on that?

 


--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: possible ant changes

2009-06-01 Thread Freeland Abbott
On Mon, Jun 1, 2009 at 10:48 AM, Rajeev Dayal rda...@google.com wrote:

 If it is the case that a subsequent ant build after running ant build
 is zero work provided that there are no code changes, then I am okay with
 having ant test depend on ant build. However, if running ant build in
 a zero-work case takes a non-trivial amount of time, then we should
 re-consider having ant test depend on ant build.


It will be the case that the second of two back-to-back ant build commands
will be zero work.  (I think I have that part already, though I've gotten
interrupted into FF 3.5b4 issues.)


 I'd also recommend that running ant test rebuild the test classes
 themselves, and the build step for test code should be zero-work if ant
 test is run back-to-back with no test code changes in-between.


I think that's allready the structure; I'll double-check the zero-work bit.


 A nice-to-have (i.e. less important than all of the other things you
 mentioned) would be the ability to specify specific tests via the
 command-line (maybe via a system property?).


That actually exists already, mostly, in that the little-known ant property
gwt.junit.testcase.includes is an ant-style glob of tests to run.  Its
default value is **/*Suite.class, but you can override that to a narrower
value if you like.  What's missing, however, is the ability to anything
fancier than a glob, like say a comma-separated lists.  So you can easily
restrict to a directory's suites, to to a specific suite, but it's harder to
run say the RPC and I18N suites at once.


 Rajeev



 On Wed, May 27, 2009 at 1:38 PM, Freeland Abbott fabb...@google.comwrote:

 So, I'm looking at our ant files, and trying to unwind several problems...
 but I figure I'll ask what other people have as pet peeves, to see if there
 are other games I should play, too.

 Here's what's on my mind right now:

- If you run ant clean build; ant build, the second build should be
zero work.  It's not, and in particular it painfully builds samples twice.
It shouldn't.
- Right now, tests require a staging directory, which implies
requiring a full distro kit including samples.  That's unnecessary; tests
should require build, but not much more.
   - Related to that, too much depends on the semi-recursive -do,
   which is actually a no-op that depends on dist, which pulls too much 
 in for
   simple cases.
- Largely orthogonal, we have checked in files with $ in their names,
which are supposed to also be usable wtih _ instead.  I've got a system
which is badly allergic to the $'s, which is why this causes me pain, but
generally it seems this should be addressed with alternate classpath 
 roots
anyway, so we can test both the two cases easily.

 Does anyone have other pain points to add?


 What I was thinking of doing is:

- Shoot the top-level -do target, in favor of having subtargets
directly invoke what they need from subprojects, via antcall, and 
 setting
target as is done today... so e.g. target test can depend target 
 build
or buildonly and then antcall the test targets of dev, user, etc.
explicitly.  Since -do would no longer exist, it wouldn't depend on dist
to get the fan-out effects, and fan-out can be more selectively 
 controlled.
- Untangle whatever our double-build is caused by; at first blush, it
seems to think my directories are out of date relative to the existing jar
(not the files in them, but the directories themselves).
- Change the default target to dist, for back compatibility, since
that's what build today really does (build depends on -do which depends on
dist which depends on build in all the subprojects).
- Twiddle the semantics of build to be just building.  I haven't
decided whether that would include building samples (probably; buildonly
exists to skip that), but it wouldn't assemble the distro archive and then
unpack it as dist does.
- Introduce user/test_dollar and user/test_underbar as java-root
directories with the obvious subset of files from today's user/test, and 
 an
adjustment to the test target one or the other is on classpath, 
 controlled I
think by a system property.

 Thoughts on that?




 


--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Removal of JMethod JParameter constructors

2009-06-01 Thread Amir

It looks like the following constructors were recently removed:

   public JMethod(JClassType enclosingType, String name)
   public JParameter(JAbstractMethod enclosingMethod, JType type,
String name)

I realize they're just convenience constructors, but a third party
library we're using depends on these constructors, so I was wondering
if someone could shed some light as to why they were removed? I
couldn't find any discussions regarding it.

Thanks.

- Amir

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



  1   2   >