Re: Plug in External Application to GWT

2018-10-25 Thread Vishal Mistry


On Thursday, 25 October 2018 20:12:49 UTC+11, Jens wrote:
>
> If that external application produces a HTML page then yes, you could 
> display this HTML page in an HTML iframe within a GWT application. 
> Otherwise you must rebuild the UI of the external application in your GWT 
> app and query the external application for data that you use to fill the UI 
> of your GWT app. Querying for data can either happen directly from the GWT 
> app using HTTP requests or indirectly by first querying a HTTP server you 
> implement which in turn asks your external application somehow to provide 
> the data.
>
> While you program in Java when using GWT, at the end you just get a 
> JavaScript application. So in GWT you can only do what a Web Browser / 
> Node.Js allows you to do. Or put differently: If you can't solve your issue 
> using plain JavaScript + HTML then you can't solve it using GWT.
>
> -- J.
>

Thanks a lot Jens for your quick response on my post...much appreciated  

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


Plug in External Application to GWT

2018-10-25 Thread Vishal Mistry
Hi,
I am bit new to GWT and need guidance on following.
I am trying to plug in external application (which is developed in 
different technology) to GWT. Is there any way I can call an external 
application from GWT and it will be displayed in one of the panel ?

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


Re: Migrating a GWT AppEngine App to a Chrome offline app

2012-07-12 Thread Vishal Singh
Ashwin - I am still considering various options. You have a point with 
offline clearing of cache. I would think that with offline storage like *
IndexedDB*  would not be deleted if the user clear the cache. At least the 
user will be prompted if an application data is going to be cleared. I am 
not sure how it works.
My main point is I really do not want to invest in another technology for 
building a local app. I would want to use all the GWT code written so far. 
Also it should be easy to update chrome apps. This should simplify the 
distribution also.


Also I think I would have to use hybrid approach of storing data in cloud. 
But I have the challenge of security. I would may be need to encrypt data 
using a key which only resides locally. There are lot of unknowns and I 
would have to figure out.

Vishal

On Thursday, July 12, 2012 11:01:05 AM UTC+5:30, Ashwin Desikan wrote:

 Vishal,

 What options have you considered so far? Check out html5 offline Mode. 
 This maybe a good way to store data offline and probably sync to the server 
 if your customer wants the data to be available online. 

 One issue with offline Mode would the data would be cleared if the user 
 cleans up his browser cache/ temp files. 

 ~Ashwin

 Sent from my iPhone

 On Jul 12, 2012, at 10:12 AM, Vishal Singh singh.vi...@gmail.com wrote:

 I  have made a enterprise application using GWT and AppEngine. There are 
 some set of customers who want the data to be stored locally only for 
 security reasons.

 I am planning to develop an Chrome offline 
 apphttp://code.google.com/chrome/extensions/trunk/apps/about_apps.html by 
 using most of the current code. I have to change my current data server 
 layer ( AppEngine) to something locally. There is lot of GWT code written 
 which I would like to reuse in my offline app. The question is can this be 
 all done ?  As I understand the GWT layer should just work in my offline 
 app. I  think the hard problem is the data layer.

 Any thoughts on the above problem will be appreciated.


 Vishal

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



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



Migrating a GWT AppEngine App to a Chrome offline app

2012-07-11 Thread Vishal Singh
I  have made a enterprise application using GWT and AppEngine. There are 
some set of customers who want the data to be stored locally only for 
security reasons.

I am planning to develop an Chrome offline 
apphttp://code.google.com/chrome/extensions/trunk/apps/about_apps.html by 
using most of the current code. I have to change my current data server 
layer ( AppEngine) to something locally. There is lot of GWT code written 
which I would like to reuse in my offline app. The question is can this be 
all done ?  As I understand the GWT layer should just work in my offline 
app. I  think the hard problem is the data layer.

Any thoughts on the above problem will be appreciated.


Vishal

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/G_FefTZQcQoJ.
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: Window.open() opens as a popup

2012-06-26 Thread Vishal Dave

Hi,

Directly call of Window.open() works perfectly to avoid popup blocker, but 
I need to fetch URL with RPC call
 onClick of the same button and open a new window, if I set global variable 
to set URL and pass in Window.open() then it takes double click to open 
newWindow, how can I achieve all with a single click of button?

thanks,
Vishal Dave

On Tuesday, April 24, 2012 10:33:51 PM UTC+5:30, Jens wrote:

 You have to make sure that you directly call Window.open() in the 
 ClickHandler. Don't to it in a Timer, deferred command or similar inside 
 the ClickHandler. The Browser must recognize that Window.open() is directly 
 called because of a user action. It does not matter if its a Button or an 
 Anchor.
 Also don't do Window.open() somewhere deep in a sub function called inside 
 the ClickHandler.

 Something like the following will work:

 Button b = new Button(Test);
 b.addClickHandler(new ClickHandler() {
   void onClick(ClickEvent e) {
 Window.open(http://www.google.de;, _blank, );
   }
 });

 If you wrap Window.open() for example in a Timer it won't work anymore.

 -- J.


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



[CodeFest] Participate in Manthan - Algorithm Intensive Programming Contest

2011-03-13 Thread vishal kumar rai
Hello,

*CodeFest'11* http://codefest.org.in/, the annual online international
coding festival of Computer Engineering Society IT-BHU, presents
Manthanhttp://codefest.org.in/event.php?name=manthan-
the *algorithm intensive* programming contest.

The contest aims to provide a platform for programmers round the globe to
showcase their problem-solving and programming skills. Most problems of the
event will be real life computing problems where coders will be required to
prune existing standard algorithms to find the solution for the domain
specific application of the algorithm.

We are proud to have Codeforces http://www.codeforces.com/ as our partner
for Manthan 2011 http://codefest.org.in/event.php?name=manthan. The
Contest will be hosted on Codeforces http://www.codeforces.com/ and will
follow the rules http://codefest.org.in/event.php?name=manthan#rules similar
to that of Codeforces Beta Round.

*Google Sponsored* event with
Prizeshttp://codefest.org.in/event.php?name=manthan#prizes
 worth *50,000 INR*. Besides, *Certificates* to *top 50* participants.

*Follow the 
registrationhttp://codefest.org.in/event.php?name=manthan#participate
procedure
to register for Manthan. Registrations will close 10 minutes before the
event starts.*

*Event Details:*

   - The *main event* is scheduled on *March 13 at 2200 Hrs IST
(UTC+5.30)*http://www.timeanddate.com/worldclock/fixedtime.html?p1=176year=2011month=3day=13hour=22min=0sec=0
   - *Rules* http://codefest.org.in/event.php?name=manthan#rules of
   contest similar to Codeforces Beta Rounds.
   - The Contest will be of *4 hours* consisting of *5-6 problems*.
   - *Programing languages allowed:* C, C++ , Pascal, Java, C#, Python,
   Ruby, PHP, F# and Haskell.
   - Open to all,* students* as well as *professionals.*
   - Declaration of *Results* on *March 16 at 1800 Hrs IST*.

Visit the Manthan event page http://codefest.org.in/event.php?name=manthan to
see further details.

For further queries, feel free to contact the event coordinator at:
*Saket Jalan* +91 808 169 7891
manthan.codef...@itbhu.ac.in

*We look forward to your participation in the event.*

Be free and Happy coding :)

Regards,
Team CodeFest
Visit us at http://itbhu.ac.in/codefest/
Check out our page at http://facebook.com/codefest/
Follow us at http://twitter.com/c0defest/
Read our blog at http://itbhu.ac.in/codefest/blog

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



Invitation to CodeFest - the international online coding festival of Computer Engineering Society, ITBHU

2011-02-12 Thread vishal kumar rai
Hello ,

We are delighted to inform you that *Codefest
'11*http://www.itbhu.ac.in/codefest/,
the *annual International online coding festival* of *Computer Engineering
Society, IT-BHU*, has been unveiled. CodeFest is a unique fest wherein
concepts of mathematics, logic, artificial intelligence, algorithms,
language syntax, etc. are required to be deployed in programming; these
concepts manifest themselves in solving problems effectively and
efficiently! CodeFest was started last year. CodeFest'10 was a phenomenal
success with participation from all over the globe. CodeFest'11 is geared up
with some new and pepped up events, while maintaining the integrity of its
standards.
*
*
*Here is a brief description of the constituent online events:*

   - *Mathmania http://itbhu.ac.in/codefest/event.php?name=mathmania:* A
   mathematical puzzle contest that puts mathematical and computational skills
   to test.
  - Main Contest on Feb 27,10:00 pm
   - *Manthan http://itbhu.ac.in/codefest/event.php?name=manthan:* An
   algorithm intensive programming contest that would require coders to tailor
   existing standard algorithms.
  - Main Contest on Mar 13,12:00 pm
   - *Perplexed
http://itbhu.ac.in/codefest/event.php?name=perplexed%21:*A
programming contest, aimed to test the knowledge of C, wherein codes
will
   be rewarded against syntactic constraints.
  - Main Contest on Mar 11,12:00 pm
   - *Ratespiel http://itbhu.ac.in/codefest/event.php?name=ratespiel:* A
   technical contest covering different areas of Computer Science.
  - Round 1A on Feb 12,10:00 pm
  - Round 1B on Feb 13,04:00pm
  - Round 1C on Feb 13,10:00pm
   - *Virtual Combathttp://itbhu.ac.in/codefest/event.php?name=virtual+combat
   :* An educational game wherein teams of programmed robotic tanks will
   fight the battles for glory. Codes Do Fight! Watch
thishttp://www.youtube.com/watch?v=v1rY3tyTj50out.
  - Phase 1 already started.

Visit our *website http://itbhu.ac.in/codefest/* for more details.
*
*
*Few exciting statistics about CodeFest:*

   - 2354 registrations (including 128 professionals) from 680 different
   institutions, across 59 countries in CodeFest '10.
   - Total prize money was a whopping amount of 260,000 INR last year making
   it the largest online coding festival in the Indian subcontinent!
   - CodeFest '10 gained recognition from several international
   organizations including CodeChef, Adobe, British Telecom, TCS and IEEE

*Latest @ CodeFest '11:*

   - Already *more than 1400
registrationshttp://itbhu.ac.in/codefest/index.php#userlist
   * from more than *50 countries*.
   - Recognition from giants like *Google, IBM, and Codeforces.*
   - Prizes of more than* 200,000 INR assured*.
   - More than *1300 battleshttp://itbhu.ac.in/codefest/vc-all-matches.php
   * have already been fought among the participants of Virtual Combat in
   under a week.

The Codefest'11 team has set out to unleash a yet another coding
extravaganza. We hope that your participation would raise the level of
competition in Codefest'11. Feel free to contact us at
codef...@itbhu.ac.inor reach us personally at:

   - Mohit Bansal +91 930 505 3020
   - Saket Saurabh +91 945 282 5690

We wish you all the best for Codefest'11 and for your future endeavours.

Be free and Happy Coding!

Regards,
Team Codefest
Visit us at http://itbhu.ac.in/codefest
Like our page at http://facebook.com/codefest
Follow us at http://twitter.com/c0defest/
Read our blog at http://itbhu.ac.in/codefest/blog

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



CodeFest - Online Coding Festival by Computer Engineering Society, IT-BHU

2011-01-17 Thread vishal kumar rai


Hello,
We are delighted to inform you that *CodeFest*http://www.itbhu.ac.in/codefest/
* http://www.itbhu.ac.in/codefest*, the annual *International online 
coding festival* of *Computer Engineering Society, IT-BHU*, has been 
unveiled. 

 
CodeFest is a unique fest wherein concepts of mathematics, logic, artificial 
intelligence, algorithms, language syntax, etc. are required to be deployed 
in programming; these concepts manifest themselves in solving problems 
effectively and efficiently!

 

CodeFest was started last year. CodeFest'10 was a phenomenal success with 
participation from all over the globe.

 

CodeFest'11 is geared up with some new and pepped up events, while 
maintaining the integrity of its standards. 

*Here is a brief description of the constituent online events:*

   - *Mathmania* http://itbhu.ac.in/codefest/event.php?name=mathmania: **A 
   mathematical puzzle contest that puts mathematical and computational skills 
   to test.
   - *Manthan:* http://itbhu.ac.in/codefest/event.php?name=manthan  An 
   algorithm intensive programming contest that would require coders to tailor 
   existing standard algorithms to solve real life computation problems.
   - *Virtual 
Combat:*http://itbhu.ac.in/codefest/event.php?name=virtual%20combat 
   * http://itbhu.ac.in/codefest/event.php?name=virtual%20combat*An 
   educational game wherein teams of programmed robotic tanks will fight the 
   battles for glory.* *Codes Do Fight! Watch* 
thishttp://www.youtube.com/watch?v=v1rY3tyTj50
   * out.
   - *Perplexed:* http://itbhu.ac.in/codefest/event.php?name=perplexed%21 
   ** http://itbhu.ac.in/codefest/event.php?name=perplexed%21A programming 
   contest, aimed to test the knowledge of C, wherein codes will be rewarded 
   against syntactic constraints.
   - *Ratespiel:* http://itbhu.ac.in/codefest/event.php?name=ratespiel  
**http://itbhu.ac.in/codefest/event.php?name=ratespielA 
   technical quiz covering different areas of Computer Science.


This year CodeFest, in association with 
*Technex'11*http://www.itbhu.ac.in/technex/home.php, 
brings onsite events:

   - *Eniac:* http://itbhu.ac.in/codefest/event.php?name=eniac An open 
   software exhibition where you get an opportunity to demonstrate your 
   software from any domain.
   http://goog_1665097687/
   - http://goog_1665097687/** http://goog_1665097687/*Code 
Warrior*http://itbhu.ac.in/codefest/event.php?name=code%20warrior
   :  A multiple round contest to award the title of 'ultimate computer 
   geek'.

Visit our *website* http://itbhu.ac.in/codefest 
*http://www.itbhu.ac.in/codefest/
*to get more details. 


*Few exciting statistics about CodeFest'10:*

   - 2354 registrations (including 128 professionals) from 680 different 
   institutions, across 59 countries.
   - Some participants were among the winners of Google Code Jam, Top Coder 
   SRMs and ACM ICPC.
   - Total prize money was a whopping amount of 260,000 INR!
   - CodeFest '10 was the largest online coding festival of the Indian 
   subcontinent in 2010 in terms of prize money!
   - CodeFest'10 was the second largest online coding festival of the Indian 
   subcontinent in 2010, next to Bitwise.
   - Gained recognition from several international organizations including 
   Codechef, Adobe, British Telecom, TCS and IEEE.   

 The *CodeFest'11 http://www.itbhu.ac.in/codefest/* team has set out to 
unleash a coding extravaganza. You can't afford to miss the chance to be a 
part of this fest!
 Still have any questions? Feel free to contact us at codef...@itbhu.ac.inor 
reach us personally at:

   - Mohit Bansalmohit.bansal.cs...@itbhu.ac.in
   - Saket Saurabh +91-9452-825-690 saket.saurabh.cs...@itbhu.ac.in 

We wish you all the best for CodeFest and for your future endeavors.

Be free and Happy Coding!
 
Team CodeFest
IT-BHU


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



CodeFest - Online Coding Festival by Computer Engineering Society, IT-BHU

2011-01-17 Thread vishal kumar rai
Hello,
We are delighted to inform you that *CodeFest*http://www.itbhu.ac.in/codefest/
* http://www.itbhu.ac.in/codefest*, the annual *International online
coding festival* of *Computer Engineering Society, IT-BHU*, has been
unveiled.


CodeFest is a unique fest wherein concepts of mathematics, logic, artificial
intelligence, algorithms, language syntax, etc. are required to be deployed
in programming; these concepts manifest themselves in solving problems
effectively and efficiently!



CodeFest was started last year. CodeFest'10 was a phenomenal success with
participation from all over the globe.



CodeFest'11 is geared up with some new and pepped up events, while
maintaining the integrity of its standards.

*Here is a brief description of the constituent online events:*

   - *Mathmania* http://itbhu.ac.in/codefest/event.php?name=mathmania: **A
   mathematical puzzle contest that puts mathematical and computational skills
   to test.
   - *Manthan:* http://itbhu.ac.in/codefest/event.php?name=manthan  An
   algorithm intensive programming contest that would require coders to tailor
   existing standard algorithms to solve real life computation problems.
   - *Virtual 
Combat:*http://itbhu.ac.in/codefest/event.php?name=virtual%20combat
   * http://itbhu.ac.in/codefest/event.php?name=virtual%20combat*An
   educational game wherein teams of programmed robotic tanks will fight the
   battles for glory.* *Codes Do Fight! Watch*
thishttp://www.youtube.com/watch?v=v1rY3tyTj50
   * out.
   - *Perplexed:* http://itbhu.ac.in/codefest/event.php?name=perplexed%21
   ** http://itbhu.ac.in/codefest/event.php?name=perplexed%21A programming
   contest, aimed to test the knowledge of C, wherein codes will be rewarded
   against syntactic constraints.
   - *Ratespiel:*
http://itbhu.ac.in/codefest/event.php?name=ratespiel
**http://itbhu.ac.in/codefest/event.php?name=ratespielA
   technical quiz covering different areas of Computer Science.


This year CodeFest, in association with
*Technex'11*http://www.itbhu.ac.in/technex/home.php,
brings onsite events:

   - *Eniac:* http://itbhu.ac.in/codefest/event.php?name=eniac An open
   software exhibition where you get an opportunity to demonstrate your
   software from any domain.
   http://goog_1665097687
   - http://goog_1665097687** http://goog_1665097687*Code
Warrior*http://itbhu.ac.in/codefest/event.php?name=code%20warrior
   :  A multiple round contest to award the title of 'ultimate computer
   geek'.

Visit our *website* http://itbhu.ac.in/codefest
*http://www.itbhu.ac.in/codefest/
*to get more details.


*Few exciting statistics about CodeFest'10:*

   - 2354 registrations (including 128 professionals) from 680 different
   institutions, across 59 countries.
   - Some participants were among the winners of Google Code Jam, Top Coder
   SRMs and ACM ICPC.
   - Total prize money was a whopping amount of 260,000 INR!
   - CodeFest '10 was the largest online coding festival of the Indian
   subcontinent in 2010 in terms of prize money!
   - CodeFest'10 was the second largest online coding festival of the Indian
   subcontinent in 2010, next to Bitwise.
   - Gained recognition from several international organizations including
   Codechef, Adobe, British Telecom, TCS and IEEE.

 The *CodeFest'11 http://www.itbhu.ac.in/codefest/* team has set out to
unleash a coding extravaganza. You can't afford to miss the chance to be a
part of this fest!
 Still have any questions? Feel free to contact us at
codef...@itbhu.ac.inor reach us personally at:

   - Mohit Bansalmohit.bansal.cs...@itbhu.ac.in
   - Saket Saurabh +91-9452-825-690 saket.saurabh.cs...@itbhu.ac.in

We wish you all the best for CodeFest and for your future endeavors.

Be free and Happy Coding!

Team CodeFest
IT-BHU

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



java.lang.VerifyError: class: com/google/gwt/core/client/Scheduler

2011-01-11 Thread Vishal
hey folks,
I just created a new project in Eclipse, GWT using UI binder and when
I open the LoginView.ui.xml in Design mode , I get following error.
Any ideas?

java.lang.VerifyError: (class: com/google/gwt/core/client/Scheduler,
method: signature: ()V) Illegal constant pool index

-Vishal

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



Need advise on how to organize my sample application.

2010-09-28 Thread Vishal Pai
Hi,

I am writing a sample application to get to know GWT and GWT designer.
This application requires user to login using Google account. It
displays a list of customers and allows adding a customer. Can you
please advise on how should I organize the UI?

The I have organized the application:
1. I have used UserService for login purpose.
2. I have created 3 composites. Login, Home, Add customer.
3. I have added the composites to a deckpanel in the module with the
entry point.
4. Created login service.
5. Created Customer service which handles add and get all customer
functionality.

When the application starts I check it checks if user is logged in. If
not then the login composite is shown in the deckpanel. Once the user
logs in the Home page is shown.

On the home page the list of customers is shown. Now I click on the
Add customer button in the Home composite. It takes me to the Add
customer composite. I fill in the customer details and click Save
button in the composite.

How do I move to the Home page again without the composite knowing
about the deckpanel?

For now I have put the Save button outside the deck panel.

Best Regards,
Vishal


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



GWT form upload using BlobstoreService App Engine

2010-06-14 Thread Vishal Singh
I am using GWT and Google App Engine Java for my application. I have a
profile screen where user enters profile information like name, age
and address, saves it and gets success or failure message. I developed
this initial application using GWT-RPC and it worked fine. I had a new
requirement where I have to store image of the user. I am using
BlobstoreService to store images. This has created complications in
the flow. I had to use FormPanel as it is the only way to do a
FileUpload in GWT. The BlobStore service servlet expects a redirect on
completion. As a result it cannot now return any status back to my GWT
application once the profile is saved. Is there easy to store images
using GWT along with other form fields and show a status message back
to user once the profile is saved.

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



Re: GWT form upload using BlobstoreService App Engine

2010-06-14 Thread Vishal Singh
Can you please elaborate on how to wrap the blobstoreservice servlet.
Are you suggesting writing a Filter ?

Thanks
Vishal

On Jun 14, 10:43 pm, Jaroslav Záruba jaroslav.zar...@gmail.com
wrote:
 For different reasons I had to 'wrap' the blobstoreservice servlet with my
 own one. Maybe it could work for you as well.



 On Mon, Jun 14, 2010 at 7:19 PM, Vishal Singh singh.vi...@gmail.com wrote:
  I am using GWT and Google App Engine Java for my application. I have a
  profile screen where user enters profile information like name, age
  and address, saves it and gets success or failure message. I developed
  this initial application using GWT-RPC and it worked fine. I had a new
  requirement where I have to store image of the user. I am using
  BlobstoreService to store images. This has created complications in
  the flow. I had to use FormPanel as it is the only way to do a
  FileUpload in GWT. The BlobStore service servlet expects a redirect on
  completion. As a result it cannot now return any status back to my GWT
  application once the profile is saved. Is there easy to store images
  using GWT along with other form fields and show a status message back
  to user once the profile is saved.

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

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



Re: GWT form upload using BlobstoreService App Engine

2010-06-14 Thread Vishal Singh
Thanks. I will give a try to your solution.

2010/6/14 Jaroslav Záruba jaroslav.zar...@gmail.com

 oh, error in pseudo-code

 URL uploadUrl url = new
 URL(blobstoreService.createUploadUrl(successPath));
 copyRequestDataToUrl(req, url);

 sorry for that :)


 2010/6/14 Jaroslav Záruba jaroslav.zar...@gmail.com

 I needed to get at least single character in response body when uploading a
 file. (Without that SwfUpload did not work due some Flash issue.)

 --
 MyWrappingServlet
 {
   doPost(req, res)
   {
 // ...
 URL uploadUrl = new
 URL(blobstoreService.createUploadUrl(successPath));
 copyRequestDataToUrl(req, url);
 res.getOutputStream().print(.); // the magic character
   }

   // this method applies the request data and headers to given URL
   copyRequestDataToUrl(req, url)
   {
 // ...
   }
 }
 --


 On Mon, Jun 14, 2010 at 7:49 PM, Vishal Singh singh.vi...@gmail.comwrote:

 Can you please elaborate on how to wrap the blobstoreservice servlet.
 Are you suggesting writing a Filter ?

 Thanks
 Vishal

 On Jun 14, 10:43 pm, Jaroslav Záruba jaroslav.zar...@gmail.com
 wrote:
  For different reasons I had to 'wrap' the blobstoreservice servlet with
 my
  own one. Maybe it could work for you as well.
 
 
 
  On Mon, Jun 14, 2010 at 7:19 PM, Vishal Singh singh.vi...@gmail.com
 wrote:
   I am using GWT and Google App Engine Java for my application. I have
 a
   profile screen where user enters profile information like name, age
   and address, saves it and gets success or failure message. I
 developed
   this initial application using GWT-RPC and it worked fine. I had a
 new
   requirement where I have to store image of the user. I am using
   BlobstoreService to store images. This has created complications in
   the flow. I had to use FormPanel as it is the only way to do a
   FileUpload in GWT. The BlobStore service servlet expects a redirect
 on
   completion. As a result it cannot now return any status back to my
 GWT
   application once the profile is saved. Is there easy to store images
   using GWT along with other form fields and show a status message back
   to user once the profile is saved.
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
 cr...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

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



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


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



Client did not send n bytes as expected

2010-01-21 Thread Vishal
We get this error:

[#|2009-08-12T11:38:31.803-0700|SEVERE|sun-appserver9.1|
javax.enterprise.system.container.web|
_ThreadID=16;_ThreadName=httpSSLWorkerThread-38080-3;_RequestID=8b3571bb-3c36-43f1-9e38-6947ca376436;|
WebModule[]Exception while dispatching incoming RPC call
javax.servlet.ServletException: Client did not send 142 bytes as
expected
at com.google.gwt.user.server.rpc.RPCServletUtils.readContentAsUtf8
(RPCServletUtils.java:148)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.readContent
(RemoteServiceServlet.java:335)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:77)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)

very rarely and it is not reproducible. I have seen posts earlier but
none of them justify the reason for it.

Appreciate if I can get some information:

1. Is it with the this version of GWT or related software, will
upgrading help?
2. How often you get this error?
3. Any more workaround?

Environment:
Client: ie 6
Server: GlassFish 2, GWT 1.5.3. Java 5
-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Cross Domain Scripting

2009-12-23 Thread Vishal
I have an html page on a loaded on  xxx.somedomain:301/some.html

This html has
script type=text/javascript language=javascript src=http://
yyy.somedomain:301/g-control/gwtc/z/z.nocache.js
document.domain = 'somedomain:301';
  /script

and thus has to load up a GWT generated nocache.js.
I have the
add-linker name=xs/
added to the GWT.xml to allow Cross Domain Scripting.


I am able to execute the nocache.js , but any RPC fail with

com.google.gwt.http.client.RequestPermissionException:
The URL http://yyy.somedomain:301/g-control/actionservice.foundation
is invalid or violates the same-origin security restrictionCaused by:
com.google.gwt.http.client.RequestException:


What am I doing wrong here ?

--

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




Re: Cross Domain Scripting

2009-12-23 Thread Vishal
Thank u for the corrections and your response.

To further clarify our problem domain.  We want a Microsoft .NET based
application to run our GWT app and and that server is on
xxx.somedomain.com.  To load up our GWT app , we wanted to source in
the cache.js and subsequent data transfers through RPC  from our java
based tomcat server , in the same domain but on a different host
yyy.somedomain.com. If I understood u correctly, the architecture that
will bypass SOP would be

* Create a Relay/Proxy on xxx.somedomain.com.. it is a IIS server and
no servlets on that host.
* The Relay as a relay should do , forwards the request ( any
request ) to yyy.somedomain.com.
* In the html src=http:// xxx.somedomain/g-control/gwtc/z/
z.nocache.js.
  This when loaded by the IIS server , actually relays the request to
yyy.somedomain.com.
* Any RPC executed on behalf of the downloaded js , will be to
xxx.somedomain relayed to yyy.somedomain.com

And thus we bypass SOP.

Have I understood this correctly.. ( even though it seems I have just
repeated your post ) and is it a well known practice top beat SOP ?





On Dec 23, 10:15 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 23 déc, 15:18, Vishal vishal.santo...@gmail.com wrote:

  I have an html page on a loaded on  xxx.somedomain:301/some.html

  This html has
  script type=text/javascript language=javascript src=http://
  yyy.somedomain:301/g-control/gwtc/z/z.nocache.js
              document.domain = 'somedomain:301';
    /script

 Well, first, this document.domain thing won't be executed, it has to
 be in a separate script element (you cannot have both a src= and
 inline script). And it would actually have no effect in your case.

  and thus has to load up a GWT generated nocache.js.
  I have the
      add-linker name=xs/
  added to the GWT.xml to allow Cross Domain Scripting.

  I am able to execute the nocache.js , but any RPC fail with

  com.google.gwt.http.client.RequestPermissionException:
  The URLhttp://yyy.somedomain:301/g-control/actionservice.foundation
  is invalid or violates the same-origin security restrictionCaused by:
  com.google.gwt.http.client.RequestException:

  What am I doing wrong here ?

 It just cannot work that way.You'd have to make requests to
 xxx.somedomain:301 (either hosting your RPC servlets on xxx.somedomain
 or setting up a proxy on xxx.somedomain to relay requests to
 yyy.somedomain); the xs linker only allows you to load the GWT app
 from another domain, but it doesn't bypass the Same-Origin Policy.
 Seehttp://code.google.com/webtoolkit/doc/latest/FAQ_Server.html#What_is_...

--

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




To add checkbox , and text box to the horizontal layout in Dynamic Form

2009-09-30 Thread Vishal

Hi ,

I just want to know how to add a checkbox and a textbox in the same
row in Dynamic Form. I mean it is not showing with proper alignment.
Please tell how to use that. So for adding members in same row for
Dyanmic row other than buttons what should be done ?

--~--~-~--~~~---~--~~
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: Eclipse - debugging gwt app

2009-06-09 Thread Vishal Singh

I am also facing the same problem. The application does not stop at
the break points.

Vishal

On Jun 9, 5:07 pm, Peter Kirklewski pkirklew...@gabaedevelopment.com
wrote:
 There is no such ting as a dumb question mate :)

 Being in Java EE perspective I right click on the project and then Debug
 As  Web Application. This gives me a browser (jetty) window from witch
 I need to click a button which starts the method I'm trying to debug.
 I also tried  to open the Debug perspective and go to Run  Debug
 (Debug as = none applicable) with exactly the same effect.
 The application just doesn't stop on the breakpoints.

 Regards

 Peter

 Keith Whittingham wrote:
  Dumb question but did you start your app by running it or in debug mode?
  __
  Keith Whittingham
  Eichstrasse 3, CH-8135, Langnau am Albis
 http://www.whittingham.ch
  keithwhitting...@mac.com
  (M) +41 79 820 6216

  On Jun 9, 2009, at 1:54 PM, Peter Kirklewski wrote:

  Hi there

  I created some breakpoints and am trying to run a debug but nothing
  happens.
  The program ends and eclipse doesnt switch to debug mode or stop on
  the
  brakpoints.
  I have put the breakpoint on this line:    System.out.println(RUNNING
  PSQLConnection());
  And I get the message in the console but the debuger doesn't stop the
  application.

  What am I dooing wrong please ?

  Best regards

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



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