Re: Gwt 2.4 browser compatibility

2018-07-11 Thread Satya Atluri
I am tried to upgrade to gwt 2.8.2 but I am getting gwt compilation error.
We are using Ant.

On Mon, Jul 9, 2018 at 10:20 AM Frank  wrote:

> And updating to GWT 2.8.2 should be a fairly quick and easy process if you
> are concerned about this.
>
> --
> 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.
>

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


I want to do POC with gwt-spring-hibernate

2011-09-09 Thread satya t
Hi,

Please any one give information or good simple project with gwt-spring-
hibernate integration.

Regards,
Satya.

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



Ant Build.xml

2010-04-08 Thread satya narayana
Hi All,


  I created a sample GWT Prokject in my eclipse and i run the applcation in
developing mode it is working. Now i want to run it in Tomcat server in
deploying mode for which i need build.xml . I googled it and i found the
file and when i try with compile.gwt there are 56 errors , but when i do the
same using Project -RightClick and Goole-Compile GWT it is not showing any
errors.


Now i want a .war so that i can deploy it in server . Please help me in this
regard.


Thank you
Satya

-- 
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: TabLayoutPanel doesn't show its content

2010-01-02 Thread Satya
I am also facing this problem.
Is there any working example that uses TabLayoutPanel?


On Dec 17 2009, 5:50 pm, paloalto team bpodevt...@gmail.com wrote:
 Set the height of the TabLayoutPanel to something. (100%, or value-
 unit)

 (via class .gwt-TabLayoutPanel)

 This is because the header and all child containers are absolutely
 positioned.

 On Dec 17, 6:54 am, mariyan nenchev nenchev.mari...@gmail.com wrote:



  Hi,

  I tried to use TabLayoutPanel, but it doesn't show its widget.
  From fire bug i can see that the content of the both my tabs is
  overflow:hidden
  I attached Web Application project(eclipse project, that uses GEP)

  And here is may code:

  public class TabTest implements EntryPoint {

      public void onModuleLoad() {
          RootPanel.get(test).setSize(600px, 600px);
          final TabLayoutPanel tab = new TabLayoutPanel(50, Unit.PX);
          tab.add(new HTML(asdasdssd), test1);
          tab.add(new HTML(asdasdssd), test2);
          tab.selectTab(0);

          RootPanel.get(test).add(tab);
      }

  }

  and my css

  .gwt-TabLayoutPanelTab,.gwt-TabLayoutPanelTab-selected {
      height: 25px;

  }

  .gwt-TabLayoutPanelTab-selected .gwt-TabLayoutPanelTabInner {
      height: 26px;
      margin-left: 6px;
      background: transparent url(tab-active-right.gif) no-repeat scroll right
  0;

  }

  .gwt-TabLayoutPanelTab {

  }

  .gwt-TabLayoutPanelTab .gwt-TabLayoutPanelTabInner {
      margin-right: 10px;
      margin-left: 6px;

  }

  .gwt-TabLayoutPanelTab-selected {
      background: transparent url(tab-active-left.gif) no-repeat scroll left
  0;
      z-index: 1;

  }

  .gwt-TabLayoutPanelTabs {
      background: transparent url(tabs-bg.png) repeat-x scroll center bottom;
      padding-left: 10px;

  }

  .gwt-TabLayoutPanelTabInner div {
      color: #44;
      font-weight: bold;
      height: 26px;
      padding-top: 6px;
      text-align: center;

  }

  .gwt-TabLayoutPanelTab .gwt-TabLayoutPanelTabInner div {
      background: transparent url(tab-inactive-center.png) repeat-x scroll
          center top;

  }

  .gwt-TabLayoutPanelTab-selected .gwt-TabLayoutPanelTabInner div {
      background: transparent url(tab-active-center.gif) repeat-x scroll
          center top;
      width: 100%;
      margin-left: -3px;
      margin-right: 20px;

  }

  .tabContentWrapper {
      margin: 35px;

  }

   TabTest.zip
  1791KViewDownload

--

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: how to integrate pentaho reports into my GWT application.

2009-12-16 Thread Satya

HI,

Is there any possibility to integrating GWT with pentaho reports ?, if
so please reply me how do we do that thanks in advance.
On Nov 25, 2:59 pm, Satya lakshminat...@gmail.com wrote:
 Hi,
 I am new toGWT, currently I am developing aGWTapplication which has
 to generate reports by taking user input. I wanted to make use 
 ofpentahoreports for that purpose , but I dont know how to 
 integratepentahowithGWT.

 Please help me out with some useful information.
 Thanks in advance.

 Regards,
 Satya Lakshminath.

--

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.




how to integrate pentaho reports into my GWT application.

2009-11-25 Thread Satya
Hi,
I am new to GWT, currently I am developing a GWT application which has
to generate reports by taking user input. I wanted to make use of
pentaho reports for that purpose , but I dont know how to integrate
pentaho with GWT.

Please help me out with some useful information.
Thanks in advance.

Regards,
Satya Lakshminath.

--

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: Need Help in setting up GWT

2009-09-03 Thread Satya

Thank you very much. I am going thru these docs and links for
understanding

On Sep 3, 1:16 am, Rahul coolrahul18...@gmail.com wrote:
 HiSatya,

 Here are some tutorials which tell you step by step how to work with
 GWT

 http://code.google.com/webtoolkit/tutorials/1.6/create.html

 also you would also like this, these are some basic tutorials abt gwt

 http://examples.roughian.com/#Home

 On Sep 2, 4:10 am,Satyasatya@gmail.com wrote:

  Hello All,

  My need is to develop a web application with rich UI and deploy onto
  externat server, so i decided to use GWT.
  Can you let me understand in setting up dynamic web project in
  eclipse?

  I tried setting up project using WebAppCreator.cmd from gwt
  distribution but i cannot deploy that onto eclipse-integrated-tomcat-
  server. I created dynamic web project from eclipse but that does not
  run on hosted mode.
  I also created project by using google plugin, but no success on
  running on integrated-tomcat, but i can run this as
  GoogleWebApplication .

  How do I create a project in eclipse and proceed?

  Regards,
 Satya

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



Need Help in setting up GWT

2009-09-02 Thread Satya

Hello All,

My need is to develop a web application with rich UI and deploy onto
externat server, so i decided to use GWT.
Can you let me understand in setting up dynamic web project in
eclipse?

I tried setting up project using WebAppCreator.cmd from gwt
distribution but i cannot deploy that onto eclipse-integrated-tomcat-
server. I created dynamic web project from eclipse but that does not
run on hosted mode.
I also created project by using google plugin, but no success on
running on integrated-tomcat, but i can run this as
GoogleWebApplication .

How do I create a project in eclipse and proceed?

Regards,
Satya

--~--~-~--~~~---~--~~
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: Page navigations in GWT

2009-06-24 Thread satya

Yes, i used a similar approach.
I have a main panel which is always present, and i add and remove
composites on need.

I too have a Search screen, on click on the search button, i remove
the Search composite from the panel and add the search results
composite.

I have a seperate HashMap of composites, instead of creating the
composites every time a button is clicked, i create it once on the
first request and store it in the hashmap, and retrieve it from there.

The login screen is a JSP page, after authentication, i load the main
panel inthe onModuleLoad function.

Hope this helps.

On Jun 22, 11:24 am, mabogie mabo...@gmail.com wrote:
 Well if your entrypoint is the same, you could create 3 composites, 1
 for each page.
 I've never studied doing a login page in gwt, as it seems somewhat
 insecure being all clientside (but I know little about is, and I've
 seen people do it, so ignore this advice).

 Check this video for doing best 
 practices:http://www.youtube.com/watch?v=PDuhR18-EdM

 I would do the search page as stated above, create a searchEvent, a
 searchEventHandler, and either work with a eventbus or, if it's a
 simple app, just register the handler to the search result page, and
 fire the search event with the search button.

 Maarten

 http://www.webspin.be

 On 22 jun, 08:02, Sowjanya Yerramneni y.sowja...@gmail.com wrote:

   Hi,

  I am a struts developer totally new to GWT EXT.
  Could anyone explain how page navigations happen in GWT an how can we pass
  params between pages?
  I am trying to develop a web application where we have a login page, search
  page and search results page.
  Please help.
  --
  -Regards,
  Sowjanya.
--~--~-~--~~~---~--~~
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: hosted mode nothing displayed

2009-06-24 Thread satya

I believe you should have the application name. if Hello is the
application name, then the URL should be:

http://localhost:/Hello/Hello.html

Did you check the entry point in Applicationgwt.xml file?

On Jun 23, 10:56 am, alkatal jassin.mekna...@googlemail.com wrote:
 Hi i m using GWT 1.6.4 under Leopard

 I suddenly have a problem with my application. When i start it in
 hosed mode nothing gets displayed it just get a bank page.
 I tried to run one of the examples : Mail or Hello with ant hosted.
 Same problem nothing gets displayed i just get to the 
 urlhttp://localhost:/Hello.html.
 tried -whitelisthttp://127.0.0.1but still nothing gets displayed.

 Any idea i really need to debug my app.
--~--~-~--~~~---~--~~
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: passing variables

2009-06-24 Thread satya


GWT uses RPC mechanism for communication between server and client.

I would do something like this:
 myserver.getresultsservercall(
new AsyncCallback() {

public void onFailure
( Throwable caught )
{
 }
 public void onSuccess( Object
result )
{
//cast the results to
an array
   //initialize the
com.xxx.login.client.Report composite/panel with this result.

}
);


Regards,
Satya



 I have a connection to a database on the server side, I'm sticking
 results into array,  this is in my com.xxx.login.server.PSQLConnection
 class.
 I also have a class which is responisble for drawing the webpage etc
 com.xxx.login.client.Report.
 I have  no idea at this point how to pass this array from the server to
 the client.

 Any ideas ?

 Help

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



Re: Aligning labels and fields

2009-06-24 Thread satya

I am using a FlexTable and i have more than 10 fields. I too use the
setWidget to see each of my fields.

but i dont set the style for each single field seperately.

Since your input textboxes use the same style and all your labels uses
teh same style:

you can reduce the lines to set styles for these by having a seperate
css file:

say: MyStyle.css and you can include this CSS in your
Application.gwt.xml as
stylesheet src='MyStyle.css' /

and you can define the style as follows:
.gwt-Label {
 //your style for labels
}
.gwt-TextBox {
 //your style for textboxes.
}

Regards,
Satya


On Jun 18, 12:38 pm, hezjing hezj...@gmail.com wrote:
 Hi

 I have been implementing the input form like the following code:

 Label nameLabel = new Label(Name);
  TextBox nameTextBox = new TextBox();

 Label ageLabel = new Label(Age);
  TextBox ageTextBox = new TextBox();

 // we have two labels and two fields, so 2x2
  Grid grid = new Grid(2, 2);
 grid.setWidget(0, 0, nameLabel);
 grid.setWidget(0, 1, nameTextBox );
  grid.setWidget(1, 0, ageLabel);
 grid.setWidget(1, 1, ageTextBox);

  // set the style to every cell
 CellFormatter fmt = grid.getCellFormatter();
  fmt.setStyleName(0, 0, labelStyle);
 fmt.setStyleName(0, 1, inputStyle);
  fmt.setStyleName(1, 0, labelStyle);
 fmt.setStyleName(1, 1, inputStyle);

 I'm using Grid because I want the labels and fields to be aligned.

 The code becomes ugly when there are 10 or more fields!

 Can you share your experience in aligning the labels and fields (form) in
 plain GWT?

 --

 Hez
--~--~-~--~~~---~--~~
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 incubator problems in migration from 1.4 to 1.5

2009-04-29 Thread Satya Bobba

We are using GWT 1.4 and gwt-incubator_1-4_final.jar in our project.
we want to migrate to GWT 1.5 , but we are facing problem in
migration.

i tried with,

1) GWT 1.5 , gwt-incubator_1-4_final.jar  it is unable to generate the
sript file.

TreeLogger is abstract class in GWT 1.5 , but in 1.4 it is interface,
so the gwt-incubator_1-4_final.jar  is excepting that.

2) GWT 1.5 , gwt-incubator.jar(1.5)  it is unable to compile.

Some of the classes are removed from the latest incubator, but our
application is using those classes.



 What are the step required or posible solutions to migrate from gwt
1.4, gwt-incubator_1-4_final.jar  to gwt 1.5, gwt-
incubator_1-4_final.jar(because we are not going use incubators from
now onwards) .


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

2009-04-29 Thread Satya Bobba

is it good to use the incubators in the real projects.

Incubators are not stable and also it is strictly linked with latest
compiler. is it correct.


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



Re: GWT Upgradation error from 1.4 to 1.5/1.6

2009-04-23 Thread Satya Bobba

Hi hazy,

thanks,

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

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

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

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


On Apr 23, 12:16 am, hazy1 matt.egyh...@gmail.com wrote:
 Um, there is probably a new incubator release for 1.6.  Might want to
 try it.

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



  Hi,

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

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

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

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

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

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

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

set border colr onFocus

2009-04-23 Thread satya

Hi,

I need to set the border color to Red on focus for all of my fields. I
added the following in CSS:

.gwt-TextBox:focus {
 border: 1px solid #FF;
}

seems to work in FireFox, but not in IE. Is there any way i can get it
to work for IE?

Thank you very much,
Satya
--~--~-~--~~~---~--~~
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: set border colr onFocus

2009-04-23 Thread satya

I have found that i can have a style defined in CSS Style sheet:

gwt-focus {
 border: 1px solid #FF;

 }

and have this applied to a widget on its focus
for example:  myTextBox.addFoucsListener(new FocusListener){
public void onFocus(Widget arg0) {
// TODO Auto-generated method stub

arg0.addStyleName(gwt-focus);
}

public void onLostFocus(Widget arg0) {
// TODO Auto-generated method stub
arg0.removeStyleName(gwt-focus);
}
});

But it is bad that i have to add the listener for all the widgets that
needs this change. :(

Regards,
Satya


On Apr 23, 2:56 pm, satya satya.mu...@gmail.com wrote:
 Hi,

 I need to set the border color to Red on focus for all of my fields. I
 added the following in CSS:

 .gwt-TextBox:focus {
          border: 1px solid #FF;

 }

 seems to work in FireFox, but not in IE. Is there any way i can get it
 to work for IE?

 Thank you very much,
 Satya
--~--~-~--~~~---~--~~
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: RichTextArea menu bar

2009-04-23 Thread satya

Which version of GWT are you using?

Because, i believe that GWT 1.5 and below, you need to explicitly add
the menu bar.

here is the code:
private VerticalPanel   bodyFormat;
 private RichTextAreabodyFormatArea;
private RichTextToolbar tb;

bodyFormatArea = new RichTextArea();
tb = new RichTextToolbar( bodyFormatArea );

bodyFormat.add( tb );
bodyFormat.add( bodyFormatArea );

Regards,
Satya

On Apr 23, 5:05 am, mkl mark.luebin...@ppi.de wrote:
 Dear Masters,

 after downloading GWT I tried out different widgets. And promptly got
 problem with RichTextArea().
 I build it in my StockWatcher-Project (which I created stricktly with
 tutorial)

       private RichTextArea description = new RichTextArea();
         ...
       mainPanel.add(description);

 and I get in hosted window textArea, but without menu bar. Shortcuts
 like ctrl-b works.
 What is wrong on this code?

 Thank you very much.

 Mark
--~--~-~--~~~---~--~~
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 Upgradation error from 1.4 to 1.5/1.6

2009-04-22 Thread Satya Bobba
(JavaToJavaScriptCompiler.java:254)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:
300)
at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:180)
at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:150)
at com.google.gwt.dev.GWTCompiler$1.run(GWTCompiler.java:119)
at com.google.gwt.dev.CompileTaskRunner.doRun
(CompileTaskRunner.java:84)
at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger
(CompileTaskRunner.java:78)
at com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:126)

Please provide the solution for this problem. i am trying this issue
from couple of days.

Thanks  Regards
Satya

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



Info on jar files used in GWT

2009-03-06 Thread Satya

Hi
I am new to this group and GWT. Question is why do we need the
differrent jar files for different OS.

I assume to run I need the gwt-servlet.jar to run my GWt
application.
But not sure as to why do one need
1. gwt-dev-windows.jar
2. gwt-dev-linux.jar

Any pointer on this will be help ful!

--~--~-~--~~~---~--~~
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: onBrowserEvent on a disabled button

2009-02-17 Thread satya

You can try adding the tooltip using the following operation:

button.getElement().setAttribute( title, here is my
tooltip);

Regards,
Satya

On Feb 17, 10:33 am, Salman Hemani salman.hem...@gmail.com wrote:
 Hey Guys and Gals,

 I have a button on which I listen for mouse events via sinkEvents
 (Event.MOUSEEVENTS) so I can display tool tips. The issue however is
 that if the button is disabled the onBrowserEvent is never invoked and
 as such I cannot detect the mouse event. This seems like a bug but I
 didn't come across it in the issues list. Is there a reason why the
 disabled button does not receive a the browser event?

 Regards,
 Salman
--~--~-~--~~~---~--~~
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: Hosted mode not reflecting css or other changes

2009-02-17 Thread satya

May be the following links will help you

http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=DevGuideRPCDeployment

http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=FAQ_HostedModeNoServer

Regards,
Satya

On Feb 17, 3:20 pm, Damon damonfeld...@verizon.net wrote:
 I am using GWT 1.5.3 from within Eclipse, and am puzzled by how files
 are getting copied to the directory specified by the GWTShell -out
 option.

 Here's my setup:

 My eclipse run configuration runs GWTShell with arguments: -noserver
 -out xquery/www -port 6200 StockWatcher.xqy

 (note the .xqy file serves my xhtml main page from an xml datastore).

 I originally copied the contents of project/www to project/xquery/
 www so that all files would be available to my server.

 I have (randomly) restarted the hosted shell and clicked compile/
 browse a few times now.

 The problems I'm seeing are:
 1) .css changes are not showing up in my hosted environment.  They do
 show up if I compile and view in a browser.
 2) changing to the chrome stylesheet in StockWatcher.gwt.xml has no
 effect.

 Are there docs for what is moved/copied where under what
 circumstances?

 Damon
--~--~-~--~~~---~--~~
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: Dialog Box HELP

2009-02-17 Thread satya

There is a hide method dialobBox.hide()

Regards,
Satya

On Feb 17, 4:33 am, malen malen.ba...@gmail.com wrote:
 Hi! I am currently having problems with Dialog Box. It seems like
 whenever I click on a button for a specific file, a dialog box for
 that file pops up, and also, other dialog boxes that were hidden
 before. Is there a way for me to dispose/remove the dialog boxes?
 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: Error- No source code is available for type com.mosol.client.Web2connect

2009-02-17 Thread satya

Are you using that in Client code or server side code?

GWT  has restrictions on what to use for the client side.

If you having any server code at all, then you can use this jar on the
server side.

You can make asynchronous calls from your client to your server

Satya

On Feb 16, 8:31 am, yogesh er.yogeshg...@gmail.com wrote:
 Hi All,
 I have added a external Jar to my reference Libraries in eclipse and
 using the classes of these jar file.
 While compiling I am getting the error
 No source code is available for type com.mosol.client.Web2connect
 I read a post which says that this is a server-side library use it on
 server-side can you let me understand how to use it on server side.

 Thanks.
 yogesh
--~--~-~--~~~---~--~~
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: undefined error

2009-02-17 Thread satya

I would suggest you use window.alert boxes/or log messages  before and
after a chunk of code and run it. If you see your message boxes, try
going deeper, and find the code that created this error.

This will be a pain, I once had to do this, to find a null exception
thrown, I did not see that error in my hosted mode, but was thrown
after i comipiled to Javascript.




On Feb 15, 2:57 pm, Brian brian.reyno...@pobox.com wrote:
 I got an error in which the server side finishes processing but the
 information does not load into the front end. In Safari, I turned on
 the Developer menu and looked at the Console. It shows an error on
 that page that says undefined on line 866 
 ofhttp://my.domain.com/***/some-big-number.cache.html. When I click on
 that error from the console, it brings me to that line which looks
 like the following:

 ** snip 
 function jI(e,d,c,h){hI();var a,b,f,g;if(e===null){throw eI(new dI
 (),'Unable to parse null');}b=oJ(e);f=b0iJ(e,0)==45?1:0;for
 (a=f;ab;a++){if(dG(iJ(e,a),d)==(-1)){throw eI(new dI(),'Could not
 parse '+e+' in radix '+d);}}g=kI(e,d);if(iI(g)){throw eI(new dI
 (),'Unable to parse '+e);}else if(gc||gh){throw eI(new dI(),'The
 string '+e+' exceeds the range for the requested data type');}return
 g;}
 * snip 

 It's pretty cryptic generated code from GWT. I imagine it means
 there's an undefined variable or function. Any idea how to track that
 down or better yet, any idea what I might have done to cause it?

 We're using GWT 1.4.something
--~--~-~--~~~---~--~~
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: Timer / Progress bar on a form to show countdown.

2009-02-17 Thread satya

GWT-Ext has timer functions. Will that help you?

here is an demo link which has the source code also.

http://www.gwt-ext.com/demo/#messageBox

On Feb 17, 2:08 pm, Vishesh visheshs...@gmail.com wrote:
 What timer function do you think will return the timer's current value
 so that I can read and display on a lable?
 I'm clueless :(

 On 2/17/09, Litty Preeth preeth.h...@gmail.com wrote:



  Well using the Timer you can periodically request the server for the time
  remaining and update the count down Label. But this will require may be a
  server call in every min or few seconds. But I think the better approach is
  to get the remaining time at the first load and using a Timer to deduct a
  sec each time and update the label with new remaining time.

  - Litty

  On Tue, Feb 17, 2009 at 2:00 PM, alex.d
  alex.dukhov...@googlemail.comwrote:

  Timer is just a class that helps you to do smth. periodically(see docs
  for an example). You'll have to use it to update some label with your
  time value.

  On 17 Feb., 05:23, Vishesh visheshs...@gmail.com wrote:
   Thanks for replying.
   But is there a way to show the timer on the rootpanel or other screen?
   If there is I cant seem to find it anywhere.

   On Sun, Feb 15, 2009 at 4:50 PM, jossey joss...@gmail.com wrote:

Will the Timer in GWT help?

On Feb 14, 12:13 pm, Vish visheshs...@gmail.com wrote:
Hi All,
I'm trying to show a countdown timer on a form which displays the
time
left for a discussion on some topic mentioned on that form.
I'm not able to decide or figure out the best way to do it, also I
couldn't find any earlier post discussing this.
If someone can help me suggesting this it will be really helpful and
I
would be very thankful.
Regard
Vish.

   --
   Vishesh Sahu

 --
 Vishesh Sahu
--~--~-~--~~~---~--~~
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: Inside RichTextArea

2009-02-17 Thread satya

RichTextArea does not provide a method to get the current cursor
location.

Sorry
Satya

On Feb 15, 8:22 am, Tóth Imre tothi...@gmail.com wrote:
 2009/2/14 A Friend Of Yours omer.akh...@gmail.com



  Got things working a little... could anyone tell me how to get the
  cursor location in a RichTextArea?

 that is interest me as well.





  On Feb 14, 1:34 am, A Friend Of Yours omer.akh...@gmail.com wrote:
   Hello

   I am working on a project where I need a (java) source code
   highlighting editor. I searched everywhere but could not find any
   solution that could work with GWT. There are solutions such as
   codepress but dont work with GWT. Neither in this forum could I find
   anything useful.

   I was hoping if somebody could tell me what actually GWT does inside
   RichTextArea to enable rich text editing so that I might be able to
   make my own widget for this purpose.

   I tried the RichTextArea, RichTextAreaImpl and all its child classes
   but could not really get what they are playing with except that they
   are using iframe somehow. (May be because I dont know javascript as
   much as used there)

   Thanks

   Omer

 --
 Best Regards
 Tóth Imre
--~--~-~--~~~---~--~~
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: Question: How can I get login user from Windows in GWT?

2009-02-17 Thread satya

What server are you using to get the credentials?

if your windows uses LDAP AD, then  you can configure your Application
Server.

for example: oracle.security.jazn.login.module.LDAPLoginModule

get the user name from getThreadLocalRequest().getRemoteUser();



On Feb 16, 3:13 pm, El Mentecato Mayor rogelio.flo...@gmail.com
wrote:
 If the windows authentication uses some type of LDAP (ActiveDirectory
 for instance has some lever of LDAP compliance), you can achieve what
 you want with Spring Security (http://static.springframework.org/
 spring-security/site/reference/html/springsecurity.html).

 On Feb 13, 5:24 am, Damien Picard picard.dam...@gmail.com wrote:

  Hi,

  Good to know that. As I understand, it only works with IE (via active
  directory), right ?

  2009/2/13 Matías Costa m.costac...@gmail.com

   Damien is 50% right. You can't get windows credentials from any internet
   user. But both IE and mozilla on windows support http auth negotiate. IE 
   for
   same active directory hosts out of the box, and in both you can add
   exceptions.

   I know it, because I worked in a web single sign on project for a company
   intranet. The mechanism is called SPNEGO. Other guy in the project
   integrated it with jass and/or acegui, but I don't remember too much.

   On Fri, Feb 13, 2009 at 7:46 AM, Roger rogerhasem...@gmail.com wrote:

   Hi all,

   Greeting from Roger.
   I do not know how to get login user from Windows in GWT. I try solving
   this in the way below, unfortunately does not work.

   In RemoteServiceServlet,

     ...
      Principal principal = getThreadLocalRequest().getUserPrincipal
   ()   //  principal is NULL!!
      String userName  = principal.getName();
     

   Is there anyone can help me on this ?
   Thanks a ton.

   BR, Roger
--~--~-~--~~~---~--~~
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: Cannot find resource in the public path

2009-01-09 Thread satya

Instructions from 
http://www.gwt-ext.com/wiki/index.php?title=Tutorial:Introduction_to_GWT-Ext_2.0
should help.

Satya

On Jan 9, 1:32 am, Dev lalitha.devi...@gmail.com wrote:
 Hi,

 I am new to GWT-Ext
 When doing the sample program and runing the shell.

 Getting error message as Cannot find resource in the public path of
 html.

 Can any one please help to resolve the same.
--~--~-~--~~~---~--~~
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: add a external JAR problem

2008-11-26 Thread satya

Yes Gregor is right.
I want to add one more point.

A project is included or inherited in the .gwt.xml file only if that
is  a GWT project (atlesat to my knowledge).

i have all other external jars in  a lib folder and have them in my
classpath.

-Satya

On Nov 26, 6:30 pm, gregor [EMAIL PROTECTED] wrote:
 Hi vitor,

 The rules are:

 1. the library jar must include source as well as byte code if you
 need any of its classes compiled by the GWT compiler for client side
 use.
 2. in addition those classes must be compatible with GWT JRE Emulation
 - see list in GWT docs for supported subset of Java 1.5.
 3. this does not apply to libraries used by GWT RPC servlets server
 side where you can use whatever you want.

 regards
 gregor

 On Nov 26, 6:36 pm, vitorLundberg [EMAIL PROTECTED] wrote:

  Hello,
  Before posting here I read some post  with the same kind of problem
  but I didn't really understand how to use it.

  So I have a gwt project that's use a external jar, is a char4j
  ( library to build charts).
  but I get this error :

  [ERROR] Line 85: No source code is available for type
  com.googlecode.charts4j.RadarPlot; did you forget to inherit a
  required module?

  RadarPlot is under the charts4j.jar.

  So if I understood in my Project.gwt.xml I need to set a inherits
  defining the sources path for all my charts4j classes.

  I don't know if it's the solution for this problem, and also how to
  exactly do that ?

  regards,
  Vitor
--~--~-~--~~~---~--~~
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: New to the GWT

2008-11-26 Thread satya

Hi Jorge
Are you able to create your application with GWT?

Yes Eclipse is THE tool for java applications. You can also look at
instantiations, its provides a GWT designer  - a tool for designing
your UI - dragging and dropping widgets.

Its not a great tool, but would be helpfuul for a very small project.

Thanks
Satya

On Nov 26, 2:20 am, mon3y [EMAIL PROTECTED] wrote:
 Eclipse is the way to go. Are you new to java as well?

 On Nov 26, 2:24 am, Jorge Muralles [EMAIL PROTECTED] wrote:

  Thank you.
   
  I jalso just dowload eclipse. I was loooking at it, I like it. Do you think 
  that that is a good development tool?
   
  Thanks

  Sincerely yours;

  Jorge Muralles
  401-849-5323
  401-855-1335

 www.locopro.com

  --- On Tue, 11/25/08, Reinier Zwitserloot [EMAIL PROTECTED] wrote:

  From: Reinier Zwitserloot [EMAIL PROTECTED]
  Subject: Re: New to the GWT
  To: Google Web Toolkit Google-Web-Toolkit@googlegroups.com
  Date: Tuesday, November 25, 2008, 7:14 PM

  It has no user interface other than the command line.

  If you're on windows, run 'cmd', that'll get you a command
  line. In
  order to learn how to use it - google for some tutorials, it's not too
  difficult. Most programming tools work off of the command line, so its
  time well spent.

  On Nov 25, 10:44 pm, Jorge Muralles [EMAIL PROTECTED] wrote:

   Hi there, how are you, is this the only way to run the createproject
  application.
    
   Once is running, does it have a user interface?
    
   I really do not know how to run it from the coomand promtp. how would I gt
  to it?

   Sincerely yours;

   Jorge Muralles
   401-849-5323
   401-855-1335

  www.locopro.com

   --- On Tue, 11/25/08, Isaac Truett [EMAIL PROTECTED] wrote:

   From: Isaac Truett [EMAIL PROTECTED]
   Subject: Re: New to the GWT
   To: Google-Web-Toolkit@googlegroups.com
   Date: Tuesday, November 25, 2008, 2:32 PM

   Open a command prompt and run it from there.

   On Tue, Nov 25, 2008 at 1:31 PM, [EMAIL PROTECTED]

   [EMAIL PROTECTED] wrote:

I just downloaded the GWT, I understand that there is no installation
file, but I click on the application creator and it starts up a
command screen that goes away.

How do i start up the application creator? What am I doin wrong?

Thanks

Jorge
--~--~-~--~~~---~--~~
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: Exception handling in GWT Service

2008-11-26 Thread satya

There is a SerializationException

(public class SerializationException
extends java.lang.Exception)   in gwt1.5.

SerializableException is depricated in 1.5

I shall try your suggestion of extending the Exception or use the
SerilizationException and post the code here.

Thank you both for your help,
Appreciate it
Satya

On Nov 26, 12:54 pm, jossey [EMAIL PROTECTED] wrote:
 I am sorry... my bad... I read it as SerializationException
 Looked at the SerializableException in gwt... it is just an Exception
 implementing IsSerializable interface... so it all makes sense.
 Thanks Ravi for clarifying.

 BTW, in 1.5 gwt supports serialization of objects implementing
 java.io.Serializable.
 So just by extending Exception it would work.

 Thanks again,
 Jossey.

 On Nov 26, 8:56 am, Ravi M [EMAIL PROTECTED] wrote:

  Jossey

  Quite the contrary, actually. I started off with a custom exception
  which was merely a child class of Exception that I intended to use in
  RPC calls (i.e. service methods throw it). This actually didn't work
  in the ways expected, i.e. when the server threw the exception I was
  unable to retrieve the exception message in the client, or find out
  what the cause was. Which is when some digging around revealed that if
  you want to send the exception over the wire, it has to be a GWT
  SerializableException.

  This is with 1.4.6x, of course this may have changed in 1.5.x, I am
  not sure.

  Ravi

  On Nov 26, 5:58 pm, jossey [EMAIL PROTECTED] wrote:

   Hi,
   Why are we extending SerializableException?
   Is that because the starting example had it so?
   I think it kinds of gives out a wrong message. ...
   just extends Exception should do.

   not very relevant to the discussion anyways...

   Jossey.

   On Nov 25, 3:33 pm, Ravi M [EMAIL PROTECTED] wrote:

Ah me. Step 1 should read:

1. Declare your RPC exception like so:

public class MyRPCException extends SerializableException {
    public MyRPCException() {
        super();
    }

    public MyRPCException(String message) {
        super(message);
    }

    //... other stuff?

}

On Nov 26, 1:32 am, Ravi M [EMAIL PROTECTED] wrote:

 Satya,

 The following should work.

 1. Declare your RPC exception like so:

 public class MyRPCException extends SerializableException {
     public TrackerRPCException() {
         super();
     }

     public MyRPCException(String message) {
         super(message);
     }

     //... other stuff?

 }

 2. Declare your service method like so:

 public SomeReturnedObject myServiceMethod(...arguments...) throws
 MyRPCException;

 3. Declare your async service method like so:

 public void myServiceMethod(...arguments..., AsyncCallback callback);

 4. The server side implementation of your service method may be like
 so:

     public SomeReturnedObject myServiceMethod(...arguments...) throws
 MyRPCException {
         SomeReturnedObject ret = null;
         try {
             // Do stuff to populate ret. This stuff could
 potentially fail.
         } catch (SomeNonGWTSerializableServerSideException e) {
             throw new MyRPCException(This is an error message that
 may be appropriate to show in the UI:  + e.getMessage());
         }
         return ret;
     }

 5. In your AsyncCallback in the client:

             public void onSuccess(Object result) {
                 SomeReturnedObject foo = (SomeReturnedObject) result;
                 // Happiness and tranquility reign supreme
             };

             public void onFailure(Throwable exception) {
                 try {
                     throw exception;
                 } catch (MyRPCException e) {
                     // Show the error message to the user,
                     // or handle however you want to.
                 }
             };

 This should work, there may be some overkill in this though. All this
 is GWT 1.4.6x, I'm not sure if any of this has changed in 1.5.x.

 Hope this helps

 Ravi

 On Nov 26, 1:08 am, satya [EMAIL PROTECTED] wrote:

  Thank you very much,
  I guess i can return the String IllegalDateRangeException when
  throwing that exception from my Service and check for that in my
  onFailure class.

  public void onFailure( Throwable caught )
                     {
                                if ( caught.getMessage().contains
  ( IllegalDateRangeException ) )

                                      //handle my class.
                      }

  Thnak you,
  Satya

  On Nov 25, 1:38 pm, olivier nouguier [EMAIL PROTECTED]
  wrote:

   On Tue, Nov 25, 2008 at 8:14 PM, satya [EMAIL PROTECTED] wrote:

Also

when i call the actual method, does the exception get caught

Cursor position for RichTextArea

2008-11-25 Thread satya

Hi,

I am new to GWT.

I am using the RichTextArea. I want to get the current cursor
position.

I need that for inserting a text in the RichTextArea based on a
Combobox selection.

Can any one suggest me how to get the cursor position for
RichTextArea?

Thankyou,
Satya


--~--~-~--~~~---~--~~
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: Exception handling in GWT Service

2008-11-25 Thread satya

How do i specify in the service signature that this is GWT
serializable?

my method signature looks like:
 public String create(Rule rule) throws IllegalDateRangeException;

On Nov 23, 5:23 am, olivier nouguier [EMAIL PROTECTED]
wrote:
 On Sun, Nov 23, 2008 at 6:58 AM, satya [EMAIL PROTECTED] wrote:

  Hi,

  Can i pass exceptions between client and server.
  Can i have an RPC serice with method that throw an user defined
  exception and handle that exception in the client side?

 Yes as long as your exeption is declared in the Service Signature (to
 be declared as GWT serialisable).





  I created an userdefined exception:
  --
  public class IllegalDateRangeException extends SerializationException
  implements IsSerializable
  {
     private String errorMessage = null;

     public IllegalDateRangeException ( String error )
     {
         errorMessage = error;
     }

     public String toString()
     {
         return Exception occurred:  + errorMessage;
     }

     public String getErrorMessage()
     {
         return errorMessage;
     }

     public void setErrorMessage( String errorMessage )
     {
         this.errorMessage = errorMessage;
     }

  }

  and my RPC method throws this exception:
  
     public String create(Rule rule) throws IllegalDateRangeException;

  and i want to catch this exception in the client side and perform
  actions.

  But i get the following error from GWT:
  [ERROR] Type
  'com.cerner.cwx.ruleswizard.client.IllegalDateRangeException' was not
  serializable and has no concrete serializable subtypes

  Any suggestions?
  Any help on this is greatly appreciated.

  Thank you
  Satya

 --
 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: Exception handling in GWT Service

2008-11-25 Thread satya

Also

when i call the actual method, does the exception get caught in the
failure method or in my catch method?


For example:


AsyncCallback callBack = new AsyncCallback() {
public void onFailure( Throwable caught )
{
//Is the exception caught here?
}

public void onSuccess( Object result )
{

   }
try
{
createNewRuleService.createRule( screenType,
eventRuleForm, callBack );
}
catch ( IllegalDateRangeException e )
{
    or the exception is caught here?

}


Thank you very much for your help. I appreciate it.

Satya

On Nov 25, 1:10 pm, satya [EMAIL PROTECTED] wrote:
 How do i specify in the service signature that this is GWT
 serializable?

 my method signature looks like:
  public String create(Rule rule) throws IllegalDateRangeException;

 On Nov 23, 5:23 am, olivier nouguier [EMAIL PROTECTED]
 wrote:

  On Sun, Nov 23, 2008 at 6:58 AM, satya [EMAIL PROTECTED] wrote:

   Hi,

   Can i pass exceptions between client and server.
   Can i have an RPC serice with method that throw an user defined
   exception and handle that exception in the client side?

  Yes as long as your exeption is declared in the Service Signature (to
  be declared as GWT serialisable).

   I created an userdefined exception:
   --
   public class IllegalDateRangeException extends SerializationException
   implements IsSerializable
   {
      private String errorMessage = null;

      public IllegalDateRangeException ( String error )
      {
          errorMessage = error;
      }

      public String toString()
      {
          return Exception occurred:  + errorMessage;
      }

      public String getErrorMessage()
      {
          return errorMessage;
      }

      public void setErrorMessage( String errorMessage )
      {
          this.errorMessage = errorMessage;
      }

   }

   and my RPC method throws this exception:
   
      public String create(Rule rule) throws IllegalDateRangeException;

   and i want to catch this exception in the client side and perform
   actions.

   But i get the following error from GWT:
   [ERROR] Type
   'com.cerner.cwx.ruleswizard.client.IllegalDateRangeException' was not
   serializable and has no concrete serializable subtypes

   Any suggestions?
   Any help on this is greatly appreciated.

   Thank you
   Satya

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



Cursor position for RichTextArea

2008-11-25 Thread satya

Hi

I need to get the cursor position in the RichTextArea? It does not
have the getCurPos() method like the textbox.

Any idea of how to do that?

Your help is appreciated
Thank you,
Satya
--~--~-~--~~~---~--~~
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: New to the GWT

2008-11-25 Thread satya

Open your command prompt,

browse to the location where you have your GWT code installed

If you want to run the application creator type the following:

./applicatonCreator.cmd MyNewApplication

Thanks
Satya

On Nov 25, 12:31 pm, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
 I just downloaded the GWT, I understand that there is no installation
 file, but I click on the application creator and it starts up a
 command screen that goes away.

 How do i start up the application creator? What am I doin wrong?

 Thanks

 Jorge
--~--~-~--~~~---~--~~
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: Transferring the widget data across the gwt classes

2008-11-25 Thread satya

You need to get the values from your Login class object, just as you
have done in the above code.

You can use a list/hashmap to store the objects, and take the object
from there to get ur values anytime.

-Satya

On Nov 25, 5:25 am, sharma [EMAIL PROTECTED] wrote:
 Hi all,

 I am designing a login page in gwt.
 Following Login class holds the user interface for getting username
 and password

 public class Login extends Composite {

         private static Button signInButton;
         private CheckBox rememberMeOnCheckBox;
         public TextBox textBoxPassword;
         public TextBox textBoxUsername;
         private Label passwordLabel;
         private Label usernameLabel;
         private FlexTable flexTable;
         private Label signInToLabel;
         private VerticalPanel verticalPanel;
         public Login() {

                 verticalPanel = new VerticalPanel();
                 initWidget(verticalPanel);

                 signInToLabel = new Label(Sign in to your account.);
                 verticalPanel.add(signInToLabel);

                 flexTable = new FlexTable();
                 verticalPanel.add(flexTable);

                 usernameLabel = new Label(Username:);
                 flexTable.setWidget(0, 0, usernameLabel);

                 passwordLabel = new Label(Password:);
                 flexTable.setWidget(1, 0, passwordLabel);

                 textBoxUsername = new TextBox();
                 flexTable.setWidget(0, 1, textBoxUsername);

                 textBoxPassword = new TextBox();
                 flexTable.setWidget(1, 1, textBoxPassword);

                 rememberMeOnCheckBox = new CheckBox();
                 flexTable.setWidget(2, 1, rememberMeOnCheckBox);
                 rememberMeOnCheckBox.setText(Remember me on this computer.);

                 signInButton = new Button();
                 flexTable.setWidget(3, 1, signInButton);
                 signInButton.addClickListener(new ClickListener() {
                         public void onClick(Widget sender) {
                                 if (textBoxUsername.getText().length() == 0 ||
                                                 
 textBoxPassword.getText().length() == 0) {
                                         Window.alert(Username or password is 
 empty.);
                                 }
                                 else
                                 {
                                         //once the user name and the password 
 is right
                                        //it comes here

                                 }
                         }
                 });
                 signInButton.setText(Sign In);
         }

 }

 actually, for validating it from the database i need to transfer the
 username and password textbox value to another java class for database
 connectivity..so, can anyone help me in transferring the data from
 Login class and ValidateLogin class(its listed below)

 public class ValidateLogin {

         Backend bk = new Backend();
         DataSet ds = null;

         public static void main(String[] args)
         {
                 Login log = new Login();
                 String query=select * from users where
 username='+log.textBoxUsername.getText()+';
                 query+= and password='+log.textBoxPassword.getText()
 +';
                 ds=bk.executeQuery(query);
                 if(ds.rowCount()!=0)
                         //correct login
                else
                        //incorrect login
         }

 }

 Thanks in advance,
 -Sharma.
--~--~-~--~~~---~--~~
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: Wait creating an object tilll RPC result comes

2008-11-25 Thread satya

I use an gwt-ext messagebox (progress box) that get displayed  until i
finish my RPC service call.

For example:
MessageBox.show( new MessageBoxConfig() {
{
setTitle( Creation the rule );
setMsg( Please wait... );
setProgressText( Creating... );
setWidth( 300 );
setWait( true );
setWaitConfig( new WaitConfig() {
{
setInterval( 200 );
}
} );
// setAnimEl(next.getId());
}
} );
timer = new Timer() {
public void run()
{
MessageBox.hide();
System.out.println( Done, Created rules! );
}
};



In my onSuccess of my RPC Call, i cancel the time and hide the
messageBox:

 public void onSuccess( Object result )
{

timer.cancel();
MessageBox.hide();

 //perform other actions

}

Hope this helps.

Thanks
Satya

On Nov 25, 8:23 am, zujee [EMAIL PROTECTED] wrote:
 Hi experts,
 I need to create an object ,which will fetch data form server through
 the RPC calls. How can i achive that.
 Do i need to use timer class? Is there any example available.
 pls help
 thanks in advance
 zujee
--~--~-~--~~~---~--~~
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 use RichTextToolbar ?

2008-11-25 Thread satya

You can look at the KitchenSink demo, to follow to include
RichTextToolbar.

Here is what i did:

1. Included RichTextToolbar java, and the RichTextToolbar
$Strings.properties in my client package.
2. Created an icons folder under client, and copied all images
required by RichTextToolbar
3. Modified the RichTextToolbar to include the current location of the
images/gifs.

I hope this helps,
Thanks
Satya




On Nov 25, 1:52 am, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
 Hello everybody:
    In my item , i must use the discreteness.Who can give me a example?
 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Exception handling in GWT Service

2008-11-25 Thread satya

Thank you very much,
I guess i can return the String IllegalDateRangeException when
throwing that exception from my Service and check for that in my
onFailure class.

public void onFailure( Throwable caught )
   {
  if ( caught.getMessage().contains
( IllegalDateRangeException ) )

//handle my class.
}

Thnak you,
Satya

On Nov 25, 1:38 pm, olivier nouguier [EMAIL PROTECTED]
wrote:
 On Tue, Nov 25, 2008 at 8:14 PM, satya [EMAIL PROTECTED] wrote:

  Also

  when i call the actual method, does the exception get caught in the
  failure method or in my catch method?

  For example:

  AsyncCallback callBack = new AsyncCallback() {
                     public void onFailure( Throwable caught )
                     {
                         //Is the exception caught here?
 here !
                     }

                     public void onSuccess( Object result )
                     {

                    }
  try
                 {
                     createNewRuleService.createRule( screenType,
  eventRuleForm, callBack );
                 }
                 catch ( IllegalDateRangeException e )
                 {
                     or the exception is caught here?

                 }

 You should  notice the differences between RemoteInterface and its
 Asyn counter part:
 * return type: the asyn interface method doesn't have return value
 ===  it will be pass as parameter  asynchronously in onSuccess
 callback.
 * exception: are not part of the async method  ===  it will be pass
 as parameter  asynchronously in onFailure callback.





  Thank you very much for your help. I appreciate it.

  Satya

  On Nov 25, 1:10 pm, satya [EMAIL PROTECTED] wrote:
  How do i specify in the service signature that this is GWT
  serializable?

  my method signature looks like:
   public String create(Rule rule) throws IllegalDateRangeException;

  On Nov 23, 5:23 am, olivier nouguier [EMAIL PROTECTED]
  wrote:

   On Sun, Nov 23, 2008 at 6:58 AM, satya [EMAIL PROTECTED] wrote:

Hi,

Can i pass exceptions between client and server.
Can i have an RPC serice with method that throw an user defined
exception and handle that exception in the client side?

   Yes as long as your exeption is declared in the Service Signature (to
   be declared as GWT serialisable).

I created an userdefined exception:
--
public class IllegalDateRangeException extends SerializationException
implements IsSerializable
{
   private String errorMessage = null;

   public IllegalDateRangeException ( String error )
   {
       errorMessage = error;
   }

   public String toString()
   {
       return Exception occurred:  + errorMessage;
   }

   public String getErrorMessage()
   {
       return errorMessage;
   }

   public void setErrorMessage( String errorMessage )
   {
       this.errorMessage = errorMessage;
   }

}

and my RPC method throws this exception:

   public String create(Rule rule) throws IllegalDateRangeException;

and i want to catch this exception in the client side and perform
actions.

But i get the following error from GWT:
[ERROR] Type
'com.cerner.cwx.ruleswizard.client.IllegalDateRangeException' was not
serializable and has no concrete serializable subtypes

Any suggestions?
Any help on this is greatly appreciated.

Thank you
Satya

   --
   Si l'ignorance peut servir de consolation, elle n'en est pas moins 
   illusoire.

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



Exception handling in GWT Service

2008-11-22 Thread satya

Hi,

Can i pass exceptions between client and server.
Can i have an RPC serice with method that throw an user defined
exception and handle that exception in the client side?


I created an userdefined exception:
--
public class IllegalDateRangeException extends SerializationException
implements IsSerializable
{
private String errorMessage = null;

public IllegalDateRangeException ( String error )
{
errorMessage = error;
}

public String toString()
{
return Exception occurred:  + errorMessage;
}

public String getErrorMessage()
{
return errorMessage;
}

public void setErrorMessage( String errorMessage )
{
this.errorMessage = errorMessage;
}

}


and my RPC method throws this exception:

public String create(Rule rule) throws IllegalDateRangeException;

and i want to catch this exception in the client side and perform
actions.

But i get the following error from GWT:
[ERROR] Type
'com.cerner.cwx.ruleswizard.client.IllegalDateRangeException' was not
serializable and has no concrete serializable subtypes

Any suggestions?
Any help on this is greatly appreciated.

Thank you
Satya

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