Re: Typo @ Product Overview

2009-05-30 Thread Bakulkumar

Great Catch !!!

On May 29, 10:03 pm, Murilo Juchem  wrote:
> "edit - ***refesh*** - view"
>
> @
>
> How Google Web Toolkit works
>
> With Google Web Toolkit (GWT), you write your AJAX front-end in the
> Java programming language which GWT then cross-compiles into optimized
> JavaScript that automatically works across all major browsers. During
> development, you can iterate quickly in the same "edit - ***refesh***
> - view" cycle you're accustomed to with JavaScript, with the added
> benefit of being able to debug and step through your Java code line by
> line. When you're ready to deploy, GWT compiles your Java source code
> into optimized, standalone JavaScript files. Easily build one widget
> for an existing web page or an entire application using Google Web
> Toolkit.
>
> http://code.google.com/webtoolkit/overview.html
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to include java project to GWT1.6 Module

2009-05-30 Thread Bakulkumar

you also need to make entry in module.gwt.xml file for inheritance.

For example:

 

Thanks,
Bakul

On May 30, 8:10 am, Sagar  wrote:
> Hello All,
> I am having a GWT1.6 module running fine. But now i want to add some
> external java projects to this as inherited modules.
> I am using eclipse and have updated classpath with the inherited
> projects in build path setting.
>
> Kindly suggest me how to make the necessary changes.
>
> Regards,
> 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: debugging doesn't work with -noserver

2009-05-30 Thread Bakulkumar


Are you trying to debug code with in module.client.* package or code
out side of that module (Serer code)?

If you want to debug code out side of module.client.* package, you
need to start server in debug mode, if its in module.client.* package
hosted mode will stop at the specified breakpoint.

Thanks,
Bakul

On May 30, 11:31 am, "ahhat...@gmail.com"  wrote:
> Hello,
> When I use -noserver and use the gwt app with another server, in
> hosted mode it works normally but doesn't stop at the breakpoints set
> from eclipse.
> Is there anything  I may have missed ? Or anything I could do?
> Thank you in advance.
> Ahmed
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Communication from GWT Module (main application window) to new child Window and vice versa

2009-03-27 Thread Bakulkumar

Hi,

I am creating a child Window using Window.oper("Url",...);

I need:

1 - a handler of this child window to close it from my GWT module code
2 - In child window need a handler of GWT module (main application
window) to call some functionality in main application
Over here I think I need to get parent handler
using window.handler from child window , get the gwt module div, and
then call GWT Function. But I don't have any idea on how to do it as
of now.

Any suggestions, thoughts and sample will be appreciated.

Thanks,
Bakul.


--~--~-~--~~~---~--~~
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: FlexTable issues

2009-02-22 Thread Bakulkumar

Hi,

Set the name of textbox as an id of the record (or DTO, whatever you
call it).

and then:

textBox.addKeyboardListener(new KeyboardListenerAdapter() {
  public void onKeyPress(Widget sender, char keyCode, int
modifiers) {
if (keyCode == (char) KEY_TAB){
  // TextBox.cancelKey() suppresses the current keyboard
event.
  String recordId = ((TextBox)sender).getName();
  // call the service with this id and on success update the
row

}
  }
});
Hope it should work.

-Bakul kumar

On Feb 20, 3:59 pm, NewToGWT  wrote:
> Hello,
>
> I have a FlexTable, the first column of each row in the FlexTable is a
> TextBox.
>
> I am calling a service to update the other elements (columns) of the
> FlexTable row based on what the user keyed into the text box in that
> row.
>
> The question I have is: How do I determine which row in the FlexTable
> the user keyed into and tabbed off of? I have  a keyboard listener
> attached to the TextBox. Using this istener, I am unable to figure out
> which row in the FlexTable was modified.
>
> Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT

2009-01-06 Thread Bakulkumar

Can you post your run command?

On Jan 5, 12:21 pm, ALPER  wrote:
> Hello, i get this error when compile my web project on eclipse
> -style should be followed by one of
>   OBF, PRETTY, or DETAILED
> Google Web Toolkit 1.5.3
> GWTShell [-port port-number | "auto"] [-noserver] [-whitelist
> whitelist-string] [-blacklist blacklist-string] [-logLevel level] [-
> gen dir] [-out dir] [-style style] [-ea] [url]
>
> where
>   -port       Runs an embedded Tomcat instance on the specified port
> (defaults to )
>   -noserver   Prevents the embedded Tomcat server from running, even
> if a port is specified
>   -whitelist  Allows the user to browse URLs that match the specified
> regexes (comma or space separated)
>   -blacklist  Prevents the user browsing URLs that match the specified
> regexes (comma or space separated)
>   -logLevel   The level of logging detail: ERROR, WARN, INFO, TRACE,
> DEBUG, SPAM, or ALL
>   -gen        The directory into which generated files will be written
> for review
>   -out        The directory to write output files into (defaults to
> current)
>   -style      Script output style: OBF[USCATED], PRETTY, or DETAILED
> (defaults to OBF)
>   -ea         Debugging: causes the compiled output to check assert
> statements.
> and
>   url         Automatically launches the specified URL
--~--~-~--~~~---~--~~
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.xml not on your class path

2009-01-06 Thread Bakulkumar

Whats your directory Structure?

if com.sandde.transfer is with in src folder, add ./src in VM
Arguments text box of Arguments Tab of run configuration.

-Bakul

On Jan 6, 12:55 am, Sandeep  wrote:
> Hi,
> I have created a GWT RPC application. It runs fine when i deploy it in
> sepetrate Tomcat and when i run it using .shell command. But when i
> try to run it using Run->Configuration of eclipse it gives me an error
> saying that [ERROR] Unable to find 'com/sandeep/transfer/
> StringReverse.gwt.xml' on your classpath; could be a typo, or maybe
> you forgot to include a classpath entry for source?
>
> What this error means?I have added the source of my project in
> ClassPath for Run configuration. where else i have to add it.When we
> run the application in Hosted Mode using Run configuration where does
> it looks for .gwt.xml file.
>
> 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: IncompatibleRemoteServiceException - after adding a 2nd method to my service interface

2009-01-06 Thread Bakulkumar

Do u have Service and ServiceAsync interface in other projects? If
yes, then you forgot to export the compiled jar of it in to web-app's
WEB-INF/lib directory.

-Bakul.

On Jan 6, 11:13 am, Nick  wrote:
> Ok, let me add on something else I've found.  I've not removed the
> getSessionIdStr() which was causing my problems.  Of course everything
> works again.
> Next I've made a change to the original method that did work.  I
> changed:
> getMyEvents(int num)
> to
> getMyEvents(int num, boolean b)
>
> Of course I made the changes in all files so it would compile and run
> in hosted browser, but it gives me the same exception when running in
> an outside tomcat.  Could
> not locate requested method getMyEvents(int num, boolean b).
>
> I rebooted my server and still nada.  I have to be missing something
> simple...any clues?
--~--~-~--~~~---~--~~
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: MessageBox Image issued

2008-12-19 Thread Bakulkumar

Clear Firefox cache, redeploy the application and request.

Thanks,
Bakul.

On Dec 19, 12:27 am, "AMit Pandey"  wrote:
> Hello I am using the GWT with Ext.
>
> when i run the code in firefox i am unable to see the images of Messagebox.
> that display in gray shade. i also uploaded the screen shot of MessageBox.
>
> pls help me out.i think firefox is not find that images so it render the
> default images
>
> Thanks
> AMit
>
>  gwt-ext-image.JPG
> 6KViewDownload
--~--~-~--~~~---~--~~
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: window;open in the same window

2008-12-18 Thread Bakulkumar

try with :

HTML pdfExport = new HTML(" Export to PDF");
panel.add(pdfExport);

-Bakul

On Dec 18, 3:09 pm, rakesh wagh  wrote:
> Window.open("http://url";,       "_self", "");
>
> On Dec 18, 12:11 pm, arnaud  wrote:
>
> > Hi every one,
> > at the moment i can open a new window that contains the pdf document
> > and it's properties in the new winddows by using  window.open
> > I want to open the same document but not in a new window.How can i do?
> > Sincerly
> > Arnaud
--~--~-~--~~~---~--~~
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: tomcat deploy failed

2008-12-18 Thread Bakulkumar

Your servlet mapping is wrong. The module name should not be there in

Try with :


   LoginService
   /LoginService
 
  
   ItinerarioService
   /ItinerarioService
 

+Bakul

On Dec 18, 2:33 pm, "David Durham, Jr." 
wrote:
> On Thu, Dec 18, 2008 at 1:07 PM, rizla  wrote:
>
> > Hi to everyone :D
> > I want to deploy my gwt project in Tomcat...I've read the tutorial at:
>
> >http://code.google.com/intl/it-IT/docreader/#p=google-web-toolkit-doc...
>
> > but Tomcat don't requests the servlets :(
>
> Does Tomcat deploys the servlets?
>
> Does browser requests the Tomcat? :)
>
> Maybe check your tomcat logs.
>
> -Dave
--~--~-~--~~~---~--~~
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: splitting client, RPC and server in different eclipse projects?

2008-10-24 Thread Bakulkumar

If you have all project in the same workspace, and you are dividing it
only for convenience and not for reusability in other application, you
may not need to have many *.gwt.xml file.

Modify your *-compile.cmd file as follow:
@java -cp "%~dp0\src;%~dp0\..\app-common\src;%~dp0\..\app-rpc\src;C:/
usr/local/java/gwt-windows-1.4.61/gwt-user.jar;C:/usr/local/java/gwt-
windows-1.4.61/gwt-dev-windows.jar" com.google.gwt.dev.GWTCompiler -
out "%~dp0\www" %* com.bk.GWTPOC

GWTPOC is name of my gwt module and app-common, app-rpc are the name
of folder of relavent project.

+Bakul+

On Oct 22, 6:02 pm, "olivier nouguier" <[EMAIL PROTECTED]>
wrote:
> 2 points:
> * If you've split your source in 2 part you must now have 2 module.gwt.xml,
> one (Lib) inheriting of the other (App).
> * At gwt compile time the *source* must be found (added)  in the classpath.
>
>
>
> On Wed, Oct 22, 2008 at 10:26 PM, TomJanssens <[EMAIL PROTECTED]> wrote:
>
> > Hello all,
>
> > I am trying to split the client, RPC and server code in different
> > eclipse projects. Is this possible? Before I splitted the code it was
> > working fine, however after splitting it in multiple projects I get
> > the following errors.
>
> > [TRACE] Removing units with errors
> > [ERROR] Errors in 'file:/C:/workspace/grivio-client/src/com/blugri/
> > client/preferencesmodule/PreferencesModule.java'
> > [ERROR] Line 10: No source code is available for type
> > com.blugri.client.preferencesmodule.PreferencesServiceAsync; did you
> > forget to inherit a required module?
> > [ERROR] Line 31: No source code is available for type
> > com.blugri.client.preferencesmodule.PreferencesService; did you forget
> > to inherit a required module?
>
> > Can anbody tell me what I am forgetting?
>
> > Another change which I did at the same time was updating gwt, gwt-ext
> > and gwt-ext-ux to the latest version. I am also getting this error:
>
> > [TRACE] Removing units with errors
> > [ERROR] Errors in 'jar:file:/C:/workspace/grivio-client/lib/
> > gwtextux.jar!/com/gwtextux/client/widgets/upload/SwfUploadPanel.java'
> > [ERROR] Line 81: Cannot reduce the visibility of the inherited method
> > from GridPanel
>
> > Cheers
> > Tom
>
> --
> Si l'ignorance peut servir de consolation, elle n'en est pas moins
> illusoire.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: RPC fails under Tomcat

2008-10-24 Thread Bakulkumar

did you added gwt-servlet.jar in application lib dir or somewhere in
classpath?

+Bakul+

On Oct 22, 11:57 pm, Barry <[EMAIL PROTECTED]> wrote:
> Hi ...
>
> I have an RPC that is working fine in host mode but fails in web mode
> and I don't know what to do to troubleshoot it. On the client, I get a
> message box that says "Failure:
> com.google.gwt.user.client.rpc.StatusCodeException: The call failed on
> the server; see server log for details".
>
> A few questions:
>
> 1) What log would it be referring to??
>
> 2) How does one debug server-side code running under Tomcat?? Is
> Eclipse any help here??
>
> 3) In fact, there's something failing in the server-side code being
> called by the RPC. If I comment out the guts of this function, I get a
> clean return, but no work done. I conclude that some horrible
> exception is occurring in the server-side code ... something that
> evades even an Exception try/catch handler. The problem appears to be
> in a CXF call to a web service.
>
> Could there be something terribly abusive inflicted on me from CXF??
>
> Thanks for the 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: onTabSelected change the TabBar widget

2008-10-24 Thread Bakulkumar

try adding image on tab bar and then change the url of image on tab
change.

Like:
Image[] images = new Image[n];
images[0] = new Image();
img1.setURL("active.png");
tabBar.addTab(img1);

images[1] = new Image();
images[1].setURL("inactive.png");
tabBar.addTab(images[1]);

and so on for rest of the tab.

and then on tabChange:

public void onTabSelected(SourcesTabEvents bar, int index) {
images[index].setURL("active.png");
 //set url of other images to 'inactive.png'
}


-Bakul



On Oct 23, 9:44 am, ArunDhaJ <[EMAIL PROTECTED]> wrote:
> Hi All,
> On selecting a TabBar how to change the Widget?
>
> Actually I'm having 3 sets of picture to show the TabBar in selected
> mode and another 3 sets of picture for TabBar in unselected mode.
>
> Upon loading I'm creating an HTML widget with tab_left, tab_center and
> tab_right image and repeating tab_center image till the required
> length.
>
> When I select the TabBar I need to create another HTML widget with the
> other three sets of images.
>
> Using style sheet we can specify only one image but in my case I need
> to replace 3 images.
>
> How to change the HTML widget in selected state to unselected state?
>
> In TabListener's onTabSelected event we can only get the HTML using
> tabPanel.getTabBar().getTabHTML(tabIndex));
>
> is there any way to set the HTML??
>
> Thanks in Advance !
> -ArunDhaJ
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to pass Session in two different GWT application

2008-10-24 Thread Bakulkumar

You need to have SSO(http://en.wikipedia.org/wiki/Single_sign-on)
configured on your server

for tomcat sso configuration, please look at
http://tomcat.apache.org/tomcat-5.5-doc/config/host.html

Thanks,
Bakul.

On Oct 23, 12:03 pm, lalit <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have three GWT application[ A, B and C] . All these three
> application having login screen. My requirment is that if User already
> logged in Application 'A' then he should be able to move on
> application B and C without making a login for B and C.
>
> Suppose after login for A, A application having two click buttton to
> move on B or C.
>
> Please could you help to find out the solution.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT start

2008-10-24 Thread Bakulkumar

Check the permission on that file.

Thanks,
Bakul.

On Oct 24, 4:21 am, tojassl0l <[EMAIL PROTECTED]> wrote:
> Hello guys!
>
> I am stucked at the beginning. :>
> I downloaded the GWT package, and as the Quick Start guide said I
> tried to run Mail-shell command. But I got this error:
>
> gwt-linux-1.5.3/mozilla-1.7.12/libxpcom.so: libstdc++.so.5: cannot
> open shared object file: No such file or directory
>         at java.lang.ClassLoader$NativeLibrary.load(Native Method)
>         at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
>         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)
>         at java.lang.Runtime.load0(Runtime.java:770)
>         at java.lang.System.load(System.java:1005)
>         at
> com.google.gwt.dev.shell.moz.MozillaInstall.load(MozillaInstall.java:
> 190)
>         at com.google.gwt.dev.BootStrapPlatform.init(BootStrapPlatform.java:
> 49)
>         at com.google.gwt.dev.GWTShell.main(GWTShell.java:354)
>
> The problem is that I checked and the file is there... So it isn't
> true that "No suh file or directory"
> I am using Ubuntu 8.04.
> Maybe guys... can you help me with 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: fileupload not submitting

2008-10-09 Thread Bakulkumar

Or simply try it by

 form.setAction("ImageUpload.do");

it works for me.

Thanks,
Bakul.


On Oct 9, 10:15 am, Bakulkumar <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I doubt about the form's action URL
>
> Can you check the action value by
>
> Window.alert(GWT.getModuleBaseURL() + "ImageUpload.do");
>
> on click of button.
>
> Let me know how it goes.
>
> thanks,
> Bakul
>
> On Oct 9, 9:20 am, YB <[EMAIL PROTECTED]> wrote:
>
> > It's an existing servlet. I can access it 
> > withhttp://localhost/app-name/ImageUpload.do
> > on my browser.
> > So for url i have tried providing it 
> > explicitlyhttp://localhost/app-name/ImageUpload.do,
> > relative /app-name/ImageUpload.do
> > I have also tried without the FileUpload object, with a text field, a
> > simple post to some other existing servlets in my app - no activity.
> > Also, that Window.alert never pops up.
>
> > On Oct 9, 2:53 am, mon3y <[EMAIL PROTECTED]> wrote:
>
> > > Are you sure you need that "ImageUpload.do");
> > > should it not be "ImageUpload"); ??
>
> > > On Oct 9, 8:21 am, mon3y <[EMAIL PROTECTED]> wrote:
>
> > > > Does that Window.alert pop up?
>
> > > > If not:
> > > > 1)Did you map the servlet in  your xml?
> > > > 2) There's an error on your server side
> > > > 3)It doesn't find your server class that handles the upload
>
> > > > If it does:
> > > > *shrug*
>
> > > > On Oct 9, 6:48 am, YB <[EMAIL PROTECTED]> wrote:
>
> > > > > Hi,
> > > > > My file upload not submitting. Form handler is printing out the debugs
> > > > > when i click submit, but the server is not registering any activity.
> > > > > No errors in the log on client or server.
>
> > > > > the code:
> > > > > final FormPanel form = new FormPanel();
> > > > >                 form.setAction(GWT.getModuleBaseURL() + 
> > > > > "ImageUpload.do");
> > > > >             form.setEncoding(FormPanel.ENCODING_MULTIPART);
>
> > > > >                 form.setMethod(FormPanel.METHOD_POST);
> > > > >             VerticalPanel panel = new VerticalPanel();
> > > > >             form.setWidget(panel);
>
> > > > >             FileUpload upload = new FileUpload();
> > > > >             upload.setName("uploadFormElement");
> > > > >             panel.add(upload);
> > > > >             panel.add(new Button("Submit it ", new 
> > > > > ClickListener() {
> > > > >                 public void onClick(Widget sender) {
> > > > >                         System.out.println("onClick() called");
> > > > >                         form.submit();
> > > > >                 }
> > > > >             }));
>
> > > > >             form.addFormHandler(new FormHandler() {
> > > > >                 public void onSubmit(FormSubmitEvent event) {
> > > > >                         System.out.println("form handler onSubmit() 
> > > > > invoked");
> > > > >                         System.out.println("event: " + event);
> > > > >                         System.out.println("event.isCanceled: " +
> > > > > event.isCancelled());
> > > > >                 }
> > > > >                 public void onSubmitComplete(FormSubmitCompleteEvent 
> > > > > event) {
> > > > >                     Window.alert(event.getResults());
> > > > >                 }
> > > > >             });
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: fileupload not submitting

2008-10-09 Thread Bakulkumar


Hi,

I doubt about the form's action URL

Can you check the action value by

Window.alert(GWT.getModuleBaseURL() + "ImageUpload.do");

on click of button.

Let me know how it goes.

thanks,
Bakul


On Oct 9, 9:20 am, YB <[EMAIL PROTECTED]> wrote:
> It's an existing servlet. I can access it 
> withhttp://localhost/app-name/ImageUpload.do
> on my browser.
> So for url i have tried providing it 
> explicitlyhttp://localhost/app-name/ImageUpload.do,
> relative /app-name/ImageUpload.do
> I have also tried without the FileUpload object, with a text field, a
> simple post to some other existing servlets in my app - no activity.
> Also, that Window.alert never pops up.
>
> On Oct 9, 2:53 am, mon3y <[EMAIL PROTECTED]> wrote:
>
> > Are you sure you need that "ImageUpload.do");
> > should it not be "ImageUpload"); ??
>
> > On Oct 9, 8:21 am, mon3y <[EMAIL PROTECTED]> wrote:
>
> > > Does that Window.alert pop up?
>
> > > If not:
> > > 1)Did you map the servlet in  your xml?
> > > 2) There's an error on your server side
> > > 3)It doesn't find your server class that handles the upload
>
> > > If it does:
> > > *shrug*
>
> > > On Oct 9, 6:48 am, YB <[EMAIL PROTECTED]> wrote:
>
> > > > Hi,
> > > > My file upload not submitting. Form handler is printing out the debugs
> > > > when i click submit, but the server is not registering any activity.
> > > > No errors in the log on client or server.
>
> > > > the code:
> > > > final FormPanel form = new FormPanel();
> > > >                 form.setAction(GWT.getModuleBaseURL() + 
> > > > "ImageUpload.do");
> > > >             form.setEncoding(FormPanel.ENCODING_MULTIPART);
>
> > > >                 form.setMethod(FormPanel.METHOD_POST);
> > > >             VerticalPanel panel = new VerticalPanel();
> > > >             form.setWidget(panel);
>
> > > >             FileUpload upload = new FileUpload();
> > > >             upload.setName("uploadFormElement");
> > > >             panel.add(upload);
> > > >             panel.add(new Button("Submit it ", new ClickListener() {
> > > >                 public void onClick(Widget sender) {
> > > >                         System.out.println("onClick() called");
> > > >                         form.submit();
> > > >                 }
> > > >             }));
>
> > > >             form.addFormHandler(new FormHandler() {
> > > >                 public void onSubmit(FormSubmitEvent event) {
> > > >                         System.out.println("form handler onSubmit() 
> > > > invoked");
> > > >                         System.out.println("event: " + event);
> > > >                         System.out.println("event.isCanceled: " +
> > > > event.isCancelled());
> > > >                 }
> > > >                 public void onSubmitComplete(FormSubmitCompleteEvent 
> > > > event) {
> > > >                     Window.alert(event.getResults());
> > > >                 }
> > > >             });
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Remote exception cause is lost during serialization

2008-09-29 Thread Bakulkumar

We are using the following approach.

1 - On serverside, MyException is generated as we generate any other
exception

2 - On Frontend, get the message using myExcepiton.getExcMessage();

Let me know if it help.

+Bakul+



public class MyException extends Exception  implements IsSerializable
{

private static final long serialVersionUID = -3821801999548017773L;

private String excMessage;

public MyException () {
}

public MyException (String message) {
super(message);
excMessage = message;
}

public MyException (Throwable cause) {
super(cause);
}

public MyException (String message, Throwable cause) {
super(message, cause);
excMessage = message;
}

public String getExcMessage(){
return excMessage;
}

}

On Sep 29, 10:18 am, Andrey <[EMAIL PROTECTED]> wrote:
> Hello!
>
> When an exception is thrown on server while handling RPC call, I set
> its cause to informative exception (i.e. database exception) and I
> want to use this information on client.
>
> While on server I can see the cause and print it, but when exception
> gets to the client cause is set to null !
>
> Why isn't exception cause serialized along with exception message and
> stack trace?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: FlexTable odd behavior

2008-09-29 Thread Bakulkumar

Can you post code or sample of the code?

FlexTable table = new FlexTable();
table.setText(0,0,"hello");
table.setWidget(0,1, new Label("World");
table.setWidget(0,2, new TextBox());

perfectly works for me.

+Bakul Kumar+

On Sep 29, 1:12 pm, Grundle <[EMAIL PROTECTED]> wrote:
> After trying the suggestion to use pixels instead of percent in the
> flexTable.setWidth() method I have determined that the same error as
> before repeats.
>
> flexTable.setText(0, 0, "foo");
>
> appears easily, but any instance of
>
> flexTable.setWidget(0, 0, new Label("foobar));
>
> where anything is put into the Widget, will not appear.
>
> Any thoughts or advice?
>
> On Sep 29, 11:45 am, Grundle <[EMAIL PROTECTED]> wrote:
>
> > Srini,
>
> > Thanks I will try that and let you know what happens.  This still does
> > not adequately explain to me why a Text portion will show up, but not
> > a widget, including a Label widget that contains text.  What is
> > different about setText and setWidget that a pixel width setting would
> > make a noticeable difference?
>
> > -Zach
>
> > On Sep 29, 11:28 am, Srini Marreddy <[EMAIL PROTECTED]> wrote:
>
> > > Try setting FlexTable width in pixels instead of 100%.(Some times 100%
> > > of nothing is 0px depending on your layout)
>
> > > flexTable.setWidth("200px");
>
> > > -Srini
>
> > > On Sep 29, 9:59 am, Grundle <[EMAIL PROTECTED]> wrote:
>
> > > > I am currently developing an application where GWT has been the
> > > > primary API.  So far things have gone fairly well until I began trying
> > > > to implement a data entry portion.  I am experience strange behavior
> > > > with FlexTable where if I use
>
> > > > FlexTable.setText(0, 0, "foo");
> > > > FlexTable.setText(0, 1, "bar");
>
> > > > The data shows up as intended.  However if I do
>
> > > > FlexTable.setWidget(0, 0, new Label("FooBar"));
> > > > FlexTable.setWidget(0, 1, new TextBox());
>
> > > > suddenly the components are not appearing on the screen.  I cannot
> > > > figure out why setText data appears, but setWidget does not want to
> > > > render.  I experienced the same behavior using Grid as well, so I am
> > > > at the point where I feel like I have missed something obvious.  I
> > > > feel like I have tried everything, such as TextBox.setVisible() ,
> > > > TextBox.setVisibleSize("5"), FlexTable.setWidth("100%").
>
> > > > This really makes no sense.  As for the other Widgets/Panels that are
> > > > being used see the following:
>
> > > > Specifically I am adding the FlexTable to a VerticalPanel, which is
> > > > then being added to a DockPanel.
>
> > > > i.e.
>
> > > > VerticalPanel.add(FlexTable);
> > > > DockPanel.add(VerticalPanel, DockPanel.CENTER);
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Getting continued feedback on the state of a RPC call

2008-09-24 Thread Bakulkumar

I think its an issue of threading on server side.

This is how it works for me !!! By clicking on button "Get Service
message".

Let me know if it works for you.

+Bakul Kumar+

//Client side code :
public class POC implements EntryPoint {

Label lblMessage;
Timer timer = new Timer() {
public void run() {
StockServiceAsync service = new StockServiceRPC()
.getStockServiceAsync();
service.getMessage(new AsyncCallback(){
public void onSuccess(String result) {
lblMessage.setText("Comp Message : " + 
result);
}

public void onFailure(Throwable caught) {
Window.alert("Call Failed on 
Server");
}
});
};
};

public void onModuleLoad() {
Image img = new Image(

"http://code.google.com/webtoolkit/logo-185x175.png";);
Button button = new Button("Click me");


button.addStyleName("pc-template-btn");

img.getElement().setId("pc-template-img");

VerticalPanel vPanel = new VerticalPanel();
vPanel.setWidth("100%");
vPanel.setHorizontalAlignment(VerticalPanel.ALIGN_CENTER);
vPanel.add(img);
vPanel.add(button);

Button serviceButton = new Button("Get Service Message");
vPanel.add(serviceButton);
serviceButton.addClickListener(new ClickListener() {
public void onClick(Widget sender) {
timer.scheduleRepeating(1000);
StockServiceAsync service = new 
StockServiceRPC()
.getStockServiceAsync();  
//This one do the job of setting the
entry point for RPC call
service.longComputation(new 
AsyncCallback() {
public void onSuccess(String result) {
timer.cancel();
Window.alert("Long Comp Message 
: " + result);
}


public void onFailure(Throwable caught) 
{
timer.cancel();
Window.alert("Call Failed on 
Server");
}
});
}
});

lblMessage = new Label("Message");
vPanel.add(lblMessage);

// Add image and button to the RootPanel
RootPanel.get().add(vPanel);

// Create the dialog box
final DialogBox dialogBox = new DialogBox();
dialogBox.setText("Welcome to GWT!");
dialogBox.setAnimationEnabled(true);
Button closeButton = new Button("close");
VerticalPanel dialogVPanel = new VerticalPanel();
dialogVPanel.setWidth("100%");
dialogVPanel.setHorizontalAlignment(VerticalPanel.ALIGN_CENTER);
dialogVPanel.add(closeButton);

closeButton.addClickListener(new ClickListener() {
public void onClick(Widget sender) {
dialogBox.hide();
}
});

// Set the contents of the Widget
dialogBox.setWidget(dialogVPanel);

button.addClickListener(new ClickListener() {
public void onClick(Widget sender) {
dialogBox.center();
dialogBox.show();
}
});
}
}


Server side code


public class StockServiceImpl extends RemoteServiceServlet implements
StockService {

private static final long serialVersionUID = 1L;

String message;

public StockPrice getPrices(String[] symbols) {
return new StockPrice("LEH", 0.0);
}

public String longComputation(){

for(long i = 0; i < 10; i++){
message = " Iteration # " + i;
try {
Thread.sleep(2000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}

return "BK Rocks !!!, Calculation Completes";
}

public String getMessage(){
final StringBuffer