Re: long in GWT 1.5

2008-12-19 Thread Kathy

Yes, I know it, but I thought if I'm using the type Long in the JSNI
method it would be ok because the docs says:" For values meant to be
passed through unchanged to Java code, wrap the value in a Long". On
the client side this works, but what do I have to do to send the Long
values retrieved from the JSNI methods to the server?

On 18 Dez., 17:48, "olivier FRESSE"  wrote:
> long is not usable "as is" . JScript doesn't have a matching type...
> seehttp://code.google.com/intl/fr/docreader/#p=google-web-toolkit-doc-1-...
>
> 2008/12/18 Kathy 
>
>
>
> > Hello,
>
> > I'm having problems to use long values in GWT 1.5. I'm using a lot of
> > JSNI methods, and I need to pass longs into or out of these methods.
> > As long as I don't need to change the long values in the JSNI methods
> > I pass them with the type Long. But if I call a RPC method with a Long
> > value retrieved from a JSNI method I always get an exception
>
> > "TypeError parts is undefined"
>
> > when the parameter of the rpc method is of type long and a
>
> > "com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
> > java.lang.ClassNotFoundException:
> > com.google.gwt.core.client.JavaScriptObject"
>
> > when I'm using Long instead of the primitive type.
>
> > Can someone tell me what I'm doing wrong? Which type must I use when
> > passing long values to rpc method which are retrieved from JSNI
> > methods?
>
> > Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT RIA s ?

2008-12-19 Thread Miles T.

Hi Riyaz,

Unfortunately, you cannot find all these features in one framework. As
Arthur said, there are some things in gwt-incubator. Some others are
in GWT-WL, GWT-SL, Ext GWT, gwt-ext, SmartGWT, etc...

Examples :
gwt-incubator : Logging
GWT-SL : Spring integration
Ext GWT (this is a lib I use so I can tell you more than the other
libs) : layouts, look&feels, widgets and MVC

Regards

--
Miles T.

On 18 déc, 15:46, Rob Smith  wrote:
> Arthur,
> So you've assumed responsibility for being the GWT saviour by
> educating these developers  and saving their project? What makes you
> so qualified? You've expressed your opinion (more than once) so why
> not leave it at that. How would it appear if someone posted in
> response to your every post saying that Arthur is clueless? Or the ZK
> guys saying that GWT sucks in their ads that are all over the place.
> Everyone is entitled to an opinion by going overboard is really not
> necessary. You know what they say about opinions and wanting to give
> them... And you've gone out of your way to voice your opinion even no
> one asked for it.
>
> Try to take a deep breath and relax when these libraries are mentioned
> and ignore them instead of assuming the role of GWT gatekeeper. There
> have been stray email questions on various third party libraries like
> GChart and DnD. I don't see you jump in on those threads pointing to
> the appropriate forum.
>
> Rob
>
> Full disclosure : I am a contributor to gwt-ext by mostly
> participating in their forums.
>
> On Dec 18, 8:54 am, "Arthur Kalmenson"  wrote:
>
> > Hi Rob,
>
> > Judging from cloudcity's response, not everyone is aware of the draw
> > backs of these libraries (or, as you put it, my position on them).
> > Ignoring an issue is not going to make it go away. I'm letting people
> > know what the draw backs of using these libraries are, because a lot
> > of people are impressed by the shininess but are unaware of the
> > numerous problems. Anyway, I'm not here to start a flame war, I'm just
> > trying to warn people before they commit all their resources to these
> > libraries.
>
> > --
> > Arthur Kalmenson
>
> > On Wed, Dec 17, 2008 at 4:36 PM, Rob Smith  wrote:
>
> > > Did anyone ask you opinion on use of third part libs in this thread.
> > > We know what your position is on using 3rd party libs and you have
> > > made it clear "numerous" times. Repeating the same thing again and
> > > again is just adding noise to this group. Gmail has a wonderful filter
> > > option and you can set yours to ignore any thread that mentions any
> > > lib that you don't care about :)
>
> > > On Dec 17, 3:34 pm, "Arthur Kalmenson"  wrote:
> > >> I'm hoping that a lot of those things will be added to the incubator
> > >> in the near future. I've mentioned the request for simpler security
> > >> similar to Spring Security's @Secured("ROLE_USER") annotations. Data
> > >> binding and validation frameworks are on their way as well, in the
> > >> near future.
>
> > >> I would stay away from ExtGWT or SmartGWT though.
>
> > >> --
> > >> Arthur Kalmenson
>
> > >> On Wed, Dec 17, 2008 at 9:54 AM, mikedshaf...@gmail.com
>
> > >>  wrote:
>
> > >> > This does bring up a good point and something that is sourly missing.
> > >> > We have cobbled together some very generic type stuff patterned
> > >> > (albeit very low in quality) what we used extensively in Eclipse Rich
> > >> > Client.  Maybe the ExtGWT guys or SmartGWT will come up with
> > >> > something.  Or if the Eclipse Web Client guys would do GWT  Or if
> > >> > I could find a spare moment or two, I'd take it on.  The whole UI
> > >> >frameworkbeyond "widgets", like editors, views, menus, actions etc.
> > >> > is a sweet spot to be sure that is missing from any of the web
> > >> > frameworks, IMHO.
>
> > >> > On Dec 17, 6:54 am, "Arthur Kalmenson"  wrote:
> > >> >> There are some things in the incubator for status bars and logging.
> > >> >> The rest you would have to do yourself.
>
> > >> >> --
> > >> >> Arthur Kalmenson
>
> > >> >> On Wed, Dec 17, 2008 at 2:17 AM, Riyaz Mansoor 
> > >> >>  wrote:
>
> > >> >> > I'm not looking for rich widget sets (Ext, Smart, etc) but rather is
> > >> >> > there a GWTframeworkthat provides basics for aRIA. One that handles
> > >> >> > the grunt work such as providing; status bar, xml or other
> > >> >> > configurable menu, error logging report, authentication, security 
> > >> >> > etc
>
> > >> >> > This maybe reaching for the sky but kinda like what Eclipse or
> > >> >> > Netbeans provides as the core platform when developing on those
> > >> >> > platforms.- Hide quoted text -
>
> > >> >> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, vi

Re: Waiting on multiple RPC calls

2008-12-19 Thread stephen.sm...@paretopartners.com

Thats exactly the thing i need!!!

Thanks :)

On Dec 18, 11:17 pm, Dobes  wrote:
> Hi Stephen,
>
> I had a lot of scenarios like this, so I added some utility classes to
> help.  For example, I have a class called AsyncCallbackGroup which
> allows you to wait on multiple parallel RPC calls and then when they
> are all complete it calls another callback.  In your case you could
> create a group with the first two operations, then pass a callback
> whose onSuccess() method called the next call.
>
> You can get the source code for these classes in the kiyaa project:
>
> http://code.google.com/p/kiyaa/
>
> On Dec 18, 2:14 am, "stephen.sm...@paretopartners.com"
>
>
>
>  wrote:
> > Firstly, before any1 goes off on 1 about "You cant do syncronous rpc
> > calls in gwt" or "JS is single threaded" im fully aware of these
> > facts. However i also know that like many things there are usually
> > work arounds or at least better solutions than i have thought of...
>
> > So my problem is this. I have 3 RPC calls. The first 2 are totally
> > seperate however the third depends on the result of both the first 2.
>
> > The 3rd call is unfortunately rather large as it requires some DB
> > access on the server and sorting/filtering etc. and i would therefor
> > like to get this going asap.
>
> > There is also alot of other initalisation code on the client that can
> > be done at almost any stage. so it would be preferable to do this
> > during any (and possibly all) of the rpc calls
>
> > This is all currently done in module load and i am chaining my 3 rpc
> > calls. This causes the total load time to be a bit slow. This seems
> > such a horrible way to do it and even for me it gets a little
> > confusing and i wrote it.
>
> > Does any one have a better solution to how i can "wait" on the first 2
> > calls before making the 3rd whilst still executing the client
> > initalisation code.
>
> > Thanks in advance,
> > Steve- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Calling of business method from Client

2008-12-19 Thread Arul

Hi,
  Yes, it worked as the post by using Frame.

Thanks
Arul

On Dec 18, 10:00 am, gregor  wrote:
> I've never done that, Arul, but I believe displaying a PDF in GWT is
> straight forward using a Frame widget  (that could be the contents of
> a pop-up) *providing* the user has a PDF viewer plug-in installed in
> their browser. I would read what Martin and Reinier have to say about
> it in this post:
>
> http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
>
> regards
> gregor
>
> On Dec 18, 3:06 pm, Arul  wrote:
>
>
>
> > Hi Gregor,
> >   I am happy to see your reply and wish to thank for it.
> >   1)Yes , as you mentined the same warning only I am getting, so I am
> > ignoring it.
> >   2) Thanks for your suggestion for not modifying existing DAO.
>
> > One Important Clarification I would like to know from you
> > ---­---
> > Current Scenario
> > -
> >  Current system has one button called Export, selecting this opens in
> > new window then content of account details will be displayed in PDF
> > where user will be allowed either to save ot print.
>
> > Clarification from You
> > ---
> >  Would you please reply the same can be achieved in GWT using popup
> > panel or some other way? if so, please send me link or code where I
> > can refer it.
>
> > Once Agian I want to thank for your  reply for all my queries.
>
> > Thanks
> > Arul
>
> > On Dec 18, 7:45 am, gregor  wrote:
>
> > > Hi Arul,
>
> > > Firstly, if the warning you refer to is:
>
> > > [WARN] Field 'private final
> > > com.google.gwt.i18n.client.impl.ConstantMap.OrderedConstantSet
> > > keys' will not be serialized because it is final
>
> > > I think this has just crept into 1.5.3 somehow, there have been other
> > > posts about this. It is AFAIK a minor bug in hosted mode but it has no
> > > effect at all on your application - it's annoying, but just ignore it.
> > > It has no effect on returning class instances over RPC. If however the
> > > warning is different to that, then it is unusual and you should post
> > > it in full.
>
> > > > I am trying my level best not to change DAO pattern which is already
> > > > exists in my application.
> > > > There were lot of methods returns ArrayList and Vectors for different
> > > > purpose. According to your reply now I need to change my DO as well.
>
> > > I did not mean to suggest that. I was suggesting that you could
> > > continue to use your DAO service that returns a Vector of Accounts as
> > > now, but simply load the Vector into the Command DTO object (which has
> > > a field for it) rather than directly pass the Vector itself as the RPC
> > > return value.
>
> > > regards
> > > gregor
>
> > > >   Would you please clarify one thing, if I use ArrayList or Vector
> > > > instead a class (which implements Serilizable) as return type as you
> > > > mentioned your reply for business methods then I am getting some
> > > > warning like " Keys will not be Serilized because it is not final".
> > > >  Have to use always class as return type in GWT RPC business methids
> > > > instead traditional java programming return ( ArrayList,Vector
> > > > etc,,)  ?
>
> > > > Thanks
> > > > Arul
>
> > > > On Dec 17, 9:31 am, gregor  wrote:
>
> > > > > Hi Arul,
>
> > > > > Yes and no. Yes. this is the way you set up RPC services client side,
> > > > > but no, you do not necessarily have to have dozens of separate
> > > > > callbacks, one for every single use case.
>
> > > > > For example, here you have two methods that both return vectors of
> > > > > accounts. You can merge them into a single RPC service method (thereby
> > > > > cutting out half the tedious callback code) using a variant of the
> > > > > Command pattern. For example:
>
> > > > > public class AccountsCommand implements Serializable {
>
> > > > >    enum Operation {available, selected, ,etc};
>
> > > > >    private Operation op; // best made immutable
> > > > >    private Vector accounts = new Vector();
>
> > > > >    // constructors, getters, setters, etc
>
> > > > > }
>
> > > > > You set the op and dispatch one of these to a single RPC service and
> > > > > the RPC service returns the same object that now contains the results
> > > > > e.g.
>
> > > > > public interface AccountsService extends RemoteService {
> > > > >         AccountsCommand getAccounts(AccountsCommand command);
>
> > > > > }
>
> > > > > This is particularly convenient with enums because you can use a
> > > > > switch statement in the (now) single callback to call the right
> > > > > methods client side to control the UI, e,g,
>
> > > > >   public void onSuccess(AccountsCommand command) {
> > > > >        Command.Operation operation = command.getOperation();
> > > > >        switch (operation) {
> > > > >                case available: {doSomething(command.getAccounts
> > > > > ());break;}
> > > > >                case selected: {do

New release of the GWT project Tatami

2008-12-19 Thread vgrassaud

Hi

We are really excited to announce the release of Tatami v1.3.

Visit the homepage to give it a try, see the demos...

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

We will be glad to have your feedback!

Not exhaustive change list:
- License switched from LGPL only to LGPL or Apache License or BSD
- Now relies on latest Dojo 1.2.3 release
- Charting support
- Tree Widget
- Dojo drag and drop can now be used in Tatami
- The border container has been ported, advantageously replacing both
GWT DockPanel and SplitPanels
- Relies on custom dojo builds, optimizing it for the very usage of
Tatami
- Easier dijit Theme integration
- New HTML online documentation
- The grid wrapping has been ported from dojo's DataGrid 1.1 to
DataGrid
1.2
- Release of TatamiX, extensions for Tatami including an HMVC
design-pattern implementation

Cheers,

The Tatami Team.

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



Poor performance for simple query - seems to be in the deserialisation mostly

2008-12-19 Thread John Lonergan

I have been evaluating GWT but have come up against a problem I cannot
solve/understand.

I have a little service method that returns a list of 'person data'

I am finding that whilst the server side take around zero milli-secs
to handle the query (100-200 rows) the client is taking seconds before
the AsyncCallback.onSuccess() callback fires.

I am guessing that GWT is taking an age to deserialise the response.

I cannot afford to wait 2 or 3 seconds to deserialise and then render
the response.

I am unsure what factors might be influencing the performance. Or
tuning/settings I might look at.

I imagine that populating a long grid (well a couple of hundred rows)
is something that must be fairly common and that I am doing something
wrong, or missing a trick.

Small sets of 10 rows come back fast enough, but the responsiveness
degrades proportionally to the number of rows returned 
  12 rows 139ms
  40 rows 719ms
  120 rows 2109ms

I like the benefits of being able to use the Java programming model
and toolset - but unless I can solve the perf issues I must look into
alternatives such as generating HTML on the server; ie becoming a more
classic JSP/HTML site and I really don't want to do this if I can
avoid it.

Help/advice gratefully accepted.

See API below.

John



My API looks like this..

// SERVICE INTERFACE
public interface ContactService extends RemoteService {
public Person[] findContactByName(String namePart);
}


// TRANSFER OBJECT
public class Person implements IsSerializable {
private static final long serialVersionUID = 1L;
String personId;
String firstName;
String lastName;
String email;
String phone;

bunch of Getter/Setters - code omited.
}

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



cannot execute /usr/bin/firefox.

2008-12-19 Thread Venkat

Hi,

i tried to run a GWT program using netbeans in Linux , i am getting
err like this


"cannot execute /usr/bin/firefox. check external browser
configuration, its the error comes in netbeans"

I googled and got reference from this web site
http://www.nabble.com/Cannot-execute--usr-bin-firefox--NB-6.0-M10--td11481241.html
, but its vain i tried both option like this -new-window {URL}" as the
argument. and -new-tab {URL}" as the argument.

Please help me

Regards,
Venkat

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



How to cancel file uploading from client side

2008-12-19 Thread jazzka

Is there any good ways to cancel file uploading from client side. I am
using FileUpload with FormPanel and when the user open file from
"Choose file" dialog it's automaticly start loading file to server
side. If the file is really big and user have low upstream the loading
will take too much time and I want offer cancel functionality.

// fileUpload onEvent
public void onEvent(Event event)
{
String file = fileUpload.getFilename();
if(!file.equals(""))
{

formPanel.submit();

}

}

// FormPanel onSubmit
public void onSubmit(FormSubmitEvent event)
{
// Show loading and Cancel now
}

public void onSubmitComplete(FormSubmitCompleteEvent event)
{
// Hide loading and Cancel and show ok if success
}

How can I cancel form submission/file uploading?

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



Re: Directions load() method error

2008-12-19 Thread Eric Ayers
Yes, the code that is published as a sample app on the public site still
works, as does my current project.  Can you run the Directions examples at:

  http://gwt.google.com/samples/HelloMaps-1.0.2/HelloMaps.html

Could it be that you are running Directions.load() more than once in
parallel?  Only one is supposed to be active at a time (I see that the
javadoc does not reflect that.)  I just added a unit test that tests it.

Also, if you are running the test from outside the US, that might make a
difference.  I believe that the geocoding tries to take into account your
location when performing the query)  Try adding 'USA' to the end of the
from: and to: query parameters.

If you are still having trouble running gwt-maps-1.0.2, could you post the
stack trace again?

On Thu, Dec 18, 2008 at 9:43 PM, prad  wrote:

>
> I still get the same error. are you able to run your code fine?
>
>
> On Dec 18, 2:49 pm, prad  wrote:
> > let me try and get back to you.. but meanwhile if you get to the
> > solution i would appreciate it!
> >
> > thanks!
> >
> > On Dec 18, 2:36 pm, Eric Ayers  wrote:
> >
> > > The stack trace you pasted last time pointed to a comment in this file,
> > > which is why I suspected a version change might fix it.
> >
> > > I just checked the online demo:
> >
> > >http://gwt.google.com/samples/HelloMaps-1.0.2/HelloMaps.html#Simple%2.
> ..
> >
> > > And geocoding/directionsstill works there.  I'm working on another
> piece of
> > > code that is similar, but creates DirectionsQueryOptions() with no
> > > arguments.  The difference between these 2 and your example is that you
> are
> > > using the constructor that takes one Map argument.  Could you try
> changing
> > > the way you use DirectionQueryOptions and see if makes a difference for
> you?
> >
> > > -Eric.
> >
> > > On Thu, Dec 18, 2008 at 1:26 PM, prad  wrote:
> >
> > > > today morning i tried using the latest version and i still get hte
> > > > same error. i looked up at their sample classes fordirectionsand
> > > > nothing seems to be changed since the last version. am i missing
> > > > something here?
> >
> > > > On Dec 18, 1:01 pm, Eric Ayers  wrote:
> > > > > The latest version of the Maps API library for GWT is 1.0.2 and has
> > > > > modifications to theDirectionsclass since 1.0.0
> >
> > > > > On Thu, Dec 18, 2008 at 10:06 AM, Pradnya Sute <
> pradnyas...@gmail.com
> > > > >wrote:
> >
> > > > > > i am using gwt-maps api verison 1.0.0 and in the script tag.
> >
> > > > > > http://maps.google.com/maps?*gwt=1
> > > > > > *&file=api&v=2&key=>
> >
> > > > > > On Thu, Dec 18, 2008 at 6:35 AM, Eric Ayers 
> wrote:
> >
> > > > > >> Can you tell me which version of the Maps API you are loading in
> the
> > > > > >> 

Re: Link to documentation broken?

2008-12-19 Thread dduck

> Here's the link for the 1.5 wiki doc--which includes the existing
> tutorial, the Developer's Guide, the Reference Guide (such as the API
> doc). The topics are in the process of being 
> reorganized.http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=goog...

When I click your link, I get relocated here:
http://code.google.com/intl/da-DK/docreader/#p=google-documentation-reader&s=google-documentation-reader&t=google-documentation-reader

No GWT docs for me ;)

> If you find any other doc issues it would be great if you added them
> to the issues 
> list.http://code.google.com/p/google-web-toolkit-doc-1-5/issues/list

OK.

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



Re: As Window.confirm()

2008-12-19 Thread obesga

Just to know, I expected that

Thaks

On 18 dic, 16:32, "Isaac Truett"  wrote:
> No, you can't do that. Why fight the asynchronous tide?
>
> On Thu, Dec 18, 2008 at 10:07 AM, obesga  wrote:
>
> > Hello !
>
> > I want to ask if there's a method to
>
> > Window.confirm() stops the execution until the user press YES/NO
> > buttton.
> > I'm wondering if there's a way to code a DialogBox that acts the same
> > way on code, without using listeners on the DialogBox caller code.
>
> > Window.confirm(); // 'Thread' stops here
> > GWT.log("I'll wait until user press a button",null);
>
> > MyDialogBox.confim(); // 'Theard' will not stop here, can it be donde
> > GWT.log("How can I act as the code above ?",null);
>
> > anyone has tried to make this
>
> > Oskar
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Selection of cells in Flex Table

2008-12-19 Thread Fameeda

Hi,

We have a flex table and require user to be able to select cells in
it. Multiple cells are also to be selected. Once selected we need to
do some operation on selected cells like merging them.
Is it possible to select cells either by mouse/keyboard.
Can someone please guide on how we can achieve this.

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



Re: Directions load() method error

2008-12-19 Thread Eric Ayers

I've written 3 new unit tests and have been unable to reproduce the
problem from here.

On Fri, Dec 19, 2008 at 7:17 AM, Eric Ayers  wrote:
> Yes, the code that is published as a sample app on the public site still
> works, as does my current project.  Can you run the Directions examples at:
>
>   http://gwt.google.com/samples/HelloMaps-1.0.2/HelloMaps.html
>
> Could it be that you are running Directions.load() more than once in
> parallel?  Only one is supposed to be active at a time (I see that the
> javadoc does not reflect that.)  I just added a unit test that tests it.
>
> Also, if you are running the test from outside the US, that might make a
> difference.  I believe that the geocoding tries to take into account your
> location when performing the query)  Try adding 'USA' to the end of the
> from: and to: query parameters.
>
> If you are still having trouble running gwt-maps-1.0.2, could you post the
> stack trace again?
>
> On Thu, Dec 18, 2008 at 9:43 PM, prad  wrote:
>>
>> I still get the same error. are you able to run your code fine?
>>
>>
>> On Dec 18, 2:49 pm, prad  wrote:
>> > let me try and get back to you.. but meanwhile if you get to the
>> > solution i would appreciate it!
>> >
>> > thanks!
>> >
>> > On Dec 18, 2:36 pm, Eric Ayers  wrote:
>> >
>> > > The stack trace you pasted last time pointed to a comment in this
>> > > file,
>> > > which is why I suspected a version change might fix it.
>> >
>> > > I just checked the online demo:
>> >
>> >
>> > > >http://gwt.google.com/samples/HelloMaps-1.0.2/HelloMaps.html#Simple%2...
>> >
>> > > And geocoding/directionsstill works there.  I'm working on another
>> > > piece of
>> > > code that is similar, but creates DirectionsQueryOptions() with no
>> > > arguments.  The difference between these 2 and your example is that
>> > > you are
>> > > using the constructor that takes one Map argument.  Could you try
>> > > changing
>> > > the way you use DirectionQueryOptions and see if makes a difference
>> > > for you?
>> >
>> > > -Eric.
>> >
>> > > On Thu, Dec 18, 2008 at 1:26 PM, prad  wrote:
>> >
>> > > > today morning i tried using the latest version and i still get hte
>> > > > same error. i looked up at their sample classes fordirectionsand
>> > > > nothing seems to be changed since the last version. am i missing
>> > > > something here?
>> >
>> > > > On Dec 18, 1:01 pm, Eric Ayers  wrote:
>> > > > > The latest version of the Maps API library for GWT is 1.0.2 and
>> > > > > has
>> > > > > modifications to theDirectionsclass since 1.0.0
>> >
>> > > > > On Thu, Dec 18, 2008 at 10:06 AM, Pradnya Sute
>> > > > > > > > > >wrote:
>> >
>> > > > > > i am using gwt-maps api verison 1.0.0 and in the script tag.
>> >
>> > > > > > http://maps.google.com/maps?*gwt=1
>> > > > > > *&file=api&v=2&key=>
>> >
>> > > > > > On Thu, Dec 18, 2008 at 6:35 AM, Eric Ayers 
>> > > > > > wrote:
>> >
>> > > > > >> Can you tell me which version of the Maps API you are loading
>> > > > > >> in the
>> > > > > >> 

Re: cannot execute /usr/bin/firefox.

2008-12-19 Thread olivier FRESSE
Maybe a silly question, but does /usr/bin/firefox. exists ?

There is an environment var called GWT_EXTERNAL_BROWSER which drives the
external browser used by the GWTShell.
But I'm not sure to understand what you're trying to do.
Do you want to launch the hosted browser, or just open an URL from NB ?

I'm using NB 6.5 with an Ubuntu 8.1 distro.
Attached is a pic of my NB conf  for firefox.

Regards.

2008/12/19 Venkat 

>
> Hi,
>
> i tried to run a GWT program using netbeans in Linux , i am getting
> err like this
>
>
> "cannot execute /usr/bin/firefox. check external browser
> configuration, its the error comes in netbeans"
>
> I googled and got reference from this web site
>
> http://www.nabble.com/Cannot-execute--usr-bin-firefox--NB-6.0-M10--td11481241.html
> , but its vain i tried both option like this -new-window {URL}" as the
> argument. and -new-tab {URL}" as the argument.
>
> Please help me
>
> Regards,
> Venkat
>
> >
>

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

<>

Re: Poor performance for simple query - seems to be in the deserialisation mostly

2008-12-19 Thread gregor

Hi John,

It sounds like you might be testing this in hosted mode. If so, be
aware that hosted mode performance, especially where RPC is concerned,
bears no relationship whatever to deployed performance. If so, deploy
your example and I think you will be amazed at the difference. Note
building grids, trees etc involves drawing an order of magnitude more
HTML boxes than there are items to display. 200 odd Persons should
display < 0.5s when deployed, but go up to 1000+ and you will probably
start to notice the browser groaning under the pressure. Then you can
either fetch in batches over RPC or (in the say 500-2000 item range)
cache all the items on the client and page the grid from that. It
obviously varies by situation, but RPC data transfer is one thing and
the HTML box drawing is another.

regards
gregor

On Dec 19, 2:08 am, John Lonergan  wrote:
> I have been evaluating GWT but have come up against a problem I cannot
> solve/understand.
>
> I have a little service method that returns a list of 'person data'
>
> I am finding that whilst the server side take around zero milli-secs
> to handle the query (100-200 rows) the client is taking seconds before
> the AsyncCallback.onSuccess() callback fires.
>
> I am guessing that GWT is taking an age to deserialise the response.
>
> I cannot afford to wait 2 or 3 seconds to deserialise and then render
> the response.
>
> I am unsure what factors might be influencing the performance. Or
> tuning/settings I might look at.
>
> I imagine that populating a long grid (well a couple of hundred rows)
> is something that must be fairly common and that I am doing something
> wrong, or missing a trick.
>
> Small sets of 10 rows come back fast enough, but the responsiveness
> degrades proportionally to the number of rows returned 
>   12 rows 139ms
>   40 rows 719ms
>   120 rows 2109ms
>
> I like the benefits of being able to use the Java programming model
> and toolset - but unless I can solve the perf issues I must look into
> alternatives such as generating HTML on the server; ie becoming a more
> classic JSP/HTML site and I really don't want to do this if I can
> avoid it.
>
> Help/advice gratefully accepted.
>
> See API below.
>
> John
>
> My API looks like this..
>
> // SERVICE INTERFACE
> public interface ContactService extends RemoteService {
>         public Person[] findContactByName(String namePart);
>
> }
>
> // TRANSFER OBJECT
> public class Person implements IsSerializable {
>         private static final long serialVersionUID = 1L;
>         String personId;
>         String firstName;
>         String lastName;
>         String email;
>         String phone;
>
>         bunch of Getter/Setters - code omited.
>
> }
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to cancel file uploading from client side

2008-12-19 Thread olivier FRESSE
I'm afraid you can't do that beacause of the JS  security restriction...
Except by clicking on the "Stop" button of the browser

2008/12/19 jazzka 

>
> Is there any good ways to cancel file uploading from client side. I am
> using FileUpload with FormPanel and when the user open file from
> "Choose file" dialog it's automaticly start loading file to server
> side. If the file is really big and user have low upstream the loading
> will take too much time and I want offer cancel functionality.
>
> // fileUpload onEvent
> public void onEvent(Event event)
> {
>String file = fileUpload.getFilename();
>if(!file.equals(""))
>{
>
>formPanel.submit();
>
>}
>
> }
>
> // FormPanel onSubmit
> public void onSubmit(FormSubmitEvent event)
> {
>// Show loading and Cancel now
> }
>
> public void onSubmitComplete(FormSubmitCompleteEvent event)
> {
>// Hide loading and Cancel and show ok if success
> }
>
> How can I cancel form submission/file uploading?
>
> >
>

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



refresh problem

2008-12-19 Thread arnaud


Hi every one
i have a gridPanel that prints a task.When i open a task this task is
opened in the same window:window.open("url","_self",null);i want to
return to the previous panel when i click on the button cancel of the
new panel and have the old task because when i returned to previous
panel i don't have the task.What can i do?
Sincerly
Arnaud
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT RIA s ?

2008-12-19 Thread Arthur Kalmenson

> So you've assumed responsibility for being the GWT saviour by
> educating these developers  and saving their project?

I'm not really assuming any responsibility, I'm just mentioning that
there are draw backs to using these libraries.

> What makes you so qualified?

I've had to abandon and rewrite a GWT-ext project because of the said
drawbacks. I've talked with many other people who had to rewrite
ExtGWT and GWT-ext projects.

> You've expressed your opinion (more than once) so why
> not leave it at that. How would it appear if someone posted in
> response to your every post saying that Arthur is clueless?

I don't believe I was insulting anyone. And while I've expressed my
opinion (which many here hold), many people are new and don't know the
downside of using these libraries.

> Or the ZK
> guys saying that GWT sucks in their ads that are all over the place.
> Everyone is entitled to an opinion by going overboard is really not
> necessary. You know what they say about opinions and wanting to give
> them... And you've gone out of your way to voice your opinion even no
> one asked for it.

How am I going overboard? Dave Ford's comment is indicative that
people appreciate hearing what the down sides are. In order for a
developer to make an informed decision, they need to hear all sides
and try it for themselves.

> Try to take a deep breath and relax when these libraries are mentioned
> and ignore them instead of assuming the role of GWT gatekeeper. There
> have been stray email questions on various third party libraries like
> GChart and DnD. I don't see you jump in on those threads pointing to
> the appropriate forum.

That's the thing, if I ignore the posts that tell people to use
ExtGWT, gwt-ext or SmartGWT, and no one bothers to warn them, they
might end up committing substantial resources to these projects and
then have to rewrite them or have them turn out poorly. For example,
see this post 
http://groups.google.com/group/Google-Web-Toolkit/msg/7e3ad4486d103b94
where the developer says load times are slow (it's even slow on my new
MacBook Pro). Had the developer used vanilla GWT, I doubt they would
have run into those problems.

The biggest problem IMHO is that people use these third party
libraries and think they're using GWT. They find that it's slow and
buggy and attribute it to GWT. Then GWT ends up getting a bad
reputation. People who come to this mailing list need to understand
that ExtGWT, gwt-ext or SmartGWT have almost nothing to do with GWT
and everything to do with the JS libraries they either wrap or attempt
to mimic. That way, if they decide to use these libraries, they'll
understand that they're using that toolkit, and not GWT.

If I see questions about other third party libraries that go
unanswered, I'll point them to the appropriate mailing list (if one
exists). I can't catch and respond to every post.

Anyway, I'm tired of arguing this point. If you like and use gwt-ext,
that's up to you. Try not to get so upset when someone points out its
flaws.
--
Arthur Kalmenson



On Thu, Dec 18, 2008 at 9:46 AM, Rob Smith  wrote:
>
> Arthur,
> So you've assumed responsibility for being the GWT saviour by
> educating these developers  and saving their project? What makes you
> so qualified? You've expressed your opinion (more than once) so why
> not leave it at that. How would it appear if someone posted in
> response to your every post saying that Arthur is clueless? Or the ZK
> guys saying that GWT sucks in their ads that are all over the place.
> Everyone is entitled to an opinion by going overboard is really not
> necessary. You know what they say about opinions and wanting to give
> them... And you've gone out of your way to voice your opinion even no
> one asked for it.
>
> Try to take a deep breath and relax when these libraries are mentioned
> and ignore them instead of assuming the role of GWT gatekeeper. There
> have been stray email questions on various third party libraries like
> GChart and DnD. I don't see you jump in on those threads pointing to
> the appropriate forum.
>
> Rob
>
> Full disclosure : I am a contributor to gwt-ext by mostly
> participating in their forums.
>
> On Dec 18, 8:54 am, "Arthur Kalmenson"  wrote:
>> Hi Rob,
>>
>> Judging from cloudcity's response, not everyone is aware of the draw
>> backs of these libraries (or, as you put it, my position on them).
>> Ignoring an issue is not going to make it go away. I'm letting people
>> know what the draw backs of using these libraries are, because a lot
>> of people are impressed by the shininess but are unaware of the
>> numerous problems. Anyway, I'm not here to start a flame war, I'm just
>> trying to warn people before they commit all their resources to these
>> libraries.
>>
>> --
>> Arthur Kalmenson
>>
>> On Wed, Dec 17, 2008 at 4:36 PM, Rob Smith  wrote:
>>
>> > Did anyone ask you opinion on use of third part libs in this thread.
>> > We know what your position is on using 3rd party libs and you have
>> > 

Re: 2 GWT modules on the same HTTP page. How do I distinguish between the Posted values?

2008-12-19 Thread Arthur Kalmenson

Russell, it's kind of hard to understand what you're trying to say.
Why don't you just package the values of the ListBoxes in an object
and gwt-rpc it to the server?

--
Arthur Kalmenson



On Thu, Dec 18, 2008 at 11:21 AM, russell  wrote:
>
> Hi,
>
> I have written a dynamic drop down list in GWT which I have inserted
> into my existing web site. I get the value of the drop down when the
> form is posted back to the server. That's fine and works well.
>
> However I'd now like to have more than one drop down list of the same
> type on the screen. Maybe up to 5 on one screen and I'd like to get
> the value of each drop down list. How do I do this? Has anyone done
> something similar? Maybe by passing in an id value to the module
> Any examples greatfully receieved,
>
> Thanks!
>
>
> >
>

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



Re: tomcat deploy failed

2008-12-19 Thread rizla

don't works :(

in the package server we have two servlets...LoginServiceImpl adn
ItinerarioSeviceImpl...
this is my gwt.xml file

..




and the web.xml file is :




http://java.sun.com/xml/ns/javaee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";>

 
 
   LoginService
   com.gwt.syncar.server.LoginServiceImpl
 


   ItinerarioService
   com.gwt.syncar.server.ItinerarioServiceImpl
 


 
   LoginService
   /LoginService
 


   ItinerarioService 
   /ItinerarioService 
 



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



Re: Selection of cells in Flex Table

2008-12-19 Thread Kevin Tarn
You need to call FlexTable.addTableListener, and so your operations in
onCellClicked.

Kevin

On Fri, Dec 19, 2008 at 9:13 PM, Fameeda wrote:

>
> Hi,
>
> We have a flex table and require user to be able to select cells in
> it. Multiple cells are also to be selected. Once selected we need to
> do some operation on selected cells like merging them.
> Is it possible to select cells either by mouse/keyboard.
> Can someone please guide on how we can achieve this.
>
> Thanks,
> Fameeda
> >
>

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



Re: ImageBundle question

2008-12-19 Thread Adam T

Maybe your code has some issues - how are you trying to display the
different images?

On 19 Dec, 07:14, alided  wrote:
> I'm trying to use ImageBundle, but it doesn't work correctly. I put
> different size images into the bundle and when i try to use image it
> is always displays biggest image in the bundle. Is it a limitation of
> the Imagebundle only handle same size images ?
>
> Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Dynamic Radio Buttons

2008-12-19 Thread Arthur Kalmenson

Are you adding the panel to the RootPanel? If not, it won't appear in
the browser.

--
Arthur Kalmenson



On Thu, Dec 18, 2008 at 6:08 PM, fatjack1...@googlemail.com
 wrote:
>
> Hi,
>
> I wonder if anyone can help me. I am trying to create dynamic radio
> buttons i.e. set the number of Radio buttons equal to some values in
> my database. Here is the code I am using:
>
> class ServerStatsUpdater extends AbstractAsyncHandler
>{
>public void handleFailure(Throwable caught){
>}
>public void handleSuccess(Object result){
>ServerSQLData data = (ServerSQLData) result;
>
>   for (int i = 0; i ();i++){
>
>  RadioButton itemsRadioButton =
>new RadioButton
> (data.itemNameArrayList.get(1).toString());
> editItemsRadioPanel.add(itemsRadioButton);
>   }
>   }
>
> When I run the application in hosted mode it does not pick up the
> radio buttons. Can anyone see the error I am making here? In case it
> helps, the panel is being created in a different class. Maybe the
> problem is that the panel has loaded and then the handleSucess method
> is run, i.e. it wont add the radio buttons as its panel has already
> loaded?
>
> Please let me know if you can see where I am going wrong.
>
> Regards,
> Jack
>
> >
>

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



Re: GWT RIA s ?

2008-12-19 Thread David Hoffer

Arthur,

I see you have put SmartGWT in the JS wrapper camp, is this the case?
I haven't heard anything about this library before and had just
stumbled across it.

Do you have a web site (or something) where we can find out which GWT
libraries are pure GWT and okay to use?

IMHO, although I know you steer folks away from the GWT wrapped JS
libraries what is sorely needed are mature GWT libraries.  Having a
list of available GWT libraries would be a helpful start.

-Dave

On Fri, Dec 19, 2008 at 7:04 AM, Arthur Kalmenson  wrote:
>
>> So you've assumed responsibility for being the GWT saviour by
>> educating these developers  and saving their project?
>
> I'm not really assuming any responsibility, I'm just mentioning that
> there are draw backs to using these libraries.
>
>> What makes you so qualified?
>
> I've had to abandon and rewrite a GWT-ext project because of the said
> drawbacks. I've talked with many other people who had to rewrite
> ExtGWT and GWT-ext projects.
>
>> You've expressed your opinion (more than once) so why
>> not leave it at that. How would it appear if someone posted in
>> response to your every post saying that Arthur is clueless?
>
> I don't believe I was insulting anyone. And while I've expressed my
> opinion (which many here hold), many people are new and don't know the
> downside of using these libraries.
>
>> Or the ZK
>> guys saying that GWT sucks in their ads that are all over the place.
>> Everyone is entitled to an opinion by going overboard is really not
>> necessary. You know what they say about opinions and wanting to give
>> them... And you've gone out of your way to voice your opinion even no
>> one asked for it.
>
> How am I going overboard? Dave Ford's comment is indicative that
> people appreciate hearing what the down sides are. In order for a
> developer to make an informed decision, they need to hear all sides
> and try it for themselves.
>
>> Try to take a deep breath and relax when these libraries are mentioned
>> and ignore them instead of assuming the role of GWT gatekeeper. There
>> have been stray email questions on various third party libraries like
>> GChart and DnD. I don't see you jump in on those threads pointing to
>> the appropriate forum.
>
> That's the thing, if I ignore the posts that tell people to use
> ExtGWT, gwt-ext or SmartGWT, and no one bothers to warn them, they
> might end up committing substantial resources to these projects and
> then have to rewrite them or have them turn out poorly. For example,
> see this post 
> http://groups.google.com/group/Google-Web-Toolkit/msg/7e3ad4486d103b94
> where the developer says load times are slow (it's even slow on my new
> MacBook Pro). Had the developer used vanilla GWT, I doubt they would
> have run into those problems.
>
> The biggest problem IMHO is that people use these third party
> libraries and think they're using GWT. They find that it's slow and
> buggy and attribute it to GWT. Then GWT ends up getting a bad
> reputation. People who come to this mailing list need to understand
> that ExtGWT, gwt-ext or SmartGWT have almost nothing to do with GWT
> and everything to do with the JS libraries they either wrap or attempt
> to mimic. That way, if they decide to use these libraries, they'll
> understand that they're using that toolkit, and not GWT.
>
> If I see questions about other third party libraries that go
> unanswered, I'll point them to the appropriate mailing list (if one
> exists). I can't catch and respond to every post.
>
> Anyway, I'm tired of arguing this point. If you like and use gwt-ext,
> that's up to you. Try not to get so upset when someone points out its
> flaws.
> --
> Arthur Kalmenson
>
>
>
> On Thu, Dec 18, 2008 at 9:46 AM, Rob Smith  wrote:
>>
>> Arthur,
>> So you've assumed responsibility for being the GWT saviour by
>> educating these developers  and saving their project? What makes you
>> so qualified? You've expressed your opinion (more than once) so why
>> not leave it at that. How would it appear if someone posted in
>> response to your every post saying that Arthur is clueless? Or the ZK
>> guys saying that GWT sucks in their ads that are all over the place.
>> Everyone is entitled to an opinion by going overboard is really not
>> necessary. You know what they say about opinions and wanting to give
>> them... And you've gone out of your way to voice your opinion even no
>> one asked for it.
>>
>> Try to take a deep breath and relax when these libraries are mentioned
>> and ignore them instead of assuming the role of GWT gatekeeper. There
>> have been stray email questions on various third party libraries like
>> GChart and DnD. I don't see you jump in on those threads pointing to
>> the appropriate forum.
>>
>> Rob
>>
>> Full disclosure : I am a contributor to gwt-ext by mostly
>> participating in their forums.
>>
>> On Dec 18, 8:54 am, "Arthur Kalmenson"  wrote:
>>> Hi Rob,
>>>
>>> Judging from cloudcity's response, not everyone is aware of the draw
>>> backs o

Re: how can i use external jar in gwt?

2008-12-19 Thread Arthur Kalmenson

Furthermore, keep in mind that it is possible to package existing code
in a format that GWT can use (just add a .gwt.xml file that has
 tags for where the source is and repackage the jar file).
However, you can only use libraries that are being emulated by GWT:
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=RefJreEmulation

--
Arthur Kalmenson



On Thu, Dec 18, 2008 at 7:23 PM, J.R  wrote:
>
> You can use any jars in GWT server side.
> But in GWT client side, the jar must be defined as a gwt-module, then
> could be used.
> I have been trapped by this question while I try to use XML-related
> jars in client side.
>
> On Dec 19, 7:23 am, benimx85  wrote:
>> i have to use jars in my project. these jars have not got gwt.xml.
>> these are jana's jars for write ontologies.
>> how can i use my jar files in gwt?
>> may you help me?
> >
>

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



Re: GWT RIA s ?

2008-12-19 Thread Arthur Kalmenson

Hi Dave,

> I see you have put SmartGWT in the JS wrapper camp, is this the case?
> I haven't heard anything about this library before and had just
> stumbled across it.

SmartGWT is in fact a JS wrapper of the SmartCient JS library
(http://www.smartclient.com/)

> Do you have a web site (or something) where we can find out which GWT
> libraries are pure GWT and okay to use?
>
> IMHO, although I know you steer folks away from the GWT wrapped JS
> libraries what is sorely needed are mature GWT libraries.  Having a
> list of available GWT libraries would be a helpful start.

AFAIK gwt-mosaic is a pure GWT library
(http://code.google.com/p/gwt-mosaic/), but I haven't used it.
Unfortunately I don't have an answer for you. I agree that there are a
lot of immature GWT libraries. The best advice that I can give is to
use vanilla GWT with the incubator (although not everything there is
great). GWT makes create new widgets pretty easy and the Animation
framework is easy to use. If you're interested in how to style up your
application, check out this GWT blog post:
http://googlewebtoolkit.blogspot.com/2008/12/gwt-no-need-to-shortchange-your-style.html

--
Arthur Kalmenson



On Fri, Dec 19, 2008 at 9:14 AM, David Hoffer  wrote:
>
> Arthur,
>
> I see you have put SmartGWT in the JS wrapper camp, is this the case?
> I haven't heard anything about this library before and had just
> stumbled across it.
>
> Do you have a web site (or something) where we can find out which GWT
> libraries are pure GWT and okay to use?
>
> IMHO, although I know you steer folks away from the GWT wrapped JS
> libraries what is sorely needed are mature GWT libraries.  Having a
> list of available GWT libraries would be a helpful start.
>
> -Dave
>
> On Fri, Dec 19, 2008 at 7:04 AM, Arthur Kalmenson  
> wrote:
>>
>>> So you've assumed responsibility for being the GWT saviour by
>>> educating these developers  and saving their project?
>>
>> I'm not really assuming any responsibility, I'm just mentioning that
>> there are draw backs to using these libraries.
>>
>>> What makes you so qualified?
>>
>> I've had to abandon and rewrite a GWT-ext project because of the said
>> drawbacks. I've talked with many other people who had to rewrite
>> ExtGWT and GWT-ext projects.
>>
>>> You've expressed your opinion (more than once) so why
>>> not leave it at that. How would it appear if someone posted in
>>> response to your every post saying that Arthur is clueless?
>>
>> I don't believe I was insulting anyone. And while I've expressed my
>> opinion (which many here hold), many people are new and don't know the
>> downside of using these libraries.
>>
>>> Or the ZK
>>> guys saying that GWT sucks in their ads that are all over the place.
>>> Everyone is entitled to an opinion by going overboard is really not
>>> necessary. You know what they say about opinions and wanting to give
>>> them... And you've gone out of your way to voice your opinion even no
>>> one asked for it.
>>
>> How am I going overboard? Dave Ford's comment is indicative that
>> people appreciate hearing what the down sides are. In order for a
>> developer to make an informed decision, they need to hear all sides
>> and try it for themselves.
>>
>>> Try to take a deep breath and relax when these libraries are mentioned
>>> and ignore them instead of assuming the role of GWT gatekeeper. There
>>> have been stray email questions on various third party libraries like
>>> GChart and DnD. I don't see you jump in on those threads pointing to
>>> the appropriate forum.
>>
>> That's the thing, if I ignore the posts that tell people to use
>> ExtGWT, gwt-ext or SmartGWT, and no one bothers to warn them, they
>> might end up committing substantial resources to these projects and
>> then have to rewrite them or have them turn out poorly. For example,
>> see this post 
>> http://groups.google.com/group/Google-Web-Toolkit/msg/7e3ad4486d103b94
>> where the developer says load times are slow (it's even slow on my new
>> MacBook Pro). Had the developer used vanilla GWT, I doubt they would
>> have run into those problems.
>>
>> The biggest problem IMHO is that people use these third party
>> libraries and think they're using GWT. They find that it's slow and
>> buggy and attribute it to GWT. Then GWT ends up getting a bad
>> reputation. People who come to this mailing list need to understand
>> that ExtGWT, gwt-ext or SmartGWT have almost nothing to do with GWT
>> and everything to do with the JS libraries they either wrap or attempt
>> to mimic. That way, if they decide to use these libraries, they'll
>> understand that they're using that toolkit, and not GWT.
>>
>> If I see questions about other third party libraries that go
>> unanswered, I'll point them to the appropriate mailing list (if one
>> exists). I can't catch and respond to every post.
>>
>> Anyway, I'm tired of arguing this point. If you like and use gwt-ext,
>> that's up to you. Try not to get so upset when someone points out its
>> flaws.

Re: History.newItem() delayed in IE

2008-12-19 Thread todd.sei...@gmail.com

  I have had similar response time issues with IE. In my development
platform I was seeing extremely good responsiveness from all browsers
(Chrome, Firefox, and IE). But later when we tested with a few other
people in the company we found that performance on IE was terrible. It
was taking 1-2 seconds for a simple popup box to display and some
other features that worked in less than a second in FireFox was taking
6-8 in IE.

  What we ended up finding out is that there were some plugins for IE
that were dragging the performance down.

On Dec 18, 11:13 am, Edgars  wrote:
> Hi
> We have developed GWT application. It works just fine in Firefox,
> Opera and several IE versions, but in certain versions of IE (in IE7)
> we have faced a problem with History.newItem(). Our
> HistoryChangeListener is notified only after 1.5 seconds after
> History.newItem is called. I browsed HistoryImplIE6 implementation,
> and as I think, the maximum time after which new history token is
> recognized is 250 ms.
> Maybe someone knows some workaround for 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 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT RIA s ?

2008-12-19 Thread Rob Smith

There you go again sounding like a broken record. You really are quite
thick headed aren't you?

If you take pleasure in constantly dissing other libraries, I'll do
the same and reply to your every post saying that you are full of it.
Deal?

You might make yourself more useful if you try to answer real
questions on the group instead of increasing your post count with
cruft. 90% of your posts are really just pointing people to the gwt-
ext, ext-gwt forums and dissing these libraries at every single
opportunity.

Rob


On Dec 19, 9:04 am, "Arthur Kalmenson"  wrote:
> > So you've assumed responsibility for being the GWT saviour by
> > educating these developers  and saving their project?
>
> I'm not really assuming any responsibility, I'm just mentioning that
> there are draw backs to using these libraries.
>
> > What makes you so qualified?
>
> I've had to abandon and rewrite a GWT-ext project because of the said
> drawbacks. I've talked with many other people who had to rewrite
> ExtGWT and GWT-ext projects.
>
> > You've expressed your opinion (more than once) so why
> > not leave it at that. How would it appear if someone posted in
> > response to your every post saying that Arthur is clueless?
>
> I don't believe I was insulting anyone. And while I've expressed my
> opinion (which many here hold), many people are new and don't know the
> downside of using these libraries.
>
> > Or the ZK
> > guys saying that GWT sucks in their ads that are all over the place.
> > Everyone is entitled to an opinion by going overboard is really not
> > necessary. You know what they say about opinions and wanting to give
> > them... And you've gone out of your way to voice your opinion even no
> > one asked for it.
>
> How am I going overboard? Dave Ford's comment is indicative that
> people appreciate hearing what the down sides are. In order for a
> developer to make an informed decision, they need to hear all sides
> and try it for themselves.
>
> > Try to take a deep breath and relax when these libraries are mentioned
> > and ignore them instead of assuming the role of GWT gatekeeper. There
> > have been stray email questions on various third party libraries like
> > GChart and DnD. I don't see you jump in on those threads pointing to
> > the appropriate forum.
>
> That's the thing, if I ignore the posts that tell people to use
> ExtGWT, gwt-ext or SmartGWT, and no one bothers to warn them, they
> might end up committing substantial resources to these projects and
> then have to rewrite them or have them turn out poorly. For example,
> see this 
> posthttp://groups.google.com/group/Google-Web-Toolkit/msg/7e3ad4486d103b94
> where the developer says load times are slow (it's even slow on my new
> MacBook Pro). Had the developer used vanilla GWT, I doubt they would
> have run into those problems.
>
> The biggest problem IMHO is that people use these third party
> libraries and think they're using GWT. They find that it's slow and
> buggy and attribute it to GWT. Then GWT ends up getting a bad
> reputation. People who come to this mailing list need to understand
> that ExtGWT, gwt-ext or SmartGWT have almost nothing to do with GWT
> and everything to do with the JS libraries they either wrap or attempt
> to mimic. That way, if they decide to use these libraries, they'll
> understand that they're using that toolkit, and not GWT.
>
> If I see questions about other third party libraries that go
> unanswered, I'll point them to the appropriate mailing list (if one
> exists). I can't catch and respond to every post.
>
> Anyway, I'm tired of arguing this point. If you like and use gwt-ext,
> that's up to you. Try not to get so upset when someone points out its
> flaws.
> --
> Arthur Kalmenson
>
> On Thu, Dec 18, 2008 at 9:46 AM, Rob Smith  wrote:
>
> > Arthur,
> > So you've assumed responsibility for being the GWT saviour by
> > educating these developers  and saving their project? What makes you
> > so qualified? You've expressed your opinion (more than once) so why
> > not leave it at that. How would it appear if someone posted in
> > response to your every post saying that Arthur is clueless? Or the ZK
> > guys saying that GWT sucks in their ads that are all over the place.
> > Everyone is entitled to an opinion by going overboard is really not
> > necessary. You know what they say about opinions and wanting to give
> > them... And you've gone out of your way to voice your opinion even no
> > one asked for it.
>
> > Try to take a deep breath and relax when these libraries are mentioned
> > and ignore them instead of assuming the role of GWT gatekeeper. There
> > have been stray email questions on various third party libraries like
> > GChart and DnD. I don't see you jump in on those threads pointing to
> > the appropriate forum.
>
> > Rob
>
> > Full disclosure : I am a contributor to gwt-ext by mostly
> > participating in their forums.
>
> > On Dec 18, 8:54 am, "Arthur Kalmenson"  wrote:
> >> Hi Rob,
>
> >> Judging from cloudc

Re: GWT RIA s ?

2008-12-19 Thread David Hoffer

Thanks I will check out  gwt-mosaic again.  I tried it recently and it
couldn't be used because it was compiled with JRE 1.6, I tried
recompiling with 1.5 but ran into issues.  Hopefully this will be
updated soon.

-Dave

On Fri, Dec 19, 2008 at 7:32 AM, Arthur Kalmenson  wrote:
>
> Hi Dave,
>
>> I see you have put SmartGWT in the JS wrapper camp, is this the case?
>> I haven't heard anything about this library before and had just
>> stumbled across it.
>
> SmartGWT is in fact a JS wrapper of the SmartCient JS library
> (http://www.smartclient.com/)
>
>> Do you have a web site (or something) where we can find out which GWT
>> libraries are pure GWT and okay to use?
>>
>> IMHO, although I know you steer folks away from the GWT wrapped JS
>> libraries what is sorely needed are mature GWT libraries.  Having a
>> list of available GWT libraries would be a helpful start.
>
> AFAIK gwt-mosaic is a pure GWT library
> (http://code.google.com/p/gwt-mosaic/), but I haven't used it.
> Unfortunately I don't have an answer for you. I agree that there are a
> lot of immature GWT libraries. The best advice that I can give is to
> use vanilla GWT with the incubator (although not everything there is
> great). GWT makes create new widgets pretty easy and the Animation
> framework is easy to use. If you're interested in how to style up your
> application, check out this GWT blog post:
> http://googlewebtoolkit.blogspot.com/2008/12/gwt-no-need-to-shortchange-your-style.html
>
> --
> Arthur Kalmenson
>
>
>
> On Fri, Dec 19, 2008 at 9:14 AM, David Hoffer  wrote:
>>
>> Arthur,
>>
>> I see you have put SmartGWT in the JS wrapper camp, is this the case?
>> I haven't heard anything about this library before and had just
>> stumbled across it.
>>
>> Do you have a web site (or something) where we can find out which GWT
>> libraries are pure GWT and okay to use?
>>
>> IMHO, although I know you steer folks away from the GWT wrapped JS
>> libraries what is sorely needed are mature GWT libraries.  Having a
>> list of available GWT libraries would be a helpful start.
>>
>> -Dave
>>
>> On Fri, Dec 19, 2008 at 7:04 AM, Arthur Kalmenson  
>> wrote:
>>>
 So you've assumed responsibility for being the GWT saviour by
 educating these developers  and saving their project?
>>>
>>> I'm not really assuming any responsibility, I'm just mentioning that
>>> there are draw backs to using these libraries.
>>>
 What makes you so qualified?
>>>
>>> I've had to abandon and rewrite a GWT-ext project because of the said
>>> drawbacks. I've talked with many other people who had to rewrite
>>> ExtGWT and GWT-ext projects.
>>>
 You've expressed your opinion (more than once) so why
 not leave it at that. How would it appear if someone posted in
 response to your every post saying that Arthur is clueless?
>>>
>>> I don't believe I was insulting anyone. And while I've expressed my
>>> opinion (which many here hold), many people are new and don't know the
>>> downside of using these libraries.
>>>
 Or the ZK
 guys saying that GWT sucks in their ads that are all over the place.
 Everyone is entitled to an opinion by going overboard is really not
 necessary. You know what they say about opinions and wanting to give
 them... And you've gone out of your way to voice your opinion even no
 one asked for it.
>>>
>>> How am I going overboard? Dave Ford's comment is indicative that
>>> people appreciate hearing what the down sides are. In order for a
>>> developer to make an informed decision, they need to hear all sides
>>> and try it for themselves.
>>>
 Try to take a deep breath and relax when these libraries are mentioned
 and ignore them instead of assuming the role of GWT gatekeeper. There
 have been stray email questions on various third party libraries like
 GChart and DnD. I don't see you jump in on those threads pointing to
 the appropriate forum.
>>>
>>> That's the thing, if I ignore the posts that tell people to use
>>> ExtGWT, gwt-ext or SmartGWT, and no one bothers to warn them, they
>>> might end up committing substantial resources to these projects and
>>> then have to rewrite them or have them turn out poorly. For example,
>>> see this post 
>>> http://groups.google.com/group/Google-Web-Toolkit/msg/7e3ad4486d103b94
>>> where the developer says load times are slow (it's even slow on my new
>>> MacBook Pro). Had the developer used vanilla GWT, I doubt they would
>>> have run into those problems.
>>>
>>> The biggest problem IMHO is that people use these third party
>>> libraries and think they're using GWT. They find that it's slow and
>>> buggy and attribute it to GWT. Then GWT ends up getting a bad
>>> reputation. People who come to this mailing list need to understand
>>> that ExtGWT, gwt-ext or SmartGWT have almost nothing to do with GWT
>>> and everything to do with the JS libraries they either wrap or attempt
>>> to mimic. That way, if they decide to use these libraries, they'll
>>> und

Re: Waiting on multiple RPC calls

2008-12-19 Thread rakesh wagh

performance:
Are you acquiring handles to three different RPC services for your 3
calls? If yes, you can improve performance by clubbing them into a
single call. If you do a little client side profiling, you will
realize that creating a async reference on client side is a not a very
quick operation. It is always a good idea to cache(static) your rpc
service references on client once you create it for the very first
time.

Rakesh Wagh

On Dec 19, 3:38 am, "stephen.sm...@paretopartners.com"
 wrote:
> Thats exactly the thing i need!!!
>
> Thanks :)
>
> On Dec 18, 11:17 pm, Dobes  wrote:
>
> > Hi Stephen,
>
> > I had a lot of scenarios like this, so I added some utility classes to
> > help.  For example, I have a class called AsyncCallbackGroup which
> > allows you to wait on multiple parallel RPC calls and then when they
> > are all complete it calls another callback.  In your case you could
> > create a group with the first two operations, then pass a callback
> > whose onSuccess() method called the next call.
>
> > You can get the source code for these classes in the kiyaa project:
>
> >http://code.google.com/p/kiyaa/
>
> > On Dec 18, 2:14 am, "stephen.sm...@paretopartners.com"
>
> >  wrote:
> > > Firstly, before any1 goes off on 1 about "You cant do syncronous rpc
> > > calls in gwt" or "JS is single threaded" im fully aware of these
> > > facts. However i also know that like many things there are usually
> > > work arounds or at least better solutions than i have thought of...
>
> > > So my problem is this. I have 3 RPC calls. The first 2 are totally
> > > seperate however the third depends on the result of both the first 2.
>
> > > The 3rd call is unfortunately rather large as it requires some DB
> > > access on the server and sorting/filtering etc. and i would therefor
> > > like to get this going asap.
>
> > > There is also alot of other initalisation code on the client that can
> > > be done at almost any stage. so it would be preferable to do this
> > > during any (and possibly all) of the rpc calls
>
> > > This is all currently done in module load and i am chaining my 3 rpc
> > > calls. This causes the total load time to be a bit slow. This seems
> > > such a horrible way to do it and even for me it gets a little
> > > confusing and i wrote it.
>
> > > Does any one have a better solution to how i can "wait" on the first 2
> > > calls before making the 3rd whilst still executing the client
> > > initalisation code.
>
> > > Thanks in advance,
> > > Steve- Hide quoted text -
>
> > - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT RIA s ?

2008-12-19 Thread Miles T.

Hi Dave,

gwt-ext and SmartGWT are wrappers of javascript libraries
(respectively ExtJS and SmartClient)
Ext GWT (aka gxt) and gwt-mosaic are pure GWT libraries (the former is
hosted by ExtJS guys and trying to get the same features as ExtJS,
that's why there is "Ext" in the name).

@Riyaz : I forgot to say, there is also GWTEventService to implement
Server Push in a GWT app. I didn't try it, but it has a rich
documentation.

Regards.

--
Miles T.


On 19 déc, 15:47, "David Hoffer"  wrote:
> Thanks I will check out  gwt-mosaic again.  I tried it recently and it
> couldn't be used because it was compiled with JRE 1.6, I tried
> recompiling with 1.5 but ran into issues.  Hopefully this will be
> updated soon.
>
> -Dave
>
> On Fri, Dec 19, 2008 at 7:32 AM, Arthur Kalmenson  
> wrote:
>
> > Hi Dave,
>
> >> I see you have put SmartGWT in the JS wrapper camp, is this the case?
> >> I haven't heard anything about this library before and had just
> >> stumbled across it.
>
> > SmartGWT is in fact a JS wrapper of the SmartCient JS library
> > (http://www.smartclient.com/)
>
> >> Do you have a web site (or something) where we can find out which GWT
> >> libraries are pure GWT and okay to use?
>
> >> IMHO, although I know you steer folks away from the GWT wrapped JS
> >> libraries what is sorely needed are mature GWT libraries.  Having a
> >> list of available GWT libraries would be a helpful start.
>
> > AFAIK gwt-mosaic is a pure GWT library
> > (http://code.google.com/p/gwt-mosaic/), but I haven't used it.
> > Unfortunately I don't have an answer for you. I agree that there are a
> > lot of immature GWT libraries. The best advice that I can give is to
> > use vanilla GWT with the incubator (although not everything there is
> > great). GWT makes create new widgets pretty easy and the Animation
> > framework is easy to use. If you're interested in how to style up your
> > application, check out this GWT blog post:
> >http://googlewebtoolkit.blogspot.com/2008/12/gwt-no-need-to-shortchan...
>
> > --
> > Arthur Kalmenson
>
> > On Fri, Dec 19, 2008 at 9:14 AM, David Hoffer  wrote:
>
> >> Arthur,
>
> >> I see you have put SmartGWT in the JS wrapper camp, is this the case?
> >> I haven't heard anything about this library before and had just
> >> stumbled across it.
>
> >> Do you have a web site (or something) where we can find out which GWT
> >> libraries are pure GWT and okay to use?
>
> >> IMHO, although I know you steer folks away from the GWT wrapped JS
> >> libraries what is sorely needed are mature GWT libraries.  Having a
> >> list of available GWT libraries would be a helpful start.
>
> >> -Dave
>
> >> On Fri, Dec 19, 2008 at 7:04 AM, Arthur Kalmenson  
> >> wrote:
>
>  So you've assumed responsibility for being the GWT saviour by
>  educating these developers  and saving their project?
>
> >>> I'm not really assuming any responsibility, I'm just mentioning that
> >>> there are draw backs to using these libraries.
>
>  What makes you so qualified?
>
> >>> I've had to abandon and rewrite a GWT-ext project because of the said
> >>> drawbacks. I've talked with many other people who had to rewrite
> >>> ExtGWT and GWT-ext projects.
>
>  You've expressed your opinion (more than once) so why
>  not leave it at that. How would it appear if someone posted in
>  response to your every post saying that Arthur is clueless?
>
> >>> I don't believe I was insulting anyone. And while I've expressed my
> >>> opinion (which many here hold), many people are new and don't know the
> >>> downside of using these libraries.
>
>  Or the ZK
>  guys saying that GWT sucks in their ads that are all over the place.
>  Everyone is entitled to an opinion by going overboard is really not
>  necessary. You know what they say about opinions and wanting to give
>  them... And you've gone out of your way to voice your opinion even no
>  one asked for it.
>
> >>> How am I going overboard? Dave Ford's comment is indicative that
> >>> people appreciate hearing what the down sides are. In order for a
> >>> developer to make an informed decision, they need to hear all sides
> >>> and try it for themselves.
>
>  Try to take a deep breath and relax when these libraries are mentioned
>  and ignore them instead of assuming the role of GWT gatekeeper. There
>  have been stray email questions on various third party libraries like
>  GChart and DnD. I don't see you jump in on those threads pointing to
>  the appropriate forum.
>
> >>> That's the thing, if I ignore the posts that tell people to use
> >>> ExtGWT, gwt-ext or SmartGWT, and no one bothers to warn them, they
> >>> might end up committing substantial resources to these projects and
> >>> then have to rewrite them or have them turn out poorly. For example,
> >>> see this 
> >>> posthttp://groups.google.com/group/Google-Web-Toolkit/msg/7e3ad4486d103b94
> >>> where the developer says load times are slow (it's even slow on my new
> >>> 

Need for a great GWT GUI library

2008-12-19 Thread Juan Backson
Hi,

I have been using GWT for almost 6 months now.  In the past six months, I
have tried migrating code from pure GWT to GWT-EXT and then to Smart-GWT.

They all have drawback:

GWT - no good looking widget
GWT-Ext - very buggy and GPL licensing
Smart-GWT - slow and memory intensive

Is there any library that has the same capability of Smart-GWT and good
performance?

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 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: New release of the GWT project Tatami

2008-12-19 Thread rakesh wagh

How does your js loading happen? For example if I need to use just gfx
in my application, will tatami load only the gfx related dojo js
files?

I have not played around with tatami. We use lot of gfx in our
application. Will you recommend switching to Tatami... ?

Thanks for the release
Rakesh WAgh
On Dec 19, 2:08 am, vgrassaud  wrote:
> Hi
>
> We are really excited to announce the release of Tatami v1.3.
>
> Visit the homepage to give it a try, see the demos...
>
> http://code.google.com/p/tatami/
>
> We will be glad to have your feedback!
>
> Not exhaustive change list:
> - License switched from LGPL only to LGPL or Apache License or BSD
> - Now relies on latest Dojo 1.2.3 release
> - Charting support
> - Tree Widget
> - Dojo drag and drop can now be used in Tatami
> - The border container has been ported, advantageously replacing both
> GWT DockPanel and SplitPanels
> - Relies on custom dojo builds, optimizing it for the very usage of
> Tatami
> - Easier dijit Theme integration
> - New HTML online documentation
> - The grid wrapping has been ported from dojo's DataGrid 1.1 to
> DataGrid
> 1.2
> - Release of TatamiX, extensions for Tatami including an HMVC
> design-pattern implementation
>
> Cheers,
>
> The Tatami Team.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Need for a great GWT GUI library

2008-12-19 Thread David Hoffer
Here! Here!  I'm in a similar boat as you...looking for a good pure GWT
library.

I don't think you will find anything as complete as SmartGWT in the pure GWT
space.  However you might take a look at
http://code.google.com/p/gwt-mosaic/.  It seems to have several nice UI
elements and is pure GWT.  However I could not give it a try because it was
compiled with JRE 1.6.  I understand this was an error and the next build
will use 1.5.  If you give it a try let me know what you think.

-Dave

On Fri, Dec 19, 2008 at 8:13 AM, Juan Backson  wrote:
> Hi,
>
> I have been using GWT for almost 6 months now.  In the past six months, I
> have tried migrating code from pure GWT to GWT-EXT and then to Smart-GWT.
>
> They all have drawback:
>
> GWT - no good looking widget
> GWT-Ext - very buggy and GPL licensing
> Smart-GWT - slow and memory intensive
>
> Is there any library that has the same capability of Smart-GWT and good
> performance?
>
> 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 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: MessageBox Image issued

2008-12-19 Thread Bakulkumar

Clear Firefox cache, redeploy the application and request.

Thanks,
Bakul.

On Dec 19, 12:27 am, "AMit Pandey"  wrote:
> Hello I am using the GWT with Ext.
>
> when i run the code in firefox i am unable to see the images of Messagebox.
> that display in gray shade. i also uploaded the screen shot of MessageBox.
>
> pls help me out.i think firefox is not find that images so it render the
> default images
>
> Thanks
> AMit
>
>  gwt-ext-image.JPG
> 6KViewDownload
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



setCookie problem using IE7

2008-12-19 Thread frank.wyna...@gmail.com

I have the following code :

  Date now = new Date();
  long nowLong = now.getTime();
  nowLong = nowLong + (1000 * 60 * 60 * 24 * 10);//10 days
  now.setTime(nowLong);

  GWT.log("setting a cookie",null);
  Cookies.setCookie("regio", "abc", now);


This works no problem in Firefox, Google Chrome and Safari. But the
cookie just is not saved in IE7. When I view the cookies in IE7 it
just isn't there. Any ideas what is going wrong ? Or anyone has
another way to save cookies (using JSNI if necessary).

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



Re: GWT RIA s ?

2008-12-19 Thread Arthur Kalmenson

Rob,

> There you go again sounding like a broken record. You really are quite
> thick headed aren't you?

Perhaps instead of attacking _me_, you can point out where I'm wrong?
However, AFAIK they're still JSNI bindings and still don't work well
with regular GWT widgets or use the GWT event model.

> If you take pleasure in constantly dissing other libraries, I'll do
> the same and reply to your every post saying that you are full of it.
> Deal?

I'm not "dissing" other libraries. I'm not in grade school. This
mailing list is here to discuss GWT and surrounding technologies on a
technical level, not for personal attacks or "dissing" libraries.

> You might make yourself more useful if you try to answer real
> questions on the group instead of increasing your post count with
> cruft. 90% of your posts are really just pointing people to the gwt-
> ext, ext-gwt forums and dissing these libraries at every single
> opportunity.

I answer the redirecting questions because they take a few seconds to
answer and because those posts go days without being answered. I'd
prefer to at least point them in the right direction rather then leave
them hanging. If you take a look, I also answer other questions too. A
lot of them get answered before I get a chance to get to them.

Anyway, this is growing tiresome. You need to stop taking this
personally, it has nothing to do with you. If you believe I'm wrong,
please point out the inaccuracies, otherwise, don't bother
responding. 

--
Arthur Kalmenson



On Fri, Dec 19, 2008 at 9:47 AM, Rob Smith  wrote:
>
> There you go again sounding like a broken record. You really are quite
> thick headed aren't you?
>
> If you take pleasure in constantly dissing other libraries, I'll do
> the same and reply to your every post saying that you are full of it.
> Deal?
>
> You might make yourself more useful if you try to answer real
> questions on the group instead of increasing your post count with
> cruft. 90% of your posts are really just pointing people to the gwt-
> ext, ext-gwt forums and dissing these libraries at every single
> opportunity.
>
> Rob
>
>
> On Dec 19, 9:04 am, "Arthur Kalmenson"  wrote:
>> > So you've assumed responsibility for being the GWT saviour by
>> > educating these developers  and saving their project?
>>
>> I'm not really assuming any responsibility, I'm just mentioning that
>> there are draw backs to using these libraries.
>>
>> > What makes you so qualified?
>>
>> I've had to abandon and rewrite a GWT-ext project because of the said
>> drawbacks. I've talked with many other people who had to rewrite
>> ExtGWT and GWT-ext projects.
>>
>> > You've expressed your opinion (more than once) so why
>> > not leave it at that. How would it appear if someone posted in
>> > response to your every post saying that Arthur is clueless?
>>
>> I don't believe I was insulting anyone. And while I've expressed my
>> opinion (which many here hold), many people are new and don't know the
>> downside of using these libraries.
>>
>> > Or the ZK
>> > guys saying that GWT sucks in their ads that are all over the place.
>> > Everyone is entitled to an opinion by going overboard is really not
>> > necessary. You know what they say about opinions and wanting to give
>> > them... And you've gone out of your way to voice your opinion even no
>> > one asked for it.
>>
>> How am I going overboard? Dave Ford's comment is indicative that
>> people appreciate hearing what the down sides are. In order for a
>> developer to make an informed decision, they need to hear all sides
>> and try it for themselves.
>>
>> > Try to take a deep breath and relax when these libraries are mentioned
>> > and ignore them instead of assuming the role of GWT gatekeeper. There
>> > have been stray email questions on various third party libraries like
>> > GChart and DnD. I don't see you jump in on those threads pointing to
>> > the appropriate forum.
>>
>> That's the thing, if I ignore the posts that tell people to use
>> ExtGWT, gwt-ext or SmartGWT, and no one bothers to warn them, they
>> might end up committing substantial resources to these projects and
>> then have to rewrite them or have them turn out poorly. For example,
>> see this 
>> posthttp://groups.google.com/group/Google-Web-Toolkit/msg/7e3ad4486d103b94
>> where the developer says load times are slow (it's even slow on my new
>> MacBook Pro). Had the developer used vanilla GWT, I doubt they would
>> have run into those problems.
>>
>> The biggest problem IMHO is that people use these third party
>> libraries and think they're using GWT. They find that it's slow and
>> buggy and attribute it to GWT. Then GWT ends up getting a bad
>> reputation. People who come to this mailing list need to understand
>> that ExtGWT, gwt-ext or SmartGWT have almost nothing to do with GWT
>> and everything to do with the JS libraries they either wrap or attempt
>> to mimic. That way, if they decide to use these libraries, they'll
>> understand that they're using that to

Re: GWT RIA s ?

2008-12-19 Thread Arthur Kalmenson

Rob,

I forgot to mention, are you going to attack GWT developers like Sumit
Chandel that point GWT-ext and ExtGWT questions to those project's
respective mailing lists?

--
Arthur Kalmenson



On Fri, Dec 19, 2008 at 10:48 AM, Arthur Kalmenson
 wrote:
> Rob,
>
>> There you go again sounding like a broken record. You really are quite
>> thick headed aren't you?
>
> Perhaps instead of attacking _me_, you can point out where I'm wrong?
> However, AFAIK they're still JSNI bindings and still don't work well
> with regular GWT widgets or use the GWT event model.
>
>> If you take pleasure in constantly dissing other libraries, I'll do
>> the same and reply to your every post saying that you are full of it.
>> Deal?
>
> I'm not "dissing" other libraries. I'm not in grade school. This
> mailing list is here to discuss GWT and surrounding technologies on a
> technical level, not for personal attacks or "dissing" libraries.
>
>> You might make yourself more useful if you try to answer real
>> questions on the group instead of increasing your post count with
>> cruft. 90% of your posts are really just pointing people to the gwt-
>> ext, ext-gwt forums and dissing these libraries at every single
>> opportunity.
>
> I answer the redirecting questions because they take a few seconds to
> answer and because those posts go days without being answered. I'd
> prefer to at least point them in the right direction rather then leave
> them hanging. If you take a look, I also answer other questions too. A
> lot of them get answered before I get a chance to get to them.
>
> Anyway, this is growing tiresome. You need to stop taking this
> personally, it has nothing to do with you. If you believe I'm wrong,
> please point out the inaccuracies, otherwise, don't bother
> responding.
>
> --
> Arthur Kalmenson
>
>
>
> On Fri, Dec 19, 2008 at 9:47 AM, Rob Smith  wrote:
>>
>> There you go again sounding like a broken record. You really are quite
>> thick headed aren't you?
>>
>> If you take pleasure in constantly dissing other libraries, I'll do
>> the same and reply to your every post saying that you are full of it.
>> Deal?
>>
>> You might make yourself more useful if you try to answer real
>> questions on the group instead of increasing your post count with
>> cruft. 90% of your posts are really just pointing people to the gwt-
>> ext, ext-gwt forums and dissing these libraries at every single
>> opportunity.
>>
>> Rob
>>
>>
>> On Dec 19, 9:04 am, "Arthur Kalmenson"  wrote:
>>> > So you've assumed responsibility for being the GWT saviour by
>>> > educating these developers  and saving their project?
>>>
>>> I'm not really assuming any responsibility, I'm just mentioning that
>>> there are draw backs to using these libraries.
>>>
>>> > What makes you so qualified?
>>>
>>> I've had to abandon and rewrite a GWT-ext project because of the said
>>> drawbacks. I've talked with many other people who had to rewrite
>>> ExtGWT and GWT-ext projects.
>>>
>>> > You've expressed your opinion (more than once) so why
>>> > not leave it at that. How would it appear if someone posted in
>>> > response to your every post saying that Arthur is clueless?
>>>
>>> I don't believe I was insulting anyone. And while I've expressed my
>>> opinion (which many here hold), many people are new and don't know the
>>> downside of using these libraries.
>>>
>>> > Or the ZK
>>> > guys saying that GWT sucks in their ads that are all over the place.
>>> > Everyone is entitled to an opinion by going overboard is really not
>>> > necessary. You know what they say about opinions and wanting to give
>>> > them... And you've gone out of your way to voice your opinion even no
>>> > one asked for it.
>>>
>>> How am I going overboard? Dave Ford's comment is indicative that
>>> people appreciate hearing what the down sides are. In order for a
>>> developer to make an informed decision, they need to hear all sides
>>> and try it for themselves.
>>>
>>> > Try to take a deep breath and relax when these libraries are mentioned
>>> > and ignore them instead of assuming the role of GWT gatekeeper. There
>>> > have been stray email questions on various third party libraries like
>>> > GChart and DnD. I don't see you jump in on those threads pointing to
>>> > the appropriate forum.
>>>
>>> That's the thing, if I ignore the posts that tell people to use
>>> ExtGWT, gwt-ext or SmartGWT, and no one bothers to warn them, they
>>> might end up committing substantial resources to these projects and
>>> then have to rewrite them or have them turn out poorly. For example,
>>> see this 
>>> posthttp://groups.google.com/group/Google-Web-Toolkit/msg/7e3ad4486d103b94
>>> where the developer says load times are slow (it's even slow on my new
>>> MacBook Pro). Had the developer used vanilla GWT, I doubt they would
>>> have run into those problems.
>>>
>>> The biggest problem IMHO is that people use these third party
>>> libraries and think they're using GWT. They find that it's slow and
>>> buggy an

Anchors / Links within a page

2008-12-19 Thread obesga

Hello everyone !
Just a problem with anchors and IE

I've been trying to make a looong GWT page 'navigatable' withih with
the classic HTML anchor tag ( something like an index; you'll see it
pretty here http://www.echoecho.com/htmllinks08.htm )

Using  Peter Blazejewicz code on the forums (
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/61e10f6f83b22baa/87edf101312b59ab?lnk=gst&q=anchor+within+page#87edf101312b59ab
) I've managed to make this happen... Except in IE, where links simply
don't work - either in GWTShell or IE stanalone
(I've tried in Opera / Firefox / Chrome / Safari, all these works
fine )

¿ Is there any problem or workaround to IE ?

or

¿ Can it be done programatically, with GWT Java code or Javascript
code ( by JSNI ) ?

The code is like that

// Link
Element element = DOM.createAnchor();
setElement(element);
DOM.setElementAttribute(element, "href", anchorName ==
null ? "" : "#" + anchorName);
DOM.setInnerText(element, text == null ? "" : text);

   // Target
Element element = DOM.createAnchor();
setElement(element);
DOM.setElementAttribute(element, "name", anchorName ==
null ? "" : anchorName);
DOM.setInnerText(element, text == null ? "" : text);

Thank you

Oskar

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



Re: Anchors / Links within a page

2008-12-19 Thread obesga

/// I don't like to re-post, but here's the complete code of what
I'm trying to to *///

public class AnchorsPanel extends Composite {

private FlowPanel fpLinks;
private VerticalPanel verticalPanel;

public AnchorsPanel() {
verticalPanel = new VerticalPanel();
verticalPanel.setStylePrimaryName("caronte-VerticalTabPanel-
VPanel");
fpLinks = new FlowPanel();
verticalPanel.add(fpLink);
this.initWidget(verticalPanel);
}

// ADD A WIDGET
public void addTab(String name, String refName, Widget widget) {
HTMLLinkSource sourceLink = new HTMLLinkSource(name,refName);
HTMLLinkTarget targetLink = new HTMLLinkTarget(name,refName);
fpLinks.add(sourceLink);
verticalPanel.add(targetLink);
verticalPanel.add(widget);
}



// CLASS FOR LINK
public class HTMLLinkSource extends Widget {

public HTMLLinkSource(String text, String anchorName) {
Element element = DOM.createAnchor();
setElement(element);
DOM.setElementAttribute(element, "href", anchorName ==
null ? "" : "#" + anchorName);
DOM.setInnerText(element, text == null ? "" : text);
}

}

// CLASS FOR TARGET
public class HTMLLinkTarget extends Widget {

public HTMLLinkkDestino(String text, String anchorName) {
Element element = DOM.createAnchor();
setElement(element);
DOM.setElementAttribute(element, "name", anchorName ==
null ? "" : anchorName);
DOM.setInnerText(element, text == null ? "" : text);
}

}
}

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



Re: GWT RIA s ?

2008-12-19 Thread Rob Smith

Pointing users to the appropriate mailing list is absolutely the right
thing to do. Sumit already does a good job with this. It's when you
add your own unsolicited and biased spin when pointing to the forum
that I take issue with. Like library X has nothing to do with GWT and
I think they are really bad. The question was about usage of a certain
API and not what you think of the library. Do you get it now?

If you don't like it, don't use it. If you find them slow, don't use
it. Slow is a relative term. The gwt-ext demo run fast IMO and users
evaluating it can see it for themselves. Do you have any concrete
numbers from performance tests when you say they perform poorly? If so
please post your test case and specifically point out what is slow and
by what margin. Until then making generalized statements like the
performance is really poor is just FUD.

Rob

On Dec 19, 10:51 am, "Arthur Kalmenson"  wrote:
> Rob,
>
> I forgot to mention, are you going to attack GWT developers like Sumit
> Chandel that point GWT-ext and ExtGWT questions to those project's
> respective mailing lists?
>
> --
> Arthur Kalmenson
>
> On Fri, Dec 19, 2008 at 10:48 AM, Arthur Kalmenson
>
>  wrote:
> >Rob,
>
> >> There you go again sounding like a broken record. You really are quite
> >> thick headed aren't you?
>
> > Perhaps instead of attacking _me_, you can point out where I'm wrong?
> > However, AFAIK they're still JSNI bindings and still don't work well
> > with regular GWT widgets or use the GWT event model.
>
> >> If you take pleasure in constantly dissing other libraries, I'll do
> >> the same and reply to your every post saying that you are full of it.
> >> Deal?
>
> > I'm not "dissing" other libraries. I'm not in grade school. This
> > mailing list is here to discuss GWT and surrounding technologies on a
> > technical level, not for personal attacks or "dissing" libraries.
>
> >> You might make yourself more useful if you try to answer real
> >> questions on the group instead of increasing your post count with
> >> cruft. 90% of your posts are really just pointing people to the gwt-
> >> ext, ext-gwt forums and dissing these libraries at every single
> >> opportunity.
>
> > I answer the redirecting questions because they take a few seconds to
> > answer and because those posts go days without being answered. I'd
> > prefer to at least point them in the right direction rather then leave
> > them hanging. If you take a look, I also answer other questions too. A
> > lot of them get answered before I get a chance to get to them.
>
> > Anyway, this is growing tiresome. You need to stop taking this
> > personally, it has nothing to do with you. If you believe I'm wrong,
> > please point out the inaccuracies, otherwise, don't bother
> > responding.
>
> > --
> > Arthur Kalmenson
>
> > On Fri, Dec 19, 2008 at 9:47 AM,RobSmith  wrote:
>
> >> There you go again sounding like a broken record. You really are quite
> >> thick headed aren't you?
>
> >> If you take pleasure in constantly dissing other libraries, I'll do
> >> the same and reply to your every post saying that you are full of it.
> >> Deal?
>
> >> You might make yourself more useful if you try to answer real
> >> questions on the group instead of increasing your post count with
> >> cruft. 90% of your posts are really just pointing people to the gwt-
> >> ext, ext-gwt forums and dissing these libraries at every single
> >> opportunity.
>
> >>Rob
>
> >> On Dec 19, 9:04 am, "Arthur Kalmenson"  wrote:
> >>> > So you've assumed responsibility for being the GWT saviour by
> >>> > educating these developers  and saving their project?
>
> >>> I'm not really assuming any responsibility, I'm just mentioning that
> >>> there are draw backs to using these libraries.
>
> >>> > What makes you so qualified?
>
> >>> I've had to abandon and rewrite a GWT-ext project because of the said
> >>> drawbacks. I've talked with many other people who had to rewrite
> >>> ExtGWT and GWT-ext projects.
>
> >>> > You've expressed your opinion (more than once) so why
> >>> > not leave it at that. How would it appear if someone posted in
> >>> > response to your every post saying that Arthur is clueless?
>
> >>> I don't believe I was insulting anyone. And while I've expressed my
> >>> opinion (which many here hold), many people are new and don't know the
> >>> downside of using these libraries.
>
> >>> > Or the ZK
> >>> > guys saying that GWT sucks in their ads that are all over the place.
> >>> > Everyone is entitled to an opinion by going overboard is really not
> >>> > necessary. You know what they say about opinions and wanting to give
> >>> > them... And you've gone out of your way to voice your opinion even no
> >>> > one asked for it.
>
> >>> How am I going overboard? Dave Ford's comment is indicative that
> >>> people appreciate hearing what the down sides are. In order for a
> >>> developer to make an informed decision, they need to hear all sides
> >>> and try it for themselves.
>
> >>> > Try to t

shell fails loading

2008-12-19 Thread ArunDhaJ

Hi,
Shell is not starting properly. And when tried viewing in hosted
browser throws "HTTP 400 - Bad request" page not found error.

It was actually working fine till earlier part of the day...

Please help me in resolving the issue.

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



Re: tomcat deploy failed

2008-12-19 Thread gregor

Hi rizla,

I would return your url mappng in web.xml to:

/com.gwt.syncar.Syncar/ItinerarioService

for now (assuming that the location of your module file is
com.gwt.syncar.Syncar.gwt.xml). I think your problem is likely to be
in how you are setting the URL for the RPC call client side. It should
look something like this on the info you've given so far:

((ServiceDefTarget) target).setServiceEntryPoint(GWT.getModuleBaseURL
() + "ItinerarioService");

I would check this in debugger, i.e.

String URL =  GWT.getModuleBaseURL() + "ItinerarioService"

to make sure that the URL matches exactly the mapping in web.xml -
that's likely to be your only problem really.

regards
gregor

On Dec 19, 2:07 pm, rizla  wrote:
> don't works :(
>
> in the package server we have two servlets...LoginServiceImpl adn
> ItinerarioSeviceImpl...
> this is my gwt.xml file
>
> ..
>          class="com.gwt.syncar.server.LoginServiceImpl"/>
>          class="com.gwt.syncar.server.ItinerarioServiceImpl"/>
> 
>
> and the web.xml file is :
>
> 
>
> http://java.sun.com/xml/ns/javaee";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";>
>
>  
>  
>    LoginService
>    com.gwt.syncar.server.LoginServiceImpl class>
>  
>
> 
>    ItinerarioService
>    com.gwt.syncar.server.ItinerarioServiceImpl class>
>  
>
> 
>  
>    LoginService
>    /LoginService
>  
>
> 
>    ItinerarioService 
>    /ItinerarioService 
>  
> 
>
> thx for the response :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: setCookie problem using IE7

2008-12-19 Thread todd.sei...@gmail.com

This same code is working for me in IE7. Is it possible that IE is
setup to block cookies?

On Dec 19, 10:43 am, "frank.wyna...@gmail.com"
 wrote:
> I have the following code :
>
>       Date now = new Date();
>       long nowLong = now.getTime();
>       nowLong = nowLong + (1000 * 60 * 60 * 24 * 10);//10 days
>       now.setTime(nowLong);
>
>       GWT.log("setting a cookie",null);
>       Cookies.setCookie("regio", "abc", now);
>
> This works no problem in Firefox, Google Chrome and Safari. But the
> cookie just is not saved in IE7. When I view the cookies in IE7 it
> just isn't there. Any ideas what is going wrong ? Or anyone has
> another way to save cookies (using JSNI if necessary).
>
> Thanks
> Frank
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Anchors / Links within a page

2008-12-19 Thread todd.sei...@gmail.com

Element element = DOM.createElement("");

You would have to create the anchor like this in IE but it does not
work for Firefox.



On Dec 19, 10:59 am, obesga  wrote:
> /// I don't like to re-post, but here's the complete code of what
> I'm trying to to *///
>
> public class AnchorsPanel extends Composite {
>
>     private FlowPanel fpLinks;
>     private VerticalPanel verticalPanel;
>
>     public AnchorsPanel() {
>         verticalPanel = new VerticalPanel();
>         verticalPanel.setStylePrimaryName("caronte-VerticalTabPanel-
> VPanel");
>         fpLinks = new FlowPanel();
>         verticalPanel.add(fpLink);
>         this.initWidget(verticalPanel);
>     }
>
>         // ADD A WIDGET
>     public void addTab(String name, String refName, Widget widget) {
>         HTMLLinkSource sourceLink = new HTMLLinkSource(name,refName);
>         HTMLLinkTarget targetLink = new HTMLLinkTarget(name,refName);
>         fpLinks.add(sourceLink);
>         verticalPanel.add(targetLink);
>         verticalPanel.add(widget);
>     }
>
>         // CLASS FOR LINK
>     public class HTMLLinkSource extends Widget {
>
>         public HTMLLinkSource(String text, String anchorName) {
>             Element element = DOM.createAnchor();
>             setElement(element);
>             DOM.setElementAttribute(element, "href", anchorName ==
> null ? "" : "#" + anchorName);
>             DOM.setInnerText(element, text == null ? "" : text);
>         }
>
>     }
>
>         // CLASS FOR TARGET
>     public class HTMLLinkTarget extends Widget {
>
>         public HTMLLinkkDestino(String text, String anchorName) {
>             Element element = DOM.createAnchor();
>             setElement(element);
>             DOM.setElementAttribute(element, "name", anchorName ==
> null ? "" : anchorName);
>             DOM.setInnerText(element, text == null ? "" : text);
>         }
>
>     }
>
> }
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Directions load() method error

2008-12-19 Thread prad

Eric,
I got it to work. i just did a clean build and compiled and it seemed
to resolve the issue.
I have one other question. With loadFromWaypoints () the map shows
markers for every waypoint. is there a way to avoid all markers except
for the start and end?

Thanks
Pradnya

On Dec 19, 8:33 am, Eric Ayers  wrote:
> I've written 3 new unit tests and have been unable to reproduce the
> problem from here.
>
>
>
> On Fri, Dec 19, 2008 at 7:17 AM, Eric Ayers  wrote:
> > Yes, the code that is published as a sample app on the public site still
> > works, as does my current project.  Can you run theDirectionsexamples at:
>
> >  http://gwt.google.com/samples/HelloMaps-1.0.2/HelloMaps.html
>
> > Could it be that you are runningDirections.load() more than once in
> > parallel?  Only one is supposed to be active at a time (I see that the
> > javadoc does not reflect that.)  I just added a unit test that tests it.
>
> > Also, if you are running the test from outside the US, that might make a
> > difference.  I believe that the geocoding tries to take into account your
> > location when performing the query)  Try adding 'USA' to the end of the
> > from: and to: query parameters.
>
> > If you are still having trouble running gwt-maps-1.0.2, could you post the
> > stack trace again?
>
> > On Thu, Dec 18, 2008 at 9:43 PM, prad  wrote:
>
> >> I still get the same error. are you able to run your code fine?
>
> >> On Dec 18, 2:49 pm, prad  wrote:
> >> > let me try and get back to you.. but meanwhile if you get to the
> >> > solution i would appreciate it!
>
> >> > thanks!
>
> >> > On Dec 18, 2:36 pm, Eric Ayers  wrote:
>
> >> > > The stack trace you pasted last time pointed to a comment in this
> >> > > file,
> >> > > which is why I suspected a version change might fix it.
>
> >> > > I just checked the online demo:
>
> >> > > >http://gwt.google.com/samples/HelloMaps-1.0.2/HelloMaps.html#Simple%2...
>
> >> > > And geocoding/directionsstill works there.  I'm working on another
> >> > > piece of
> >> > > code that is similar, but creates DirectionsQueryOptions() with no
> >> > > arguments.  The difference between these 2 and your example is that
> >> > > you are
> >> > > using the constructor that takes one Map argument.  Could you try
> >> > > changing
> >> > > the way you use DirectionQueryOptions and see if makes a difference
> >> > > for you?
>
> >> > > -Eric.
>
> >> > > On Thu, Dec 18, 2008 at 1:26 PM, prad  wrote:
>
> >> > > > today morning i tried using the latest version and i still get hte
> >> > > > same error. i looked up at their sample classes fordirectionsand
> >> > > > nothing seems to be changed since the last version. am i missing
> >> > > > something here?
>
> >> > > > On Dec 18, 1:01 pm, Eric Ayers  wrote:
> >> > > > > The latest version of the Maps API library for GWT is 1.0.2 and
> >> > > > > has
> >> > > > > modifications to theDirectionsclass since 1.0.0
>
> >> > > > > On Thu, Dec 18, 2008 at 10:06 AM, Pradnya Sute
> >> > > > >  >> > > > >wrote:
>
> >> > > > > > i am using gwt-maps api verison 1.0.0 and in the script tag.
>
> >> > > > > >     http://maps.google.com/maps?*gwt=1
> >> > > > > > *&file=api&v=2&key=>
>
> >> > > > > > On Thu, Dec 18, 2008 at 6:35 AM, Eric Ayers 
> >> > > > > > wrote:
>
> >> > > > > >> Can you tell me which version of the Maps API you are loading
> >> > > > > >> in the
> >> > > > > >> 

Re: Need for a great GWT GUI library

2008-12-19 Thread Mr. Taylor

I understand your pain.  I use both GWT and GWT-EXT.  I have found
most of my issues with GWT-EXT CSS stylesheet not displaying correctly
in IE.
Maybe someone can post a gwt CSS file that contains better looking
widgets out of the box.

As far as the slowness goes then you might be better off telling users
to buy a faster computer :)



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



Re: setCookie problem using IE7

2008-12-19 Thread frank.wyna...@gmail.com

This is really strange... I tested it on different computers (on
different locations) and it is not working anywhere on IE7. I am
pretty sure it worked in the past. I also logged so I am 100% sure the
code gets executed but the cookie just don't get saved (when I visit
other websites the cookies get saved no problem).

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



Re: MapWidget only partially rendering

2008-12-19 Thread milotimbol

I was having the same problem. The use of Deferred command plus the
code here 
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=FAQ_UIVerticalFillApp
worked for me.

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



GoogleSky

2008-12-19 Thread PawelRog

I'd like to know if there is some API to googlesky in GWT. On
sourceforge.net I found GoogleMaps extension for GWT. Is there
something like that but for GoogleSky?
Maby there is some other Java API for GoogleSky?

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



Re: Directions load() method error

2008-12-19 Thread Eric Ayers
On Fri, Dec 19, 2008 at 12:10 PM, prad  wrote:

>
> Eric,
> I got it to work. i just did a clean build and compiled and it seemed
> to resolve the issue.


I'm glad you found a solution!


>
> I have one other question. With loadFromWaypoints () the map shows
> markers for every waypoint. is there a way to avoid all markers except
> for the start and end?


Yes, you can do something similar to this snippet:

DirectionQueryOptions dirOptions = new DirectionQueryOptions();
dirOptions.setRetrievePolyline(true);
dirOptions.setRetrieveSteps(true);
Directions.load(
"from:here, usa to:there, india",
dirOptions, new DirectionsCallback() {

  public void onFailure(int statusCode) {
Window.alert("Query failed: " + statusCode + " "
+ StatusCodes.getName(statusCode));
  }

  public void onSuccess(DirectionResults result) {
map.addOverlay(result.getPolyline());
  }
});
 }

Then, you can also retrieve the 2 endpoints from the DirectionsResult object
and create markers for them.


> Thanks
> Pradnya
>
> On Dec 19, 8:33 am, Eric Ayers  wrote:
> > I've written 3 new unit tests and have been unable to reproduce the
> > problem from here.
> >
> >
> >
> > On Fri, Dec 19, 2008 at 7:17 AM, Eric Ayers  wrote:
> > > Yes, the code that is published as a sample app on the public site
> still
> > > works, as does my current project.  Can you run theDirectionsexamples
> at:
> >
> > >  http://gwt.google.com/samples/HelloMaps-1.0.2/HelloMaps.html
> >
> > > Could it be that you are runningDirections.load() more than once in
> > > parallel?  Only one is supposed to be active at a time (I see that the
> > > javadoc does not reflect that.)  I just added a unit test that tests
> it.
> >
> > > Also, if you are running the test from outside the US, that might make
> a
> > > difference.  I believe that the geocoding tries to take into account
> your
> > > location when performing the query)  Try adding 'USA' to the end of the
> > > from: and to: query parameters.
> >
> > > If you are still having trouble running gwt-maps-1.0.2, could you post
> the
> > > stack trace again?
> >
> > > On Thu, Dec 18, 2008 at 9:43 PM, prad  wrote:
> >
> > >> I still get the same error. are you able to run your code fine?
> >
> > >> On Dec 18, 2:49 pm, prad  wrote:
> > >> > let me try and get back to you.. but meanwhile if you get to the
> > >> > solution i would appreciate it!
> >
> > >> > thanks!
> >
> > >> > On Dec 18, 2:36 pm, Eric Ayers  wrote:
> >
> > >> > > The stack trace you pasted last time pointed to a comment in this
> > >> > > file,
> > >> > > which is why I suspected a version change might fix it.
> >
> > >> > > I just checked the online demo:
> >
> > >> > > >
> http://gwt.google.com/samples/HelloMaps-1.0.2/HelloMaps.html#Simple%2...
> >
> > >> > > And geocoding/directionsstill works there.  I'm working on another
> > >> > > piece of
> > >> > > code that is similar, but creates DirectionsQueryOptions() with no
> > >> > > arguments.  The difference between these 2 and your example is
> that
> > >> > > you are
> > >> > > using the constructor that takes one Map argument.  Could you try
> > >> > > changing
> > >> > > the way you use DirectionQueryOptions and see if makes a
> difference
> > >> > > for you?
> >
> > >> > > -Eric.
> >
> > >> > > On Thu, Dec 18, 2008 at 1:26 PM, prad 
> wrote:
> >
> > >> > > > today morning i tried using the latest version and i still get
> hte
> > >> > > > same error. i looked up at their sample classes fordirectionsand
> > >> > > > nothing seems to be changed since the last version. am i missing
> > >> > > > something here?
> >
> > >> > > > On Dec 18, 1:01 pm, Eric Ayers  wrote:
> > >> > > > > The latest version of the Maps API library for GWT is 1.0.2
> and
> > >> > > > > has
> > >> > > > > modifications to theDirectionsclass since 1.0.0
> >
> > >> > > > > On Thu, Dec 18, 2008 at 10:06 AM, Pradnya Sute
> > >> > > > >  > >> > > > >wrote:
> >
> > >> > > > > > i am using gwt-maps api verison 1.0.0 and in the script tag.
> >
> > >> > > > > > http://maps.google.com/maps?*gwt=1
> > >> > > > > > *&file=api&v=2&key=>
> >
> > >> > > > > > On Thu, Dec 18, 2008 at 6:35 AM, Eric Ayers <
> zun...@google.com>
> > >> > > > > > wrote:
> >
> > >> > > > > >> Can you tell me which version of the Maps API you are
> loading
> > >> > > > > >> in the
> > >> > > > > >> 

Re: RPC.encode not working

2008-12-19 Thread deanhiller

How does that work?  I am doing the above code in a servlet filter so
there is no GWT code above the filter.  All the GWT code is in the
RemoteServlet and ServletFilters run before the RemoteServlet code
does.  I also want to throw a GwtSessionTimeoutException so I can pass
a url for the gwt clients to redirect to the correct location.  I have
many GWT apps that will use this filter.
thanks,
Dean

On Dec 18, 7:06 am, "Arthur Kalmenson"  wrote:
> Hi Dean,
>
> Are you trying to encode an exception to throw it back to the client
> side? AFAIK, you can just throw a IsSerializable exception in your
> code and GWT-RPC will transfer the said exception to the client side
> for you.
>
> --
> Arthur Kalmenson
>
> On Thu, Dec 18, 2008 at 12:55 AM, deanhiller  wrote:
>
> > I have the following code in a servlet filter
>
> >GwtSessionTimeout timeout = new GwtSessionTimeout(
> >"Session timed out.  You need to redirect to 
> > the url in getUrl
> > function",
> >url);
> >try {
> >String payload = 
> > RPCServletUtils.readContentAsUtf8(request, true);
> >RPCRequest rpcRequest = RPC.decodeRequest(payload);
> >payload = RPC.encodeResponseForFailure(null, 
> > timeout);
>
> >boolean gzipEncode = 
> > RPCServletUtils.acceptsGzipEncoding(request)
> >&& shouldCompressResponse(request, 
> > response, payload);
>
> >ServletContext servletContext = request.getSession
> > ().getServletContext();
> >RPCServletUtils.writeResponse(servletContext, 
> > response, payload,
> > gzipEncode);
>
> >} catch (SerializationException e) {
> >throw new RuntimeException("Exception", e);
> >} catch (ServletException e) {
> >throw new RuntimeException("Exception",e);
> >}
>
> > The browser(firefox) says "This application is out of date, please
> > click the refresh button on your browser."
>
> > If I change
> > payload = RPC.encodeResponseForFailure(null, timeout);
> > to
> > payload = RPC.encodeResponseForFailure(rpcRequest.getMethod, timeout);
>
> > it fails with UnexpectedException like GwtSessionTimeout was not a
> > RuntimeException, but it is a RuntimeException so it should work and I
> > expect the aysncCallback.onFailure to be called, but it doesn't work.
>
> > Here is my GwtSessionTimeout
> > public class GwtSessionTimeout extends RuntimeException implements
> > IsSerializable{
> > }
>
> > why isn't this working?
> > later,
> > Dean
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: redirect problem

2008-12-19 Thread deanhiller

So, I added code to my ServletFilter(I didn't feel like getting
involved in spring at all), but I could not get the code to work.

http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/8444004a667f11fe#

I think there is just a simple mistake...anyone know?
thanks,
Dean

On Dec 12, 9:11 am, a44ever  wrote:
> I also use Spring Security and the technique described above
> (created:  FailureHandlingAsyncCallback implements AsyncCallback).
>
> Problem is it works beautifully on FF but not on IE.
>
> ...
> public void onFailure(Throwable caught)
> {
> maskArea.unmask();
> if (caught instanceof StatusCodeException)
> {
> StatusCodeException sce = (StatusCodeException) 
> caught;
> if (sce.getStatusCode() == 302)
> {
> // Timeout occurred - go back to base url, 
> forcing a clean re-
> login
> 
> SelfServiceEntry.redirect(GWT.getModuleBaseURL());
> }
> }
> else
> MessageBox.alert("Error: " + caught);
> }
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: how to proxy all the methods in my RemoteServiceServlet

2008-12-19 Thread deanhiller

So, I added code to my ServletFilter(I didn't feel like getting
involved in spring at all and wanted to move it up from the GWT
servlet to use for all calls), but I could not get the code to
work.

http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/8444004a667f11fe#

I think there is just a simple mistake...anyone know?
thanks,
Dean

On Nov 1, 10:46 pm, medgey  wrote:
> I think you can do session variable checking before processCall.  For
> example, you could do so in a servlet filter and send
> encodeResponseForFailure if the session is not setup properly.  There
> is no need to override processCall for this purpose.
>
> Now, for checks on particular parameters (etc) that require
> decodeRequest - overriding processCall is a good bet.
>
> On Oct 3, 12:05 pm, falafala  wrote:
>
> > If go for non-spring solution, yes, you should override the
> > processCall().
> > Just take a look at the source, you should invoke the
> > RPC.encodeResponseForFailure(method, ex)
> > to encode the Exception and send back to client.
>
> > I didnt test. It may not compile, you may try anyway ... :)
>
> > public String processCall(String payload) throws
> > SerializationException {
> > try {
> >   RPCRequest rpcRequest = RPC.decodeRequest(payload,
> > this.getClass(), this);
>
> >   if (isValidSession())   // may add other conditions when should
> > check, when should not check..
> >   {
> >   return RPC.invokeAndEncodeResponse(this,
> > rpcRequest.getMethod(),
> >   rpcRequest.getParameters(),
> > rpcRequest.getSerializationPolicy());
> >   }
> >   else
> >   {
> >  return RPC.encodeResponseForFailure(rpcRequest.getMethod(),
> > new NotLoggedInException());
> >   }
>
> > } catch (IncompatibleRemoteServiceException ex) {
> >   getServletContext().log(
> >   "An IncompatibleRemoteServiceException was thrown while
> > processing this call.",
> >   ex);
> >   return RPC.encodeResponseForFailure(null, ex);
> > }
> >   }
>
> > private boolean isValidSession()
> > {
> > //...
>
> > }
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Entrypoint can't access classes in an external jar file

2008-12-19 Thread Smith

All,


I have some JPA entity classes in a JAR file and I need both the GWT
RPC implemenation servlet and my entrypoint
 to have access to these classes.

However, my service which is placed in the package/server directory
can access these classes but the entrypoint class which is placed in
package/client direcoty can't access the classes in the jar file. My
code compiles fine but the shell complains in hosted mode that the
entrypoint  can't find the classes and asks if I forgot to inherit a
module.

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



Re: Need for a great GWT GUI library

2008-12-19 Thread Dave Ford

I guess I see two separate issues:

1. GWT's stock set of widgets is missing a widget that one may need
(like a DatePicker or a ComboBox for example)
2. GWT's stock set of widgets isn't pretty enough (or doesn't match
your preferred look and feel)

For issue #1:  I like the gwt team's focus on core (or kernal'ish)
issues and getting their core architecture right. The community can
fill in the missing widgets. There are certain tasks which can't (in a
practical way) be done outside of the GWT team (like improve compiler
speed, fix the event handling model, etc.). And there are other things
that are easily done by the gwt community: make new widgets. In fact,
I wish *Sun* had followed this strategy with j2se and j2ee. We didn't
really need most of the 8 million libraries that are mandatorily part
of j2se and j2ee. Many of those can be (and are now) defined by the
community. Other things more kernel'ish, like module versioning,
closures, support for aspect injection, etc can really best be done by
Sun. So what i am saying is that i am happy with (what appears to be)
GWT's strategy of what to include in GWT and what to leave up to the
community.

With that said, it would be nice if *really mainstream* type widgets
(like DatePicker, ScrollTable) were part of GWT's stock widget set.
And from looking at the incubator, it looks like that is the intent.

Regarding issue #2: Why can't the "good looks" be achieved through
CSS? For that matter are there any 3rd parties that provide additional
themes, beyond Standard, Chrome and Dark? Or perhaps a company that
specializes in making additional themes. I would think there would be
great demand for that.

GWT and Widget Suites

Scenario #1: Piecemeal
I would like to see gwt's 3rd party widget market evolve in a
direction where there are 1000's of 3rd party (open source and
commercial) widgets. these widgets can freely be mixed and matched. An
app may use the mostly stock gwt widgets (perhaps styled differently)
plus two or three 3rd party widgets which may or may not be from the
same provider. Each 3rd party widget only increases compiled code size
in proportion to the widget being used. The 3rd party widgets don't
introduce new styling paradigms.

Scenario #2:Suites
Contrast this with a scenario where you have only a few widget
vendors. Each vendor provides a whole suite of widgets, most of which
duplicate what is already provided by the stock gwt widget library.
And that suite then, has a whole new set of its own paradigms and
practices one must follow. And generally the widget suite is setup so
that it really makes more since to use the entire suite. As opposed to
using each widget piecemeal. As an example, adding a single GXT
combobox to my app doubles the compiled code size. Or as another
example check out this DOJO code (non gwt):





All 3 components are by dojo. Two TextBox widgets and a DateTextBox.
However, if I replace the two dojo TextBox widgets with just standard
widgets (i.e. get rid of the dojoType attribute), then it suddenly
looks funny. Also, adding just one DOJO widget (the DateTextBox) to my
app doubles its download size and adds an additional *40* http
requests.

So here are my questions:

Q1: Are the available gwt widget suites more like Scenario #1 or
Scenario #2.
Q2: Are they practical to use piecemeal?
Q3: Are people using GWT 3rd party widgets?
a.  not at all, sticking exclusively with stock widgets
b.  using 3rd party widgets piecemeal
c.  using 3rd party widget suites hook, line and sinker, such that 
the
app now becomes a GXT app or a SmartClient app
Q4: Has anyone created an app that uses widgets from multiple suites
(say GXT and SmartClient)?



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



Re: GoogleSky

2008-12-19 Thread Eric Ayers
If you use  the Google APIs for GWT bindings (
http://code.google.com/p/gwt-google-apis/) you can use sky maps by using the
regular Maps API and setting the map type.
See:
http://gwt.google.com/samples/HelloMaps-1.0.2/HelloMaps.html#Map%20Types

and change the map type to "Sky: Visible" (zoom out to see the entire sky)

Looking at it this demo kinda makes me wish I lived in the southern
hemisphere.

-Eric

On Fri, Dec 19, 2008 at 12:45 PM, PawelRog  wrote:

>
> I'd like to know if there is some API to googlesky in GWT. On
> sourceforge.net I found GoogleMaps extension for GWT. Is there
> something like that but for GoogleSky?
> Maby there is some other Java API for GoogleSky?
>
> >
>


-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT RIA s ?

2008-12-19 Thread Sunit Katkar
I have just started working on a prototype of our application using GWT.
Mike Shaffer, here on the list, has been very kind to help with some
questions I had about migrating a Struts/JSP UI to a GWT UI.
For now I am sticking with the standard GWT widgets. Maybe this is the wrong
thread to ask, but my questions are (and sorry for sounding dumb, but this
GWT is new to me)
1) If I use GWT- then how easy is it to upgrade when GWT
comes up with a newer version? I understand that if Google changes the event
model or some such thing then I have to change my code too, but vis-a-vis
widgets, would these 3rd party libs be compatible?
2) Is there is any timeline or roadmap from Google when they would include
some new widgets or provide a way to make the existing widgets more 'sexy'
like the 3rd party libs?


- Sunit Katkar
http://sunitkatkar.blogspot.com/ - Android OS Tutorials



On Fri, Dec 19, 2008 at 8:18 AM, Rob Smith  wrote:

>
> Pointing users to the appropriate mailing list is absolutely the right
> thing to do. Sumit already does a good job with this. It's when you
> add your own unsolicited and biased spin when pointing to the forum
> that I take issue with. Like library X has nothing to do with GWT and
> I think they are really bad. The question was about usage of a certain
> API and not what you think of the library. Do you get it now?
>
> If you don't like it, don't use it. If you find them slow, don't use
> it. Slow is a relative term. The gwt-ext demo run fast IMO and users
> evaluating it can see it for themselves. Do you have any concrete
> numbers from performance tests when you say they perform poorly? If so
> please post your test case and specifically point out what is slow and
> by what margin. Until then making generalized statements like the
> performance is really poor is just FUD.
>
> Rob
>
> On Dec 19, 10:51 am, "Arthur Kalmenson"  wrote:
> > Rob,
> >
> > I forgot to mention, are you going to attack GWT developers like Sumit
> > Chandel that point GWT-ext and ExtGWT questions to those project's
> > respective mailing lists?
> >
> > --
> > Arthur Kalmenson
> >
> > On Fri, Dec 19, 2008 at 10:48 AM, Arthur Kalmenson
> >
> >  wrote:
> > >Rob,
> >
> > >> There you go again sounding like a broken record. You really are quite
> > >> thick headed aren't you?
> >
> > > Perhaps instead of attacking _me_, you can point out where I'm wrong?
> > > However, AFAIK they're still JSNI bindings and still don't work well
> > > with regular GWT widgets or use the GWT event model.
> >
> > >> If you take pleasure in constantly dissing other libraries, I'll do
> > >> the same and reply to your every post saying that you are full of it.
> > >> Deal?
> >
> > > I'm not "dissing" other libraries. I'm not in grade school. This
> > > mailing list is here to discuss GWT and surrounding technologies on a
> > > technical level, not for personal attacks or "dissing" libraries.
> >
> > >> You might make yourself more useful if you try to answer real
> > >> questions on the group instead of increasing your post count with
> > >> cruft. 90% of your posts are really just pointing people to the gwt-
> > >> ext, ext-gwt forums and dissing these libraries at every single
> > >> opportunity.
> >
> > > I answer the redirecting questions because they take a few seconds to
> > > answer and because those posts go days without being answered. I'd
> > > prefer to at least point them in the right direction rather then leave
> > > them hanging. If you take a look, I also answer other questions too. A
> > > lot of them get answered before I get a chance to get to them.
> >
> > > Anyway, this is growing tiresome. You need to stop taking this
> > > personally, it has nothing to do with you. If you believe I'm wrong,
> > > please point out the inaccuracies, otherwise, don't bother
> > > responding.
> >
> > > --
> > > Arthur Kalmenson
> >
> > > On Fri, Dec 19, 2008 at 9:47 AM,RobSmith 
> wrote:
> >
> > >> There you go again sounding like a broken record. You really are quite
> > >> thick headed aren't you?
> >
> > >> If you take pleasure in constantly dissing other libraries, I'll do
> > >> the same and reply to your every post saying that you are full of it.
> > >> Deal?
> >
> > >> You might make yourself more useful if you try to answer real
> > >> questions on the group instead of increasing your post count with
> > >> cruft. 90% of your posts are really just pointing people to the gwt-
> > >> ext, ext-gwt forums and dissing these libraries at every single
> > >> opportunity.
> >
> > >>Rob
> >
> > >> On Dec 19, 9:04 am, "Arthur Kalmenson"  wrote:
> > >>> > So you've assumed responsibility for being the GWT saviour by
> > >>> > educating these developers  and saving their project?
> >
> > >>> I'm not really assuming any responsibility, I'm just mentioning that
> > >>> there are draw backs to using these libraries.
> >
> > >>> > What makes you so qualified?
> >
> > >>> I've had to abandon and rewrite a GWT-ext project because of the said
> > 

Re: Tree Graph using GWT

2008-12-19 Thread Sunit Katkar
http://code.google.com/docreader/#p=gwt-google-apis&s=gwt-google-apis&t=VisualizationGettingStarted
- Sunit Katkar
http://sunitkatkar.blogspot.com/ - Android OS Tutorials



On Wed, Dec 17, 2008 at 6:33 AM, Paddy  wrote:

>
> Kilkenny,
> Life saver! thank you that helped me alot it's exactly what I was
> looking for.
>
> I'm having trouble running the compile or the shell command of my
> project while trying to include the visualizations jar.
> Any tips? I've edited the commands to include the path to the jar and
> also imported it into eclipse..
>
> P
>
> On Dec 17, 10:14 am, kilkenny  wrote:
> > Hi Paddy
> >
> > The gwt-google-apis project (http://code.google.com/p/gwt-google-
> > apis/) recently released a GWT-wrapper for the Google Visualization
> > API (http://code.google.com/intl/de-CH/apis/visualization/). They may
> > have something useful, for example the organizational chart..?
> >
> > Regards, Adrian
> > --http://traceurl.com
> >
> > On 16 Dez., 18:11, Paddy  wrote:
> >
> > > Hi Folks,
> >
> > > I'm trying to create a treeGraph in GWT to represent a hierarchical
> > > tree structure,
> > > I see alot of graphs and charts out there such a gChart but I see no
> > > tree type graphs there.
> >
> > > Anyone any ideas?
> >
>

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



Re: setCookie problem using IE7

2008-12-19 Thread frank.wyna...@gmail.com

Even when I create a program only containing

   public void onModuleLoad()
   {
  Cookies.setCookie("godverdomme", "kus men klote", new Date
(2010,1,1));
   }

It doesn't work under IE7 :(

Under other browser it works no problem.

I tried (and let this try) at different locations. Not a single
version of IE is 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 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT RIA s ?

2008-12-19 Thread Alejandro D. Garin
Hi,

I'm using gwt-mosaic in my project. It's really usefull for my development.
I like the layout managers, Widgets like WindowPanel (excelent - it's a
DialogBox with resizing and header manager). I choose the library because
it's pure gwt code (I agree in this point with Arthur)

Ale

On Fri, Dec 19, 2008 at 11:47 AM, David Hoffer  wrote:

>
> Thanks I will check out  gwt-mosaic again.  I tried it recently and it
> couldn't be used because it was compiled with JRE 1.6, I tried
> recompiling with 1.5 but ran into issues.  Hopefully this will be
> updated soon.
>
> -Dave
>
> On Fri, Dec 19, 2008 at 7:32 AM, Arthur Kalmenson 
> wrote:
> >
> > Hi Dave,
> >
> >> I see you have put SmartGWT in the JS wrapper camp, is this the case?
> >> I haven't heard anything about this library before and had just
> >> stumbled across it.
> >
> > SmartGWT is in fact a JS wrapper of the SmartCient JS library
> > (http://www.smartclient.com/)
> >
> >> Do you have a web site (or something) where we can find out which GWT
> >> libraries are pure GWT and okay to use?
> >>
> >> IMHO, although I know you steer folks away from the GWT wrapped JS
> >> libraries what is sorely needed are mature GWT libraries.  Having a
> >> list of available GWT libraries would be a helpful start.
> >
> > AFAIK gwt-mosaic is a pure GWT library
> > (http://code.google.com/p/gwt-mosaic/), but I haven't used it.
> > Unfortunately I don't have an answer for you. I agree that there are a
> > lot of immature GWT libraries. The best advice that I can give is to
> > use vanilla GWT with the incubator (although not everything there is
> > great). GWT makes create new widgets pretty easy and the Animation
> > framework is easy to use. If you're interested in how to style up your
> > application, check out this GWT blog post:
> >
> http://googlewebtoolkit.blogspot.com/2008/12/gwt-no-need-to-shortchange-your-style.html
> >
> > --
> > Arthur Kalmenson
> >
> >
> >
> > On Fri, Dec 19, 2008 at 9:14 AM, David Hoffer 
> wrote:
> >>
> >> Arthur,
> >>
> >> I see you have put SmartGWT in the JS wrapper camp, is this the case?
> >> I haven't heard anything about this library before and had just
> >> stumbled across it.
> >>
> >> Do you have a web site (or something) where we can find out which GWT
> >> libraries are pure GWT and okay to use?
> >>
> >> IMHO, although I know you steer folks away from the GWT wrapped JS
> >> libraries what is sorely needed are mature GWT libraries.  Having a
> >> list of available GWT libraries would be a helpful start.
> >>
> >> -Dave
> >>
> >> On Fri, Dec 19, 2008 at 7:04 AM, Arthur Kalmenson <
> arthur.k...@gmail.com> wrote:
> >>>
>  So you've assumed responsibility for being the GWT saviour by
>  educating these developers  and saving their project?
> >>>
> >>> I'm not really assuming any responsibility, I'm just mentioning that
> >>> there are draw backs to using these libraries.
> >>>
>  What makes you so qualified?
> >>>
> >>> I've had to abandon and rewrite a GWT-ext project because of the said
> >>> drawbacks. I've talked with many other people who had to rewrite
> >>> ExtGWT and GWT-ext projects.
> >>>
>  You've expressed your opinion (more than once) so why
>  not leave it at that. How would it appear if someone posted in
>  response to your every post saying that Arthur is clueless?
> >>>
> >>> I don't believe I was insulting anyone. And while I've expressed my
> >>> opinion (which many here hold), many people are new and don't know the
> >>> downside of using these libraries.
> >>>
>  Or the ZK
>  guys saying that GWT sucks in their ads that are all over the place.
>  Everyone is entitled to an opinion by going overboard is really not
>  necessary. You know what they say about opinions and wanting to give
>  them... And you've gone out of your way to voice your opinion even no
>  one asked for it.
> >>>
> >>> How am I going overboard? Dave Ford's comment is indicative that
> >>> people appreciate hearing what the down sides are. In order for a
> >>> developer to make an informed decision, they need to hear all sides
> >>> and try it for themselves.
> >>>
>  Try to take a deep breath and relax when these libraries are mentioned
>  and ignore them instead of assuming the role of GWT gatekeeper. There
>  have been stray email questions on various third party libraries like
>  GChart and DnD. I don't see you jump in on those threads pointing to
>  the appropriate forum.
> >>>
> >>> That's the thing, if I ignore the posts that tell people to use
> >>> ExtGWT, gwt-ext or SmartGWT, and no one bothers to warn them, they
> >>> might end up committing substantial resources to these projects and
> >>> then have to rewrite them or have them turn out poorly. For example,
> >>> see this post
> http://groups.google.com/group/Google-Web-Toolkit/msg/7e3ad4486d103b94
> >>> where the developer says load times are slow (it's even slow on my new
> >>> MacBook Pro). Had the developer 

Re: how can i use external jar in gwt?

2008-12-19 Thread benimx85

thank you for your answers. i see some where like my problem and there
is solution but i can't understand. adding the inherits to xml file
isn't a solution. i think i have to write an other xml file for
libraries but how can i write it. i'm researching
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to cancel file uploading from client side

2008-12-19 Thread jazzka

I found one solution. It's not very elegant but seems to do right
things.

Cancel button executes removeFromParent() for panel that contains
FileUpload and FormPanel and replace that with new one.
This generates exception on server side but also stops uploading file.

On 19 joulu, 15:51, "olivier FRESSE"  wrote:
> I'm afraid you can't do that beacause of the JS  security restriction...
> Except by clicking on the "Stop" button of the browser
>
> 2008/12/19 jazzka 
>
>
>
> > Is there any good ways to cancel file uploading from client side. I am
> > using FileUpload with FormPanel and when the user open file from
> > "Choose file" dialog it's automaticly start loading file to server
> > side. If the file is really big and user have low upstream the loading
> > will take too much time and I want offer cancel functionality.
>
> > // fileUpload onEvent
> > public void onEvent(Event event)
> > {
> >        String file = fileUpload.getFilename();
> >        if(!file.equals(""))
> >        {
>
> >                formPanel.submit();
>
> >        }
>
> > }
>
> > // FormPanel onSubmit
> > public void onSubmit(FormSubmitEvent event)
> > {
> >        // Show loading and Cancel now
> > }
>
> > public void onSubmitComplete(FormSubmitCompleteEvent event)
> > {
> >        // Hide loading and Cancel and show ok if success
> > }
>
> > How can I cancel form submission/file uploading?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



send file to browser

2008-12-19 Thread Martin Miethe

Hi Newsgroup,

I want to send a file to the client browser (offered as download to
the user). The file will be created after a user action and will be
stored physicaly on the server.

Using traditional JSP, I would set content type and header to the
response, read the file on the server and
send everything to the out variable of a JSP.

Now I am a bit lost...how can I achieve this using GWT?

Thanks a lot in advance,
Martin


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



Re: GWT RIA s ?

2008-12-19 Thread Pascal

Rob,
I think numerous people have been bitten by the gwt-ext/ext-gwt/name
other third party library here. The first two I mentionned especially.
I am one of them. I think a lot of people think exactly the same way.
Personally, I think it's great thing that somebody takes time to warn
people against the pitfall of going too far down this path before
seriously checking size and performance.

Please keep your personal attack for yourself. I think his advice are
meant to be friendly advice and I do think a lot of people agree with
them.

Pascal

On Dec 19, 9:47 am, Rob Smith  wrote:
> There you go again sounding like a broken record. You really are quite
> thick headed aren't you?
>
> If you take pleasure in constantly dissing other libraries, I'll do
> the same and reply to your every post saying that you are full of it.
> Deal?
>
> You might make yourself more useful if you try to answer real
> questions on the group instead of increasing your post count with
> cruft. 90% of your posts are really just pointing people to the gwt-
> ext, ext-gwt forums and dissing these libraries at every single
> opportunity.
>
> Rob
>
> On Dec 19, 9:04 am, "Arthur Kalmenson"  wrote:
>
> > > So you've assumed responsibility for being the GWT saviour by
> > > educating these developers  and saving their project?
>
> > I'm not really assuming any responsibility, I'm just mentioning that
> > there are draw backs to using these libraries.
>
> > > What makes you so qualified?
>
> > I've had to abandon and rewrite a GWT-ext project because of the said
> > drawbacks. I've talked with many other people who had to rewrite
> > ExtGWT and GWT-ext projects.
>
> > > You've expressed your opinion (more than once) so why
> > > not leave it at that. How would it appear if someone posted in
> > > response to your every post saying that Arthur is clueless?
>
> > I don't believe I was insulting anyone. And while I've expressed my
> > opinion (which many here hold), many people are new and don't know the
> > downside of using these libraries.
>
> > > Or the ZK
> > > guys saying that GWT sucks in their ads that are all over the place.
> > > Everyone is entitled to an opinion by going overboard is really not
> > > necessary. You know what they say about opinions and wanting to give
> > > them... And you've gone out of your way to voice your opinion even no
> > > one asked for it.
>
> > How am I going overboard? Dave Ford's comment is indicative that
> > people appreciate hearing what the down sides are. In order for a
> > developer to make an informed decision, they need to hear all sides
> > and try it for themselves.
>
> > > Try to take a deep breath and relax when these libraries are mentioned
> > > and ignore them instead of assuming the role of GWT gatekeeper. There
> > > have been stray email questions on various third party libraries like
> > > GChart and DnD. I don't see you jump in on those threads pointing to
> > > the appropriate forum.
>
> > That's the thing, if I ignore the posts that tell people to use
> > ExtGWT, gwt-ext or SmartGWT, and no one bothers to warn them, they
> > might end up committing substantial resources to these projects and
> > then have to rewrite them or have them turn out poorly. For example,
> > see this 
> > posthttp://groups.google.com/group/Google-Web-Toolkit/msg/7e3ad4486d103b94
> > where the developer says load times are slow (it's even slow on my new
> > MacBook Pro). Had the developer used vanilla GWT, I doubt they would
> > have run into those problems.
>
> > The biggest problem IMHO is that people use these third party
> > libraries and think they're using GWT. They find that it's slow and
> > buggy and attribute it to GWT. Then GWT ends up getting a bad
> > reputation. People who come to this mailing list need to understand
> > that ExtGWT, gwt-ext or SmartGWT have almost nothing to do with GWT
> > and everything to do with the JS libraries they either wrap or attempt
> > to mimic. That way, if they decide to use these libraries, they'll
> > understand that they're using that toolkit, and not GWT.
>
> > If I see questions about other third party libraries that go
> > unanswered, I'll point them to the appropriate mailing list (if one
> > exists). I can't catch and respond to every post.
>
> > Anyway, I'm tired of arguing this point. If you like and use gwt-ext,
> > that's up to you. Try not to get so upset when someone points out its
> > flaws.
> > --
> > Arthur Kalmenson
>
> > On Thu, Dec 18, 2008 at 9:46 AM, Rob Smith  wrote:
>
> > > Arthur,
> > > So you've assumed responsibility for being the GWT saviour by
> > > educating these developers  and saving their project? What makes you
> > > so qualified? You've expressed your opinion (more than once) so why
> > > not leave it at that. How would it appear if someone posted in
> > > response to your every post saying that Arthur is clueless? Or the ZK
> > > guys saying that GWT sucks in their ads that are all over the place.
> > > Everyone is entitled t

images don't show in IE

2008-12-19 Thread L Frohman
My GWT page displays a bunch of .jpg images, and they display fine in all 
browsers, except for IE. The URL for the jpg image is a
servlet that generates the jpg, so there is no ".jpg" extension. In IE, no 
images show, either in web or hosted mode. In hosted mode,
I set a breakpoint on an onclick for a button, so I could click it and look at 
the page .html in the debugger. None
of the __pendingSrc= in the img tag had changed to src=. Does anyone know what 
would cause this?


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



sinkEvents on options in ListBox

2008-12-19 Thread otismo

How can I sink mouse events for options in a list box?  I know the
browser generates the mouse events on option elements because I've
tried it manually, but I can't get it to work within gwt.  Ultimately
I'm trying to generate tooltips for each item in a listbox.

Here's the code that doesn't work:

private class TopicsListBox extends ListBox implements EventListener {
...
protected void addTopic(TopicLink topic) {
addItem(topic.getName());
int lastIndex = getItemCount() - 1;
OptionElement option = getOptionElement(lastIndex);
com.google.gwt.user.client.Element castOption =
(com.google.gwt.user.client.Element) option.cast();
DOM.setEventListener(castOption, this);
DOM.sinkEvents(castOption, Event.MOUSEEVENTS);
}

public void onBrowserEvent(Event event) {
Element optionElement = event.getTarget();
switch (event.getTypeInt()) {
case Event.ONMOUSEOVER:
showTooltip(optionElement);
break;
case Event.ONMOUSEOUT:
cancelTooltip(optionElement);
break;
}
}

Can anyone give me some tips?

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



Debugging a project using Netbeans GWT4NB yields an error

2008-12-19 Thread Saj

Hi all,
On my 10.5.4 Mac OS X, I am using Netbeans IDE 6.5 with GWT4NB 2.5.0.
I have no problems running my GWT application in Netbeans on my
Glassfish or Tomcat server.  However when I debug my application with
server side java, I get the following error:


debug-connect-gwt-shell:
projectName/nbproject/build-gwt.xml:34: The following error occurred
while executing this line:
projectName/nbproject/build-gwt.xml:50: Java returned: 1
BUILD FAILED (total time: 15 seconds)

I have already copied the file libgwt-ll.jnilib to the projectName/lib
folder.

Any ideas or workarounds on this?  Did anybody have any luck with
running a GWT application in hosted mode in Netbeans using GWT4NB?

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



Re: setCookie problem using IE7

2008-12-19 Thread frank.wyna...@gmail.com

I think I found the problem but not the solution.

When I do a Window.alert of the Date (the expiration date I use) it
says : Fri Dec 19 21:21:15 GMT+100 2008
I am guessing that GMT+100 is invalid and that IE fails on it (while
Chrome and Firefox find it ok).

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



Re: sinkEvents on options in ListBox

2008-12-19 Thread otismo

I should add setTitle(...) won't work for me because my app is a
firefox extension that shows in a sidebar, and there's a firefox bug
where title tooltips don't show.  Also, I'd like to potentially add
more functionality to the popup widget.

On Dec 19, 12:02 pm, otismo  wrote:
> How can I sink mouse events for options in a list box?  I know the
> browser generates the mouse events on option elements because I've
> tried it manually, but I can't get it to work within gwt.  Ultimately
> I'm trying to generate tooltips for each item in alistbox.
>
> Here's the code that doesn't work:
>
> private class TopicsListBox extendsListBoximplements EventListener {
> ...
> protected void addTopic(TopicLink topic) {
>     addItem(topic.getName());
>     int lastIndex = getItemCount() - 1;
>     OptionElement option = getOptionElement(lastIndex);
>     com.google.gwt.user.client.Element castOption =
> (com.google.gwt.user.client.Element) option.cast();
>     DOM.setEventListener(castOption, this);
>     DOM.sinkEvents(castOption, Event.MOUSEEVENTS);
>
> }
>
> public void onBrowserEvent(Event event) {
>     Element optionElement = event.getTarget();
>     switch (event.getTypeInt()) {
>     case Event.ONMOUSEOVER:
>         showTooltip(optionElement);
>         break;
>     case Event.ONMOUSEOUT:
>         cancelTooltip(optionElement);
>         break;
>     }
>
> }
>
> Can anyone give me some tips?
>
> Thanks,
> Peter
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Converting a GWT Windows Project into a GWT Linux Project

2008-12-19 Thread eduardohi...@gmail.com

Hi, i have a GWT project running on Windows at work, but i use Linux
(Debian Lenny) on my home notebook, and i've tried to make it run in
Linux, but i have failed.
I would like to know what i have to do, for it works in Linux.
I'm using Eclipse IDE, by the way.
thanks!

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



Re: GWT RIA s ?

2008-12-19 Thread Jason Essington
Hi Sunit

The GWT team tries very hard to not introduce breaking changes to the  
API, but in some cases it is necessary for progress.

Sometimes changes that are made (That aren't breaking changes to the  
core GWT api) unintentionally effect third party libraries,  
particularly ones that are wrappers, or that perform funky JSNI magic.

In either case, if an upgraded GWT causes problems with a third party  
library, you are at the mercy of that library's authors to update  
their code ... if it is an open source library, you are in a similar  
boat as with your own code, you can fix it, and submit a patch. but at  
that point, you have a forked copy pending acceptance of your patch.

This is a caveat with any 3rd party lib for any platform, not unique  
to GWT. So my statement isn't indicating that you shouldn't make use  
of 3rd party libs, just that you might need to wait a bit before  
upgrading when new releases come out.

As for new widgets being added to GWT itself, Have a look at the GWT- 
Incubator. That is sort of a development space where proposed GWT  
widgets mature before inclusion in GWT proper. It is also a space  
where outsiders (non-Google employees) have a little more leeway in  
directing the course of new widgets, so if there is something specific  
you are looking for that would add value to the community in general,  
you can make your proposal, and submit code to Incubator, I'm sure it  
would be appreciated.

-jason

On Dec 19, 2008, at 12:08 PM, Sunit Katkar wrote:

> I have just started working on a prototype of our application using  
> GWT. Mike Shaffer, here on the list, has been very kind to help with  
> some questions I had about migrating a Struts/JSP UI to a GWT UI.
>
> For now I am sticking with the standard GWT widgets. Maybe this is  
> the wrong thread to ask, but my questions are (and sorry for  
> sounding dumb, but this GWT is new to me)
> 1) If I use GWT- then how easy is it to upgrade  
> when GWT comes up with a newer version? I understand that if Google  
> changes the event model or some such thing then I have to change my  
> code too, but vis-a-vis widgets, would these 3rd party libs be  
> compatible?
> 2) Is there is any timeline or roadmap from Google when they would  
> include some new widgets or provide a way to make the existing  
> widgets more 'sexy' like the 3rd party libs?
>
>
> - Sunit Katkar
> http://sunitkatkar.blogspot.com/ - Android OS Tutorials
>


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



Re: how can i use external jar in gwt?

2008-12-19 Thread Smith

Hi JR
 Does that mean we just  add a .gwt.xml file to the jar file? In my
case, the jar file contains JPA persistent entities. So to me it
doesn't make a lot of sense to ad a .gwt.xml file to it. Is that the
only option we have?

Also, where in the package do I add the .gwt.xml file? It doesn't have
the directory  structure of a GWT app with client and server
directories.


On Dec 18, 4:23 pm, "J.R"  wrote:
> You can use any jars in GWT server side.
> But in GWT client side, the jar must be defined as a gwt-module, then
> could be used.
> I have been trapped by this question while I try to use XML-related
> jars in client side.
>
> On Dec 19, 7:23 am, benimx85  wrote:
>
>
>
> > i have to use jars in my project. these jars have not got gwt.xml.
> > these are jana's jars for write ontologies.
> > how can i use my jar files in gwt?
> > may you help me?- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Programmatically scroll text within textbox.

2008-12-19 Thread evgeniy

My problem is following:
I have a TextBox and a 'virtual' keyboard made of Buttons. Each button
has ClickListener:
...
public void onClick(Widget button) {
//update target;
textBox.setText(target.getText() + ((Button)button).getText());
}
...
The text of TextBox is updated, but if content of TextBox become
longer then width of TextBox then TextBox doesn't scroll text to the
left as it does when you type something using keyboard - when content
grows last-added letters are hidden on the right. Is there any way
programmatically force TextBox to show right-most part (most recently
added) of its content?

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



skip line with DialogBox / pulando linhas com DialogBox

2008-12-19 Thread cInAction

Olá!!!
sou iniciante em gwt e eu estava tentando criar uma dialogbox, somando
Strings com mensagens de erro. Mas eu queria que cada mensagem fosse
dada em linhas separadas. Entao, no final das strings eu inseri '\r';
em hostmode funciona, porém no browser não. há outra forma de fazer
isso ou é um erro do GWT?
-
Hello!!
I am novice in gwt and I was trying to create a dialogbox, adding
strings with error messages. But I wanted each message was given on
separate lines. Then at the end of the string I enter '\ r'; in
hostmode works, but not in the browser. There is another way to do
this or is it a mistake of gwt?

-
Traduzido com "google tradutor"

Translated by "google translator"

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



Re: images don't show in IE

2008-12-19 Thread todd.sei...@gmail.com

Are you doing some thing like response.setContentType("image/jpeg") in
your servlet.

Perhaps posting some of you servlet might help.

On Dec 19, 2:58 pm, "L Frohman"  wrote:
> My GWT page displays a bunch of .jpg images, and they display fine in all 
> browsers, except for IE. The URL for the jpg image is a
> servlet that generates the jpg, so there is no ".jpg" extension. In IE, no 
> images show, either in web or hosted mode. In hosted mode,
> I set a breakpoint on an onclick for a button, so I could click it and look 
> at the page .html in the debugger. None
> of the __pendingSrc= in the img tag had changed to src=. Does anyone know 
> what would cause this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Programmatically scroll text within textbox.

2008-12-19 Thread todd.sei...@gmail.com

Try setting the cursor position.
http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/TextBoxBase.html#setCursorPos(int)

On Dec 19, 4:53 pm, evgeniy  wrote:
> My problem is following:
> I have a TextBox and a 'virtual' keyboard made of Buttons. Each button
> has ClickListener:
> ...
> public void onClick(Widget button) {
>     //update target;
>     textBox.setText(target.getText() + ((Button)button).getText());}
>
> ...
> The text of TextBox is updated, but if content of TextBox become
> longer then width of TextBox then TextBox doesn't scroll text to the
> left as it does when you type something using keyboard - when content
> grows last-added letters are hidden on the right. Is there any way
> programmatically force TextBox to show right-most part (most recently
> added) of its content?
>
> Regards, Evgeniy
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Request Builder problem

2008-12-19 Thread Isaac Truett

You're making an asynchronous request and then you aren't waiting for
it to finish. Your getData() method cannot return anything.You have to
use the callback to do whatever it is you want done with the data.


On Sun, Dec 14, 2008 at 2:32 AM, dhaval  wrote:
>
> Hi guys,
> I have searched the forum and couldn't find the solution. Here is my
> code.
>
> public class Getter {
>private String url = "php/Main.php";  //fix url never
> changes
>private RequestBuilder builder = null;
>private String result = null;
>
>public Getter() {
>builder = new RequestBuilder(RequestBuilder.POST, 
> URL.encode(url));
>
>}
>
>public String getData(int id, final String section){
>String param = "nId=";
>param += Integer.toString(id);
>param +="&";
>param +="sectionName=";
>param += section;
>
>
>
>builder.setHeader("Content-Type", "application/x-www-form-
> urlencoded");
>
>
>
>
>
> try {
>builder.sendRequest(param,new 
> RequestCallback(){
>
>
>public void onError(Request request, 
> Throwable exception) {
>calxx("error");
>
>
>}
>
>
>public void onResponseReceived(Request 
> request, Response
> response) {
>calxx(response.getText());
>
> Window.alert("-"+response.getText());
>TemoStorage.temp = 
> response.getText();
>
>}
>
>});
>
>} catch (RequestException e) {
>// TODO Auto-generated catch block
>e.printStackTrace();
>}
>
>
>
>
>GWT.log(TemoStorage.temp, null);
>return TemoStorage.temp;
>
>}
>
>private void calxx(String kk){
>result = kk;
>}
>
>
>
>
> }
>
>
>
> TemoStorage.temp is static string field.
> now, when I call the method getData from the other class.  I get the
> window alert displaying the apropriat server message. But this method
> return null.  GWT log also says null.   How do I return apropriat
> "server message" with this method.
>
>
> Thanks
>
> >
>

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



Re: send file to browser

2008-12-19 Thread todd.sei...@gmail.com

Keep doing what you have been doing. GWT does not provide anything for
file downloading. Just add links to you content in your GWT app.

On Dec 19, 2:51 pm, Martin Miethe  wrote:
> Hi Newsgroup,
>
> I want to send a file to the client browser (offered as download to
> the user). The file will be created after a user action and will be
> stored physicaly on the server.
>
> Using traditional JSP, I would set content type and header to the
> response, read the file on the server and
> send everything to the out variable of a JSP.
>
> Now I am a bit lost...how can I achieve this using GWT?
>
> Thanks a lot in advance,
> Martin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Entrypoint can't access classes in an external jar file

2008-12-19 Thread Isaac Truett

> entrypoint  can't find the classes and asks if I forgot to inherit a
> module.

You did. The module probably doesn't exist, so forgetting it is
understandable. You have to define a module that includes your
external classes. And any classes they depend on also have to be part
of a module (repeat as necessary). And all of the aforementioned
classes have to have source code available on the classpath in order
to compile as part of a GWT client.



On Fri, Dec 19, 2008 at 1:20 PM, Smith  wrote:
>
> All,
>
>
> I have some JPA entity classes in a JAR file and I need both the GWT
> RPC implemenation servlet and my entrypoint
>  to have access to these classes.
>
> However, my service which is placed in the package/server directory
> can access these classes but the entrypoint class which is placed in
> package/client direcoty can't access the classes in the jar file. My
> code compiles fine but the shell complains in hosted mode that the
> entrypoint  can't find the classes and asks if I forgot to inherit a
> module.
>
> Thanks
> >
>

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



Servlet Response formatting in IE

2008-12-19 Thread D L H

Hello.

I have a Java servlet that reads an xml-based file and sends the
contents to my gwt application as an HttpServletResponse. I have the
content type set to text/plain in the servlet. On the client side I
use event.getResults() inside the onSubmitComplete method of the form
handler.

Everything runs smoothly in Firefox, but when I tested in IE7, it
would not work properly. I used a Label for debugging to see what
exactly the application was reading from the servlet, and in IE i'm
getting a buncha HTML stuff like this:

   

How do I get IE7 to format my servlet response as plain text instead
of html?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Converting a GWT Windows Project into a GWT Linux Project

2008-12-19 Thread Isaac Truett

The only thing specific to GWT would be changing references to
"gwt-dev-windows.jar" to "gwt-dev-linux.jar". Other then that, it's
the usual OS differences -- e.g., file path  ('\' vs. '/') and
classpath (';' vs. ':') separators.

And posting an actual error message that you're encountering might
help, especially if the generic advice above doesn't solve your
problem.


On Fri, Dec 19, 2008 at 3:33 PM, eduardohi...@gmail.com
 wrote:
>
> Hi, i have a GWT project running on Windows at work, but i use Linux
> (Debian Lenny) on my home notebook, and i've tried to make it run in
> Linux, but i have failed.
> I would like to know what i have to do, for it works in Linux.
> I'm using Eclipse IDE, by the way.
> thanks!
>
> >
>

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



Re: Request Builder problem

2008-12-19 Thread Jason Essington

Request builder is behaving exactly as expected here ... You should  
read:

http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/faca1575f306ba0f/3be719c021aa19bd?pli=1

-jason

On Dec 14, 2008, at 12:32 AM, dhaval wrote:

>
> Hi guys,
> I have searched the forum and couldn't find the solution. Here is my
> code.
>
> public class Getter {
>   private String url = "php/Main.php";  //fix url never
> changes
>   private RequestBuilder builder = null;
>   private String result = null;
>
>   public Getter() {
>   builder = new RequestBuilder(RequestBuilder.POST, 
> URL.encode(url));
>
>   }
>
>   public String getData(int id, final String section){
>   String param = "nId=";
>   param += Integer.toString(id);
>   param +="&";
>   param +="sectionName=";
>   param += section;
>
>
>
>   builder.setHeader("Content-Type", "application/x-www-form-
> urlencoded");
>
>
>
>
>
>try {
>   builder.sendRequest(param,new RequestCallback(){
>
>
>   public void onError(Request request, 
> Throwable exception) {
>   calxx("error");
>
>
>   }
>
>
>   public void onResponseReceived(Request 
> request, Response
> response) {
>   calxx(response.getText());
>   
> Window.alert("-"+response.getText());
>   TemoStorage.temp = 
> response.getText();
>
>   }
>
>   });
>
>   } catch (RequestException e) {
>   // TODO Auto-generated catch block
>   e.printStackTrace();
>   }
>
>
>
>
>   GWT.log(TemoStorage.temp, null);
>   return TemoStorage.temp;
>
>   }
>
>   private void calxx(String kk){
>   result = kk;
>   }
>
>
>
>
> }
>
>
>
> TemoStorage.temp is static string field.
> now, when I call the method getData from the other class.  I get the
> window alert displaying the apropriat server message. But this method
> return null.  GWT log also says null.   How do I return apropriat
> "server message" with this method.
>
>
> Thanks
>
> >


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



Re: send file to browser

2008-12-19 Thread Jason Essington

Yup, open a new window with a location pointing to your existing JSP,  
and your browser will perform the download, and your GWT app in the  
main window will not be unloaded.

-jason
On Dec 19, 2008, at 3:03 PM, todd.sei...@gmail.com wrote:

>
> Keep doing what you have been doing. GWT does not provide anything for
> file downloading. Just add links to you content in your GWT app.
>
> On Dec 19, 2:51 pm, Martin Miethe  wrote:
>> Hi Newsgroup,
>>
>> I want to send a file to the client browser (offered as download to
>> the user). The file will be created after a user action and will be
>> stored physicaly on the server.
>>
>> Using traditional JSP, I would set content type and header to the
>> response, read the file on the server and
>> send everything to the out variable of a JSP.
>>
>> Now I am a bit lost...how can I achieve this using GWT?
>>
>> Thanks a lot in advance,
>> Martin
> >


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



Re: Converting a GWT Windows Project into a GWT Linux Project

2008-12-19 Thread Jason Essington

create two user defined libraries in eclipse Preferences | Java |  
Build Path | User Libraries

One called GWT_USER (pointing to the gwt-user.jar), and the other  
called GWT_DEV (pointing to the gwt-xxx-dev.jar). you will need to  
create these on both versions of eclipse (windows and linux).

Then simply replace any direct jar reference in your project, and  
launch scripts with the respective library reference.

This is even handy when passing the project to other machines of the  
same flavor (linux to linux) where your GWT installation may be in a  
different location! For instance john has GWT installed in /home/john/ 
gwt/ while dave has it installed in /home/dave/gwt-linux-1.5.3/

I've got several projects that I am able to use in both Windows and OS  
X using this technique.

-jason


On Dec 19, 2008, at 1:33 PM, eduardohi...@gmail.com wrote:

>
> Hi, i have a GWT project running on Windows at work, but i use Linux
> (Debian Lenny) on my home notebook, and i've tried to make it run in
> Linux, but i have failed.
> I would like to know what i have to do, for it works in Linux.
> I'm using Eclipse IDE, by the way.
> thanks!
>
> >


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



Re: images don't show in IE

2008-12-19 Thread L Frohman

Thanks,
my servlet:

public class ThumbnailServlet extends HttpServlet {
private static Log s_logger = LogFactory.getLog(ThumbnailServlet.class);
private static final long serialVersionUID = 1L;

public void doGet(HttpServletRequest request, HttpServletResponse 
response) 
throws ServletException, IOException {
response.setContentType("image/JPEG");
ServletOutputStream sos = response.getOutputStream();
BasicDataSource basicDataSource = 
(BasicDataSource)WebApplicationContextUtils.getWebApplicationContext(getServletContext()).getBean("dataSource");
try {
Class.forName(basicDataSource.getDriverClassName());
Connection conn = 
DriverManager.getConnection(basicDataSource.getUrl(), 
basicDataSource.getUsername(), basicDataSource.getPassword());
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery("select thumbnail from 
construct_data 
where id_construct = " + request.getParameter("id"));
if ( rs.next() ) {
byte[] b = rs.getBytes(1);
if (b!=null) {
sos.write(b);
}
}
stmt.close();
rs.close();
conn.close();
}
catch (Exception e) {
s_logger.error("Failed request for thumbnail for ID: 
\"" + 
request.getParameter("id") + "\"", e);
}
sos.close();
sos.flush();
}

public void doPost(HttpServletRequest request, HttpServletResponse 
response) throws ServletException, IOException {
   ...
}
}

--
From: 
Sent: Friday, December 19, 2008 1:56 PM
To: "Google Web Toolkit" 
Subject: Re: images don't show in IE

>
> Are you doing some thing like response.setContentType("image/jpeg") in
> your servlet.
>
> Perhaps posting some of you servlet might help.
>
> On Dec 19, 2:58 pm, "L Frohman"  wrote:
>> My GWT page displays a bunch of .jpg images, and they display fine in all 
>> browsers, except for IE. The URL for the jpg image is a
>> servlet that generates the jpg, so there is no ".jpg" extension. In IE, 
>> no images show, either in web or hosted mode. In hosted mode,
>> I set a breakpoint on an onclick for a button, so I could click it and 
>> look at the page .html in the debugger. None
>> of the __pendingSrc= in the img tag had changed to src=. Does anyone know 
>> what would cause this?
> > 

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



Re: Entrypoint can't access classes in an external jar file

2008-12-19 Thread Smith

How do I create a module from an existing set of classes? When I try
to create a new module in eclipse, it fails maybe because the
directory structure is different from the GWT standard. I can't change
the direcory structure of these classes that I need. Where do I place
the .gwt.xml file?


On Dec 19, 2:04 pm, "Isaac Truett"  wrote:
> > entrypoint  can't find the classes and asks if I forgot to inherit a
> > module.
>
> You did. The module probably doesn't exist, so forgetting it is
> understandable. You have to define a module that includes your
> external classes. And any classes they depend on also have to be part
> of a module (repeat as necessary). And all of the aforementioned
> classes have to have source code available on the classpath in order
> to compile as part of a GWT client.
>
>
>
> On Fri, Dec 19, 2008 at 1:20 PM, Smith  wrote:
>
> > All,
>
> > I have some JPA entity classes in a JAR file and I need both the GWT
> > RPC implemenation servlet and my entrypoint
> >  to have access to these classes.
>
> > However, my service which is placed in the package/server directory
> > can access these classes but the entrypoint class which is placed in
> > package/client direcoty can't access the classes in the jar file. My
> > code compiles fine but the shell complains in hosted mode that the
> > entrypoint  can't find the classes and asks if I forgot to inherit a
> > module.
>
> > Thanks- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Entrypoint can't access classes in an external jar file

2008-12-19 Thread Isaac Truett

Again, specifics and error messages help. To fabricate an example:

If you wanted to include "com.foo.my.java.package.AClass" in a GWT
application then you could create "com/foo/my/java/MyModule.gwt.xml"
and add the "package" sub-package as translatable source. Like this:


  


That will make all classes in com.foo.my.java.package available,
assuming they meet the criteria for translation. Then you would
inherit MyModule in your module.

The Developer's Guide is an excellent resource for learning more about
modules and GWT compilation:

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



On Fri, Dec 19, 2008 at 6:51 PM, Smith  wrote:
>
> How do I create a module from an existing set of classes? When I try
> to create a new module in eclipse, it fails maybe because the
> directory structure is different from the GWT standard. I can't change
> the direcory structure of these classes that I need. Where do I place
> the .gwt.xml file?
>
>
> On Dec 19, 2:04 pm, "Isaac Truett"  wrote:
>> > entrypoint  can't find the classes and asks if I forgot to inherit a
>> > module.
>>
>> You did. The module probably doesn't exist, so forgetting it is
>> understandable. You have to define a module that includes your
>> external classes. And any classes they depend on also have to be part
>> of a module (repeat as necessary). And all of the aforementioned
>> classes have to have source code available on the classpath in order
>> to compile as part of a GWT client.
>>
>>
>>
>> On Fri, Dec 19, 2008 at 1:20 PM, Smith  wrote:
>>
>> > All,
>>
>> > I have some JPA entity classes in a JAR file and I need both the GWT
>> > RPC implemenation servlet and my entrypoint
>> >  to have access to these classes.
>>
>> > However, my service which is placed in the package/server directory
>> > can access these classes but the entrypoint class which is placed in
>> > package/client direcoty can't access the classes in the jar file. My
>> > code compiles fine but the shell complains in hosted mode that the
>> > entrypoint  can't find the classes and asks if I forgot to inherit a
>> > module.
>>
>> > Thanks- Hide quoted text -
>>
>> - Show quoted text -
> >
>

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



Re: sinkEvents on options in ListBox

2008-12-19 Thread otismo

Solved.  Looks like it actually does work, just not in the gwt hosted
mode browser.

Also, I added a custom attribute to the option elements that I use to
retrieve the tooltip text.  To recap:

private class TopicsListBox extends ListBox {
...
protected void addTopic(TopicLink topic) {
addItem(topic.getName());
int lastIndex = getItemCount() - 1;
OptionElement option = getOptionElement(lastIndex);
option.setAttribute(TOOLTIP_ATTRIBUTE_NAME, topic.getTooltipText
());
option.setDisabled(!topic.isAvailable());
com.google.gwt.user.client.Element castOption =
(com.google.gwt.user.client.Element) option.cast();
DOM.sinkEvents(castOption, Event.MOUSEEVENTS | DOM.getEventsSunk
(castOption));
}

public void onBrowserEvent(Event event) {
super.onBrowserEvent(event);
Element optionElement = event.getTarget();
switch (event.getTypeInt()) {
case Event.ONMOUSEOVER:
showTooltip(optionElement);
break;
case Event.ONMOUSEOUT:
cancelTooltip(optionElement);
break;
}
}

private void showTooltip(Element optionElement) {
String text = optionElement.getAttribute(TOOLTIP_ATTRIBUTE_NAME);
tooltip = new Tooltip(optionElement, text);
tooltip.showTip();
}
}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: sinkEvents on options in ListBox

2008-12-19 Thread otismo

And...

since my onBrowserEvent(Event event) is within the ListBox, I added
the following check within onBrowserEvent(...) to only act on option
elements and not selects:

if (optionElement.getTagName().equalsIgnoreCase("option")) {
switch (event.getTypeInt()) {
case Event.ONMOUSEOVER:
showTooltip(optionElement);
break;
case Event.ONMOUSEOUT:
cancelTooltip(optionElement);
break;
case Event.ONMOUSEDOWN:
cancelTooltip(optionElement);
break;
}
}

My Tooltip class extends PopupPanel and here's the showTip() method
that shows the popup relative to the option being hovered over:

public void showTip() {
setPopupPositionAndShow(new PopupPanel.PositionCallback() {
public void setPosition(int offsetWidth, int offsetHeight) {
int left = referenceElement.getAbsoluteLeft();
int top = referenceElement.getAbsoluteTop() +
referenceElement.getOffsetHeight();
setPopupPosition(left, top);
}
});
}

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



Unsubscribe

2008-12-19 Thread Martin G

Unsubscribe

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



Re: Unsubscribe

2008-12-19 Thread Qian Qiao

On Sat, Dec 20, 2008 at 13:22, Martin G  wrote:
>
> Unsubscribe

Must... resist... posting... the... unsubscribe... kit...

on a serious note, please learn to read list message headers, it says
in the header:

List-Unsubscribe: ,


HTH.

-- Joe

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



Re: shell fails loading

2008-12-19 Thread ArunDhaJ

I like to add few points to solve this problem, which I tried
exploring.

When I changed the Internet explorer proxy setting, it gave "Network
Error Code 503".
Is there any setting which shell inherits? If so, what are the
necessary setting to make this shell run... This problem is really
annoying and increasing my development time. Now to test my changes
I'm compiling and deploying in my local server, which is taking most
of the time.

Plz help me in resolving it.

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



Re: Stack Panel

2008-12-19 Thread ajay jetti
Try Using .gwt-StackPanelContent tag and use a background:"your-color" for
changing the color.

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



Re: shell fails loading

2008-12-19 Thread ajay jetti
check your gwt.xml file and also app.html fileu will know where you
are going wrong

yours

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