Re: FileUpload widget isn't working inside DialogBox widget

2008-11-26 Thread Thomas Broyer



On 24 nov, 20:00, Gerry <[EMAIL PROTECTED]> wrote:
> I've successfully used FormPanel+FileUpload before in a GWT page, but
> when the FormPanel and enclosed FileUpload is moved to a DialogBox,
> the upload suddenly doesn't work.
>
> The form.submit()  is  successfully being triggered, but the form
> itself contains no data.
[...]
> This is driving me crazy!

You must have missed something during the move, as I'm successfully
using a FormPanel+FileUpload from within a DecoratedPopupPanel (not a
DialogBox as there was an issue in IE when coupled with the GlassPanel
from the Incubator).

Or is it a DialogBox vs. DecoratedPopupPanel discrepancy?
--~--~-~--~~~---~--~~
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: disable hyperlink

2008-11-26 Thread [EMAIL PROTECTED]

It's a little hacky, but we just substitute a label in it's place.

On Nov 26, 7:55 am, "Litty Preeth" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Anybody knows how we can disable a HyperLink in GWT?
>
> Regards,
> Litty Preeth
--~--~-~--~~~---~--~~
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: Why use GWT?

2008-11-26 Thread Eduardo Guardiola

I do the same but i hold all my gwt modules in a single project.

One of these  gwt modules is the common module. Named Common . hehe

I don't need to jar anything in order to be shared. And eclipse helps
refactoring things from one module to the Common.

All modules are compiled and errors are showed from all modules at the
same time.

sorry my english.

On 26 nov, 00:56, rakesh wagh <[EMAIL PROTECTED]> wrote:
> my bad... that was a typo which i realized only after clicking the
> send button(and was too lazy to post the second response).
>
> "just include the js" = "just include the jar".
>
> Following attributes in your gwt.xml while in development simplify
> compile some what:
> 
>  value="true" />
>
> On Nov 24, 2:23 pm, adam <[EMAIL PROTECTED]> wrote:
>
> > Rakesh, This was a totally great response and I'm really thankful that
> > you took the time to write it.
>
> > > divide your project into distinct modules that do not rely on each
> > > other, do it! A good example is managing administration activities
> > > could be a separate module. This way you take away the load from main
> > > application.
>
> > I see what you mean, but it's often pretty tough to come up with
> > modules whose dependency graph is disconnected from the rest of the
> > project. They do appear from time to time, I suppose.
>
> > > this common project, do our development, test it in hosted mode(with a
> > > demo app) and just include the js. This way we shift at least 30% of
> > > our development to this very small project that is easy on hosted mode
> > > refresh, debugging, and over all development. I hope you get my point
> > > here.
>
> > Please let me know if I understand the "just include the js" part
> > correctly. You are saying that you keep your UI widget lib in a
> > separate project, compile it to javascript, and then include that
> > javascript in the html for your main project? If this is correct, how
> > do you expose the methods? Do you just add functions to $wnd in JSNI
> > or are you using Cromwell's GWT Exporter? I use the "passive view"
> > pattern, which means it's usually pretty easy for me to try out my
> > widgets in a harness; I usually keep a second module in my main
> > Eclipse project for this purpose.
>
> > > 4. At time of development compile only for IE(through a property ingwtex
>
> > I'm sorry, but I didn't catch you here. I think your original message
> > may have become a bit garbled here.
>
> > Thanks again.
> > Adam
>
> > On Nov 24, 12:47 pm,rakeshwagh<[EMAIL PROTECTED]> wrote:
>
> > > I will agree on the final thing about listeners and feel that it is
> > > more of personal preference. In my experience we had good luck and
> > > happy results using listeners to decouple our widgets and hence
> > > screens. Basically like any other java based application you need a
> > > lead in your team who will always take care of the over all design and
> > > make sure that listeners are not abused; that parents do not pass
> > > themselves as references to the child for purpose of method
> > > invocation; and many other best practice that come by little practice.
> > > Withgwt, client side programming deserves equal or more respect(hence
> > > design and lead resources) compared to its server side counter part.
>
> > > About the size of generated javascript code. As I said I am not going
> > > to go in comparison with any other lib, because that would be apple vs
> > > bananas(I love both fruits btw). If your app is compiled as 160kb js,
> > > I think it is not huge. It is probably just okay. The best thing I
> > > like aboutgwtis that it does not include a staticgwt.js of its own
> > > (like most other toolkits does, take dojo for instance).Gwtmaps your
> > > java code as effeciently as possible to corresponding javascript(again
> > > without including its own static js lib). I agree with you that lazy
> > > loading would be a good idea. Moreover I also agree with you that
> > > hosted mode refresh time sucks as your app size increaseas(and that
> > > happens pretty soon!). We all face this issue, and I think thatgwt
> > > team will put a solution in coming months. See my comments in this
> > > thread:http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
>
> > > Here are some suggestions:
> > > 1.Usemodules right from the beginning if possible. If you could
> > > divide your project into distinct modules that do not rely on each
> > > other, do it! A good example is managing administration activities
> > > could be a separate module. This way you take away the load from main
> > > application.
> > > 2. Create a "separate project" for commongwtwidgets. If you are
> > > relying on vanillagwtfor widgets(not usinggwt-ext etc), you would
> > > most probably end up writing lot of common widgets that you would like
> > > to reusein your project. We created a separate project just for this
> > > purpose. So whenever we write a reusable(1+ times) widget, we go to
> > > this common project, do 

Add a new row in a table dynamically!!!

2008-11-26 Thread Rakesh

Hi,
   I wanted to know if it is possible to add a new row to a existing
html table dynamically using GWT. I am fairly new to GWT and was
wondering if its possible. I checked the forum and couldn't find
anything on this. If anyone has a solution for this please let me
know.

Thanks,
Rakesh

--~--~-~--~~~---~--~~
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: Sharing data between pre-existing data in a JSP and the GWT module

2008-11-26 Thread Vijay

I was searching for something like this for quite some time, thanks a
million !!!

On Nov 21, 8:24 am, Suri <[EMAIL PROTECTED]> wrote:
> Aha. You're right too Olivier. Thanks for the tip. Tottally missed
> that. Appreciate it.
>
> On Nov 21, 3:55 am, "olivier nouguier" <[EMAIL PROTECTED]>
> wrote:
>
> > Hi Suri,
> >  Thanks for this tip !
> >  But IMHO in your case I think that the problem is in the hosted page:
> >  Try replacing:
> > var testVar = <%= request.getAttribute("someValue") %>
> >  by:
> > var testVar = "<%= request.getAttribute("someValue") %>"
>
> > Notice the quote !
> > Then the generate js will be:
> >   var testVar = "12345"; // a string
> > Instead of
> >  var testVar = 12345; // an int
>
> > However your solution seems pretty to me and it's better check twice
> > those JS type.
>
> > Best regards
> > Olivier.
>
> > On Thu, Nov 20, 2008 at 10:19 PM, Suri <[EMAIL PROTECTED]> wrote:
>
> > > Hi Olivier,
> > > I just thought I'd let you know. The script you have works great
> > > however needs one additional modification.
>
> > > public static native String jnsiGetString(String jsVar, String
> > > defaultValue)/*-{
> > >      var value = eval('$wnd.'+jsVar);
> > >      if(value){
> > >        return value.toString();
> > >      }
> > >      return defaultValue;
> > >    }-*/;
>
> > > and
>
> > > public String getSomeValue(){
> > >   return jnsiGetString("someValue", null);
>
> > > }
>
> > > Notice the .toString(). This is so that the value being returned is
> > > truly converted to a String datatype. As part of doing some work I had
> > > used the script but the variable that was being referenced, happened
> > > to have a numeric value. Thus, when trying to do an RPC, the system
> > > kept giving me a ClassCastException although I was sure I was passing
> > > a String (it also passed the instanceof test) but once I put
> > > the .toString() it worked correctly. I guess something funky happens
> > > there no idea what. e.g
> > > --- JSP-
> > > 
> > >  // someValue happens to be an integer although its sent as a String
> > > in Java e.g "123456"
> > >  var testVar = <%= request.getAttribute("someValue") %>
> > > 
> > > ---
>
> > > - Client Code 
>
> > > ...
> > >  String testValue = getString("testVar", "0");
> > > // Although this executes correctly and works fine, it acts up later
> > > in the code unless the .toString() method is called in the javascript
> > > as shown before.
> > > 
>
> > > Thanks
>
> > > Suri
> > > On Nov 20, 11:34 am, Suri <[EMAIL PROTECTED]> wrote:
> > >> Thanks Olivier. That makes sense. I'll have to use the String and
> > >> validate it at the server side I guess.
>
> > >> Suri
>
> > >> On Nov 20, 10:08 am, "olivier nouguier" <[EMAIL PROTECTED]>
> > >> wrote:
>
> > >> > There is no long datatype in javascript !
>
> > >> >http://www.google.com/search?q=GWT+long+emulation&sourceid=navclient-...
>
> > >> > On Thu, Nov 20, 2008 at 3:31 PM, Suri <[EMAIL PROTECTED]> wrote:
>
> > >> > > Hi Olivier,
> > >> > > I actually saw your post later on another thread and used the default
> > >> > > solution. Thanks for that. Pretty neat.
> > >> > > A different question now, I observed that after obtaining the value I
> > >> > > wanted, I could not convert it to a Long type. i.e
>
> > >> > > in my client java code after retrieving the value using the native
> > >> > > method above I try something like
>
> > >> > > Long longVal = Long.parseLong("returnedValue");
>
> > >> > > And that seems to throw an error in the browser. I do remember 
> > >> > > reading
> > >> > > about some issues with Long datatype and javascript, however any
> > >> > > explanation is welcome. I'd like to understand it better.
> > >> > > Thanks
> > >> > > Suri
>
> > >> > > On Nov 20, 3:43 am, "olivier nouguier" <[EMAIL PROTECTED]>
> > >> > > wrote:
> > >> > >> public native String getSomeValue() /*- {
> > >> > >>    return $wnd.someValue.}*-/;
>
> > >> > >> But be aware of "undef" !!!
> > >> > >> should be:
> > >> > >> public native String getSomeValue() /*- {
> > >> > >>    if($wnd.someValue){
> > >> > >>      return $wnd.someValue.
> > >> > >>    }
> > >> > >>    return null;
>
> > >> > >> }*-/;
>
> > >> > >> More generic:
>
> > >> > >>  public static native String jnsiGetString(String jsVar, String
> > >> > >> defaultValue)/*-{
> > >> > >>       var value = eval('$wnd.'+jsVar);
> > >> > >>       if(value){
> > >> > >>         return value;
> > >> > >>       }
> > >> > >>       return defaultValue;
> > >> > >>     }-*/;
>
> > >> > >> and
>
> > >> > >> public String getSomeValue(){
> > >> > >>    return jnsiGetString("someValue", null);
>
> > >> > >> }
>
> > >> > >> HIH
>
> > >> > >> On Wed, Nov 19, 2008 at 8:46 PM, Suri <[EMAIL PROTECTED]> wrote:
>
> > >> > >> > As an update question as well,
>
> > >> > >> > Does anyone know if this is correct syntax and if not what would 
> > >> > >> > be
> > >> > >> > the correct w

Re: Garbled InfoWindows in gwt-maps

2008-11-26 Thread Eric Ayers

Thanks for the info,

Please file the issue at http://code.google.com/p/gwt-google-apis/

On Tue, Nov 25, 2008 at 2:40 PM, Christian Wolf
<[EMAIL PROTECTED]> wrote:
>
> Hi Eric,
>
> I just found out what is causing this (at least with me):
> reverting my code back InfoWindow worked again, so I looked at the
> changes in the code at could pinpoint it down to a multiple entry-
> point definition in the gwt.xml file.
>
> Removing the additional entry-point resolves the issue.
>
> Wierd. Should I file an issue?
>
> On 25 nov, 17:01, Eric Ayers <[EMAIL PROTECTED]> wrote:
>> Hello Christian,
>>
>> Can you send a small code sample that reproduces the issue along with
>> the necessary resources?
>>
>> -Eric.
>>
>> On Tue, Nov 25, 2008 at 1:47 PM, Christian Wolf
>>
>>
>>
>> <[EMAIL PROTECTED]> wrote:
>>
>> > Hello Alberto, Eric,
>>
>> > I just noticed the same behaviour. I used to use the 1.0.0 version of
>> > gwt-maps and the switched to a self compiled trunk version. That
>> > version used to work, but as of today I get thegarbledInfoWindow.
>> > Even returning to the 1.0.0 verison does not resolve the problem.
>> > Clearing every cache I could find did not help either.
>>
>> > Alberto, did you get to resolve this issue?
>>
>> > On 30 set, 10:12, "Eric Ayers" <[EMAIL PROTECTED]> wrote:
>> >> Hello Alberto,
>> >> I've not heard of this before.  Can you send a small code sample that
>> >> reproduces the issue along with the necessary resources?
>>
>> >> -Eric.
>>
>> >> On Tue, Sep 30, 2008 at 3:13 AM, Alberto Núñez <[EMAIL PROTECTED]> wrote:
>>
>> >> > Since the upgrade to the 1.0.0 version of gwt-maps, I cannot see the
>> >> > InfoWindows properly. They are messed up, displaying the complete
>> >> > resource background image behind the text. For example, theInfoWindow
>> >> > shadow is shown as this image:
>> >> >http://maps.google.com/intl/es_ALL/mapfiles/iws2.png
>>
>> >> > Is there any importante change in the library that could be affecting
>> >> > me? I've been reviewing my code but I cannot find what could be making
>> >> > this happen.
>>
>> >> --
>> >> Eric Z. Ayers - GWT Team - Atlanta, GA 
>> >> USAhttp://code.google.com/webtoolkit/
>>
>> --
>> Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/
> >
>



-- 
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

--~--~-~--~~~---~--~~
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: Add a new row in a table dynamically!!!

2008-11-26 Thread jamer

You can use the widget FlexTable and their row can be HTML


Javier Mejías
--~--~-~--~~~---~--~~
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 do cross site implementation in GWT

2008-11-26 Thread jossey

Hi Manish,
Your code looks fine to me.
I am new to this so I dont know much in detail, but you could try
this.

Compile the Java code to pretty javascript.
use -style PRETTY argument to compiler.

The use firebug in firefox and debug the javascript.
In the scripts tab, select the xx.cache.html file. Your code
will be in this file.
Actually it will be by the end of this file.

Then put a breakpoint in the method that gets invoked on button click.

Then click on th button... and debug the values you are passing and
other things.

Hope you will find the issue.
Let us know when you do.

Thanks,
Jossey

On Nov 25, 11:36 pm, "Manish Kumar" <[EMAIL PROTECTED]> wrote:
> Hi Manuel,
>
> Thanx for response.But I wanna know how do you passing the parameter from
> our website/HTML to gwt component.
> is this by using JSNI.if yes , how do attached your compiled gwt app source
> to your website/html.This point is crucial for me
> since i am not able to connect to gwt from our html in deployment mode( not
> hosted mode ).
>
> please provide the detail about your approach.
>
> Regards
> Manish
>
> - Original Message -
> From: "Manuel Aguilera" <[EMAIL PROTECTED]>
> To: "Google Web Toolkit" 
> Sent: Wednesday, November 26, 2008 1:13 AM
> Subject: Re: How to do cross site implementation in GWT
>
> I was having a similar Issue. I am working on an application that will
> load a short list of headlines from our website via cross-site
> json.The gwt files,  the json feed and the host HTML page reside on
> different domains. On the Module XML format page in the developer
> guide (http://code.google.com/docreader/#p=google-web-toolkit-
> doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideModuleXml) the method
> suggested was including something similar to:
>
> 
>   
>   
> 
>
> however after uploading the output files I got a couple of permission
> errors on Firefox, namely:
>
> Permission denied to get property 
> Window.documenthttp://192.168.1.145/com.fbg.headlinesreader.HeadlinesReader/6F72E8AB...
> Line 1
>
> What I did was to remove the  name="com.google.gwt.core.Core" /> element from the module xml file.
> Mine looks as follows:
> 
> 
> 
>
> 
> 
>
> 
> 
>
> 
>
> 
>
> I am not sure why but it seems to be working ok now. I Hope this helps
>
> Regards,
> Manuel Aguilera
>
> On Nov 25, 1:25 am, "Manish Kumar" <[EMAIL PROTECTED]> wrote:
> > Hi everybody,
>
> > can anybody plz help me out to get the right path for cross site
> > implementation.
>
> > please go through the mail below and make me aware about my approach.
>
> > Thanx & Regards
> > Manish
>
> > - Original Message -
> > From: "Manish Kumar" <[EMAIL PROTECTED]>
> > To: 
> > Sent: Monday, November 24, 2008 11:12 AM
> > Subject: How to do cross site implementation in GWT
>
> > > Hi everybody,
>
> > > I has working for 2 months on GWT( 1.5.3 ). I have been successful in
> > > implementing various feature in GWT. Finally I am stuck at end for
> > > almost
> > > 20
> > > days in including my GWT project to a set of HTML files with passing a
> > > set
> > > of values to GWT from HTML.
> > > Previously also I put this issue in this forum as i was trying with JSNI
> > > and
> > > xs linker.Now i am running out of time. Time has come for
> > > decision.Thanks
> > > for constant help and co-operation.
>
> > > Now can anybody please confirm my approach? Since still I suspect my
> > > approach.
>
> > > I have a set of HTML files. I have made and GWT project including some
> > > widgets , rpc and a external server( calling using request builder ). I
> > > have
> > > wriiten a JSNI method in GWT component which is called by a GWT method
> > > called inside onModuleLoad.
> > > I have wriiten a js method( on HTML side) which calls JSNI method.
>
> > > I compiled the GWT component using xs linker and added nocache.js in my
> > > HTML(in HEAD part). I am expecting that this will invoke GWT component
> > > as
> > > js
> > > method ( html side ) is called on click of a button displayed in HTML.
>
> > > A couple of months back I had got this but I don't understand why this
> > > is
> > > not working this time.There is a remarkable observation is that
> > > previously
> > > I
> > > had got xs-nocache.js and my JSNI method inside that.This I am not
> > > getting
> > > now.
>
> > > One more thing I would like to know that what is the role of cache.js?
>
> > > Can anybody provide me what is mistake/is this workable or not.
>
> > > Regards
> > > Manish
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



setting Label widgets in each cell of 1000row x 17col grid is too slow..

2008-11-26 Thread Jim Colton
..taking about 25 seconds on a 1.7ghz laptop with firefox.

It that length of time expected or may there be something wrong with two
nested loops for row, col and setWidget on the grid?

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: api for google MAPS

2008-11-26 Thread rizla

the answer is (probably)  only in Javascript ?^!?!
:(

On 26 Nov, 15:53, Eric Ayers <[EMAIL PROTECTED]> wrote:
> Hi rizla:
>
> If there is such a method in the JavaScript API:
>
>  http://code.google.com/apis/maps
>
> then please file an issue to have this feature wrapped.
>
> -Eric.
>
> On Tue, Nov 25, 2008 at 7:14 PM, rizla <[EMAIL PROTECTED]> wrote:
>
> > hi to all!
> > there is a method in the GWTmapsAPI that finds the localities near a
> > city or town ?
> > for example:
> > List methodThatIDream(referenceLocality)?!
> > thanks to everyone :D
>
> --
> Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/
--~--~-~--~~~---~--~~
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: setting Label widgets in each cell of 1000row x 17col grid is too slow..

2008-11-26 Thread Isaac Truett

Try a BulkTableRenderer from the GWT Incubator.

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



On Wed, Nov 26, 2008 at 1:41 PM, Jim Colton <[EMAIL PROTECTED]> wrote:
> ..taking about 25 seconds on a 1.7ghz laptop with firefox.
>
> It that length of time expected or may there be something wrong with two
> nested loops for row, col and setWidget on the grid?
>
> 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-26 Thread jossey

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 in 
> > > > > > > the
> > > > > > > failure method or in my catch method?
>
> > > >

Re: Add a new row in a table dynamically!!!

2008-11-26 Thread gregor

Hi Rakesh,

As Javier says, you can use FlexTable (which extends HTMLTable) using
methods insertCell(..) and insertRow(..). You can also do this with
Grid (also extends HTMLTable) using resize(..), resizeColumns(..) and
resizeRows(..). FlexTable is a bit more complicated than Grid because
cells can occupy more than one row or column like a collage. Grid is a
straight "four by two" type effort, and for, say, adding an extra row
of table style data would probably be the simplest choice.

regards
gregor

On Nov 26, 6:08 pm, jamer <[EMAIL PROTECTED]> wrote:
> You can use the widget FlexTable and their row can be HTML
>
> Javier Mejías
--~--~-~--~~~---~--~~
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 widget isn't working inside DialogBox widget

2008-11-26 Thread gregor

I've just recently done this too, as it happens, using a DialogBox
(from 1.5.3). I concur with Thomas that the move to a DialogBox
doesn't sound like the problem.

On Nov 26, 4:00 pm, Thomas Broyer <[EMAIL PROTECTED]> wrote:
> On 24 nov, 20:00, Gerry <[EMAIL PROTECTED]> wrote:
>
> > I've successfully used FormPanel+FileUpload before in a GWT page, but
> > when the FormPanel and enclosed FileUpload is moved to a DialogBox,
> > the upload suddenly doesn't work.
>
> > The form.submit()  is  successfully being triggered, but the form
> > itself contains no data.
> [...]
> > This is driving me crazy!
>
> You must have missed something during the move, as I'm successfully
> using a FormPanel+FileUpload from within a DecoratedPopupPanel (not a
> DialogBox as there was an issue in IE when coupled with the GlassPanel
> from the Incubator).
>
> Or is it a DialogBox vs. DecoratedPopupPanel discrepancy?
--~--~-~--~~~---~--~~
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 do cross site implementation in GWT

2008-11-26 Thread Manuel

I pretty much followed the steps detailed in

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

Plus I am passing parameters via javascript variables in the host
page. The code in the host page looks like:


var fbg_customerId = '238976';
var fbg_type = 'vertical';

http://www.gov-world.com/gwt/com.fbg.headlinesreader.HeadlinesReader.nocache.js";>



in the onModuleLoad() function I call the following native function to
read the javascript variables

public native void getParameters() /*-{
[EMAIL PROTECTED]::parameter_id =
$wnd.fbg_customerId;
[EMAIL PROTECTED]::parameter_format
= $wnd.fbg_type;
 }-*/;

and after that I call the makeJSONRequest() function which is declared
as follows:


public static native void makeJSONRequest(String url, JSONHandler 
handler) /*-{
$wnd.jsonCallback = function(jsonObj) {
 
@com.fbg.headlinesreader.client.HeadlinesReader::dispatchJSON(Lcom/google/gwt/core/client/JavaScriptObject;Lcom/fbg/headlinesreader/client/JSONHandler;)(jsonObj,
handler);
}

// create SCRIPT tag, and set SRC attribute equal to JSON feed 
URL +
callback function name
var script = $wnd.document.createElement("script");
script.setAttribute("src", url+"jsonCallback");
script.setAttribute("type", "text/javascript"); 

$wnd.document.getElementsByTagName("head")[0].appendChild(script);

}-*/;

public static void dispatchJSON(JavaScriptObject jsonObj, JSONHandler
handler) {
handler.handleJSON(jsonObj);
}

public void handleJSON(JavaScriptObject obj)  {
// String s;
if (obj == null) {
// grr
return;
}

JSONArray myarr;
JSONObject myObj;
myarr = new JSONArray(obj);
for (int i=0; i in the configuration signals GWT to work
around this issue




On Tue, Nov 25, 2008 at 8:36 PM, Manish Kumar <[EMAIL PROTECTED]> wrote:
>
> Hi Manuel,
>
> Thanx for response.But I wanna know how do you passing the parameter from
> our website/HTML to gwt component.
> is this by using JSNI.if yes , how do attached your compiled gwt app source
> to your website/html.This point is crucial for me
> since i am not able to connect to gwt from our html in deployment mode( not
> hosted mode ).
>
> please provide the detail about your approach.
>
> Regards
> Manish
>
> - Original Message -
> From: "Manuel Aguilera" <[EMAIL PROTECTED]>
> To: "Google Web Toolkit" 
> Sent: Wednesday, November 26, 2008 1:13 AM
> Subject: Re: How to do cross site implementation in GWT
>
>
>
> I was having a similar Issue. I am working on an application that will
> load a short list of headlines from our website via cross-site
> json.The gwt files,  the json feed and the host HTML page reside on
> different domains. On the Module XML format page in the developer
> guide (http://code.google.com/docreader/#p=google-web-toolkit-
> doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideModuleXml) the method
> suggested was including something similar to:
>
> 
>  
>  
> 
>
> however after uploading the output files I got a couple of permission
> errors on Firefox, namely:
>
> Permission denied to get property Window.document
> http://192.168.1.145/com.fbg.headlinesreader.HeadlinesReader/6F72E8AB842459823620F4AC11938839.cache.html
> Line 1
>
> What I did was to remove the  name="com.google.gwt.core.Core" /> element from the module xml file.
> Mine looks as follows:
> 
> 
> 
>
> 
> 
>
> >
> 
>
> 
>
> 
>
> I am not sure why but it seems to be working ok now. I Hope this helps
>
> Regards,
> Manuel Aguilera
>
>
>
> On Nov 25, 1:25 am, "Manish Kumar" <[EMAIL PROTECTED]> wrote:
>> Hi everybody,
>>
>> can anybody plz help me out to get the right path for cross site
>> implementation.
>>
>> please go through the mail below and make me aware about my approach.
>>
>> Thanx & Regards
>> Manish
>>
>> - Original Message -
>> From: "Manish Kumar" <[EMAIL PROTECTED]>
>> To: 
>> Sent: Monday, November 24, 2008 11:12 AM
>> Subject: How to do cross site implementation in GWT
>>
>> > Hi everybody,
>>
>> > I has working for 2 months on GWT( 1.5.3 ). I have been successful in
>> > implementing various feature in GWT. Finally I am stuck at end for
>> > almost
>> > 20
>> > days in including my GWT project to a set of HTML files with passing a
>> > set
>> > of values to GWT from HTML.
>> > Previously also I put this issue in this forum as i was trying with JSNI
>> > and
>> > xs linker.Now i am running out of time. Time has come for
>> > decision.Thanks
>> > for constant help and co-operation.
>>
>> > Now can anybody please confirm my approach? Since still I suspect my
>> > a

Need to richer widget set in GWT

2008-11-26 Thread TedM

I've been working with GWT for over a year now and working with GWT-
EXT for about 6 months and I went to the Google I/O conference.

I was wondering if there was an effort to build up GWT widget set to
the level of polish of GWT-EXT?

The widgets that matter most to me are:
1. Sortable table/grid
2. Grouping table/grid
3. Paging table/grid
4. Dragable pop dialog (Having action buttons at the top right of the
dialog)
5. Tab Panel (GWT is missing the mouse over and table scrolling)
6. Calendar date field (With date picker)
7. ComboBox (Image support, z-indexable)

In addition, I think it would be very helpful if GWT had some basic
CSS templates like EXT's default, gray, and vista templates.

Please let me know if the GWT team is planning on building these
features.

If not, let me know if anyone is interested.  Because I'll build them
and post them somewhere.





--~--~-~--~~~---~--~~
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 do cross site implementation in GWT

2008-11-26 Thread Manuel

One thing I just noticed in your code is that you are  exporting java
methods to javascript. When I tryied that a few weeks ago I could not
figure out how the instance expression part worked, so I only have
tried this with static methods
e.g.

public static int displayDialog(String companyId, String companyName) {
ResponseDialog.getInstance().doSplash(companyId, companyName);
return 0;
}
public static native void exportJavaMethod() /*-{
$wnd.sendEmail =
@com.fbg.client.Emailer::displayDialog(Ljava/lang/String;Ljava/lang/String;);
}-*/;
and then calling the function from any javascript code in the host as
sendEmail(id, name)

Perhaps you can try changing PMGWTHtmlUtils::invokeGWT to be a static function


On Wed, Nov 26, 2008 at 11:32 AM, Manuel <[EMAIL PROTECTED]> wrote:
> I pretty much followed the steps detailed in
>
> http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=FAQ_JSONFeedsFromOtherDomain
>
> Plus I am passing parameters via javascript variables in the host
> page. The code in the host page looks like:
>
> 
>var fbg_customerId = '238976';
>var fbg_type = 'vertical';
> 
>  src="http://www.gov-world.com/gwt/com.fbg.headlinesreader.HeadlinesReader.nocache.js";>
> 
> 
>
> in the onModuleLoad() function I call the following native function to
> read the javascript variables
>
>public native void getParameters() /*-{
>[EMAIL PROTECTED]::parameter_id =
> $wnd.fbg_customerId;
>[EMAIL PROTECTED]::parameter_format
> = $wnd.fbg_type;
> }-*/;
>
> and after that I call the makeJSONRequest() function which is declared
> as follows:
>
>
>public static native void makeJSONRequest(String url, JSONHandler 
> handler) /*-{
>$wnd.jsonCallback = function(jsonObj) {
> 
> @com.fbg.headlinesreader.client.HeadlinesReader::dispatchJSON(Lcom/google/gwt/core/client/JavaScriptObject;Lcom/fbg/headlinesreader/client/JSONHandler;)(jsonObj,
> handler);
>}
>
>// create SCRIPT tag, and set SRC attribute equal to JSON feed 
> URL +
> callback function name
>var script = $wnd.document.createElement("script");
>script.setAttribute("src", url+"jsonCallback");
>script.setAttribute("type", "text/javascript");
>
> $wnd.document.getElementsByTagName("head")[0].appendChild(script);
>
>}-*/;
>
>public static void dispatchJSON(JavaScriptObject jsonObj, JSONHandler
> handler) {
>handler.handleJSON(jsonObj);
>}
>
>public void handleJSON(JavaScriptObject obj)  {
>// String s;
>if (obj == null) {
>// grr
>return;
>}
>
>JSONArray myarr;
>JSONObject myObj;
>myarr = new JSONArray(obj);
>for (int i=0; imyObj = myarr.get(i).isObject();
>headlines.add(  new Headline(
>
> myObj.get("title").isString().stringValue().trim(),
>
> myObj.get("link").isString().stringValue().trim(),
>
> myObj.get("create_date").isString().stringValue().trim()
>) );
>}
>showNews();  //and this finally adds widgets to the element
> fbgPressReleases in the host page
>}
>
>
>
> I read that there was an inssue with firefox 3 and IE7 that made
> difficult to access the window object of a webpage from a script
> loaded from a different domain, so my Assumption is that the
>  in the configuration signals GWT to work
> around this issue
>
>
>
>
> On Tue, Nov 25, 2008 at 8:36 PM, Manish Kumar <[EMAIL PROTECTED]> wrote:
>>
>> Hi Manuel,
>>
>> Thanx for response.But I wanna know how do you passing the parameter from
>> our website/HTML to gwt component.
>> is this by using JSNI.if yes , how do attached your compiled gwt app source
>> to your website/html.This point is crucial for me
>> since i am not able to connect to gwt from our html in deployment mode( not
>> hosted mode ).
>>
>> please provide the detail about your approach.
>>
>> Regards
>> Manish
>>
>> - Original Message -
>> From: "Manuel Aguilera" <[EMAIL PROTECTED]>
>> To: "Google Web Toolkit" 
>> Sent: Wednesday, November 26, 2008 1:13 AM
>> Subject: Re: How to do cross site implementation in GWT
>>
>>
>>
>> I was having a similar Issue. I am working on an application that will
>> load a short list of headlines from our website via cross-site
>> json.The gwt files,  the json feed and the host HTML page reside on
>> different domains. On the Module XML for

Re: Need to richer widget set in GWT

2008-11-26 Thread [EMAIL PROTECTED]

Not native to the GWT library, but check out
http://www.jroller.com/sjivan/entry/smartgwt_1_0_released

Smart GWT has a lot of nice things, similar to GWT-EXT.

Is your main issue with GWT-EXT that it is not open source/free?  Just
wondering

Later,

Shaffer

On Nov 26, 12:47 pm, TedM <[EMAIL PROTECTED]> wrote:
> I've been working with GWT for over a year now and working with GWT-
> EXT for about 6 months and I went to the Google I/O conference.
>
> I was wondering if there was an effort to build up GWT widget set to
> the level of polish of GWT-EXT?
>
> The widgets that matter most to me are:
> 1. Sortable table/grid
> 2. Grouping table/grid
> 3. Paging table/grid
> 4. Dragable pop dialog (Having action buttons at the top right of the
> dialog)
> 5. Tab Panel (GWT is missing the mouse over and table scrolling)
> 6. Calendar date field (With date picker)
> 7. ComboBox (Image support, z-indexable)
>
> In addition, I think it would be very helpful if GWT had some basic
> CSS templates like EXT's default, gray, and vista templates.
>
> Please let me know if the GWT team is planning on building these
> features.
>
> If not, let me know if anyone is interested.  Because I'll build them
> and post them somewhere.
--~--~-~--~~~---~--~~
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: javascript error getBoxObjectFor ?

2008-11-26 Thread Sumit Chandel
Hi Ed,

Which browser is this occurring on? Also, could you try compiling your GWT
application with the -style PRETTY flag to generate human-friendly output
that should be easier to debug? That'll make it so that the generated code
isn't obfuscated, so we might be able to identify which specific method and
variable function BBc(a) and the parameter 'a' are referring to.

Regards,
-Sumit Chandel

On Mon, Nov 24, 2008 at 4:20 AM, Ed <[EMAIL PROTECTED]> wrote:

>
> Extra note:
> The line the error refer to:
> function BBc(a){if(Element.prototype.getBoundingClientRect){return
> a.getBoundingClientRect().left+(Bed(),Ded).scrollLeft}else{return
> $doc.getBoxObjectFor(a).screenX-$doc.getBoxObjectFor
> ($doc.documentElement).screenX}}
>
> Btw: Sometimes it happens quite a lot this error..
> >
>

--~--~-~--~~~---~--~~
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: javascript window.opener not working

2008-11-26 Thread Sumit Chandel
Hi gabidp,

I believe the reason why you're unable to access the opener attribute
defined on the $wnd object is because of the way you're creating the popup
in the first open(url, name, options) call.

The reason why we keep the $wnd reference around is because GWT applications
load up in their own , meaning that references to the regular window
object are local to the  rather than the body of the page.

By calling open(url, name, options), you're actually invoking
window.open(url, name, options) from within the  context. This means
that the popup might also limited to the same scope, so references to $wnd
attrributes won't resolve.

Try replacing the open(url, name, options) call by $wnd.open(...) and see if
that works.

Hope that helps,
-Sumit Chandel

On Mon, Nov 24, 2008 at 5:30 AM, gabidp <[EMAIL PROTECTED]> wrote:

>
> Hi!
>
> I have a window which opens a popup with a native javascript method:
>public static native void open_new_window(String url, String name,
> String options) /*-{
> open(url, name, options);
>}-*/;
>
> This new window has a button, and when someone clicks it, I want to do
> something on the original window with this function:
>  public native void test()
>/*-{
>$wnd.opener.document.forms[0].testForm.value = "AA"
>}-*/;
>
> The problem seems to be that $wnd.opener does not reference my
> original window. How can I do that?
>
> Thank you!
> >
>

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



Re: Serialization questions

2008-11-26 Thread Sumit Chandel
Hi jon918,

Please see my replies inlined below:

1) In 1.5 there is now support for managing the serialization using
> the SerializationStreamFactory on the client. However on the server, I
> don't see how I can retrieve the SerializationPolicy for my module
> without using a GWT RPC call. Must I use the default serialization
> policy to take advantage of this feature?


The serialization policy file is generated as a security measure to make
sure that types you're sending across the wire are indeed the ones you
intended to deserialize when they come back to the server.

If you're using the SerializationStreamFactory on the client-side for custom
serialization, I would imagine that you're either using a non-Java backend
or doing something interesting with a Java backend. In case it's the former,
you shouldn't need to worry about the serialization policy file and instead
add extra security considerations around whatever is deserializing code on
the server-side. If you are using a Java backend, is there any reason why
you can't use GWT RPC with a mix of custom field serializers as needed for
any special needs?

Basically, more information on what you're trying to do here would give us
more to go on about why / how you need to get the serialization policy file
while using non standard GWT RPC.

2) RpcServletUtils.writeResponse double-buffers the output when it
> gzip's the response payload. Why is this done instead of writing
> directly to the response output stream? Is sending the content length
> critical for some reason?
>

I'll have to check on this one and get back to you. I don't think that
sending the content-length is terribly important, however it could be useful
for things like download progress notifications and so on.

3) Are there plans to open up the RPC APIs more than they are today in
> general.


I believe that making GWT APIs refactored and opened up has been and will be
an iterative process. We've had some major improvements in the linker
subsystem (now refactored and pluggable) as well as improvements in GWT RPC
(such as the refactored SerializationStreamFactory).

I think it's safe to say that you can look to better and better designs to
make the GWT APIs more easy to extend and modify.

Hope that helps,
-Sumit Chandel


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



add a external JAR problem

2008-11-26 Thread vitorLundberg

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: Need to richer widget set in GWT

2008-11-26 Thread TedM

Yeah being free is very important.

Also I would like it to be pure GWT, not GWT wrapping JS.

Also I've found GWT-EXT to have weird errors every once in a while.

This smartGWT looks to be the same thing as GWT-EXT just with a little
more widgets.

Way can't GWT make the next step and have it's whole rich tool set.

I want to the incubator to see what was in the works and to be honest
I was a little disappointed.

I'm thinking about asking if I can help.



On Nov 26, 3:27 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Not native to the GWT library, but check 
> outhttp://www.jroller.com/sjivan/entry/smartgwt_1_0_released
>
> Smart GWT has a lot of nice things, similar to GWT-EXT.
>
> Is your main issue with GWT-EXT that it is not open source/free?  Just
> wondering
>
> Later,
>
> Shaffer
>
> On Nov 26, 12:47 pm, TedM <[EMAIL PROTECTED]> wrote:
>
> > I've been working with GWT for over a year now and working with GWT-
> > EXT for about 6 months and I went to the Google I/O conference.
>
> > I was wondering if there was an effort to build up GWT widget set to
> > the level of polish of GWT-EXT?
>
> > The widgets that matter most to me are:
> > 1. Sortable table/grid
> > 2. Grouping table/grid
> > 3. Paging table/grid
> > 4. Dragable pop dialog (Having action buttons at the top right of the
> > dialog)
> > 5. Tab Panel (GWT is missing the mouse over and table scrolling)
> > 6. Calendar date field (With date picker)
> > 7. ComboBox (Image support, z-indexable)
>
> > In addition, I think it would be very helpful if GWT had some basic
> > CSS templates like EXT's default, gray, and vista templates.
>
> > Please let me know if the GWT team is planning on building these
> > features.
>
> > If not, let me know if anyone is interested.  Because I'll build them
> > and post them somewhere.
--~--~-~--~~~---~--~~
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: Is Run Time Annotation Possible?

2008-11-26 Thread [EMAIL PROTECTED]

Hi, zujee,

  I have a reflection implement for GWT client code, and it support
get Annotation's value at runtime.

  http://code.google.com/p/gwt-ent/
  The test case:
http://code.google.com/p/gwt-ent/source/browse/trunk/gwtent/test/com/gwtent/client/test/ReflectionTestCase.java

  Hope that helps :)
James

On Nov 26, 5:46 pm, zujee <[EMAIL PROTECTED]> wrote:
> Hi experts,
> I have an interface which extends ImmutableResourceBundle
>
> and inside that
> @Resource("com/MyPath/MyConstants.properties")
>     public abstract TextResource properties();
>
> and its working fine.
> but I need to change the filename after reading the XML file .
> eg:
> 
> MyConstants_C1.properties
> 
>
> from that I need to set the reosuece path as
> @Resource("com/MyPath/MyConstants_C1.properties") in run time.. is
> that possible?
>
> thanks and regards
> 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: Simple app for DB view (?)

2008-11-26 Thread Geraldo Lopes

The gwt-incubator has PagingScrollTable widget that provides
pagination. if you want to try you can follow
http://code.google.com/p/google-web-toolkit-incubator/wiki/MakingIncubatorBetter
and get the latest version of the project. There are a example, how
use the widget.

Basically you need

1) Define a table model derived from MutableTableModel that is used to
fetch data. This code is executed at the client. Relevant code:

public class ClienteTableModel extends MutableTableModel {
@Override
public void requestRows(
final Request request,
final 
com.google.gwt.gen2.table.client.TableModel.Callback
callback) {

  Servico.Util.getInstance().requestRows(request, exemplo,
new 
AsyncCallback>(){
public void 
onFailure(Throwable caught) {

callback.onFailure(new Exception("falha rpc"));
}

public void 
onSuccess(SerializableResponse result) {

callback.onRowsReady(request, result);
}

});

}


2) Servico.Util.getInstance().requestRows is a class that is called on
the server using RPC. That's why We need to provide an AsyncCallBack
to that is going to be executed assyncronously when the server
responds, and feed the widget with data on callback.onRowsReady
(request,result).

You need to follow some small rules to let gwt rpc do its magic:

An interface and it's Async countepart which is code shared between
server and client. (Im my case i have just one project) Removed the
import, for brevity

An interface celebrating the contract between the server and the
client:

package unipac.client;
@RemoteServiceRelativePath("servico")
public interface Servico extends RemoteService {

public SerializableResponse requestRows(Request request,
Cliente qbe);

public static class Util {
public static ServicoAsync getInstance() {
return GWT.create(Servico.class);
}
}

}

An interface counter-part that . Note that its methods returns void.
The SerializableResponse that the above interface returns
will be got by the callback object. Code Shared between the client and
the server too. It's necessary due the asyncronous nature of Ajax
calls.

package unipac.client;
public interface ServicoAsync {
public void requestRows(Request request, Cliente qbe,
AsyncCallback>  callback);
}

Finally the implementation... (server code only)

package unipac.server;
public class ServicoImpl extends RemoteServiceServlet implements
Servico {

public SerializableResponse requestRows(Request request,
Cliente qbe) {

SerializableResponse result = null;
Session sessao = 
HibernateUtil.getSessionFactory().openSession();


Transaction tran = sessao.beginTransaction();
Criteria crit = sessao.createCriteria(Cliente.class)
  .addOrder(Order.asc("nome"))
  .setFirstResult(request.getStartRow())
  .setMaxResults(request.getNumRows());

if (qbe != null) {
Example exemplo = Example.create(qbe).ignoreCase().enableLike
(MatchMode.ANYWHERE);
  crit.add(exemplo);
}

result = new SerializableResponse( crit.list() );
tran.commit();
return result;
}

}

Things to note.  ServicoImpl implements the first interface and
extends from RemoteServiceServlet (Yes this is a servlet). Look at
requestRows parameters: Request is used to tell the server the
starting row and the number of rows, in order to limit the results.
Cliente qbe is an object that im passing from the client to the server
to query by example which instances I want. The code uses Hibernate,
not JPA but you probably can understand.

3) Back to client side. you need:

a) Instantiate the table model.

ClienteTableModel tableModel = new ClienteTableModel();

b) One tableDefinition

TableDefinition tableDef = createTableDefinition();


  private TableDefinition createTableDefinition() {

// Create the table definition
DefaultTableDefinitiontableDefinition = new
DefaultTableDefinition();

// Set the row renderer
String[] rowColors = new String[] {"#DD", "#EE"};
tableDefinition.setRowRenderer(new 
DefaultRowRenderer
(rowColors));

// Nome
{
AbstractColumnDefinition columnDef = 
new
AbstractColumnDefinition() {
public S

Re: Problem with writing JSNI wrapper for ActiveMQ ajax code

2008-11-26 Thread sommers

When you say it does not work, exactly what error do you get?

>From what I can see it looks like it should work so long as your
ActiveMqCallback class has an onEventArrived method definition, and
that you cont have a typo in
"com.yht.gwt.client.ActiveMqCallback::onEventArrived". Perhaps check
that message/e is not null... Cant really tell you anything else
without more info.
--~--~-~--~~~---~--~~
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: Need to richer widget set in GWT

2008-11-26 Thread gregor


>
> I want to the incubator to see what was in the works and to be honest
> I was a little disappointed.
>
> I'm thinking about asking if I can help.
>
>

Patches always welcome, I guess:

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






 On Nov 26, 3:27 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
> > Not native to the GWT library, but check 
> > outhttp://www.jroller.com/sjivan/entry/smartgwt_1_0_released
>
> > Smart GWT has a lot of nice things, similar to GWT-EXT.
>
> > Is your main issue with GWT-EXT that it is not open source/free?  Just
> > wondering
>
> > Later,
>
> > Shaffer
>
> > On Nov 26, 12:47 pm, TedM <[EMAIL PROTECTED]> wrote:
>
> > > I've been working with GWT for over a year now and working with GWT-
> > > EXT for about 6 months and I went to the Google I/O conference.
>
> > > I was wondering if there was an effort to build up GWT widget set to
> > > the level of polish of GWT-EXT?
>
> > > The widgets that matter most to me are:
> > > 1. Sortable table/grid
> > > 2. Grouping table/grid
> > > 3. Paging table/grid
> > > 4. Dragable pop dialog (Having action buttons at the top right of the
> > > dialog)
> > > 5. Tab Panel (GWT is missing the mouse over and table scrolling)
> > > 6. Calendar date field (With date picker)
> > > 7. ComboBox (Image support, z-indexable)
>
> > > In addition, I think it would be very helpful if GWT had some basic
> > > CSS templates like EXT's default, gray, and vista templates.
>
> > > Please let me know if the GWT team is planning on building these
> > > features.
>
> > > If not, let me know if anyone is interested.  Because I'll build them
> > > and post them somewhere.
--~--~-~--~~~---~--~~
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: add a external JAR problem

2008-11-26 Thread gregor

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



GWT + MySQL Best Practices?

2008-11-26 Thread DanielC

Hi guys,

I'm developing a project with GWT + Servlets + MySQL. At this point,
I've got the project setup using the "-noserver" flag and I have
Connector/J configured on an external Tomcat 6 server so that my
servlets can access the DB. Communication to/from server is through
GWT-RPC .

My Problem: This is a bit of a pain b/c anytime I make a change to the
servlet code (which resides in the same Eclipse project as my GWT
code...and I'd prefer to keep it this way), I have to copy the *.class
file (for the servlet) over to the CATALINA_HOME/webapps/myproject/WEB-
INF/classes/blahblahblah folder.

This seems extremely manual and I'm hopeful that there's a better way
to do it. What is the recommended way of doing this type of
development? Ideally, I'd it would just pickup the changes to both the
client and server code as it used to when I was working in hosted
mode. Unfortunately, I couldn't figure out how to get MySQL and
Connector/J setup in the integrated Tomcat, so I went with the "-
noserver" option and configured it with an external instance of Tomcat
instead. This manual copying crap is starting to get super annoying,
so I'm reaching out for help.

What's the best practices for 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: GWT + MySQL Best Practices?

2008-11-26 Thread [EMAIL PROTECTED]

For automating the deployment (instead of manually copying) ant is the
only way to go.  I've heard stories that Maven is even easier, but we
haven't jumped onto that band wagon (yet).  When we build with no
server, we have an ant build file that does all that, and then deploys
to our external server.  We do it old school and jump out to the file
system and run via command line, but I've done from inside Eclipse as
well.


On Nov 26, 5:39 pm, DanielC <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> I'm developing a project with GWT + Servlets + MySQL. At this point,
> I've got the project setup using the "-noserver" flag and I have
> Connector/J configured on an external Tomcat 6 server so that my
> servlets can access the DB. Communication to/from server is through
> GWT-RPC .
>
> My Problem: This is a bit of a pain b/c anytime I make a change to the
> servlet code (which resides in the same Eclipse project as my GWT
> code...and I'd prefer to keep it this way), I have to copy the *.class
> file (for the servlet) over to the CATALINA_HOME/webapps/myproject/WEB-
> INF/classes/blahblahblah folder.
>
> This seems extremely manual and I'm hopeful that there's a better way
> to do it. What is the recommended way of doing this type of
> development? Ideally, I'd it would just pickup the changes to both the
> client and server code as it used to when I was working in hosted
> mode. Unfortunately, I couldn't figure out how to get MySQL and
> Connector/J setup in the integrated Tomcat, so I went with the "-
> noserver" option and configured it with an external instance of Tomcat
> instead. This manual copying crap is starting to get super annoying,
> so I'm reaching out for help.
>
> What's the best practices for 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: Is Run Time Annotation Possible?

2008-11-26 Thread Au Lai Seong

How do you make the com.gwtent.client.test.annotations.Id to be
understandable by GWT?



On Thu, Nov 27, 2008 at 6:57 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> Hi, zujee,
>
>  I have a reflection implement for GWT client code, and it support
> get Annotation's value at runtime.
>
>  http://code.google.com/p/gwt-ent/
>  The test case:
> http://code.google.com/p/gwt-ent/source/browse/trunk/gwtent/test/com/gwtent/client/test/ReflectionTestCase.java
>
>  Hope that helps :)
> James
>
> On Nov 26, 5:46 pm, zujee <[EMAIL PROTECTED]> wrote:
>> Hi experts,
>> I have an interface which extends ImmutableResourceBundle
>>
>> and inside that
>> @Resource("com/MyPath/MyConstants.properties")
>> public abstract TextResource properties();
>>
>> and its working fine.
>> but I need to change the filename after reading the XML file .
>> eg:
>> 
>> MyConstants_C1.properties
>> 
>>
>> from that I need to set the reosuece path as
>> @Resource("com/MyPath/MyConstants_C1.properties") in run time.. is
>> that possible?
>>
>> thanks and regards
>> 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: 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" 
> > 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 )
> > > > > >                    {
> > > > > >               

Re: Login application

2008-11-26 Thread satya

Hi
Are you dong with this? do you still need help

-Satya

On Nov 20, 1:37 am, Bhupen <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I am new to GWT as i m new to java also.. but i have to work on gwt.
> as of now i have to make a login system that should take Login id and
> password as input if login successful should show another page..
>
> like see there is one entry point public class login implements
> EntryPoint {
>
> }
>
> and one public void onModuleLoad() {}
> html file : login.html, member.html
> so now we run login.java and here we make entry of loginid and
> password after success it should redirect member.html... I am very new
> to this but have to finish this end of the today...
>
> Please help me ASAP...
>
> thanks
> bhupen
--~--~-~--~~~---~--~~
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: Please help me to solve out this prob...

2008-11-26 Thread Bhupen

topLayout.printTop();
RootPanel.get("Top-Menu").add(topMenu.mainMenu());
RootPanel.get("irisPage").add(agentListPageContent.loadPage());

// top Layout
package com.client;

import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.ClickListener;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.user.client.ui.Image;

public class topLayout
{

public static void printTop()
{
HTML topContent = new HTML(""
  + ""
  + ""
  +  " "
  +   ""
  +   ""
  +   ""
  +   ""
  +   ""
  +   ""
  +   ""
  +   ""
  +""

 + ""
+ " "
  + ""
  + ""



  + ""
  + ""
  + ""
  +""
  +""
  +""
  +"");
  RootPanel.get("TopContents").add(topContent);
}
}

//topMenu

package com.client;

import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.ClickListener;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.MenuBar;
import com.google.gwt.user.client.ui.MenuItem;
import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.TabPanel;
import com.google.gwt.user.client.ui.Panel;


public class topMenu extends Composite{

public static Widget mainMenu()
{
Command menuClick = new Command()
{
public void execute()
{
dashBoardPage.dashBoard();
}

};

Command menuClick1 = new Command()
{
public void execute()
{
createUserPage.createUser();
}

};
Command menuClick2 = new Command()
{
public void execute()
{
userListPage.createUser();
}

};
Command menuClick3 = new Command()
{
public void execute()
{

createApplicationPage.createApplication();
}

};
Command menuClick4 = new Command()
{
public void execute()
{

applicationListPage.applicationList();
}

};
Command menuClick5 = new Command()
{
public void execute()
{
createJobPage.createJob();
}

};
Command menuClick6 = new Command()
{
public void execute()
{
jobListPage.jobList();
}

};
Command menuClick7 = new Command()
{
public void execute()
{
createAgentPage.createAgent();
}

};
Command menuClick8 = new Command()
{
public void execute()
{
agentListPage.agentList();
}

};
Command menuClick9 = new Command()
{
public void execute()
{
blackoutPage.blackOut();
 

Re: disable hyperlink

2008-11-26 Thread alex.d

If you wanna it look disabled - change CSS style. If you wanna your
clickListener not being executed - just remove it(use a single
listener method - not an anonymous inner class).

On 26 Nov., 17:03, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> It's a little hacky, but we just substitute a label in it's place.
>
> On Nov 26, 7:55 am, "Litty Preeth" <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > Anybody knows how we can disable a HyperLink in GWT?
>
> > Regards,
> > Litty Preeth
>
>
--~--~-~--~~~---~--~~
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: disable hyperlink

2008-11-26 Thread Danny Schimke
Should'nt setVisible() do this for HyperLinks too?

setVisible needs an element and boolean:

myHyperLink.setVisible(myHyperLink.getElement(), false);

otherwise do what alex.d says:

add and remove a style name which do this.
CSS: visibility: hidden;

2008/11/27 alex.d <[EMAIL PROTECTED]>

>
> If you wanna it look disabled - change CSS style. If you wanna your
> clickListener not being executed - just remove it(use a single
> listener method - not an anonymous inner class).
>
> On 26 Nov., 17:03, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
> > It's a little hacky, but we just substitute a label in it's place.
> >
> > On Nov 26, 7:55 am, "Litty Preeth" <[EMAIL PROTECTED]> wrote:
> >
> > > Hi,
> >
> > > Anybody knows how we can disable a HyperLink in GWT?
> >
> > > Regards,
> > > Litty Preeth
> >
> >
> >
>

--~--~-~--~~~---~--~~
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: Need to richer widget set in GWT

2008-11-26 Thread alex.d

Libraries close to your wish list are GXT and GWT Mosaic.

> > > > The widgets that matter most to me are:
> > > > 1. Sortable table/grid
> > > > 2. Grouping table/grid
> > > > 3. Paging table/grid
> > > > 4. Dragable pop dialog (Having action buttons at the top right of the
> > > > dialog)
> > > > 5. Tab Panel (GWT is missing the mouse over and table scrolling)
> > > > 6. Calendar date field (With date picker)
> > > > 7. ComboBox (Image support, z-indexable)
>
> > > > In addition, I think it would be very helpful if GWT had some basic
> > > > CSS templates like EXT's default, gray, and vista templates.
>
> > > > Please let me know if the GWT team is planning on building these
> > > > features.
>
> > > > If not, let me know if anyone is interested.  Because I'll build them
> > > > and post them somewhere.
>
>
--~--~-~--~~~---~--~~
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: Bundle RPC calls

2008-11-26 Thread Lars Tackmann



On Nov 25, 7:21 pm, quentin <[EMAIL PROTECTED]> wrote:
> Command pattern
>

Also my initial idea, but I wondered if there where some sort of
official GWT-RPS queue/bundling
mechanism that could accompilish this. Anyway thanks for the input, I
will try implementing a prototype
and see how it pans out.

--
Lars Tackmann
--~--~-~--~~~---~--~~
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 mon3y

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



web.xml or .gwt.xml?

2008-11-26 Thread Michel

Hi,

I have read the lengthy post about servlet descriptors for hosted mode
vs. deployed mode.

http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/36f8c197279d159/ed4f5bbc972bc6b8?lnk=gst&q=web.xml#ed4f5bbc972bc6b8

According to this, I should put my  and  and
so on in tomcat/webapps/ROOT/WEB-INF/web.xml for hosted mode. Howewer,
I find that in practice I have to put them in myapplication.gwt.xml,
like this




If I do that, and not put my servlet in the aforementioned web.xml, it
works fine in hosted mode. So that is great, if unexpected, but now I
want to add a parameter for my servlet, along these lines:

  
   MusicUploadService
   
   org.cafesip.gwtcomp.server.FileUploadServlet
   

   
   action-class

   
   mypackage.MyActionClass
   
 

This is from the API for (org.cafesip.gwtcomp.server Class
FileUploadServlet)


How do I add the  to my gwt.xml file? Or should this be in
web.xml after all? If so, how?

Thank you for your help,



Michel


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



changing keyboard input language

2008-11-26 Thread Vlad

Hi all,

Just started dev with GWT. I am able to change the current keyboard
input context in pure java using the InputContext class so that when I
change the language in my app, the keyboard automatically changes to
that language. Now, is there an equivalent or similar way to do this
in GWT. My web client has a drop down list to select different
languages which my server returns the appropriate info in the selected
language. However, I still need to manually change the keyboard input
on the MS WIndows XP System Tray to be able to enter data in the
selected language.

All help is appreciated.

Thanks in advance,

Vlad

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



Upgrading to GWT 1.5 roadmap

2008-11-26 Thread LoneWolf

Hey,
We have an application coded and compiled using GWT 1.4
We want to employ GWT 1.5 (themes and performance gains), how to
upgrade to 1.5?
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: Upgrading to GWT 1.5 roadmap

2008-11-26 Thread LoneWolf

Oops,
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=ReleaseNotes_1_5_UpgradeGuide
Thanks :shame:

On Nov 26, 2:08 pm, LoneWolf <[EMAIL PROTECTED]> wrote:
> Hey,
> We have an application coded and compiled using GWT 1.4
> We want to employ GWT 1.5 (themes and performance gains), how to
> upgrade to 1.5?
> 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: Why it's so slow?

2008-11-26 Thread Lothar Kimmeringer

Andrey schrieb:

> Most of the time is spending after the message:
> "
> ...
> Computing all possible rebind results for
> 'com.acme.client.AddressBookService'
> ...
> ".

When building a GWT-application, for all browser- and language-
variants a complete compile will be performed. So one minute
is not too much, e.g. my current application needs two minutes
for two languages and the standard set of browsers. Every resulting
html-page containing the JS-code is about 1MB big.

> So, how is it possible to develop anything with such a speed?

First of all, one minute is nothing. In the Good Old Times [TM]
the build of something non-trivial took a significant time much
more than one minute.

In hosted mode, a press on refresh is all you need, if you
have changed classes concerning the client-side and functionality
on the server-side is better developed by writing a JUnit-test
that actually test all the functionality (not only the one that
is happening when pressing a button on a GUI). That's much faster
than building the complete application and try out by entering
values into the GUI and pressing the button.


Regards, Lothar

--~--~-~--~~~---~--~~
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: Why it's so slow?

2008-11-26 Thread Jason Morris

The GWT Compiler does a massive amount of optimization and it does so for each 
of the browsers. This 
process takes a lot of time.

GWT has it's own browser that runs your Java code with less compilation work 
(and lets you debug 
your Java code instead of the generated JavaScript). To access this 
functionality in Netbeans use 
"Debug Project" instead of "Run Project".

You should also look here:
http://lemnik.wordpress.com/2008/07/27/fixing-compilation-in-gwt4nb/
For a patch to the default build.xml thats generated by gwt4nb (it stops the 
GWT Compiler running 
when it doesn't need to).

Hope that helps.

Andrey wrote:
> Hello,
> 
> I begin learning GWT and meet with problem of slow building of GWT
> project :(.
> 
> I created a new GWT web-project in NetBeans, download a sample
> addressBook application and adjust it for the project.
> 
> Building procedure takes about a minute :(.
> 
> Most of the time is spending after the message:
> "
> ...
> Computing all possible rebind results for
> 'com.acme.client.AddressBookService'
> ...
> ".
> 
> So, how is it possible to develop anything with such a speed?
> 
> 
> Regards,
> 
> -Andrey
> 
> > 
> 

--~--~-~--~~~---~--~~
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: using Jetty for hosted mode?

2008-11-26 Thread Tóth Imre
I think the maven2 guys implemented  the jetty by to be the default
webserver, as far as i know.

maven rocks:)

2008/11/25 Charlie Collins <[EMAIL PROTECTED]>

>
> You can't change the embedded server, but you can use -noserver and
> work with Jetty that way.
>
>
> http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=FAQ_HostedModeNoServer
>
> Also, on a related note, the GWT team is considering using Jetty *as*
> the embedded server in 1.6:
>
> http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/604aec6b7460c133
> .
>
> On Nov 25, 5:07 am, "Juan Backson" <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > Does anyone know how to change GWT default servlet engine to Jetty?
> >
> > Any suggestion will be greatly appreciated.
> >
> > Thanks,
> > JB
> >
>


-- 
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Copying (clone) of JavaScriptObject

2008-11-26 Thread Mark Renouf

Before I start to rely on this, I wanted to know if this is a valid
technique for cloning a JavaScriptObject and whether there are any
limitations I might run into.

The situation is that I'd like to clone a 'settings' object so
instances of this class I build using it are immutable. I understand
it's not a deep clone, but I don't think it's necessary in my case.

  private static JavaScriptObject cloneJSO(JavaScriptObject src) {
JSONObject srcObj = new JSONObject(src);
JSONObject dstObj = new JSONObject();
for (String key : srcObj.keySet()) {
  dstObj.put(key, srcObj.get(key));
}
return dstObj.getJavaScriptObject();
  }

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: Please help me to solve out this prob...

2008-11-26 Thread gregor

Can you post example code that caused the exception?

On Nov 26, 6:50 am, Bhupen <[EMAIL PROTECTED]> wrote:
> hi, I am new to GWT and working on some project... i have added few
> widget in my application and when i am changing the contents with
> menu it's not showing any widget... apart from widget all the things
> coming properly and i m getting following error
>
> [ERROR] Uncaught exception escaped
> java.lang.AssertionError: A widget in the detach list was found not
> attached to the document. The is likely caused by wrapping an existing
> element and removing it from the document without calling
> RootPanel.detachNow().
>        at com.google.gwt.user.client.ui.RootPanel.detachWidgets
> (RootPanel.java:200)
>        at com.google.gwt.user.client.ui.RootPanel$1.onWindowClosed
> (RootPanel.java:221)
>        at com.google.gwt.user.client.Window.fireClosedImpl(Window.java:
> 465)
>        at com.google.gwt.user.client.Window.fireClosedAndCatch
> (Window.java:
> 456)
>        at com.google.gwt.user.client.Window.onClosed(Window.java:430)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> Source)
>        at java.lang.reflect.Method.invoke(Unknown Source)
>        at com.google.gwt.dev.shell.MethodAdaptor.invoke
> (MethodAdaptor.java:
> 103)
>        at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod
> (IDispatchImpl.java:126)
>        at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke
> (IDispatchProxy.java:155)
>        at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke
> (IDispatchImpl.java:294)
>        at com.google.gwt.dev.shell.ie.IDispatchImpl.method6
> (IDispatchImpl.java:194)
>        at org.eclipse.swt.internal.ole.win32.COMObject.callback6
> (COMObject.java:117)
>        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native
> Method)
>        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:
> 1925)
>        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:
> 2966)
>        at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720)
>        at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
>        at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)
>
> And when i pur RootPanel.detachNow(widget)... then nothing is showing
> with that panel..
>
> and getting the following error
>
> [ERROR] Uncaught exception escaped
> java.lang.AssertionError: detachNow() called on a widget not currently
> in the detach list
>        at com.google.gwt.user.client.ui.RootPanel.detachNow
> (RootPanel.java:
> 87)
>        at com.client.agentListWidget.widgetInterface
> (agentListWidget.java:
> 15)
>        at com.client.IRIS$1.onClick(IRIS.java:57)
>        at
> com.google.gwt.user.client.ui.ClickListenerCollection.fireClick
> (ClickListenerCollection.java:34)
>        at com.google.gwt.user.client.ui.Image.onBrowserEvent
> (Image.java:484)
>        at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:
> 1308)
>        at com.google.gwt.user.client.DOM.dispatchEventAndCatch
> (DOM.java:
> 1287)
>        at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1255)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> Source)
>        at java.lang.reflect.Method.invoke(Unknown Source)
>        at com.google.gwt.dev.shell.MethodAdaptor.invoke
> (MethodAdaptor.java:
> 103)
>        at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod
> (IDispatchImpl.java:126)
>        at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke
> (IDispatchProxy.java:155)
>        at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke
> (IDispatchImpl.java:294)
>        at com.google.gwt.dev.shell.ie.IDispatchImpl.method6
> (IDispatchImpl.java:194)
>        at org.eclipse.swt.internal.ole.win32.COMObject.callback6
> (COMObject.java:117)
>        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native
> Method)
>        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:
> 1925)
>        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:
> 2966)
>        at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720)
>        at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
>        at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)
>
> Please help me out of this problem...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [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 jossey

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

Re: Please help me to solve out this prob...

2008-11-26 Thread Brian

Yeah we definitely need to see the code -- but as a wild shot in the
dark -- on your widget are you overriding onAttach() and forgetting to
call super.onAttach() ?


On Nov 26, 7:44 am, gregor <[EMAIL PROTECTED]> wrote:
> Can you post example code that caused the exception?
>
> On Nov 26, 6:50 am, Bhupen <[EMAIL PROTECTED]> wrote:
>
> > hi, I am new to GWT and working on some project... i have added few
> > widget in my application and when i am changing the contents with
> > menu it's not showing any widget... apart from widget all the things
> > coming properly and i m getting following error
>
> > [ERROR] Uncaught exception escaped
> > java.lang.AssertionError: A widget in the detach list was found not
> > attached to the document. The is likely caused by wrapping an existing
> > element and removing it from the document without calling
> > RootPanel.detachNow().
> >        at com.google.gwt.user.client.ui.RootPanel.detachWidgets
> > (RootPanel.java:200)
> >        at com.google.gwt.user.client.ui.RootPanel$1.onWindowClosed
> > (RootPanel.java:221)
> >        at com.google.gwt.user.client.Window.fireClosedImpl(Window.java:
> > 465)
> >        at com.google.gwt.user.client.Window.fireClosedAndCatch
> > (Window.java:
> > 456)
> >        at com.google.gwt.user.client.Window.onClosed(Window.java:430)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> >        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> > Source)
> >        at java.lang.reflect.Method.invoke(Unknown Source)
> >        at com.google.gwt.dev.shell.MethodAdaptor.invoke
> > (MethodAdaptor.java:
> > 103)
> >        at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod
> > (IDispatchImpl.java:126)
> >        at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke
> > (IDispatchProxy.java:155)
> >        at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke
> > (IDispatchImpl.java:294)
> >        at com.google.gwt.dev.shell.ie.IDispatchImpl.method6
> > (IDispatchImpl.java:194)
> >        at org.eclipse.swt.internal.ole.win32.COMObject.callback6
> > (COMObject.java:117)
> >        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native
> > Method)
> >        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:
> > 1925)
> >        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:
> > 2966)
> >        at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720)
> >        at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
> >        at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)
>
> > And when i pur RootPanel.detachNow(widget)... then nothing is showing
> > with that panel..
>
> > and getting the following error
>
> > [ERROR] Uncaught exception escaped
> > java.lang.AssertionError: detachNow() called on a widget not currently
> > in the detach list
> >        at com.google.gwt.user.client.ui.RootPanel.detachNow
> > (RootPanel.java:
> > 87)
> >        at com.client.agentListWidget.widgetInterface
> > (agentListWidget.java:
> > 15)
> >        at com.client.IRIS$1.onClick(IRIS.java:57)
> >        at
> > com.google.gwt.user.client.ui.ClickListenerCollection.fireClick
> > (ClickListenerCollection.java:34)
> >        at com.google.gwt.user.client.ui.Image.onBrowserEvent
> > (Image.java:484)
> >        at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:
> > 1308)
> >        at com.google.gwt.user.client.DOM.dispatchEventAndCatch
> > (DOM.java:
> > 1287)
> >        at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1255)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> >        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> > Source)
> >        at java.lang.reflect.Method.invoke(Unknown Source)
> >        at com.google.gwt.dev.shell.MethodAdaptor.invoke
> > (MethodAdaptor.java:
> > 103)
> >        at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod
> > (IDispatchImpl.java:126)
> >        at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke
> > (IDispatchProxy.java:155)
> >        at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke
> > (IDispatchImpl.java:294)
> >        at com.google.gwt.dev.shell.ie.IDispatchImpl.method6
> > (IDispatchImpl.java:194)
> >        at org.eclipse.swt.internal.ole.win32.COMObject.callback6
> > (COMObject.java:117)
> >        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native
> > Method)
> >        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:
> > 1925)
> >        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:
> > 2966)
> >        at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720)
> >        at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
> >        at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)
>
> > Please help me out of this problem...
--~--~-~--~~

Re: hot code replacement in external module

2008-11-26 Thread jossey

Hi,
The .gwt.xml will be used only when you compile the Java code to
javascript.
So you will not be deploying the .gwt.xml.

Setting the user.agent and locale properties are just to make the
development cycle faster.
And when you actually do the final build you would not use these
properties.

I guess you would be able to use the embedded server even if you have
integrated the server side to spring.
I found this approach some where in the net, but don't remember where.

Anyways,
if we could map all your remote services to path like /services/
XService
then we would be able to map the spring dispatcher servlet to

/com.abc.xyz.XYZ/services/*Service
 or
/com.abc.xyz.XYZ/services/*   I am
not sure whether .../*Service worked correctly for me.

..
Well... now... will this actually solve the problem changes to the
service not reflecting on the fly.
I think it will not. I am not sure though... i was developing a
prototype and had no time to investigate.

I think the GWTShell uses its own class loader and that is how it
handles dynamic loading of the changes.
And when we took a different path - the spring dispatcher - we lost
this feature.

But yes the client changes will be reflected because it goes thro
GWTShell. Theoretically...


G, if you r trying this out pls let us know whether all this makes
sense.

Thanks,
Jossey.




On Nov 25, 4:04 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Thanks for answering.
>
> Is it correct that the user-agent property should be set to IE6 if I
> keep on using the default GWT browser?  I guess this tells GWT to only
> compile the IE6 version, right?  This makes me wonder whether or not
> the .gwt.xml file is used on a production server, and if it is, do I
> have to provide a version where the user-agent property is not set?  I
> can feel my question being slightly stupid by couldn't keep from
> asking, sorry  ;-)
>
> Now the reason why I'm running in -noserver mode is that I'm using
> Spring (I need it for injection, and DB transaction management) via
> the org.gwtwidgets.server.spring.GWTHandler, and from what I read by
> its author, it can only work that way.  I did try to make the whole
> lot work with the embedded Tomcat server (which I would have been more
> than happy with) but from what I understood, the fact that
> GWTShellServlet is mapped to the "/*" url leads to conflicts.
>
> I'll give your suggestions a try, thanks.
>
> G.
>
> On Nov 14, 2:46 pm, gregor <[EMAIL PROTECTED]> wrote:
>
> > Well, if you are running in -noserver mode, then if you change any
> > server side code, including classes like DTOs passed between client
> > and server, you will naturally have to redeploy. You don't explain why
> > you have elected to run in -noserver mode, but if you did you may get
> > some suggestions as to how you might be able work with the embedded
> > hosted mode Tomcat instance.
>
> > Two things you could look at to improve tunaround times are:
>
> > 1) if you set this in your module.gwt.xml file:
>
> >     >             name="user.agent"
> >             value="ie6"/> or gecko etc
>
> > it will cut your module compile times roughly in half
>
> > 2) Modify your ant script to include a task that builds and deploys a
> > WAR that contains just the server side code you need for development
> > purposes. You then just click this task from your IDE.
>
> > regards
> > gregor
>
> > On Nov 14, 8:25 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > > Is my question so trivial that no-one considers answering?
--~--~-~--~~~---~--~~
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: Is Run Time Annotation Possible?

2008-11-26 Thread Arthur Kalmenson

Hi Zujee,

AFAIK, it is not possible to modify annotations during runtime (on the
client side). Annotation modification would require reflections which
is not supported on the client side.

--
Arthur Kalmenson



On Wed, Nov 26, 2008 at 1:46 AM, zujee <[EMAIL PROTECTED]> wrote:
>
> Hi experts,
> I have an interface which extends ImmutableResourceBundle
>
> and inside that
> @Resource("com/MyPath/MyConstants.properties")
>public abstract TextResource properties();
>
> and its working fine.
> but I need to change the filename after reading the XML file .
> eg:
> 
> MyConstants_C1.properties
> 
>
> from that I need to set the reosuece path as
> @Resource("com/MyPath/MyConstants_C1.properties") in run time.. is
> that possible?
>
>
> thanks and regards
> 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: Why it's so slow?

2008-11-26 Thread Andrey


On 26 нояб, 15:11, Lothar Kimmeringer <[EMAIL PROTECTED]> wrote:
> Andrey schrieb:
>
> > So, how is it possible to develop anything with such a speed?
> ...

> ...
> In hosted mode, a press on refresh is all you need, if you
> have changed classes concerning the client-side

Yea, as I see, I should learn this (especially how to do it in
NetBeans).

>and functionality
> on the server-side is better developed by writing a JUnit-test
> that actually test all the functionality (not only the one that
> is happening when pressing a button on a GUI)

Yea, thanks.

>
> Regards, Lothar

Regards,

-Andrey
--~--~-~--~~~---~--~~
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 Ravi M

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 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 );
> > > > > >                }
> > > > > >            

Re: How to do cross site implementation in GWT

2008-11-26 Thread Manish Kumar

Hi Manuel,

Thanx for response.But I wanna know how do you passing the parameter from 
our website/HTML to gwt component.
is this by using JSNI.if yes , how do attached your compiled gwt app source 
to your website/html.This point is crucial for me
since i am not able to connect to gwt from our html in deployment mode( not 
hosted mode ).

please provide the detail about your approach.

Regards
Manish

- Original Message - 
From: "Manuel Aguilera" <[EMAIL PROTECTED]>
To: "Google Web Toolkit" 
Sent: Wednesday, November 26, 2008 1:13 AM
Subject: Re: How to do cross site implementation in GWT



I was having a similar Issue. I am working on an application that will
load a short list of headlines from our website via cross-site
json.The gwt files,  the json feed and the host HTML page reside on
different domains. On the Module XML format page in the developer
guide (http://code.google.com/docreader/#p=google-web-toolkit-
doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideModuleXml) the method
suggested was including something similar to:


  
  


however after uploading the output files I got a couple of permission
errors on Firefox, namely:

Permission denied to get property Window.document
http://192.168.1.145/com.fbg.headlinesreader.HeadlinesReader/6F72E8AB842459823620F4AC11938839.cache.html
Line 1

What I did was to remove the  element from the module xml file.
Mine looks as follows:














I am not sure why but it seems to be working ok now. I Hope this helps

Regards,
Manuel Aguilera



On Nov 25, 1:25 am, "Manish Kumar" <[EMAIL PROTECTED]> wrote:
> Hi everybody,
>
> can anybody plz help me out to get the right path for cross site
> implementation.
>
> please go through the mail below and make me aware about my approach.
>
> Thanx & Regards
> Manish
>
> - Original Message -
> From: "Manish Kumar" <[EMAIL PROTECTED]>
> To: 
> Sent: Monday, November 24, 2008 11:12 AM
> Subject: How to do cross site implementation in GWT
>
> > Hi everybody,
>
> > I has working for 2 months on GWT( 1.5.3 ). I have been successful in
> > implementing various feature in GWT. Finally I am stuck at end for 
> > almost
> > 20
> > days in including my GWT project to a set of HTML files with passing a 
> > set
> > of values to GWT from HTML.
> > Previously also I put this issue in this forum as i was trying with JSNI
> > and
> > xs linker.Now i am running out of time. Time has come for 
> > decision.Thanks
> > for constant help and co-operation.
>
> > Now can anybody please confirm my approach? Since still I suspect my
> > approach.
>
> > I have a set of HTML files. I have made and GWT project including some
> > widgets , rpc and a external server( calling using request builder ). I
> > have
> > wriiten a JSNI method in GWT component which is called by a GWT method
> > called inside onModuleLoad.
> > I have wriiten a js method( on HTML side) which calls JSNI method.
>
> > I compiled the GWT component using xs linker and added nocache.js in my
> > HTML(in HEAD part). I am expecting that this will invoke GWT component 
> > as
> > js
> > method ( html side ) is called on click of a button displayed in HTML.
>
> > A couple of months back I had got this but I don't understand why this 
> > is
> > not working this time.There is a remarkable observation is that 
> > previously
> > I
> > had got xs-nocache.js and my JSNI method inside that.This I am not 
> > getting
> > now.
>
> > One more thing I would like to know that what is the role of cache.js?
>
> > Can anybody provide me what is mistake/is this workable or not.
>
> > Regards
> > Manish



--~--~-~--~~~---~--~~
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: web.xml or .gwt.xml?

2008-11-26 Thread Isaac Truett

Servlet configuration in module definitions (gwt.xml files) is for
*simple* servlets. It's enough to get you started, but once your
project reaches any siginificant level of complexity, you need to use
the -noserver option for hosted mode and provide your own app server.
You configure that app server as you normally would.



On Wed, Nov 26, 2008 at 3:50 AM, Michel <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have read the lengthy post about servlet descriptors for hosted mode
> vs. deployed mode.
>
> http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/36f8c197279d159/ed4f5bbc972bc6b8?lnk=gst&q=web.xml#ed4f5bbc972bc6b8
>
> According to this, I should put my  and  and
> so on in tomcat/webapps/ROOT/WEB-INF/web.xml for hosted mode. Howewer,
> I find that in practice I have to put them in myapplication.gwt.xml,
> like this
>
> 
>
>
> If I do that, and not put my servlet in the aforementioned web.xml, it
> works fine in hosted mode. So that is great, if unexpected, but now I
> want to add a parameter for my servlet, along these lines:
>
>  
>   MusicUploadService
>   
>   org.cafesip.gwtcomp.server.FileUploadServlet
>   
>
>   
>   action-class
>
>   
>   mypackage.MyActionClass
>   
> 
>
> This is from the API for (org.cafesip.gwtcomp.server Class
> FileUploadServlet)
>
>
> How do I add the  to my gwt.xml file? Or should this be in
> web.xml after all? If so, how?
>
> Thank you for your help,
>
>
>
> Michel
>
>
> >
>

--~--~-~--~~~---~--~~
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: Label Click events to be fired Automatically

2008-11-26 Thread Ian Bambury
listener.onClick(label);

Ian

http://examples.roughian.com


2008/11/26 Ryan <[EMAIL PROTECTED]>

>
> Hi
> everybody,
>
> I have a page with two labels. I have written some code on the click
> events of the 2 labels.
> Is it possible that when a page loads I fire these click events
> without the user required to click the labels.
>
> regards,
> Cherian
> >
>

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



GWT build

2008-11-26 Thread m007

hi, I have a question. I download the source of GWT from SVN and build
it.
I did this because i thought that a bug that made the compilation of
java code slower was solved.

but when i use it in my eclipse project the compilation is slower even
that the one i had.
is there a compilation option o something else i have to configure???

the compiler from the download site is faster than the one I built
today. has anyone done this

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



Label Click events to be fired Automatically

2008-11-26 Thread Ryan

Hi
everybody,

I have a page with two labels. I have written some code on the click
events of the 2 labels.
Is it possible that when a page loads I fire these click events
without the user required to click the labels.

regards,
Cherian
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Why it's so slow?

2008-11-26 Thread Andrey

Hello,

I begin learning GWT and meet with problem of slow building of GWT
project :(.

I created a new GWT web-project in NetBeans, download a sample
addressBook application and adjust it for the project.

Building procedure takes about a minute :(.

Most of the time is spending after the message:
"
...
Computing all possible rebind results for
'com.acme.client.AddressBookService'
...
".

So, how is it possible to develop anything with such a speed?


Regards,

-Andrey

--~--~-~--~~~---~--~~
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: Has anyone worked with the Google Calendar API in GWT.

2008-11-26 Thread Ryan

thanks alex I got it working..
--~--~-~--~~~---~--~~
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: Newbie question - GWT not creating files in Hosted mode.

2008-11-26 Thread fancyplants

Doh, thanks Thomas,  schoolboy error!

On Oct 10, 9:24 am, Thomas Broyer <[EMAIL PROTECTED]> wrote:
> On 9 oct, 13:24, fancyplants <[EMAIL PROTECTED]> wrote:
>
> > [WARN] Resource not found: com.app.gwt.client.Main.nocache.js; (could
> > a file be missing from the public path or a  tag
> > misconfigured in module com.app.gwt.Main.gwt.xml ?)
>
> [...]
>
> >      > src="com.app.gwt.client.Main.nocache.js">
>
> Your module is named com.app.gwt.Main, not com.app.gwt.client.Main
> (which happens to be the name of your module's EntryPoint)
--~--~-~--~~~---~--~~
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: using Jetty for hosted mode?

2008-11-26 Thread rakesh wagh

check this:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/604aec6b7460c133/419baa6d8488eaa6?hl=en&lnk=gst&q=jetty#419baa6d8488eaa6

On Nov 25, 4:07 am, "Juan Backson" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Does anyone know how to change GWT default servlet engine to Jetty?
>
> Any suggestion will be greatly appreciated.
>
> Thanks,
> JB
--~--~-~--~~~---~--~~
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: Label Click events to be fired Automatically

2008-11-26 Thread rakesh wagh

"Or" put the body of onCick in a method example: doOnClick().
Call the doOnClick() method in your Widget's onLoad() method.

Rakesh WAgh

On Nov 26, 7:06 am, Ryan <[EMAIL PROTECTED]> wrote:
> Hi
> everybody,
>
> I have a page with two labels. I have written some code on the click
> events of the 2 labels.
> Is it possible that when a page loads I fire these click events
> without the user required to click the labels.
>
> regards,
> Cherian
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



How to remove a MenuItem's sub menubar?

2008-11-26 Thread David Hoffer

How can I dynamically set & remove a menu item's sub menubar?  If I
set the sub menubar to a new empty instance of MenuBar then I get
runtime IndexOfOfBounds errors when the user hovers where the sub
menubar would be.  If i set the the sub menubar to null it crashes
when it runs.

If I get the parent menubar and remove the item, I can't put the item
back at the same location again because there is no addItem that
allows placement/index to be specified.

How can I dynamically add/remove a sub menubar?

-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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: api for google MAPS

2008-11-26 Thread Eric Ayers

Hi rizla:

If there is such a method in the JavaScript API:

  http://code.google.com/apis/maps

then please file an issue to have this feature wrapped.

-Eric.

On Tue, Nov 25, 2008 at 7:14 PM, rizla <[EMAIL PROTECTED]> wrote:
>
> hi to all!
> there is a method in the GWT maps API that finds the localities near a
> city or town ?
> for example:
> List methodThatIDream(referenceLocality)?!
> thanks to everyone :D
> >
>



-- 
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

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



disable hyperlink

2008-11-26 Thread Litty Preeth
Hi,

Anybody knows how we can disable a HyperLink in GWT?

Regards,
Litty Preeth

--~--~-~--~~~---~--~~
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: Open url with POST parameters

2008-11-26 Thread Thomas Broyer


On 12 nov, 12:34, Cesc <[EMAIL PROTECTED]> wrote:
> Hi all,
> I've searching all around the discussions and although there were a
> few hints, I couoldn't find a suitable solution.
>
> In HTML, I have a form like:
>
> --
> http://action_script";>
> 
>
> 
> 
>  type="checkbox" value="datasetID">Dataset
> 
> 
> 
>
> When I click on submit, a new url is opened and process the datasetID
> accordingly, for example, a new html page displaying: "You have
> selected datasetID="" ".
>
> I want to reproduce this behaviour with GWT, submitting some
> parameters via POST, opening a new browser window with that datasetID
> being passed.
>
> Anyone with similar experience?

FormPanel form = new FormPanel("_blank"); // equivalent to
target=_blank in HTML
form.setAction("http://action_script";);
form.setMethod(FormPanel.METHOD_POST);

// TODO: add some panels and your controls


--~--~-~--~~~---~--~~
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: Bundle RPC calls

2008-11-26 Thread quentin

Nothing official that i'm aware of, although GWT provides some nice
Command helper classes. IncrementalCommand should do what you need it
to do I imagine.



--~--~-~--~~~---~--~~
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: Managing Widgets that GWT did not generate

2008-11-26 Thread Thomas Broyer



On 25 nov, 01:53, tieTYT <[EMAIL PROTECTED]> wrote:
> Hello,
>
> For reasons explained in this thread,
> http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/9a050d74a6cd22bc#
> , I need to define some HTML in the HTML document.  The rest of the
> page is generated by GWT.  The problem is, I can't figure out a way to
> take my formPanel, defined like this, FormPanel formPanel =
> FormPanel.wrap(DOM.getElementById("loginForm"), true);
> And add it to a basePanel that's been defined like this: basePanel =
> new VerticalPanel();

If you do this, you'll likely lose the form's autocomplete (just
guessing, I haven't tried it)

> So, is there a way to move HTML from the document into GWT generated
> panel's?

You could move the DOM element, not the widget (this means you won't
have your FormPanel as a child of your VerticalPanel, and your
VerticalPanel will be in some kind of "inconsistent" state: its DOM
structure has been changed without it being notified, so some things
might break).

> My alternative is to add the whole layout of the page into
> the HTML and put placeholders in it that GWT populates.  I'd like to
> avoid that.

That's the Best Thing (TM) to do IMO. Why would you like to avoid this
approach?


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