Re: GWT 1.7 Now Available

2009-08-24 Thread श्री

hi Ganesh

On Aug 24, 12:25 pm, Ganesh  wrote:
> Hi,
> I migrated from GWT 1.5.0 to GWT 1.7 and I am facing a lot of issues
> in serialized objects being passed via RPC. Support to java.util.List
> seems to have been withdrawn and my existing code fails. Please do let
> me know if this is a know are and how to take care of the same??
>

I suggest you do a phased migration.

refer
http://code.google.com/webtoolkit/doc/1.6/ReleaseNotes_1_6.html#Upgrading
http://code.google.com/webtoolkit/doc/1.7/ReleaseNotes_1_7.html#Upgrading

its very clear in the upgrade notes that
"The 1.7 release contains a few high-priority bug fixes. It is
versioned 1.7 to signify a potentially breaking change."

- sree
--~--~-~--~~~---~--~~
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: Adding white spaces to my xml

2009-08-24 Thread Dean S. Jones

http://faq.javaranch.com/java/HowToPrettyPrintXmlWithJava

--~--~-~--~~~---~--~~
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: Adding white spaces to my xml

2009-08-24 Thread Rahul

Hi,
I got another writer XML Writer but i am still not able to add white
spaces into it.

For example: i want a file like this

http://cbesb.bostechcorp.com/trn/
1.1">http://cbesb.bostechcorp.com/jdbc/1.0"/>


to be converted like this

http://cbesb.bostechcorp.com/trn/
1.1">
  

  
http://cbesb.bostechcorp.com/
jdbc/1.0" />
  


  
http://cbesb.bostechcorp.com/
hl7/v2_2" />
  

  
  

  











  


  


  
  
 wrote:
> Hi,
> Confirmation, i opened my generated xml in XML notepad 2007, it added
> white spaces automatically and then i saved and then send to the
> application, it was giving me the desired output
>
> how should i add white spaces to my xml in gwt? also would i need to
> add it on server side when i am saving the modified xml?
>
> Sincerely,
> Rahul
>
> On Aug 24, 11:22 am, Rahul  wrote:
>
> > Hi,
> > My gwt application modifies an xml document, and sends it to another
> > application where the output is generated. Now for parsing with gwt, i
> > had to remove the white spaces in it because if i didnt it was givin
> > me an error.
>
> > Now my application wants my generated xml to have whitespaces in it,
> > any idea how can I add whitespaces to my xml document through gwt?
>
> > Sincerely,
> > Rahul
--~--~-~--~~~---~--~~
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 testing without GWTTestCase and the DOM

2009-08-24 Thread Dominik Steiner

Hi Eugen,

I would recommend you to read this post

http://robvanmaris.jteam.nl/2008/03/09/test-driven-development-for-gwt-ui-code/

There's currently also the MVP (not MVC) design approach being
discussed on this forum, you might also be able to use that for
testing with normal Junit tests and not GWT tests.
For my part I'm using above method and it has worked well for me.

HTH

Dominik

On 24 Aug., 16:29, Eugen Paraschiv  wrote:
> Can I test my client side GWT code without GWTTestCase? I've heard
> somewhere (I think it was one of the Google IO 2009 conferences) that
> they were successfully testing their code with a fake DOM, in the JVM
> and not in Javascript with the DOM. That would be brilliant. Does
> anybody have any idea about how to do this? Thanks. Eugen.
--~--~-~--~~~---~--~~
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 get Image from ImageBundle by String?

2009-08-24 Thread Dean S. Jones

There is no easy way to do this, Reflection is not supported in GWT.
The only thing "GWT'ish" I can think of is wrapping the ImageBundle in
some Interface makes a Map from a GWT
"Generator"

Thats a bit too much trouble for a few ImageBundles, so I just created
class with a Map of that
creates the AbstractImagePrototype lazily(via a factory), and
optionally caches the results.

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



Looking for STRONG GWT/J2EE Developers NYC

2009-08-24 Thread Dean S. Jones

Sorry for the posting on here... I know this isn't a job board...
but...

Permanent positions in a HOT Financial in Midtown NYC, must know GWT
internals, creating custom widgets, GWT patterns, UI design and
usability, Apache/Tomcat/J2EE expertise, DOM/HTTP, secure site
designs, some Oracle would be nice, knowledge of Finance is a plus.

I am not a recruiter, I work for the firm and we have had little luck
finding the right candidates through the normal channels. The company
hires top talent ( and we'll make SURE during the interviews ), it's
actually a pretty fun place to work, and has been rated consistently
as one of the fastest growing companies in the industry. Were not
public yet, so options are a real perk, pay is very competitive. We
have grown from roughly 400 to 1300 people in one year ( because of
what we do, the market credit crash has been... very good to us,
oddly ) They serve beer on friday after 4pm. It's never a 'death
march', normal hours. Probable duties will be creating/maintaining/
extending/evangelizing a GWT framework to be used company wide, and
working on a GWT based 'Portal' kinda thing I have designed...

Best of all, you get to work with me ;-)

send me an e-mail and CV.






--~--~-~--~~~---~--~~
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: Plain OO question

2009-08-24 Thread Alessandro Loche

You should think in terms of Rules and Conditions.

interface Rule {
boolean evaluateConditions( Course c );
Set getConditions();
void setConditions( Set conditions );
EvaluationResult apply ( Course c );
}

interface Condition {
isTrue( Course c);
}


Any special offer implements Rule and has one or more Conditions. A concrete 
rule call evaluateCondition for each conditions it has. If true, apply the 
result trasformation.
In your case, the rule is the same, something like DiscountPriceRule. But 
the conditions change. One condition is about date range, another one is on 
totatal course amount.

Any condition evaluates itself in a course context, and you can implement 
the apply() method as a Visitor. The EvaluationResult can be a new price or 
saving.


Regards.
--
From: "Dalla" 
Sent: Monday, August 24, 2009 10:39 PM
To: "Google Web Toolkit" 
Subject: Plain OO question

>
> Hi all
>
> This is probably a pretty basic OO question, but here goes:
> I have a simple Course class, containing a course ID, course name,
> course price etc.
>
> I´m looking for a good way to implement different types of special
> offers on these courses,
> like "buy five courses, get 10% off" or "from September 1 to September
> 15, get 5% off this course".
>
> What would be the best way to do this?
> I was thinking something like
>
> interface SpecialOffer {
>double getSpecialOfferPrice(Course c); //Return new price
>double getSpecialOfferSavings(Course c); //Return % saved
> }
>
> class BuyManyOffer implements SpecialOffer {
>
> Integer buyManyLimit;
>
> public LimitedTimeOffer(Date date) {
>this. buyManyLimit = date;
> }
>
> public double getSpecialOfferPrice(Course c) {
>  //return something;
> }
> double getSpecialOfferSavings(Course c) {
> return somethingElse;
> }
> }
>
> class LimitedTimeOffer implements SpecialOffer {
>
> Date offerStart;
> Date offerStop;
>
> public LimitedTimeOffer(Date dateStart, Date dateStop) {
>this.offerStart = dateStart;
>this.offerStop = dateStop;
> }
>
> public double getSpecialOfferPrice(Course c) {
>  //return something;
> }
> double getSpecialOfferSavings(Course c) {
> return somethingElse;
> }
> }
>
> But is this really the way to go?
> I can create different offers, the constructor allows me to dictate
> the rules for the offer to apply.
> But I don´t know how I would know if the offer applies or not at a
> given time.
>
> Somehow I need to know that the customer has bought more than x number
> of courses, or bought the course inside the time limit,
> but if I put number of courses in the interface, it wouldn´t make
> sense for the LimitedTimeOffer,
> and putting the a date in there wouldn´t make sense to the
> BuyManyOffer.
>
> Any pointers?
>
>
>
> > 

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



Loading entrypoint into an IFRAME?

2009-08-24 Thread John O'Conner

I've searched the GWT discussion group, but I haven't found an answer.
As a newb with GWT, I may simply not know enough to understand the
answer even if I've found it. :(

My application runs on a customer's website. On each of their
documents, they've embedded a single JS link to my application on a
different domain. I'd like to load my application into a separate
iframe which doesn't exist in their document. So, I think my entry
point needs to create a new iframe and load itself into that iframe.

My initial thought is that I probably need TWO entry points to
accomplish this:
1. the first entry point will create the iframe and inject the link to
the second entry point
2. the iframe loads the second entrypoint JS file

Does this seem reasonable? I don't like the idea of two separate JS
modules but it seems unavoidable. My understanding is that each entry
point (module?) basically requires 2 GET requests: one to load the
.nocache.js and the second to load the broswer-specific JS
that contains the application. So, with my approach, I would actually
need FOUR (4) GET requests:
1. get the initial landing js file (.nocache.js)
2. get the js entrypoint (11.js) that creates the iframe with a
link to the main app
3. get the 2nd entry point's landing js file (.nocache.js)
4. get the js that contains the 2nd entrypoint (2.js)

Is there a better way?

Regards,
John O'Conner

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



blank page and other weirdness after upgrade, 1.5 to 1.7

2009-08-24 Thread Dave

Hi all,

I'm getting several problems after upgrading to 1.7.
In hosted mode:
- all the http status codes are 304 (Not Modified)
- I only see a blank page
- when I Compile/Browse, FF3 tells me GWT Module needs to be (re)
compiled, (I've tried refreshing first - same thing)
- if I change the module name to something bogus in my host html file,
and refresh, things seem to work.
For example, when I change from  to , I still get 304s, but I also get
  [ERROR] Unable to load module entry point ...
   com.google.gwt.core.client.JavaScriptException: (Error): Invalid
argument.
 number: -2147024809
   description: Invalid argument.
  [ERROR] Failure to load module 'mmcclient'
with the line number of my entry point class where I call
  RootPanel.get("mmcclient").add(containerLayout);

But then the module is loaded and my app is fine. No blank page!

- finally, one of my css resource directories (sc) must be copied into
the public root, otherwise it will not be found.

Some further info,
the war directory structure looks like this (my module name is
mmcclient),
- war
  - conf
  - images
  - mmcclient
  - sc
  - WEB-INF
  - MMCClient.css
  - MMCClient.html

The module is loaded from the host html as:

Even when I get a blank page, I believe this file is being found.
(Firebug shows its JS functions).

I'm working with the Eclipse (3.4.2) GWT plugin, if that's important.

Thanks for any advice!
-Dave



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



Drawing Lines

2009-08-24 Thread GTM

I was wondering if there was any option to allow a user to draw lines.
Basically, I would a bunch of icons to appear on the screen. The user
would be able to draw lines to connect two of these icons to show a
connection.
--~--~-~--~~~---~--~~
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 get Image from ImageBundle by String?

2009-08-24 Thread 李静
well, I have never tryed that.
Learn it. thank you;

2009/8/24 Paul Robinson 

>
> Reflection is not supported in GWT.
>
> 李静 wrote:
> > hi,
> > maybe you can use Reflection ;
> > just like:
> > Class target = ICONS.getClass();
> > Method m = target.getMethod(methodName, String.class);
> > m.invoke(ICONS, parameters...);
> > 2009/8/23 barclay allen  > >
> >
> >
> > I have an image bundle setup.
> >
> > public static final MyIcons ICONS = GWT.create(MyIcons.class);
> >
> > I can get the image with this.
> > ICONS.smiley_face().createImage()
> >
> >
> > How can I dynamically get the smiley_face image by passing a string
> > "smiley_face"?
> >
> > --
> > 李静
>  >
> > >
>
> >
>


-- 
LiJ

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

2009-08-24 Thread ALEXEI BARBONI
Thank you Thomas and Yanick,

I downloaded SmartGWT...

And I am getting used with GWT original widgets...
Maybe they are really enough to develop the application




2009/8/21 Yanick 

>
> On Aug 20, 4:57 pm, Alexei Telles  wrote:
> > Hi folks,
> >
> > What widgets do you use in your GWT application?
> >
> > Currently I am using GWT widgets, but they are basic widgets i think.
> > And there are only about 30 or more.
> >
> > I was searching for new options on the web and I found the GXT.
> >
> > In my case, I would have to buy one license.
> >
>
> Take a look at SmartGWT, it's a growing project that deserves to be
> bookmarked and supported (with more themes, etc.)
>
>
> >
>

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



Plain OO question

2009-08-24 Thread Dalla

Hi all

This is probably a pretty basic OO question, but here goes:
I have a simple Course class, containing a course ID, course name,
course price etc.

I´m looking for a good way to implement different types of special
offers on these courses,
like "buy five courses, get 10% off" or "from September 1 to September
15, get 5% off this course".

What would be the best way to do this?
I was thinking something like

interface SpecialOffer {
double getSpecialOfferPrice(Course c); //Return new price
double getSpecialOfferSavings(Course c); //Return % saved
}

class BuyManyOffer implements SpecialOffer {

 Integer buyManyLimit;

 public LimitedTimeOffer(Date date) {
this. buyManyLimit = date;
 }

 public double getSpecialOfferPrice(Course c) {
  //return something;
 }
 double getSpecialOfferSavings(Course c) {
 return somethingElse;
 }
}

class LimitedTimeOffer implements SpecialOffer {

 Date offerStart;
 Date offerStop;

 public LimitedTimeOffer(Date dateStart, Date dateStop) {
this.offerStart = dateStart;
this.offerStop = dateStop;
 }

 public double getSpecialOfferPrice(Course c) {
  //return something;
 }
 double getSpecialOfferSavings(Course c) {
 return somethingElse;
 }
}

But is this really the way to go?
I can create different offers, the constructor allows me to dictate
the rules for the offer to apply.
But I don´t know how I would know if the offer applies or not at a
given time.

Somehow I need to know that the customer has bought more than x number
of courses, or bought the course inside the time limit,
but if I put number of courses in the interface, it wouldn´t make
sense for the LimitedTimeOffer,
and putting the a date in there wouldn´t make sense to the
BuyManyOffer.

Any pointers?



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



Testing with Dependency Injection.

2009-08-24 Thread Nathan

Hey everyone, I have a question.  I'm writing some JUnit tests for my
GWT client-side application.  I'm using Dependency Injection (GIN),
and I'm having an issue.  Here's what's happening:

  testSomething() {
// This automatically injects the MockDisplay, MockCommandService,
and EventBus...
MyPresenter myPresenter = myGinjector.getMyPresenter();

// Do some stuff.
...

// Now, at this point, I can easily get the MockCommandService,
'cause it's a singleton:
MockCommandService = myGinjector.getCommandService();
assertStuff("Make sure the right service commands were
sent!", ...);

// However, what if I want to test that it hooks into its Display
properly:
myPresenter.getDisplay().getNameField().getValue();
  }

My problem is that I don't want my Presenters to have a .getDisplay()
function.  It would never be used by anything except testing, and
providing public accessors just for my JUnit tests seems completely
wrong.  I also don't want to move all my JUnit tests into the package
with my actual classes, I find that that leads to having way too many
classes in your packages... -- I also find it leads to cheating the
APIs and bad test design... :/

Any ideas how to get around this?  Or do I just have to suffer with
tons of classes with ".getSomethingIDontWantYouToHave()" functions,
just to allow testing with DI?

Oh, I guess I left that out -- before I was using GIN, this was easy:

  testSomething() {
MockPresenterDisplay display = new MockPresenterDisplay();
MyPresenter myPresenter = new MyPresenter(display);

// Do some stuff.
...

// However, what if I want to test that it hooks into its Display
properly:
display.getNameField().getValue(); // so clean, so pretty!
  }

Any suggestions?

Thanks in advance,

-nathan

--~--~-~--~~~---~--~~
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: XML to Pdf

2009-08-24 Thread mikedshaffer

I've personally done this with GWT on the client and BIRT on the
server.  Worked great.  BIRT is a terrific tool for just this.



On Aug 24, 8:34 am, Rahul  wrote:
> Thanks David,
> Being a novice in this, can you suggest some of the frameworks if can
> do that for:
> I know two of them:
>
> a) Jasper reports
> b) Apache FOP project
>
> Though its not a direct GWT question, but as my GWT application wants
> this functionality thanks for ur responses
>
> On Aug 24, 10:21 am, David  wrote:
>
>
>
> > Hi,
>
> > Generate the PDFs on the serverside with any framework you want. GWT
> > has nothing to do with it, except that you will need to use the
> > RequestBuilder to get the file downloaded (with content disposition
> > header, to force a save as dialog).
>
> > David
>
> > On Mon, Aug 24, 2009 at 4:02 PM, Rahul wrote:
>
> > > Hi,
> > > Is there any project in gwt which would help me create xml reports to
> > > pdf
> > > if there isnt, can anyone guide me how can I integrate my gwt project
> > > so that i can have pdf reports
>
> > > Thanks a lot,
> > > Rahul
--~--~-~--~~~---~--~~
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: Plain OO question

2009-08-24 Thread mikedshaffer

I'm not a big time OOP expert, but one way I've done something like
this is to create a containment object, call it "Schedule".  The
Schedule can have N number of Courses.  Each course has its set
price.  But the Schedule will have business logic that will determine
the final price of things based on quantity, date or whatever you
decide.  The Course class is just a dumb object that holds the value
but that's all.  I'm fairly certain this was in some class I took eons
ago (like 1981 when I was in college) but I don't remember the name.
I've used something similar to hold chains of retail store information
where my Chain is analogous to your Schedule.



On Aug 24, 2:39 pm, Dalla  wrote:
> Hi all
>
> This is probably a pretty basic OO question, but here goes:
> I have a simple Course class, containing a course ID, course name,
> course price etc.
>
> I´m looking for a good way to implement different types of special
> offers on these courses,
> like "buy five courses, get 10% off" or "from September 1 to September
> 15, get 5% off this course".
>
> What would be the best way to do this?
> I was thinking something like
>
> interface SpecialOffer {
>     double getSpecialOfferPrice(Course c); //Return new price
>     double getSpecialOfferSavings(Course c); //Return % saved
>
> }
>
> class BuyManyOffer implements SpecialOffer {
>
>      Integer buyManyLimit;
>
>      public LimitedTimeOffer(Date date) {
>         this. buyManyLimit = date;
>      }
>
>      public double getSpecialOfferPrice(Course c) {
>           //return something;
>      }
>      double getSpecialOfferSavings(Course c) {
>          return somethingElse;
>      }
>
> }
>
> class LimitedTimeOffer implements SpecialOffer {
>
>      Date offerStart;
>      Date offerStop;
>
>      public LimitedTimeOffer(Date dateStart, Date dateStop) {
>         this.offerStart = dateStart;
>         this.offerStop = dateStop;
>      }
>
>      public double getSpecialOfferPrice(Course c) {
>           //return something;
>      }
>      double getSpecialOfferSavings(Course c) {
>          return somethingElse;
>      }
>
> }
>
> But is this really the way to go?
> I can create different offers, the constructor allows me to dictate
> the rules for the offer to apply.
> But I don´t know how I would know if the offer applies or not at a
> given time.
>
> Somehow I need to know that the customer has bought more than x number
> of courses, or bought the course inside the time limit,
> but if I put number of courses in the interface, it wouldn´t make
> sense for the LimitedTimeOffer,
> and putting the a date in there wouldn´t make sense to the
> BuyManyOffer.
>
> Any pointers?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



JavaScriptObject won't load - 32 bit Java on Win64.

2009-08-24 Thread Ben

I've run into the same problem as this post:
http://groups.google.com/group/Google-Web-Toolkit/msg/b93efbbdf07d9d37

The issue is that all of the JSON classes in
com.google.gwt.json.client appear to be unusable on the server-side
implementation classes, because they depend on
com.google.gwt.core.client.JavaScriptObject, which won't load due to
an UnsatisfiedLinkError when loading the classdef for
JavaScriptObject.  I'm using Java 1.6.0_14-b08 x32 on Windows XP-64.
(I can't use 64-bit Java because then GWT won't run at all.)

To demonstrate this, I took the GWT 1.7 default web-application, and
modified GreetingServiceImpl.java like this:

  public String greetServer(String input) {
try {
  new com.google.gwt.json.client.JSONArray();
}
catch (Throwable t) {
  return "Poop: " + t.getClass().getName() +": " + t.getMessage();
}

The result is this: "Poop: java.lang.UnsatisfiedLinkError:
com.google.gwt.core.client.JavaScriptObject.createArray()Lcom/google/
gwt/core/client/JavaScriptObject;"

Any thoughts? Or should I just give up on using GWT's built-in JSON
libs and switch to JSON.org?

--~--~-~--~~~---~--~~
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: Accession session attribute and request parameters from EntryPoint

2009-08-24 Thread Michael Mallete
Thanx! I guess I have to change my way of thinking as regards using GWT.
Always have to be an async call perhaps.

On Tue, Aug 25, 2009 at 3:23 AM, tolga ozdemir  wrote:

>
> HttpSession http_session = this.getThreadLocalRequest().getSession()
>
> This is the code line I am talking about in your serverImpl class
>
> Regards,
>
> Tolga Özdemir
> http://www.tolgaozdemir.net
>
> >
>

--~--~-~--~~~---~--~~
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: seperating interfaces from gwt package

2009-08-24 Thread Sumit Chandel
Hi db_the_geek,
Did you remember to create a new module XML file for MyServiceDepends, and
reference that module XML file from within your MyService module XML file?
If not, you'll have to create the MyServiceDepends module XML file and
define the  tags referencing the translatable code (you can also
omit these tags since MyService is in the 'client' directory, which is the
GWT compiler uses as a default to find translatable source), and add the
 tag in your MyService module XML file referencing the
MyServiceDepends module XML file.

Hope that helps,
-Sumit Chandel

On Thu, Aug 20, 2009 at 9:35 AM, db_the_geek  wrote:

>
> hi,
>
> I am playing around with different ways of packaging GWT projects and
> integrating with other technologies.
>
> I had an old demo seam app lying around that i decided to integrate a
> gwt client with.
>
> My initial packaging worked something as follows:
> gwt client is compiled and packaged into a war file, which is then
> bundled into an EAR with the server EJB components. Both the EJB
> source tree and the GWT source tree had the same interfaces in it. The
> IDE and the build environment build the gwt seperately to the ejb.
>
> e.g. interface is
> EJB:
> ejbModule/com/mycompany/web/client/module/MyService & MyServiceAsync
>
> GWT:
> gwtModule/com/mycompany/web/client/module/MyService & MyServiceAsync
>
> This worked fine and was able to deploy the application and have full
> functionality. But maintaining the code between gwt and ejb was manual
> with this, so I want to move all interfaces to a dependancy package
>
> new project: MyServiceDepends/src/com/mycompany/web/client/module/
> MyService & MyServiceAsync
> MyServiceDepends is compiled and packaged into a jar and added to the
> classpath for the EJB, as well as deployed to the app server (no
> problems here).
>
> The java src tree for MyServiceDepends is added to the gwt compiler
> classpath:
> com/mycompany/web/client/module/MyService.java & MyServiceAsync.java
> are packaged in a jar file and the jar file is added to cp.
>
> The GWT widget I am building uses the service as follows:
> line 10: MyServiceAsync myService = GWT.create(MyService.class);
>
>
> When I try GWTCompile, I get errors:
> [ERROR] Line 10: Rebind result
> 'com.mycompany.web.client.module.MyService' must be a class
>
>
> I have tried using a) only the compiled jar (contain classes) b) only
> src-jar (contain java code) and c) both on the classpath for
> GWTCompile, but always get this error.
>
> Have also tried adding /path/to/src/dir to the classpath, in which com/
> mycompany/web/client/module/MyService & MyServiceAsync source code is
> saved. to no avail.
>
> In other places within some widgets, i reference classes from src
> jars..
>
> is there something i am doing wrong here?
>
>
> >
>

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



GWT testing without GWTTestCase and the DOM

2009-08-24 Thread Eugen Paraschiv

Can I test my client side GWT code without GWTTestCase? I've heard
somewhere (I think it was one of the Google IO 2009 conferences) that
they were successfully testing their code with a fake DOM, in the JVM
and not in Javascript with the DOM. That would be brilliant. Does
anybody have any idea about how to do this? Thanks. Eugen.
--~--~-~--~~~---~--~~
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: RequestBuilder with FireFox

2009-08-24 Thread Radu Grigore

On Aug 24, 10:41 pm, ca eyrie  wrote:
> I have the following utility method that builds a RequestBuilder
> object and sends a request to the server. This works perfectly for
> IE7/8 and Chrome but with FireFox it seems that the data parameter of
> the sendRequest method is ignored.

If you use POST then put *all* parameters in the post data (not in the
url) and, of course, make sure that on the server side you process
POST requests (as opposed to GET).

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



Can I use Google Collections Multimap in GWT client?

2009-08-24 Thread Gary S

In understand the client can't use the concurrent classes but some
people seem to be able to use some Google Collection classes.

If it's possible to use Multimap in the client, how do I configure it?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Incorrect tab spacing (GWT 1.5 & IE6)

2009-08-24 Thread ToddP

All,
I'm using GWT 1.5's tabpanel.  I add a series of different width tabs
(each tab contains a scrollpanel).  When finished, and viewed in IE6,
I have 6 tabs that are spaced very irregularly (IE8 and Firefox render
correctly, though that doesn't help me as our company uses IE6).  It
appears that IE6 is using the width of the widest tab as a reference
point and spacing the tabs as if all tabs were that width.  Any
suggestions for getting the tabs spaced correctly in IE6?

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



RequestBuilder with FireFox

2009-08-24 Thread ca eyrie

I have the following utility method that builds a RequestBuilder
object and sends a request to the server. This works perfectly for
IE7/8 and Chrome but with FireFox it seems that the data parameter of
the sendRequest method is ignored.

public static void sendRequest( String ajaxClass, String
requestCommand, PropertyList requestData, RequestCallback
requestCallback ) throws RequestException {
String url = GWT.getHostPageBaseURL() + "/rc?
command=ajax&ajaxclass=" + ajaxClass + "&requestcommand=" +
requestCommand;
RequestBuilder requestBuilder = new RequestBuilder
( RequestBuilder.POST, url );
requestBuilder.setHeader( "Content-Type", "application/x-www-
form-urlencoded" );
String data = requestCommand + "=" + URL.encodeComponent
( requestData.toString() );
requestBuilder.setHeader( "Content-Length", String.valueOf
( data.length() ) );
requestBuilder.sendRequest( data, requestCallback );
}

I have tried replacing the:
  String data = 
with a simple
  String param1=value1
but still nothing appears in the Request on the server side.

I am new to FireFox (installed 3.5.2) so I may be missing some options
here?

Anyone got any ideas?

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



Download file

2009-08-24 Thread Alexei Telles

Hi...

I need to create a link in my web application where the user will
download a file that is in my server.

I was searching for something in the web, but I could not find
something about.

Is there any GWT tool that allow me to develop a link in my
application to make a download from the server to the client?

Or another way that you guys use to do?

Thanks again
--~--~-~--~~~---~--~~
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: At new item to a list at each position

2009-08-24 Thread Ian Bambury
I'd say that the first step is to decide what you want the system to be able
to do rather than get yourself up dead-ends by solving only part of a
problem in a way that  doesn't let you solve the rest of it.
IMNSHO

Ian

http://examples.roughian.com


2009/8/24 Tobe 

>
> Another problem is how to index the fields. I tried it with arrays:
> Outer forms 1 dimension, middle forms 2 dimension and inner forms 3
> dimension and used the row IDs of the corresponding FlexTable as
> indices, but this doesn't work because the row IDs are always changing
> when I add new form blocks at any position.
>
> On Aug 22, 7:52 pm, Tobe  wrote:
> > The next problem is how to evaluate this nested form? Is there any
> > good way to structure the fields and evaluate the complete form
> > together with GWT?
> >
> > On Aug 18, 2:42 pm,Tobe wrote:
> >
> >
> >
> > > I had AbsolutePanels with other Widgets added to it, but now I just
> > > have one Widget in each. In other cases I used VerticalPanels instead
> > > of AbsolutePanels to get access to the different Widgets in the rows.
> > > Unfortunately I can't get the Widget of a Widget e. g. when I have a
> > > ListBox inside a VerticalPanel and the VerticalPanel inside a
> > > FlexTable by using flextable.getWidget(1,0).getWidget(0);, but it
> > > works when I get the Widgets step by step and cast it in each step.
> >
> > > On Aug 17, 11:48 pm, Ian Bambury  wrote:
> >
> > > > You should only ever have one widget in the cell. The method
> setWidget(int
> > > > row, int column, Widget widget) removes any existing widget.
> > > > I think you might need a design review ;-)
> >
> > > > Ian
> >
> > > >http://examples.roughian.com
> >
> > > > 2009/8/17Tobe
> >
> > > > > Ok, but in this case inside the (1,0) there can be some more
> Elements
> > > > > and always the last one is the nested FlexTable I need. I
> > > > > tried .getElement().getLastChild() but can't cast the received Node
> to
> > > > > a FlexTable.
> >
> > > > > On Aug 17, 6:41 pm, Ian Bambury  wrote:
> > > > > > Can we try this in words, not html :-)
> > > > > > You have an outer table with 'Insert' buttons in the even rows
> > > > > (0,2,4,...)
> > > > > > and child tables in the first column of the odd rows (1,3,...)
> >
> > > > > > To access the first child table, you use
> >
> > > > > > FlexTable inner = (FlexTable)outer.getWidget(1, 0);
> >
> > > > > > Ian
> >
> > > > > >http://examples.roughian.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
-~--~~~~--~~--~--~---



Dynamic method invocation from javascript to GWT

2009-08-24 Thread Dan Diephouse

I've been working on a plugin framework for our application which
allows people to add different GWT modules which plug into our UI by
dropping in a JAR into the classpath which has the GWT javascript and
a server side descriptor. Since we need to call out to these other GWT
modules from our core GWT module, we implemented a Javascript bridge.

This might best be illustrated through code:

var plugins = new Array();

// Registers a callback method to load a plugin when showPlugin is
called
function registerPlugin(token,instance,callbackMethod) {
plugins[token] = callbackMethod;
}

// Call out to the GWT plugin function
function showPlugin(token) {
var fn = plugins[token];
 if (fn) {
  fn();
 }
 else alert("Plugin for token " + token + " was not found.");
}

Every plugin registers a javascript callback and then the core module
calls this callback when a particular history token is navigated to.

Upon GWT plugin initialization a register method is called like this:

public native void register(String token)
/*-{
var plugin = this;
var callback = function() {
   plug...@my.package.client.helloworldplugin::loadPlugin()();
}
$wnd.registerPlugin(token, this, callback);
}-*/;

The sucky thing about this is that you have to hard code the plugin
name ever time.  Since I noticed that the loadPlugin call gets
translated into plugin["@my.package.client.HelloWorldPlugin::loadPlugin
()"]() in hosted mode, I tried this:

public native void register(String token, String className)
/*-{
var plugin = this;
var callback = function() {
   plugin["@" + className + "::loadPlugin()"]();
}
$wnd.registerPlugin(token, this, callback);
}-*/;

However, that doesn't work outside of hosted mode because all the
method names get changed.

So is there any way to dynamically invoke a GWT method from javascript
given it's classname and the method name you want to invoke?

Thanks,
Dan

--~--~-~--~~~---~--~~
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: MVP/GWT question

2009-08-24 Thread Nathan

I see where you're going, with that gwt-mvp-sample code.  With GIN,
you don't even need to think about my problem, because every Presenter
is automatically going to be created and injected with the right
View.  I think in your case, your answer is more along the lines of
"Let GIN do it for you," which is certainly a fine idea -- sadly, I
spent an entire day trying to get GIN to work with no success, so I
gave up 'cause manual DI works fine for me for the most part.  This
conversation has made me feel like I have a good understanding of this
problem now, but it doesn't seem to agree with anything anyone has
said.  Basically, in my mind, what I'm seeing now is a Presenter gets
to think "Okay, I am a presenter.  I have some Display requirements:
my Display needs to know how to display this text, handle these
clicks, and view these child Presenters."  Then the View
implementation is responsible for knowing what Display classes to use
for the Presenter -- if it's a MockMainDisplay, it would instantiate
and bind a MockChildDisplay, if it's a live website MainWidget, it
would instantiate and bind the ChildWidgets.  This way, View handles
the View, Presenters handle the Presenters.  Of course, the better
idea here would be to use GIN.  Perhaps, since I have a small sample
code that uses GIN in gwt-mvp-sample, I can give that another try.  :)

Thanks again for all the help, everyone.

On Aug 24, 1:28 pm, Christian Goudreau 
wrote:
> I'll add something :http://code.google.com/p/gwt-mvp-sample/
>
> And one comment about decoupling. There will be always time when some
> component cannot work without others. You can decouple them, but you'll have
> to add it at one point in one presenter.
>
> In that example, the main container is MainPresenter and his job is to
> assemble the other views and presenters. Maybe it'll be more clear with this
> then everything I could say :)
>
> Christian
>
> On Mon, Aug 24, 2009 at 1:22 PM, Christian Goudreau <
>
> goudreau.christ...@gmail.com> wrote:
> > Sorry then, it's clear in my head, but I got some difficulty to translate
> > it in English. And by the way, by your question, you cleared my own
> > questions about it ! LOL
>
> > Christian
>
> > On Mon, Aug 24, 2009 at 12:58 PM, Ian Bambury wrote:
>
> >> I think I could do with an example which matches your problem more
> >> closely. The email header thing obviously doesn't really mirror what you 
> >> are
> >> doing, and comments like
>
> >>> My complex object is three things - a complex data structure, a complex
> >>> presenter, and a complex view.
>
> >> is too vague (for me anyway) to be able to give an answer (even if it's
> >> 'dunno, mate').
>
> >> Ian
>
> >>http://examples.roughian.com
>
> >> 2009/8/24 Nathan 
>
> >>> I'm not sure I follow.  My complex object is three things - a complex
> >>> data structure, a complex presenter, and a complex view.  The Widget
> >>> aspect is just one implementation of the view, and I do understand
> >>> that it is just a widget.  However, my MockDisplay is not a widget,
> >>> and in my unit tests, there is no widget.  My question is about how
> >>> the parent and child Presenters and parent and child Views relate/
> >>> interact with each other.  Your comment seems to be about how a View
> >>> would add a child View, but who would be calling addSearchBar on a
> >>> view?  The parent Presenter?  That doesn't make sense, nor does it
> >>> decouple.  As such, your example is just adding to my confusion, not
> >>> clearing it up... :/
>
> >>> Thanks for tryin', though!
>
> >>> -nathan
>
> >>> On Aug 24, 8:35 am, Christian Goudreau 
> >>> wrote:
> >>> > You have to see your complex object as another Widget. On the
> >>> container, you
> >>> > simply add this complex widget that has his listeners and maybe other
> >>> > complex widget in it. Little example for the view :
>
> >>> >     public void addSearchBar(WidgetDisplay display) {
> >>> >         removeSearchBar();
> >>> >         searchBar = display.asWidget();
> >>> >         seekBarPanel.add(searchBar);
>
> >>> >     }
>
> >>> >     public void removeSearchBar() {
> >>> >         if (searchBar != null) {
> >>> >             searchBar.removeFromParent();
> >>> >         }
> >>> >     }
>
> >>> > If you have to register for changes in the main container, since you
> >>> have an
> >>> > event bus, you don't have to passe everything up, you only have to
> >>> register
> >>> > for events that your hoping for and then you act according to it, so
> >>> it's
> >>> > not a problem if you decouple everything in small pieces.
>
> >>> > By the way, I'm using the framework Presenter.
>
> >>> > Christian
>
> >>> > On Sun, Aug 23, 2009 at 10:44 PM, Nathan 
> >>> wrote:
>
> >>> > > Hmm.  Okay, and since my case has a complex row (not just String/
> >>> > > ClickHandler -- but a whole Presenter/Display for an Object that has
> >>> > > multiple/complex details.  So...:
>
> >>> > > class MainPresenter {
> >>> > >  interface Display {
> >>> > >  // easy stuff
>

Re: Spring and GWT integration

2009-08-24 Thread Alec

Hello, P.G.,

Thank you for the post. I like the way you use Spring auto-injecting
with GWT RPC, am going to give it a try. On my website, http://minetats.com
, I have another example on how one could use GWT and Spring together
- a menu-driven web application. I use commands on both client and
server sides. On the server, I use ServiceLocatorFactoryBean as well
as Spring Security (with a GWT-driven login page). Please take a look
if interested.

Thanks,
Alec Missine

On Aug 11, 5:04 am, "P.G.Taboada"  wrote:
> Hi,
>
> I have seen a lot of (quite complicated)SpringandGWTintegration
> approaches, and I wonder why noone is using the autowiring bean bean
> factory to simple auto-inject the required beans into theGWTRPC
> services.
>
> http://pgt.de/2009/07/17/non-invasive-gwt-and-spring-integration-relo...
>
> I have been using this approach for a while. It is easy to setup and
> works perfectly.
>
> Would appreciate any comments.

--~--~-~--~~~---~--~~
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: GWT1.6.4 multiple module and gwt-ext

2009-08-24 Thread Vladimir

Thanks for your reply, I have at least two modules both using GWT-Ext,
i include them on the same hosting page with two lines as



everything works fine in the PRETTY mode but doesn't in the Detailed
or Obfuscated it also works fine in hosted mode as well. I world
understand if  OBF fails but it fails in both OBD and Detailed and no
in Pretty.

--Vlad

On Aug 21, 1:39 pm, Sumit Chandel  wrote:
> Hi Vlad,
> If I understand correctly, you have one GWT module built with GWT itself,
> and another module built with GWT-Ext, and you're adding both modules to the
> same page? If that's the case, I can see how this error could occur, but
> it's probably not a good idea to develop two independent modules and include
> them in the same page anyway.
>
> You should consider reusing one module in the other, or if that's not
> possible because of library incompatibilities between GWT and GWT-Ext,
> switching to only one of the two solutions and creating one module that can
> be compiled monolithically. That would not only correct the issue you're
> facing now, but would also lead to much smaller JavaScript code and a much
> snappier application.
>
> Hope that helps,
> -Sumit Chandel
>
>
>
> On Tue, Aug 18, 2009 at 6:44 AM, Vlad  wrote:
>
> > When putting multiple GWT modules on the html host page that use gwt-
> > ext library there is JavaScript error and only in the OBFuscated mode.
> > Everything works just fine in the PRETTY mode. Most likely the error
> > is caused by the name collision in the obfuscated mode when method aa1
> > () from one module collides with the same obfuscated name from the
> > second one. Basically when first module executes some method there is
> > an error and stack trace reference to the HTML file from the different
> > module.
>
> > Is there any way to specify some range for JavaScript method names
> > when compiling in the OBFuscated mode via linker etc.
>
> > 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: "Use an Event Bus" - Ray

2009-08-24 Thread Charlie

I did find it useful thank you!

On Aug 22, 6:03 am, lowecg2004  wrote:
> Hi Nathan,
>
> The gwt-presenter project defines an EventBus class which wraps the
> HandlerManager.  I've put an example on my blog that converts the
> default starter application that is created by the Google Plugin for
> Eclipse to use:
>
> gwt-presenter (MVP, Event Bus Patterns);
> gwt-dispatch (Command Pattern);
> google gin (Dependency Injection).
>
> http://blog.hivedevelopment.co.uk/2009/08/google-web-toolkit-gwt-mvp-...
>
> I hope you find it useful,
>
> Chris.
>
> On Aug 21, 10:41 am, Nathan  wrote:
>
> > Okay, thanks everyone for your comments.  That certainly helps.
>
> >   Now I'd like to extend this topic to a "how" -- Do we have any good
> > examples of an EventBus wrapper ("decorator?") for the HandlerManager
> > class?  I can think of a few different design approaches to it, and
> > I'd rather stick to convention or to whatever makes GWT most able to
> > compile effectively... Don't see any reason to re-invent the wheel on
> > this one, and this seems like something that has almost certainly been
> > written in some form of open source way by now... :)
>
> >   Thanks for any thoughts on the subject.
>
> > -nathan
--~--~-~--~~~---~--~~
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: Accession session attribute and request parameters from EntryPoint

2009-08-24 Thread tolga ozdemir

HttpSession http_session = this.getThreadLocalRequest().getSession()

This is the code line I am talking about in your serverImpl class

Regards,

Tolga Özdemir
http://www.tolgaozdemir.net

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



GWT and Spring

2009-08-24 Thread Alec

On my website, http://minetats.com , I have another example on how one
could use GWT and Spring together - a menu-driven web application. I
use commands on both client and server sides. On the server, I use
ServiceLocatorFactoryBean as well as Spring Security (with a GWT-
driven login page). Please take a look if interested.

--~--~-~--~~~---~--~~
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: EXPECTED_GWT_ONLOAD_VERSION on GWT 1.7

2009-08-24 Thread Eric Ayers

Hi Luca,

I'm pretty sure this is a bug.  I created an issue for it:

http://code.google.com/p/gwt-google-apis/issues/detail?id=300


On Mon, Aug 24, 2009 at 3:29 AM, Luca Masini wrote:
>
> Hi guys, a simple question.
>
> In the BrowserWidget class of GWT 1.7  we have this declaration:
>
>      private static final String EXPECTED_GWT_ONLOAD_VERSION = "1.6";
>
> When I use Google Gadget, its linker generate the control code that
> then fail because it checks 1.7 against 1.6.
>
> It's 1.6 for a good reason ?? Why the hell then the About class
> returns 1.7 ??
>
> Thank you.
> >
>



-- 
Google Code Jam 2009
http://code.google.com/codejam

--~--~-~--~~~---~--~~
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: Accession session attribute and request parameters from EntryPoint

2009-08-24 Thread tolga ozdemir

I think you can use RPC for this... There is an inherited property in
your Service class implementation you can use it to access your
HttpSession object and retrieve it to the client side..

There is a nice article here you may take a look
http://knol.google.com/k/boiling-java/gwt-good-but-handle-with-care/1f4slmudt2qvm/2#

´


On Aug 24, 5:50 pm, mykol  wrote:
> Hi everyone,
>
> Just starting with GWT. My page design heavily depends on
> HttpServletRequest parameters and HttpServlerSession attributes. How
> do I access this from my EntryPoint class?
>
> Thanx!
>
> mykol
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Frame Height 100%

2009-08-24 Thread Danny

Does anyone have a browser independent way to set a frame's height to
100% inside a panel that already has its height set to 100%.   I want
to open a frame to a URL (e.g., google.com), such that the frame
expands to the full size of the page pointed to by the URL.  Setting a
frame's width to 100%. or setting a frame's height to a fixed value
both work.

A quick search finds that iframes have this problem: setting its
height to 100% does not work in all browsers.  Solutions suggest
making sure that all parent objects that contain the iframe have a
style of "height:100%" or setting the height with Javascript.  I have
tried to set the parents of my frame to "height:100%", but have not
met with success.  I am not wild about using Javascript.

Thanks,

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



NetBeans6.5 and rename-to="module name"/DynaTable sample 1.7.0

2009-08-24 Thread Douglas

Hello All,

   It seems that a lot of you use Eclipse to build apps in GWT but I
am using NetBeans 6.5 and the GWT version 1.7.0 and I need help to
understand something about renaming modules in this IDE. I'll wait for
any replies before I state the problem so that users who have
experience with NetBeans may reply.
--~--~-~--~~~---~--~~
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: At new item to a list at each position

2009-08-24 Thread Tobe

Another problem is how to index the fields. I tried it with arrays:
Outer forms 1 dimension, middle forms 2 dimension and inner forms 3
dimension and used the row IDs of the corresponding FlexTable as
indices, but this doesn't work because the row IDs are always changing
when I add new form blocks at any position.

On Aug 22, 7:52 pm, Tobe  wrote:
> The next problem is how to evaluate this nested form? Is there any
> good way to structure the fields and evaluate the complete form
> together with GWT?
>
> On Aug 18, 2:42 pm,Tobe wrote:
>
>
>
> > I had AbsolutePanels with other Widgets added to it, but now I just
> > have one Widget in each. In other cases I used VerticalPanels instead
> > of AbsolutePanels to get access to the different Widgets in the rows.
> > Unfortunately I can't get the Widget of a Widget e. g. when I have a
> > ListBox inside a VerticalPanel and the VerticalPanel inside a
> > FlexTable by using flextable.getWidget(1,0).getWidget(0);, but it
> > works when I get the Widgets step by step and cast it in each step.
>
> > On Aug 17, 11:48 pm, Ian Bambury  wrote:
>
> > > You should only ever have one widget in the cell. The method setWidget(int
> > > row, int column, Widget widget) removes any existing widget.
> > > I think you might need a design review ;-)
>
> > > Ian
>
> > >http://examples.roughian.com
>
> > > 2009/8/17Tobe
>
> > > > Ok, but in this case inside the (1,0) there can be some more Elements
> > > > and always the last one is the nested FlexTable I need. I
> > > > tried .getElement().getLastChild() but can't cast the received Node to
> > > > a FlexTable.
>
> > > > On Aug 17, 6:41 pm, Ian Bambury  wrote:
> > > > > Can we try this in words, not html :-)
> > > > > You have an outer table with 'Insert' buttons in the even rows
> > > > (0,2,4,...)
> > > > > and child tables in the first column of the odd rows (1,3,...)
>
> > > > > To access the first child table, you use
>
> > > > > FlexTable inner = (FlexTable)outer.getWidget(1, 0);
>
> > > > > Ian
>
> > > > >http://examples.roughian.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: MVP/GWT question

2009-08-24 Thread Christian Goudreau
I'll add something : http://code.google.com/p/gwt-mvp-sample/

And one comment about decoupling. There will be always time when some
component cannot work without others. You can decouple them, but you'll have
to add it at one point in one presenter.

In that example, the main container is MainPresenter and his job is to
assemble the other views and presenters. Maybe it'll be more clear with this
then everything I could say :)

Christian

On Mon, Aug 24, 2009 at 1:22 PM, Christian Goudreau <
goudreau.christ...@gmail.com> wrote:

> Sorry then, it's clear in my head, but I got some difficulty to translate
> it in English. And by the way, by your question, you cleared my own
> questions about it ! LOL
>
> Christian
>
>
> On Mon, Aug 24, 2009 at 12:58 PM, Ian Bambury wrote:
>
>> I think I could do with an example which matches your problem more
>> closely. The email header thing obviously doesn't really mirror what you are
>> doing, and comments like
>>
>>> My complex object is three things - a complex data structure, a complex
>>> presenter, and a complex view.
>>
>>
>> is too vague (for me anyway) to be able to give an answer (even if it's
>> 'dunno, mate').
>>
>> Ian
>>
>> http://examples.roughian.com
>>
>>
>> 2009/8/24 Nathan 
>>
>>
>>> I'm not sure I follow.  My complex object is three things - a complex
>>> data structure, a complex presenter, and a complex view.  The Widget
>>> aspect is just one implementation of the view, and I do understand
>>> that it is just a widget.  However, my MockDisplay is not a widget,
>>> and in my unit tests, there is no widget.  My question is about how
>>> the parent and child Presenters and parent and child Views relate/
>>> interact with each other.  Your comment seems to be about how a View
>>> would add a child View, but who would be calling addSearchBar on a
>>> view?  The parent Presenter?  That doesn't make sense, nor does it
>>> decouple.  As such, your example is just adding to my confusion, not
>>> clearing it up... :/
>>>
>>> Thanks for tryin', though!
>>>
>>> -nathan
>>>
>>> On Aug 24, 8:35 am, Christian Goudreau 
>>> wrote:
>>> > You have to see your complex object as another Widget. On the
>>> container, you
>>> > simply add this complex widget that has his listeners and maybe other
>>> > complex widget in it. Little example for the view :
>>> >
>>> > public void addSearchBar(WidgetDisplay display) {
>>> > removeSearchBar();
>>> > searchBar = display.asWidget();
>>> > seekBarPanel.add(searchBar);
>>> >
>>> > }
>>> >
>>> > public void removeSearchBar() {
>>> > if (searchBar != null) {
>>> > searchBar.removeFromParent();
>>> > }
>>> > }
>>> >
>>> > If you have to register for changes in the main container, since you
>>> have an
>>> > event bus, you don't have to passe everything up, you only have to
>>> register
>>> > for events that your hoping for and then you act according to it, so
>>> it's
>>> > not a problem if you decouple everything in small pieces.
>>> >
>>> > By the way, I'm using the framework Presenter.
>>> >
>>> > Christian
>>> >
>>> > On Sun, Aug 23, 2009 at 10:44 PM, Nathan 
>>> wrote:
>>> >
>>> > > Hmm.  Okay, and since my case has a complex row (not just String/
>>> > > ClickHandler -- but a whole Presenter/Display for an Object that has
>>> > > multiple/complex details.  So...:
>>> >
>>> > > class MainPresenter {
>>> > >  interface Display {
>>> > >  // easy stuff
>>> >
>>> > >  void clearEmails();
>>> > >  void addEmail(EmailDetails email);
>>> > >  }
>>> > > }
>>> >
>>> > > Then:
>>> >
>>> > > class EmailPresenter {
>>> > >  interface Display {
>>> > >HasText getSubjectLabel();
>>> > >HasText getBodyLabel();
>>> > >HasClickHandlers getReplyButton();
>>> > >// etc...
>>> > >  }
>>> >
>>> > >  ...
>>> > > }
>>> >
>>> > > So, do I just have a bad design idea here?  I don't want my
>>> > > MainPresenter.Display implementation instantiating EmailPresenters...
>>> >
>>> > > How about changing
>>> > > MainPresenter {
>>> > >  interface Display {
>>> > >...
>>> > >void clear();
>>> > >void addEmailPresenter(EmailPresenter email);
>>> > >  }
>>> > > }
>>> >
>>> > > Then the Display picks the Displays for the sub-Presenters...  Yeah,
>>> > > this is making some sense now.  Does this sound about right to
>>> others?
>>> >
>>> > > Thanks for the help!
>>> >
>>> > > -nathan
>>> >
>>> > > On Aug 23, 9:53 pm, Ian Bambury  wrote:
>>> > > > Hi Nathan,
>>> > > > I think all you need is a clear() and an addLine(String text).
>>> >
>>> > > > The presenter clears the display and loops through the headers
>>> adding
>>> > > lines
>>> > > > as it goes. If you need to respond to clicks, then add a click
>>> handler
>>> > > > parameter to the addLine method.
>>> >
>>> > > > Or am I missing something here?
>>> >
>>> > > > Ian
>>> >
>>> > > >http://examples.roughian.com
>>> >
>>> > > > 2009/8/24 Nathan 
>>> >
>>> > > > > Hello everyone.
>>> >
>>> > > > >  I watched Ray's 

Re: MVP/GWT question

2009-08-24 Thread Christian Goudreau
Sorry then, it's clear in my head, but I got some difficulty to translate it
in English. And by the way, by your question, you cleared my own questions
about it ! LOL

Christian

On Mon, Aug 24, 2009 at 12:58 PM, Ian Bambury  wrote:

> I think I could do with an example which matches your problem more closely.
> The email header thing obviously doesn't really mirror what you are doing,
> and comments like
>
>> My complex object is three things - a complex data structure, a complex
>> presenter, and a complex view.
>
>
> is too vague (for me anyway) to be able to give an answer (even if it's
> 'dunno, mate').
>
> Ian
>
> http://examples.roughian.com
>
>
> 2009/8/24 Nathan 
>
>
>> I'm not sure I follow.  My complex object is three things - a complex
>> data structure, a complex presenter, and a complex view.  The Widget
>> aspect is just one implementation of the view, and I do understand
>> that it is just a widget.  However, my MockDisplay is not a widget,
>> and in my unit tests, there is no widget.  My question is about how
>> the parent and child Presenters and parent and child Views relate/
>> interact with each other.  Your comment seems to be about how a View
>> would add a child View, but who would be calling addSearchBar on a
>> view?  The parent Presenter?  That doesn't make sense, nor does it
>> decouple.  As such, your example is just adding to my confusion, not
>> clearing it up... :/
>>
>> Thanks for tryin', though!
>>
>> -nathan
>>
>> On Aug 24, 8:35 am, Christian Goudreau 
>> wrote:
>> > You have to see your complex object as another Widget. On the container,
>> you
>> > simply add this complex widget that has his listeners and maybe other
>> > complex widget in it. Little example for the view :
>> >
>> > public void addSearchBar(WidgetDisplay display) {
>> > removeSearchBar();
>> > searchBar = display.asWidget();
>> > seekBarPanel.add(searchBar);
>> >
>> > }
>> >
>> > public void removeSearchBar() {
>> > if (searchBar != null) {
>> > searchBar.removeFromParent();
>> > }
>> > }
>> >
>> > If you have to register for changes in the main container, since you
>> have an
>> > event bus, you don't have to passe everything up, you only have to
>> register
>> > for events that your hoping for and then you act according to it, so
>> it's
>> > not a problem if you decouple everything in small pieces.
>> >
>> > By the way, I'm using the framework Presenter.
>> >
>> > Christian
>> >
>> > On Sun, Aug 23, 2009 at 10:44 PM, Nathan 
>> wrote:
>> >
>> > > Hmm.  Okay, and since my case has a complex row (not just String/
>> > > ClickHandler -- but a whole Presenter/Display for an Object that has
>> > > multiple/complex details.  So...:
>> >
>> > > class MainPresenter {
>> > >  interface Display {
>> > >  // easy stuff
>> >
>> > >  void clearEmails();
>> > >  void addEmail(EmailDetails email);
>> > >  }
>> > > }
>> >
>> > > Then:
>> >
>> > > class EmailPresenter {
>> > >  interface Display {
>> > >HasText getSubjectLabel();
>> > >HasText getBodyLabel();
>> > >HasClickHandlers getReplyButton();
>> > >// etc...
>> > >  }
>> >
>> > >  ...
>> > > }
>> >
>> > > So, do I just have a bad design idea here?  I don't want my
>> > > MainPresenter.Display implementation instantiating EmailPresenters...
>> >
>> > > How about changing
>> > > MainPresenter {
>> > >  interface Display {
>> > >...
>> > >void clear();
>> > >void addEmailPresenter(EmailPresenter email);
>> > >  }
>> > > }
>> >
>> > > Then the Display picks the Displays for the sub-Presenters...  Yeah,
>> > > this is making some sense now.  Does this sound about right to others?
>> >
>> > > Thanks for the help!
>> >
>> > > -nathan
>> >
>> > > On Aug 23, 9:53 pm, Ian Bambury  wrote:
>> > > > Hi Nathan,
>> > > > I think all you need is a clear() and an addLine(String text).
>> >
>> > > > The presenter clears the display and loops through the headers
>> adding
>> > > lines
>> > > > as it goes. If you need to respond to clicks, then add a click
>> handler
>> > > > parameter to the addLine method.
>> >
>> > > > Or am I missing something here?
>> >
>> > > > Ian
>> >
>> > > >http://examples.roughian.com
>> >
>> > > > 2009/8/24 Nathan 
>> >
>> > > > > Hello everyone.
>> >
>> > > > >  I watched Ray's talk, and have been reworking my project to
>> follow
>> > > > > many of his suggestions/standards, and have been quite happy with
>> the
>> > > > > results.  Today, however, I ran into a small problem.  I am making
>> a
>> > > > > website that has a layout fairly similar to an email program --
>> that
>> > > > > is, there are a variety of buttons/widgets/whatever in the
>> interface,
>> > > > > plus a set of some number of rows in a table, essentially.  (Email
>> > > > > header info, basically?).  Here's the Presenter/Display idea:
>> > > > >  class ExampleEmailPresenter {
>> > > > >interface Display {
>> > > > >  HasClickHandlers getComposeNewEmailButton();
>> > > > >

Re: Why do we define AsyncCallbacks inline?

2009-08-24 Thread Jason Morris

Thats typically the way I deal with things, it allows you to isolate eat 
"action" that occurs 
against the server.

It also allows those actions to be developed against client side interfaces. 
One of the more common 
use cases I have is "Page" structures. Any list / table / scrollable view that 
needs to lazy load 
lots of data runs through the same "FetchPage" action (which encapsulates the 
fetch from an Async 
interface and the push into a PagedModel object when the response is returned).

Another could be a SaveAction that stores an object on the server and validates 
that it was stored 
in the response.

This is the main reason I favor working with top-level classes: it lets you 
code a step away from 
your actual work-structure (and so improve code re-usability).

Hope that helps.
//J

Bakul wrote:
> Jason,
> 
> Does it mean I need to create a Action class for all kind of a backend
> call?
> 
> I mean, suppose I have three function call to back end from Async
> Interface:
> 
>1. addItem(..., AsyncCallBack callBack);
>2. updateItem(..., AsyncCallBack callBack);
>3. deleteItem(..., AsyncCallBack callBack);
> 
> In this case, do I need to create three Aciton classes which extends
> RetryAction?
> 
> -Bakul
> 
> 
> On Aug 23, 9:08 am, Jason Morris  wrote:
>> I would personally say that creating top-level or inner classes for the 
>> response of an async
>> callback (or an event) is often the best way to do it.
>>
>> Encapsulation is one of the main reasons we use OO languages because it 
>> encourages re-use. If you
>> take a look at my blog post 
>> here:http://lemnik.wordpress.com/2008/07/17/a-useful-gwt-rpc-pattern-ive-b...
>> You'll see one of the ways in which you can leverage encapsulate logic to 
>> make your code more
>> friendly. Make the RetryAction a Command object and you'll really start to 
>> see what I mean.
>>
>> I mostly find that in the long run it works better to avoid inline 
>> callbacks, since it provides
>> better separation of concerns, and acts more like the Command pattern (and 
>> you can mix in a Command
>> Processor to produce more complex logic).
>>
>> Just my 2c worth.
>> Regards.
>> //Jason
>>
>>
>>
>> jack wrote:
>>> Good question - lol.
>>> I think maybe we're not quite using the same terminology - maybe we
>>> are.
>>> By inner class I mean something like ...
>>> public MyOuterClass
>>> {
>>> }
>>> On Aug 23, 1:34 am, Jan Ehrhardt  wrote:
 It's common practice to use inner classes in Java for listeners or other
 simple things like callbacks.
 What you want to do in the case of a callback, is invoking a method after
 the the asynchronous RPC has been finished. The easiest solution would be,
 to put this method as an argument to the RPC method, but since Java has no
 closures, using inner classes is a nice solution. In Java 1.4, where no
 inner classes where available, people implemented the AsyncCallback
 interface in the class, which was calling the RPC method, so they could do
 something like:
 service.getSomthing(this);
 But with Java 5 inner classes have become the prefered way.
 Sure, you can also create your own class for this, but that's the worse
 practice, I think.
 What would be the best solution for this, you think?
 Regards
 Jan Ehrhardt
 On Sat, Aug 22, 2009 at 10:43 PM, jack  wrote:
> In every RPC example I've seen, AsyncCallback are all defined inline?
> Why is this so?  What are the advantages?
> Thanks in advance
> > 
> 

--~--~-~--~~~---~--~~
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: Refresh page on loading

2009-08-24 Thread Ian Bambury
Hi Rahul,
I tried the code below but it seems to work OK. Is it the kind of effect you
are trying to get?


VerticalPanel[] v1 = new VerticalPanel[5];
TabPanel tabpanel = new TabPanel();
for(int j = 0; j < 5; j++)
{
v1[j] = new VerticalPanel();
tabpanel.add(v1[j], " [XXX] ");
v1[j].add(new TextBox());
v1[j].add(new TextBox());
v1[j].add(new TextBox());
v1[j].add(new TextBox());
v1[j].add(new TextBox());
v1[j].add(new TextBox());
v1[j].add(new TextBox());
v1[j].add(new TextBox());
v1[j].add(new TextBox());
v1[j].add(new TextBox());
v1[j].add(new TextBox());
v1[j].add(new Button("Submit"));
}
RootPanel.get().add(tabpanel);
tabpanel.selectTab(0);

Ian

http://examples.roughian.com


2009/8/24 Rahul 

>
> Hi Ian,
> Sorry for the late reply, I was out of office for last few days
>
> here is part of the code
>for ( j = 0; j < URLs.getLength()-1; j++)
>{
>v1[j] = new VerticalPanel();
>String str =
> URLs.item(j).getAttributes().toString();
>//  System.out.println(str);
>
>  tabpanel.add(v1[j],str.substring(13,16));
>
>  fucn(v1[j],str.substring(13,16),drag);
>
>  v1[j].setTitle(str.substring(13,16));
>b1 = new Button ("Submit");
>b1.addClickHandler(handler2);
>v1[j].add(b1);
>
>
>//end of for loop
>}
>
>
> the button b1 is an public button
>
> Sincerely,
> Rahul
>
>

--~--~-~--~~~---~--~~
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: MVP/GWT question

2009-08-24 Thread Ian Bambury
I think I could do with an example which matches your problem more closely.
The email header thing obviously doesn't really mirror what you are doing,
and comments like

> My complex object is three things - a complex data structure, a complex
> presenter, and a complex view.


is too vague (for me anyway) to be able to give an answer (even if it's
'dunno, mate').

Ian

http://examples.roughian.com


2009/8/24 Nathan 

>
> I'm not sure I follow.  My complex object is three things - a complex
> data structure, a complex presenter, and a complex view.  The Widget
> aspect is just one implementation of the view, and I do understand
> that it is just a widget.  However, my MockDisplay is not a widget,
> and in my unit tests, there is no widget.  My question is about how
> the parent and child Presenters and parent and child Views relate/
> interact with each other.  Your comment seems to be about how a View
> would add a child View, but who would be calling addSearchBar on a
> view?  The parent Presenter?  That doesn't make sense, nor does it
> decouple.  As such, your example is just adding to my confusion, not
> clearing it up... :/
>
> Thanks for tryin', though!
>
> -nathan
>
> On Aug 24, 8:35 am, Christian Goudreau 
> wrote:
> > You have to see your complex object as another Widget. On the container,
> you
> > simply add this complex widget that has his listeners and maybe other
> > complex widget in it. Little example for the view :
> >
> > public void addSearchBar(WidgetDisplay display) {
> > removeSearchBar();
> > searchBar = display.asWidget();
> > seekBarPanel.add(searchBar);
> >
> > }
> >
> > public void removeSearchBar() {
> > if (searchBar != null) {
> > searchBar.removeFromParent();
> > }
> > }
> >
> > If you have to register for changes in the main container, since you have
> an
> > event bus, you don't have to passe everything up, you only have to
> register
> > for events that your hoping for and then you act according to it, so it's
> > not a problem if you decouple everything in small pieces.
> >
> > By the way, I'm using the framework Presenter.
> >
> > Christian
> >
> > On Sun, Aug 23, 2009 at 10:44 PM, Nathan 
> wrote:
> >
> > > Hmm.  Okay, and since my case has a complex row (not just String/
> > > ClickHandler -- but a whole Presenter/Display for an Object that has
> > > multiple/complex details.  So...:
> >
> > > class MainPresenter {
> > >  interface Display {
> > >  // easy stuff
> >
> > >  void clearEmails();
> > >  void addEmail(EmailDetails email);
> > >  }
> > > }
> >
> > > Then:
> >
> > > class EmailPresenter {
> > >  interface Display {
> > >HasText getSubjectLabel();
> > >HasText getBodyLabel();
> > >HasClickHandlers getReplyButton();
> > >// etc...
> > >  }
> >
> > >  ...
> > > }
> >
> > > So, do I just have a bad design idea here?  I don't want my
> > > MainPresenter.Display implementation instantiating EmailPresenters...
> >
> > > How about changing
> > > MainPresenter {
> > >  interface Display {
> > >...
> > >void clear();
> > >void addEmailPresenter(EmailPresenter email);
> > >  }
> > > }
> >
> > > Then the Display picks the Displays for the sub-Presenters...  Yeah,
> > > this is making some sense now.  Does this sound about right to others?
> >
> > > Thanks for the help!
> >
> > > -nathan
> >
> > > On Aug 23, 9:53 pm, Ian Bambury  wrote:
> > > > Hi Nathan,
> > > > I think all you need is a clear() and an addLine(String text).
> >
> > > > The presenter clears the display and loops through the headers adding
> > > lines
> > > > as it goes. If you need to respond to clicks, then add a click
> handler
> > > > parameter to the addLine method.
> >
> > > > Or am I missing something here?
> >
> > > > Ian
> >
> > > >http://examples.roughian.com
> >
> > > > 2009/8/24 Nathan 
> >
> > > > > Hello everyone.
> >
> > > > >  I watched Ray's talk, and have been reworking my project to follow
> > > > > many of his suggestions/standards, and have been quite happy with
> the
> > > > > results.  Today, however, I ran into a small problem.  I am making
> a
> > > > > website that has a layout fairly similar to an email program --
> that
> > > > > is, there are a variety of buttons/widgets/whatever in the
> interface,
> > > > > plus a set of some number of rows in a table, essentially.  (Email
> > > > > header info, basically?).  Here's the Presenter/Display idea:
> > > > >  class ExampleEmailPresenter {
> > > > >interface Display {
> > > > >  HasClickHandlers getComposeNewEmailButton();
> > > > >  ... various other buttons
> >
> > > > >  HasValue getSearchEmailField();
> > > > >  ... etc -- all this makes sense to me, and I've done it on my
> > > > > less complex pages and it works
> >
> > > > >  // Now, how do you handle the display of a set of emails?
> > > > >  // ArrayList getEmailDisplays
> > > > > () // ?
> > > > >  // HasListOfValue getEmailOverviewList(); // a

Re: When run jsp in GWT 1.7, error occurred "Syntax error, parameterized types are only available if source level is 1.5"

2009-08-24 Thread Rajeev Dayal
I believe this is the issue that you guys are running into:
http://code.google.com/p/google-web-toolkit/issues/detail?id=3557

We're trying to see what happened with this issue. If the patch never got
committed, we'll schedule the patch for the next release of GWT.

A workaround is provided in the issue details.

On Sun, Aug 23, 2009 at 4:45 PM, DaveS  wrote:

>
> Are you using maven? If so check your POM for the compiler settings
> for the maven-compiler-plugin to make sure the java version  is set to
> 1.5 or above.
>
> If not then there must be some equivalent setting that governs the
> java-version compatibility of the GWT java-to-js compiler
>
> On Aug 23, 10:45 am, betterdanielding 
> wrote:
> > When I'am running jsp in GWT 1.7, the error occurred:
> >
> > "Syntax error, parameterized types are only available if source level
> > is 1.5"
> >
> > I have set the servlet parameters in "web.xml" and set the Eclipse
> > project JRE level, but it doesn't work.
> >
> > Can any one help?
> >
> > 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: Debuger problem , Eclipse plugin , GWT team attention / Expression / Watch

2009-08-24 Thread Sumit Chandel
Hi Aladdin,
I just debugged the following code snippet:

public void onModuleLoad() {
  Element e = DOM.getElementById("mydiv");
  String myHTML = e.toString();
  Window.alert(e.toString());
  Window.alert(myHTML);
}

I was able to add a watch to the expression e.toString(), inspect the
e.toString() assignment in the code snippet and inspect the myHTML variable.
The alerts also both fired and displayed the same text ([object]). The
element "mydiv" is a div that I defined in my host HTML page.

Is there anything I'm missing to reproduce what you saw?

Thanks,
-Sumit Chandel

On Fri, Aug 21, 2009 at 12:37 PM, Aladdin  wrote:

>
> Hi
>
> I notice a bug in GWT / Eclipse if you have a this code
>
> Element e = DOM.get... //Some element
>
> Now try to add a watch to this
>
> "e.getString()"
>
> this is the error that I'm getting (in the Expression window)
>
> Method "getString" with signature "()Ljava/lang/String;" is not
> applicable on this object
>
> I could do something like this
>
> String myHTML=e.getString(); // then I can add a watch !
>
> I can add a watch to "e" but not any sub methods !
>
> is this a bug or I'm making something wrong ?
> >
>

--~--~-~--~~~---~--~~
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 capture screenshot for active dialog box without background?

2009-08-24 Thread mars1412

maybe you should ask on a Selemium list

On Aug 24, 4:11 pm, keven  wrote:
> is there any idea?
--~--~-~--~~~---~--~~
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 get Image from ImageBundle by String?

2009-08-24 Thread mars1412

but there are 3rd party apis to do this

On Aug 24, 10:55 am, Paul Robinson  wrote:
> Reflection is not supported in GWT.
>
> 李静 wrote:
> > hi,
> > maybe you can use Reflection ;
> > just like:
> > Class target = ICONS.getClass();
> > Method m = target.getMethod(methodName, String.class);
> > m.invoke(ICONS, parameters...);
> > 2009/8/23 barclay allen  > >
>
> > I have an image bundle setup.
>
> > public static final MyIcons ICONS = GWT.create(MyIcons.class);
>
> > I can get the image with this.
> > ICONS.smiley_face().createImage()
>
> > How can I dynamically get the smiley_face image by passing a string
> > "smiley_face"?
>
> > --
> > 李静
>
>
--~--~-~--~~~---~--~~
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: When run jsp in GWT 1.7, error occurred "Syntax error, parameterized types are only available if source level is 1.5"

2009-08-24 Thread Sri

Are you using websphere? I have seen that error before when working
with websphere. You must be using generics (like ArrayList) in
your jsps, and websphere doesn't seem to allow that unless you change
some setting..

This definitely has nothing to do with GWT. I would recommend
searching Websphere forums for this..


On Aug 23, 5:45 am, betterdanielding 
wrote:
> When I'am running jsp in GWT 1.7, the error occurred:
>
> "Syntax error, parameterized types are only available if source level
> is 1.5"
>
> I have set the servlet parameters in "web.xml" and set the Eclipse
> project JRE level, but it doesn't work.
>
> Can any one help?
>
> 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: Is GWT 1.7 compatible with JSPs using Java 1.5 features?

2009-08-24 Thread Rajeev Dayal
I believe this is the issue that you're running into.
http://code.google.com/p/google-web-toolkit/issues/detail?id=3557

We're trying to see what happened with this issue. If the patch never got
committed, we'll schedule the patch for the next release of GWT.

A workaround is provided in the issue details.

On Fri, Aug 21, 2009 at 1:48 PM, Steve Nies  wrote:

>
> Please forgive this newbie post but I am under extreme schedule
> pressure and cant find an answer anywhere on the web.  Can anyone tell
> me if JSPs using Java 1.5 features can now run under hosted mode
> within Eclipse 3.4?  If so would someone please post a how-to?  Any
> help would be greatly appreciated - thanks in advance.
> >
>

--~--~-~--~~~---~--~~
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: Adding white spaces to my xml

2009-08-24 Thread Rahul

Hi,
Confirmation, i opened my generated xml in XML notepad 2007, it added
white spaces automatically and then i saved and then send to the
application, it was giving me the desired output

how should i add white spaces to my xml in gwt? also would i need to
add it on server side when i am saving the modified xml?

Sincerely,
Rahul

On Aug 24, 11:22 am, Rahul  wrote:
> Hi,
> My gwt application modifies an xml document, and sends it to another
> application where the output is generated. Now for parsing with gwt, i
> had to remove the white spaces in it because if i didnt it was givin
> me an error.
>
> Now my application wants my generated xml to have whitespaces in it,
> any idea how can I add whitespaces to my xml document through gwt?
>
> Sincerely,
> Rahul
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



problem use a list as persistent

2009-08-24 Thread smn

Hi, I tried to make a list persistent in my class

@Persistent
List m_keys;


m_Keys = new ArrayList();


however, I find that no matter what changes I made to m_Keys, it will
not be updated in the database, when I retrieve the entry next time,
m_Keys is always null.

I don't have problem with other fields which are simple type like
Long, String etc.

Any ideas?

Thanks a lot!

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



Accessing CouchDB from GWT using JCouchDB library

2009-08-24 Thread Andrius Juozapaitis

 Hey,

I've been toying around with the idea of using CouchDB [1] as a back-
end store for my GWT applications, as it seems like a very good match
- you get a flexible document structure, and easy mapping of CouchDB
documents to Java domain objects using simple annotations [2]. I also
use Spring framework in my application layer.
The problem I have is that a number of JCouchDB [3] library's helper
classes, i.e., the ones that are used to return collections of
documents with paging properties aren't serializable from GWT point of
view, as they contain Object references. If I understand correctly, I
can substitute the implementation of these classes by using a module
descriptors, but I'm kinda lost here, because my new implementation
doesn't seem to be picked up by the GWT compiler. I guess I could just
rewrite the library, as the license permits it, but it's kinda work in
progress, so I'd hate to have to maintain a separate branch by myself.
I have the following module descriptor:


jcouchdb.gwt.xml
http://google-web-toolkit.googlecode.com/svn/releases/1.7/
distro-source/core/src/gwt-module.dtd">

  
   

   
   
... skipped ...
   
   

   
   

   
   
   
   
   
   
   



and my application module is as follows:



   
   

   
 ... skipped ...





Any ideas what I am doing wrong? Any sample code to refer to? I did
read the module development guide [4], but so far, no luck. I could
also upload my project somewhere, it uses maven and is pretty much
self contained, let me know if it's a good idea.

Thanks in advance,
Andrius

[1] http://couchdb.apache.org/
[2] http://code.google.com/p/jcouchdb/wiki/Tutorial
[3] http://code.google.com/p/jcouchdb/
[4] 
http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html#DevGuideModules

--~--~-~--~~~---~--~~
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: [appengine-java] Overriding default GWT blue theme

2009-08-24 Thread Toby Reyelts
[bcc google-appengine-j...@googlegroups.com]
[+google-web-tool...@googlegroups.com]

Hey Robin,

You'll probably get a quicker answer for this on the GWT users group.

2009/8/24 Zhi Le Zou 

> Hi,
> As you know, the default theme is blue, i.e. the borders or tabs are all in
> blue. So is there a quick way to change the blue color into another color
> such as "green"? I mean changing everything into green wherever currently
> shown in blue.
>
> Thanks a lot.
>
> --
> Best Regards
> Robin (邹志乐)
>
> >
>

--~--~-~--~~~---~--~~
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: MVP/GWT question

2009-08-24 Thread Nathan

I'm not sure I follow.  My complex object is three things - a complex
data structure, a complex presenter, and a complex view.  The Widget
aspect is just one implementation of the view, and I do understand
that it is just a widget.  However, my MockDisplay is not a widget,
and in my unit tests, there is no widget.  My question is about how
the parent and child Presenters and parent and child Views relate/
interact with each other.  Your comment seems to be about how a View
would add a child View, but who would be calling addSearchBar on a
view?  The parent Presenter?  That doesn't make sense, nor does it
decouple.  As such, your example is just adding to my confusion, not
clearing it up... :/

Thanks for tryin', though!

-nathan

On Aug 24, 8:35 am, Christian Goudreau 
wrote:
> You have to see your complex object as another Widget. On the container, you
> simply add this complex widget that has his listeners and maybe other
> complex widget in it. Little example for the view :
>
>     public void addSearchBar(WidgetDisplay display) {
>         removeSearchBar();
>         searchBar = display.asWidget();
>         seekBarPanel.add(searchBar);
>
>     }
>
>     public void removeSearchBar() {
>         if (searchBar != null) {
>             searchBar.removeFromParent();
>         }
>     }
>
> If you have to register for changes in the main container, since you have an
> event bus, you don't have to passe everything up, you only have to register
> for events that your hoping for and then you act according to it, so it's
> not a problem if you decouple everything in small pieces.
>
> By the way, I'm using the framework Presenter.
>
> Christian
>
> On Sun, Aug 23, 2009 at 10:44 PM, Nathan  wrote:
>
> > Hmm.  Okay, and since my case has a complex row (not just String/
> > ClickHandler -- but a whole Presenter/Display for an Object that has
> > multiple/complex details.  So...:
>
> > class MainPresenter {
> >  interface Display {
> >  // easy stuff
>
> >  void clearEmails();
> >  void addEmail(EmailDetails email);
> >  }
> > }
>
> > Then:
>
> > class EmailPresenter {
> >  interface Display {
> >    HasText getSubjectLabel();
> >    HasText getBodyLabel();
> >    HasClickHandlers getReplyButton();
> >    // etc...
> >  }
>
> >  ...
> > }
>
> > So, do I just have a bad design idea here?  I don't want my
> > MainPresenter.Display implementation instantiating EmailPresenters...
>
> > How about changing
> > MainPresenter {
> >  interface Display {
> >    ...
> >    void clear();
> >    void addEmailPresenter(EmailPresenter email);
> >  }
> > }
>
> > Then the Display picks the Displays for the sub-Presenters...  Yeah,
> > this is making some sense now.  Does this sound about right to others?
>
> > Thanks for the help!
>
> > -nathan
>
> > On Aug 23, 9:53 pm, Ian Bambury  wrote:
> > > Hi Nathan,
> > > I think all you need is a clear() and an addLine(String text).
>
> > > The presenter clears the display and loops through the headers adding
> > lines
> > > as it goes. If you need to respond to clicks, then add a click handler
> > > parameter to the addLine method.
>
> > > Or am I missing something here?
>
> > > Ian
>
> > >http://examples.roughian.com
>
> > > 2009/8/24 Nathan 
>
> > > > Hello everyone.
>
> > > >  I watched Ray's talk, and have been reworking my project to follow
> > > > many of his suggestions/standards, and have been quite happy with the
> > > > results.  Today, however, I ran into a small problem.  I am making a
> > > > website that has a layout fairly similar to an email program -- that
> > > > is, there are a variety of buttons/widgets/whatever in the interface,
> > > > plus a set of some number of rows in a table, essentially.  (Email
> > > > header info, basically?).  Here's the Presenter/Display idea:
> > > >  class ExampleEmailPresenter {
> > > >    interface Display {
> > > >      HasClickHandlers getComposeNewEmailButton();
> > > >      ... various other buttons
>
> > > >      HasValue getSearchEmailField();
> > > >      ... etc -- all this makes sense to me, and I've done it on my
> > > > less complex pages and it works
>
> > > >      // Now, how do you handle the display of a set of emails?
> > > >      // ArrayList getEmailDisplays
> > > > () // ?
> > > >      // HasListOfValue getEmailOverviewList(); // a
> > > > new Has* idea?
> > > >      // Something I'm not thinking of? (this is what I'm assming)
> > > >    }
>
> > > >    ArrayList emails;
> > > >    // Then register on the EventBus to receive alerts when the email
> > > > list is updated, and call:
> > > >    public emailListUpdated() {
> > > >      // This would be code to connect up the Email list Displays to
> > > > the emails.
> > > >    }
> > > >  }
>
> > > >  Basically, I can think of a few ways that I could connect them up,
> > > > but every way I think of feels like a hack, like I'm missing the
> > > > really smooth, clean way to have a list of something.  I mean, even if
> > > > it's just an unknown number of Strings you want 

Adding white spaces to my xml

2009-08-24 Thread Rahul

Hi,
My gwt application modifies an xml document, and sends it to another
application where the output is generated. Now for parsing with gwt, i
had to remove the white spaces in it because if i didnt it was givin
me an error.

Now my application wants my generated xml to have whitespaces in it,
any idea how can I add whitespaces to my xml document through gwt?

Sincerely,
Rahul
--~--~-~--~~~---~--~~
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: XML Schema or DTD for GWT configuration files

2009-08-24 Thread Eric



On Aug 23, 6:07 am, Jarda  wrote:
> In Eclipse it is under Window -> Preferences -> XML -> XML Catalog
>

Is there an officially suggested Public ID or System ID?  I guess not;
otherwise all the module.gwt.xml files in the system would use it.
Eclipse requires one to install the DTD in the catalog.  What would
be best?

Respectfully,
Eric Jablow
--~--~-~--~~~---~--~~
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: Creating a plugin framework with GWT

2009-08-24 Thread kilaru

hi Dave,

I have the same problem. i need to show content on the center position
of the panel, when user clicks on tree node displayed in left side.

I have seen the code of GWT-Ext showcase example and trying to
implemented this. I have stored information in the

database along with full classname.

but problem is i am unable to instantiate that class in the client
side. whose name is stored as string.

if we solve this. i can send you the code

Thanks and Regards,

kilaru




On Aug 24, 3:23 pm, Dave  wrote:
> Cheers Nathan,
>
> That's a useful response.  I didn't feel happy trying to send the UI
> classes across RPC, for the reasons you stated.  I'm still looking at
> ways, where I will let developers 'produce' plugins that consist of a
> back and frontend. So the frontend widget/java script can easily be
> loaded, although I like your HTML suggestion.
>
> On Aug 22, 9:06 pm, Nathan Wells  wrote:
>
>
>
> > Dave,
>
> > the first thing need to know is that you're attempting to break some
> > core rules. Widgets can only be created on the client-side. There are
> > numerous reasons for this, but essentially it boils down to this: RPC
> > calls should be about the model... data transfer, not UI component
> > transfer. That's not to say that what you're talking about is
> > impossible, it's just not going to be as pretty as you would like it
> > to be. You can make it so that your TreeItem contains an "HTML"
> > widget. Then you would probably provide some hook on the server-side
> > for someone to specify what that html is.
>
> > Again, this breaks the rules, though
>
> > On Aug 21, 4:56 am, Dave  wrote:
>
> > > Hi,
>
> > > I am trying to figure out how to create a pluginframeworkwith GWT,
> > > let me explain
>
> > > I have created an application that has a menu on the left side and a
> > > form on the right site of the screen.  The menu is a tree and the form
> > > is a vertical panel (think of the example mail application).
>
> > > I have created a new class called CustomTreeItem that extends
> > > TreeItem.
> > > My custom class contains a member variable which is a vertical panel.
> > > When a user click on a instance of CustomTreeItem in the menu the
> > > vertical panel is displayed on the right site of the screen.
>
> > > I would like to extend this by allowing developers to produce custom
> > > forms. i.e allow developers to add in there own CustomTreeItems,
> > > without having to recompile with my code.
> > > My inital plan was to have a directory in the classpath, so at runtime
> > > a class loader on the server side would look for any classes that were
> > > derived from my CustomTreeItem in that folder and load them.
> > > The client would make an RPC request for the tree items, so it could
> > > build up the Tree.  I quickly discovered that VerticalPanel couldn't
> > > be serialized (I assume because this is translated to javascript), so
> > > this wouldn't work.
>
> > > Is it possible for developers to create a vertical panel, and then
> > > translate it to js (storing it somewhere on the server)
> > > Then within my application if I know the name of the js/verticalpanel
> > > instance, load in and construct the panel?
>
> > > Any info/ideas/suggestions would be appreciated
>
> > > Cheers- 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: chrome/safari error

2009-08-24 Thread Gordon

Thank you for the hint.

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



Accession session attribute and request parameters from EntryPoint

2009-08-24 Thread mykol

Hi everyone,

Just starting with GWT. My page design heavily depends on
HttpServletRequest parameters and HttpServlerSession attributes. How
do I access this from my EntryPoint class?

Thanx!

mykol

--~--~-~--~~~---~--~~
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: XML to Pdf

2009-08-24 Thread David

Hi,

Generate the PDFs on the serverside with any framework you want. GWT
has nothing to do with it, except that you will need to use the
RequestBuilder to get the file downloaded (with content disposition
header, to force a save as dialog).

David

On Mon, Aug 24, 2009 at 4:02 PM, Rahul wrote:
>
> Hi,
> Is there any project in gwt which would help me create xml reports to
> pdf
> if there isnt, can anyone guide me how can I integrate my gwt project
> so that i can have pdf reports
>
> Thanks a lot,
> Rahul
> >
>

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



TabIndex not working on Firefox through GWT code

2009-08-24 Thread mukta

Hi all,
I am using GWT 1.6 for developing web application.
In our application, I have one login panel. When user adds user name
in the "User Name Textbox" , then cursor should go to "password
textbox", after pressing 'TAB' key from keyboard.
Above mentioned scenario is working on Interner Explorer, But same is
not working with Firefox browser.
In firefox instead going to the "password text-box" cursor control is
going in the address-bar area of browser.

Any pointers in this regard will be appreciated.

Thanks in advance,

Mukta



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



supported DOCTYPE?

2009-08-24 Thread r4nd

What DOCTYPEs does GWT officially support as of v1.7?  I noticed third
party modules like GXT requires HTML 4.0 Transitional.  Our project is
currently using XHTML 1.0 Strict.  I am curious what GWT developers
recommend for working with GWT.

--~--~-~--~~~---~--~~
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 1.7 Now Available

2009-08-24 Thread Ganesh

Hi,
I migrated from GWT 1.5.0 to GWT 1.7 and I am facing a lot of issues
in serialized objects being passed via RPC. Support to java.util.List
seems to have been withdrawn and my existing code fails. Please do let
me know if this is a know are and how to take care of the same??

My code compiles fine, there are NO compilation erros. But during
runtime (via the hosted mode), I don't see my page, I just see the
"Loading..." status.

I have an object "CustomHashMap" which extends the "java.util.HashMap"
inside the client package. Now the input for this class is (String,
Object). This was working earlier in GWT 1.5, but now with GWT 1.7, it
fails. I have now changed the method signature to (String,
Serializable), now it compiles, but the same error said above occurs
at runtime.

Cheers,
Ganesh

On Jul 23, 3:54 am, Bruce Johnson  wrote:
> Hi everyone,
>
> (Most people are probably already quite aware of the new GWT 1.7 release,
> but we wanted to send out an "official" announcement we could pin to the top
> of the message list.)
>
> GWT 1.7 is a minor update that adds better support for Internet Explorer 8,
> Firefox 3.5, and Safari 4. Each of these new browser versions introduced at
> least one change that negatively impacted compiled GWT modules, so we
> recommend that you do update to GWT 1.7 and recompile your existing
> applications to ensure that they work with the latest versions of browsers.
> No source code changes on your part should be required.
>
> Normally, a minor update such as this would have been named 1.6.5 (the
> previous latest version of GWT was 1.6.4), but we did add the value "ie8" to
> the "user.agent" deferred binding property, which could impact projects
> using custom deferred binding rules that are sensitive to that property.
> Thus, we went withGWT 1.7 rather than GWT 1.6.5, to indicate that you may
> need to pay attention to that change. Details are in the release notes.
>
> In every other respect, this is just a bugfix release, so in the vast
> majority of cases, the update-recompile process should be nearly effortless.
>
> Download 
> here:http://code.google.com/p/google-web-toolkit/downloads/list?can=1&q=GW...
>
> Cheers,
> Bruce, on behalf of your friendly GWT 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: 求助,无法在eclipse3.5中导入samples里的项目

2009-08-24 Thread keven
我也来报到一下,不知道玩GWT的中国人多吗?

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



Server Push in GWT

2009-08-24 Thread Amit Jha
Can anyone point me to some implemented examples of Server Push using GWT
and Tomcat?
I see there are some decent posts written on it, however could not see an
example code implementation yet.

Thanks
Amit

--~--~-~--~~~---~--~~
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: Refresh page on loading

2009-08-24 Thread Rahul

Hi Ian,
Sorry for the late reply, I was out of office for last few days

here is part of the code
for ( j = 0; j < URLs.getLength()-1; j++)
{
v1[j] = new VerticalPanel();
String str = 
URLs.item(j).getAttributes().toString();
//  System.out.println(str);

tabpanel.add(v1[j],str.substring(13,16));

fucn(v1[j],str.substring(13,16),drag);

v1[j].setTitle(str.substring(13,16));
b1 = new Button ("Submit");
b1.addClickHandler(handler2);
v1[j].add(b1);


//end of for loop
}


the button b1 is an public button

Sincerely,
Rahul

On Aug 20, 1:08 pm, Ian Bambury  wrote:
> Hi Rahul,
> That seems very odd to me. If you want to post of send me some code, I'll
> have a look. I wouldn't know how to make my code do that if I wanted it to
> :-)
>
> Ian
>
> http://examples.roughian.com
>
> 2009/8/19 Rahul 
>
>
>
> > Hi Ian,
>
> > Yes sure i can give an example from my code.
> > I have a tab panel that has 7 tabs. Each tab has 10 composite widgets.
> > Each composite widget is composed of a label and textbox. I creating
> > these widgets and first adding them to all a vertical panel. Then at
> > last i am adding an Submit button to each vertical panel. and then to
> > the tabpanel.
>
> > the first time i run my application, i see the submit button on the
> > top of each tab above all the composite widgets, when i refresh it, it
> > comes to the bottom, below all the composite widgets.
>
> > Now the cascading tabs: Some of the composite widgets when click open
> > into more composite widgets. I created those widgets as separate
> > tabpanel. and did the same thing as earlier. Now the first time the
> > program runs, the composite widgets for example label 3 (thinking i
> > have ten composite widgets from Label 1 to label 10 and they should be
> > placed in order from 1 to 10) is placed after label 10. when refreshed
> > once, it comes to its right place which is after label2 and before
> > label4.
>
> > I hope I was more clearer this time, if not, please ask, ill elborate
> > more
>
> > On Aug 19, 2:36 pm, Ian Bambury  wrote:
> > > Hi Rahul,
> > > For some reason I didn't get the email Chad has replied to.
>
> > > I'm sure there must be a way to create the layout you want in the right
> > > order first time. Do you have an example?
>
> > > Refreshing should create exactly the same effect as running it the first
> > > time (all other factors being equal - i.e. you are not setting a bookmark
> > or
> > > anything like that)
>
> > > Also, I'm not sure I understand what you mean by 'cascading tabs'.
>
> > > Ian
>
> > >http://examples.roughian.com
>
> > > 2009/8/19 Chad 
>
> > > > Rahul,
>
> > > > Instead of trying to refresh the page, you should probably defer the
> > > > loading of your buttons, labels, and tabs. Use a DeferredCommand for
> > > > making the call to the method(s) for creating those widgets. It sounds
> > > > like they are loading before something that they rely on loads.
> > > > Although, this may have no effect whatsoever. :-/
>
> > > > HTH,
> > > > Chad
>
> > > > On Aug 18, 9:32 am, Rahul  wrote:
> > > > > Hi,
> > > > > I am loading buttons in individual tabs of a tab panel. In the tab
> > > > > panel i have some labels in order and also some cascading tabs in
> > > > > order.
> > > > > The first time the page is loaded, the buttons (which i want at the
> > > > > bottom) are at the top of each tab and the cascading tabs which i
> > want
> > > > > in order are at the bottom of each tab. But whenever i refresh the
> > > > > page once, everything comes to the place i want. So i figured that if
> > > > > i refresh the page once it has been loaded, i can get the widgets
> > > > > where i want them
>
> > > > > is this the right approach or theres a better way to do this ?
>
> > > > > On Aug 17, 11:06 pm, Ian Bambury  wrote:
>
> > > > > > Why do you want to reload the page as soon as it has just loaded?
> > > > > > Can't you just get it right the first time?
>
> > > > > > What do you want to happen the second time that didn't happen the
> > first
> > > > > > time?
>
> > > > > > Ian
>
> > > > > >http://examples.roughian.com
>
> > > > > > 2009/8/18 Rahul 
>
> > > > > > > HI Ian,
> > > > > > > thanks for replying
> > > > > > > i have started looking at some tutorials for javascript
> > > > > > > but i have some more confusion.
>
> > > > > > > all coding i did in gwt was in java in the client class, so for
> > this
> > > > > > > functionality also i need to code in the client class? or not? i
> 

Re: XML to Pdf

2009-08-24 Thread Rahul

Thanks David,
Being a novice in this, can you suggest some of the frameworks if can
do that for:
I know two of them:

a) Jasper reports
b) Apache FOP project

Though its not a direct GWT question, but as my GWT application wants
this functionality thanks for ur responses


On Aug 24, 10:21 am, David  wrote:
> Hi,
>
> Generate the PDFs on the serverside with any framework you want. GWT
> has nothing to do with it, except that you will need to use the
> RequestBuilder to get the file downloaded (with content disposition
> header, to force a save as dialog).
>
> David
>
> On Mon, Aug 24, 2009 at 4:02 PM, Rahul wrote:
>
> > Hi,
> > Is there any project in gwt which would help me create xml reports to
> > pdf
> > if there isnt, can anyone guide me how can I integrate my gwt project
> > so that i can have pdf reports
>
> > Thanks a lot,
> > Rahul
--~--~-~--~~~---~--~~
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: Why do we define AsyncCallbacks inline?

2009-08-24 Thread Bakul

Jason,

Does it mean I need to create a Action class for all kind of a backend
call?

I mean, suppose I have three function call to back end from Async
Interface:

   1. addItem(..., AsyncCallBack callBack);
   2. updateItem(..., AsyncCallBack callBack);
   3. deleteItem(..., AsyncCallBack callBack);

In this case, do I need to create three Aciton classes which extends
RetryAction?

-Bakul


On Aug 23, 9:08 am, Jason Morris  wrote:
> I would personally say that creating top-level or inner classes for the 
> response of an async
> callback (or an event) is often the best way to do it.
>
> Encapsulation is one of the main reasons we use OO languages because it 
> encourages re-use. If you
> take a look at my blog post 
> here:http://lemnik.wordpress.com/2008/07/17/a-useful-gwt-rpc-pattern-ive-b...
> You'll see one of the ways in which you can leverage encapsulate logic to 
> make your code more
> friendly. Make the RetryAction a Command object and you'll really start to 
> see what I mean.
>
> I mostly find that in the long run it works better to avoid inline callbacks, 
> since it provides
> better separation of concerns, and acts more like the Command pattern (and 
> you can mix in a Command
> Processor to produce more complex logic).
>
> Just my 2c worth.
> Regards.
> //Jason
>
>
>
> jack wrote:
> > Good question - lol.
>
> > I think maybe we're not quite using the same terminology - maybe we
> > are.
>
> > By inner class I mean something like ...
>
> > public MyOuterClass
> > {
>
> > }
>
> > On Aug 23, 1:34 am, Jan Ehrhardt  wrote:
> >> It's common practice to use inner classes in Java for listeners or other
> >> simple things like callbacks.
> >> What you want to do in the case of a callback, is invoking a method after
> >> the the asynchronous RPC has been finished. The easiest solution would be,
> >> to put this method as an argument to the RPC method, but since Java has no
> >> closures, using inner classes is a nice solution. In Java 1.4, where no
> >> inner classes where available, people implemented the AsyncCallback
> >> interface in the class, which was calling the RPC method, so they could do
> >> something like:
>
> >> service.getSomthing(this);
>
> >> But with Java 5 inner classes have become the prefered way.
> >> Sure, you can also create your own class for this, but that's the worse
> >> practice, I think.
>
> >> What would be the best solution for this, you think?
>
> >> Regards
> >> Jan Ehrhardt
>
> >> On Sat, Aug 22, 2009 at 10:43 PM, jack  wrote:
>
> >>> In every RPC example I've seen, AsyncCallback are all defined inline?
> >>> Why is this so?  What are the advantages?
> >>> Thanks in advance
--~--~-~--~~~---~--~~
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: 求助,无法在eclipse3.5中导入samples里的项目

2009-08-24 Thread David

Translation to English (by Google):
"I also came to report what I do not know many people in China play GWT do?"

Still sounds gibberish to me :-)


2009/8/24 keven :
> 我也来报到一下,不知道玩GWT的中国人多吗?
>
> keven
> >
>

--~--~-~--~~~---~--~~
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: Forcing a TextArea to scroll

2009-08-24 Thread Aximilli302

Works beautifully. Thanks!

On Aug 21, 1:39 pm, mdwarne  wrote:
> I'm not sure about a textarea.
>
> But you can do this using a ScrollPanel.
>
> You can add a FlowPanel to your ScrollPanel.
> All your text messages can be Label Widgets that you Add to  your Flow
> Panel.
>
> After adding the Label Widget you can call:
>
>         scrollPanel.scrollToBottom();
>
>  Or...
>      scrollPanel.ensureVisible(someWidget)
>
> I am doing something similar with a scrollable form,  if there is a
> data entry error, I can scroll to the field in error and display it to
> the user.
>
> Thanks,
> Mike.
>
> That will force the
>
> On Aug 20, 3:53 am, Aximilli302  wrote:
>
>
>
> > Hello all!
>
> > I am trying to make a text area scroll. I am trying to simulate a type
> > of chat room envirement, where the user types into a text box, presses
> > enter, then the text apears into a read only text area, with the text
> > aera auto scrolling to the bottom. Is there a way to make the read
> > only text area scroll?
>
> > Here is some of my code.
>
> >         private TextBox text = new TextBox();
> >         private Button enter = new Button("Enter");
> >         private TextArea textArea = new TextArea();
>
> > textArea.setReadOnly(true);
> >  textArea.setVisibleLines(5);
>
> > text.addKeyPressHandler(new KeyPressHandler){
> >    public void onKeyPress(KeyPressEvent event) {
> >        if (event.getCharCode() == KeyCodes.KEY_ENTER) {
> >          enterClicked();
> >      }
> >   }
> >    });
>
> > private void enterClicked(){
> >   String previousText =  textArea.getText();
> >    String newText = previousText + "\n" + text.getText();
> >          textArea.setText(newText);
> >         text.setText("");
> >         text.setFocus(true);
> >                 }
>
> > Any help would be awesome. 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: 求助,无法在eclipse3.5中导入samples里的项目

2009-08-24 Thread keven
我也来报到一下,不知道玩GWT的中国人多吗?

keven
--~--~-~--~~~---~--~~
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 capture screenshot for active dialog box without background?

2009-08-24 Thread keven

is there any idea?
--~--~-~--~~~---~--~~
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: 求助,无法在eclipse3.5中导入samples里的项目

2009-08-24 Thread David

People,

Can we maybe stick to English in this newsgroup ? This sounds like
Chinese to me!

David

2009/8/23 holeo :
> 我在eclipse3.5中,安装有google eclipse 3.5 plug-ins.
> 使用 File -> Import... -> Existing Projects into Workspace 但无法导入gwt1.7里面的
> samples里的项目.提示:No projects are found to import.
> 怎么解决这个问题呢?
> >
>

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



XML to Pdf

2009-08-24 Thread Rahul

Hi,
Is there any project in gwt which would help me create xml reports to
pdf
if there isnt, can anyone guide me how can I integrate my gwt project
so that i can have pdf reports

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



Re: Add a style dependent name to a TreeItem

2009-08-24 Thread Jarda

This looks like a bug to me.

On Aug 19, 4:51 pm, hriess  wrote:
> Hi,
>
> I want to add a dependent style name to a TreeItem:
>                 TreeItem treeItem = new TreeItem();
>                 treeItem.addStyleDependentName("inactive");
>                 treeItem.setText(shopConstants.shoppingcart());
>                 treePanel.addItem(treeItem);
>
> The css:
> .gwt-TreeItem-inactive {
>         color: #c0c09a;
>
> }
>
> The result is:
> 
>      id="gwt-uid-6">Warenkorb
> 
>
> The css class was added to the enclosing div and the css selector
> doesn't work.
> What is wrong with my code?
> I want to mark tree items (links) as inactive - or is there is a
> better way to do 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
-~--~~~~--~~--~--~---



SmartGWT (or any other GWT-compatible JAR) integration

2009-08-24 Thread CI-CUBE

Hi,

I'm fighting for several hours :-( but still get this 'No source code
is available for type  ...' error. From my
setup on the home office I know it works but until now I did not find
the essential piece to be added to the build/source path.

I did successfully integrate my own GWT-based JAR. But in that case I
have the sources. Everything works as expected. In case of SmartGWT I
only have those two JARs.

Can anyone please tell me how to integrate them in the Eclipse
settings and/or .classpath to remove the error? Thx alot in advance!

   Ekki

SmartGWT 1.2, GWT 1.7, App Engine 1.2.2, Eclipse 3.5, JRE 1.6.0_13
--~--~-~--~~~---~--~~
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: VerticalSplitPanel doesn't show widgets

2009-08-24 Thread Ian Bambury
No.
The problem with the OP is that they are setting the height of the VSP to
100% of nothing. The VSP is behaving correctly by being 0px high.

Ian

http://examples.roughian.com


2009/8/24 Michael Welter 

>
> Naw, this happens to me as well. If you resize the hosted browser with
> the mouse then it will display normally. We need some way of refreshing
> the root panel after a series of redraws.
>
> 李静 wrote:
> > well, you sure it dosen't have compile error?
> > see your constructor method!!
> >
> > 2009/8/23 google400 mailto:ali.rac...@gmail.com>>
> >
> >
> > This is some very simple code that I'm using to try showing a
> > VerticalSplitPanel, but the widgets I add don't show. The divider
> > thing of VerticalSplitPanels does show however the widgets I add
> > don't.
> >
> > Code:
> >
> > public class MyView extends Composite
> > {
> > private VerticalSplitPanel mainPanel=new VerticalSplitPanel();
> >
> > public CountryFilterView()
> > {
> >
> > mainPanel.setSize("100%", "100%");
> > mainPanel.setSplitPosition("50%");
> > // Add some content
> > String randomText = "This is some text to show how the
> > contents on either "
> > + "side of the splitter flow. "
> > + "This is some text to show how the contents on either "
> > + "side of the splitter flow. "
> > + "This is some text to show how the contents on either "
> > + "side of the splitter flow. ";
> > mainPanel.setTopWidget(new HTML(randomText));
> > mainPanel.setBottomWidget(new HTML(randomText));
> > initWidget(mainPanel);
> > }
> > }
> >
> > Am I doing something wrong, or is VerticalPanel just very annoyingly
> > buggy?
> >
> >
> > --
> > 李静
> >
> > >
>
> >
>

--~--~-~--~~~---~--~~
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: Connecting to SQL Server

2009-08-24 Thread Lothar Kimmeringer

javaidee schrieb:

[Connection-problem with MS SQL]

> Any help in this regard please?

Try comp.lang.java.database or the corresponding newsgroup
covering MS SQL. The question has nothing to do with GWT.


Regards, Lothar

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



Re: Connecting to SQL Server

2009-08-24 Thread javaidee

Any help in this regard please?

Thanks.

On Aug 20, 2:59 pm, javaidee  wrote:
> Hi I am new to GWT.
>
> I have created a simple example to fetch data from database at Server
> and format/display that at the client.
>
>         public List getEmployeeNamesFromDB (String itemsToMatch)
>         {
>                 ArrayList completionList = new ArrayList();
>                 Connection con = null;
>                 String connectionUrl = 
> "jdbc:microsoft:sqlserver://127.0.0.1:1433;
> DatabaseName=TEST;";
>
>                 try
>                 {
>                         
> Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
>                         con = DriverManager.getConnection(connectionUrl, 
> "TEST", "test");
>                         ResultSet rs = 
> con.createStatement().executeQuery("SELECT TEXT FROM
> TEMP");
>                         if (rs != null & rs.next())
>                         {
>                                 completionList.add(rs.getString("TEXT"));
>                         }
>                 }
>                 catch (ClassNotFoundException cse)
>                 {
>                         System.out.println("Error locating driver class for 
> connection.");
>                         cse.printStackTrace();
>                 }
>                 catch (SQLException se)
>                 {
>                         System.out.println("Error opening a SQL Server 2005 
> connection.");
>                         se.printStackTrace();
>                 }
>                 finally
>                 {
>                         if (con != null)
>                         {
>                                 try
>                                 {
>                                         con.close();
>                                         con = null;
>                                 }
>                                 catch (SQLException se)
>                                 {
>                                         System.out.println("Error closing the 
> connection.");
>                                         se.printStackTrace();
>                                 }
>                         }
>                 }
>                 return completionList;
>         }
>
> I am trying to connect to SQL Server 2005, this code perfectly works
> fine when I use it outside the GWT Server Class. When I use it inside
> the Server class by calling this method through the client using RPC
> mechanism I get the following error.
>
> java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]
> Error establishing socket.
>         at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown
> Source)
>         at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown
> Source)
>         at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown
> Source)
>         at com.microsoft.jdbc.sqlserver.tds.TDSConnection.(Unknown
> Source)
>         at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown
> Source)
>         at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection
> (Unknown Source)
>         at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
>         at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
>         at java.sql.DriverManager.getConnection(Unknown Source)
>         at java.sql.DriverManager.getConnection(Unknown Source)
>         at gwt.server.GetNamesServiceImpl.getEmployeeNamesFromDB
> (GetNamesServiceImpl.java:66)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
> (RPC.java:527)
>         at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
> (RemoteServiceServlet.java:166)
>         at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
> (RemoteServiceServlet.java:86)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>         at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> 487)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1093)
>         at
> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
> (TransactionCleanupFilter.java:43)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1084)
>         at com.google.appengine.tools.development.StaticFileFilter.doFilter
> (StaticFileFilter.java:124)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1084)
>         at org.mortbay.jetty.servlet.ServletHandler.handle
> (ServletHandler.java:360)
>         at org.mortbay.jetty.security.SecurityHand

Re: Why do we define AsyncCallbacks inline?

2009-08-24 Thread Nathan Wells

Of all the things we do as developers, coming up with a name for an
AsyncCallback is probably not the most difficult :)

Overall, I'd say (of course, leaning on the wisdom of others) that
there are 2 factors involved with the choice of class location:

Visibility
Maintainability (i.e. Readability and Reusability)

Visibility will generally encourage you to increase coupling (i.e.
tend towards anonymous inners), while maintainability would encourage
decreased coupling. In reality, you can do it either way by throwing
the needed variables into the constructor or whatever. In reality, it
boils down to a pure styling thing, since javascript DOES have
closures, and I believe that the GWT compiler will make use of them in
this instance. I personally default to inner classes, unless I think
the Callback could be generic enough to be used by other classes/RPC
calls.

On Aug 24, 1:40 am, Jan Ehrhardt  wrote:
> Once again, the thing you want to do with the callback, is invoking a method
> after the request is finished. This can be done very easily with an
> annonymous inner class:
> public class OuterClass {
>
>   ...
>
>   public void methodForRequest(final int id) {
>
>     service.getSomething(id, new AsyncCallback() {
>
>       ...
>
>       onSuccess(Inter result) {
>         doSomething(id, result);
>       }
>
>     });
>
>   }
>
>   private void doSomething(int id, int result) {
>     ...
>   }
>
> }
>
> This example shows, why annonymous inner classes are great for this use
> case. You can tell the 'getSomething' method to invoke the 'doSomething'
> method on success. In other languages, you can use closures for such use
> cases. The other point is, that the 'id' variable can be passed to the
> 'doSomething' method as well.
> How would this look, if you're using a non-annonymous inner class or an
> outer class?
> Furthermore, non-annonymous class require a class name, so you've to think
> about a name for it. Do you really want this?
>
> Regards
> Jan Ehrhardt
>
> On Sun, Aug 23, 2009 at 5:57 PM, Damon Lundin wrote:
>
>
>
>
>
> > BTW, the terminology you are looking for is that the "inline" inner
> > class as you put is called an anonymous inner class while the inner
> > class that is defined on its own (not at the point of a method call)
> > but still inside the outer class is usually just called an inner class
> > but named inner class would also work too.  Both of these have been
> > available as in Java from the very beginning.
>
> > As for why, it is just a matter of taste.  It's sometimes a bit more
> > concise to just define an anonymous inner class inline, particularly
> > if the inner class code needs access to variables defined in the
> > calling method.  With an anonymous inner class you just have to define
> > the variables or parameters as final and they can be access in the
> > code of the inner class.  With a named inner class you have to define
> > extra member variable on the inner class to hold those variables and
> > probably a constructor that accepts them.
>
> > If you find that it results in a ton of code inside the inner class
> > that all indented, you could just move all that code into a method on
> > the outer class.  The code in the inner class can access methods and
> > methods of the outer class.  You can even reference methods and
> > methods of the outer class that have the same name as something in the
> > inner class by using the syntax: MyOuter.this.outerMethodCall().
--~--~-~--~~~---~--~~
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: MVP/GWT question

2009-08-24 Thread Christian Goudreau
You have to see your complex object as another Widget. On the container, you
simply add this complex widget that has his listeners and maybe other
complex widget in it. Little example for the view :

public void addSearchBar(WidgetDisplay display) {
removeSearchBar();
searchBar = display.asWidget();
seekBarPanel.add(searchBar);

}


public void removeSearchBar() {
if (searchBar != null) {
searchBar.removeFromParent();
}
}

If you have to register for changes in the main container, since you have an
event bus, you don't have to passe everything up, you only have to register
for events that your hoping for and then you act according to it, so it's
not a problem if you decouple everything in small pieces.

By the way, I'm using the framework Presenter.

Christian


On Sun, Aug 23, 2009 at 10:44 PM, Nathan  wrote:

>
> Hmm.  Okay, and since my case has a complex row (not just String/
> ClickHandler -- but a whole Presenter/Display for an Object that has
> multiple/complex details.  So...:
>
> class MainPresenter {
>  interface Display {
>  // easy stuff
>
>  void clearEmails();
>  void addEmail(EmailDetails email);
>  }
> }
>
> Then:
>
> class EmailPresenter {
>  interface Display {
>HasText getSubjectLabel();
>HasText getBodyLabel();
>HasClickHandlers getReplyButton();
>// etc...
>  }
>
>  ...
> }
>
> So, do I just have a bad design idea here?  I don't want my
> MainPresenter.Display implementation instantiating EmailPresenters...
>
> How about changing
> MainPresenter {
>  interface Display {
>...
>void clear();
>void addEmailPresenter(EmailPresenter email);
>  }
> }
>
> Then the Display picks the Displays for the sub-Presenters...  Yeah,
> this is making some sense now.  Does this sound about right to others?
>
> Thanks for the help!
>
> -nathan
>
> On Aug 23, 9:53 pm, Ian Bambury  wrote:
> > Hi Nathan,
> > I think all you need is a clear() and an addLine(String text).
> >
> > The presenter clears the display and loops through the headers adding
> lines
> > as it goes. If you need to respond to clicks, then add a click handler
> > parameter to the addLine method.
> >
> > Or am I missing something here?
> >
> > Ian
> >
> > http://examples.roughian.com
> >
> > 2009/8/24 Nathan 
> >
> >
> >
> > > Hello everyone.
> >
> > >  I watched Ray's talk, and have been reworking my project to follow
> > > many of his suggestions/standards, and have been quite happy with the
> > > results.  Today, however, I ran into a small problem.  I am making a
> > > website that has a layout fairly similar to an email program -- that
> > > is, there are a variety of buttons/widgets/whatever in the interface,
> > > plus a set of some number of rows in a table, essentially.  (Email
> > > header info, basically?).  Here's the Presenter/Display idea:
> > >  class ExampleEmailPresenter {
> > >interface Display {
> > >  HasClickHandlers getComposeNewEmailButton();
> > >  ... various other buttons
> >
> > >  HasValue getSearchEmailField();
> > >  ... etc -- all this makes sense to me, and I've done it on my
> > > less complex pages and it works
> >
> > >  // Now, how do you handle the display of a set of emails?
> > >  // ArrayList getEmailDisplays
> > > () // ?
> > >  // HasListOfValue getEmailOverviewList(); // a
> > > new Has* idea?
> > >  // Something I'm not thinking of? (this is what I'm assming)
> > >}
> >
> > >ArrayList emails;
> > >// Then register on the EventBus to receive alerts when the email
> > > list is updated, and call:
> > >public emailListUpdated() {
> > >  // This would be code to connect up the Email list Displays to
> > > the emails.
> > >}
> > >  }
> >
> > >  Basically, I can think of a few ways that I could connect them up,
> > > but every way I think of feels like a hack, like I'm missing the
> > > really smooth, clean way to have a list of something.  I mean, even if
> > > it's just an unknown number of Strings you want in your display...
> > > How does one Presenter's Display have a set of child displays (even if
> > > they are jut HasText's or something simple) without crossing borders,
> > > or having a lot of ugly maintenence code?  Any examples or suggestions
> > > out there?  Basically, what I'd like to see is what structure you put
> > > in the Display, what structure you put in the Presenter, and what
> > > logic would go into the "The Data Was Updated" function...  Even just
> > > a description of what you'd do is fine, this entire Email example is
> > > made up for discussion anyway, I'm just looking for help with
> > > understanding the design paradigm.
> >
> > > Thanks in advance,
> >
> > > -nathan
> >
>

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

Module source element and using exclude

2009-08-24 Thread Freddo

I'm trying to get AntLR to work client-side.
According to http://code.google.com/p/gwt-xml-editor/wiki/GwtAntlr
this seems to be possible.

I'm having trouble getting the exclude element under source element to
work and was wondering if anyone could help.

Using the AntLR source code I created an AntLR.gwt.xml in org.antlr
directory and then inherit this in my project.
I have tried numerous combination and nothing seems to work (see
errors at end of post).
The module that I though would have worked looked something like


  









  



Compiling module com.sumwise.i4c.AntTestLR
   Refreshing module from source
  Validating newly compiled units
 Removing units with errors
[ERROR] Errors in 'file:/C:/dev/antlr-3.1.3/runtime/Java/
src/main/java/org/antlr/runtime/debug/DebugEventSocketProxy.java'
   [ERROR] Line 36: The import java.net cannot be resolved
   [ERROR] Line 37: The import java.net cannot be resolved
   [ERROR] Line 48: ServerSocket cannot be resolved to a
type
   [ERROR] Line 49: Socket cannot be resolved to a type
   [ERROR] Line 74: ServerSocket cannot be resolved to a
type
   [ERROR] Line 75: ServerSocket cannot be resolved to a
type
   [ERROR] Line 75: ServerSocket cannot be resolved to a
type
   [ERROR] Line 76: Socket cannot be resolved to a type
   [ERROR] Line 76: ServerSocket cannot be resolved to a
type
   [ERROR] Line 77: Socket cannot be resolved to a type
   [ERROR] Line 78: Socket cannot be resolved to a type
   [ERROR] Line 81: Socket cannot be resolved to a type
   [ERROR] Line 99: Socket cannot be resolved to a type
[ERROR] Errors in 'file:/C:/dev/antlr-3.1.3/runtime/Java/
src/main/java/org/antlr/runtime/misc/Stats.java'
   [ERROR] Line 134: The method close() is undefined for
the type PrintStream
   [ERROR] Line 135: The method close() is undefined for
the type BufferedOutputStream
   [ERROR] Line 140: The method getProperty(String) is
undefined for the type System
[ERROR] Errors in 'file:/C:/dev/antlr-3.1.3/runtime/Java/
src/main/java/org/antlr/runtime/TokenRewriteStream.java'
   [ERROR] Line 194: The method subList(int, int) is
undefined for the type List
[ERROR] Errors in 'file:/C:/dev/antlr-3.1.3/runtime/Java/
src/main/java/org/antlr/runtime/debug/
RemoteDebugEventSocketListener.java'
   [ERROR] Line 330: The method forName(String) is
undefined for the type Class
   [ERROR] Line 332: The method newInstance() is undefined
for the type Class
[ERROR] Errors in 'file:/C:/dev/antlr-3.1.3/runtime/Java/
src/main/java/org/antlr/runtime/BitSet.java'
   [ERROR] Line 169: The method clone() is undefined for
the type Object
 Removing units with errors
[ERROR] Errors in 'file:/C:/dev/antlr-3.1.3/runtime/Java/
src/main/java/org/antlr/runtime/ANTLRInputStream.java'
   [ERROR] Line 39: No source code is available for type
java.io.InputStream; did you forget to inherit a required module?
   [ERROR] Line 61: No source code is available for type
java.io.InputStreamReader; did you forget to inherit a required
module?
[ERROR] Errors in 'file:/C:/dev/antlr-3.1.3/runtime/Java/
src/main/java/org/antlr/runtime/ANTLRFileStream.java'
   [ERROR] Line 56: No source code is available for type
java.io.File; did you forget to inherit a required module?
   [ERROR] Line 58: No source code is available for type
java.io.InputStreamReader; did you forget to inherit a required
module?
   [ERROR] Line 59: No source code is available for type
java.io.FileInputStream; did you forget to inherit a required module?
[ERROR] Errors in 'file:/C:/dev/antlr-3.1.3/runtime/Java/
src/main/java/org/antlr/runtime/ANTLRReaderStream.java'
   [ERROR] Line 44: No source code is available for type
java.io.Reader; did you forget to inherit a required module?
[ERROR] Errors in 'file:/C:/dev/antlr-3.1.3/runtime/Java/
src/main/java/org/antlr/runtime/tree/BaseTreeAdaptor.java'
   [ERROR] Line 209: No source code is available for type
java.lang.NoSuchMethodError; did you forget to inherit a required
module?
[ERROR] Errors in 'file:/C:/dev/antlr-3.1.3/runtime/Java/
src/main/java/org/antlr/runtime/SerializedGrammar.java'
   [ERROR] Line 63: No source code is available for type
java.io.FileInputStream; did you forget to inherit a required module?
   [ERROR] Line 64: No source code is available for type
java.io.BufferedInputStream; did you forget to inherit a required
module?
   [ERROR] Line 65: No source code is available for type
java.io.DataInputStream; did you forget to inherit a required module?

Re: VerticalSplitPanel doesn't show widgets

2009-08-24 Thread Michael Welter

Naw, this happens to me as well. If you resize the hosted browser with
the mouse then it will display normally. We need some way of refreshing
the root panel after a series of redraws.

李静 wrote:
> well, you sure it dosen't have compile error?
> see your constructor method!!
>
> 2009/8/23 google400 mailto:ali.rac...@gmail.com>>
>
>
> This is some very simple code that I'm using to try showing a
> VerticalSplitPanel, but the widgets I add don't show. The divider
> thing of VerticalSplitPanels does show however the widgets I add
> don't.
>
> Code:
>
> public class MyView extends Composite
> {
> private VerticalSplitPanel mainPanel=new VerticalSplitPanel();
>
> public CountryFilterView()
> {
>
> mainPanel.setSize("100%", "100%");
> mainPanel.setSplitPosition("50%");
> // Add some content
> String randomText = "This is some text to show how the
> contents on either "
> + "side of the splitter flow. "
> + "This is some text to show how the contents on either "
> + "side of the splitter flow. "
> + "This is some text to show how the contents on either "
> + "side of the splitter flow. ";
> mainPanel.setTopWidget(new HTML(randomText));
> mainPanel.setBottomWidget(new HTML(randomText));
> initWidget(mainPanel);
> }
> }
>
> Am I doing something wrong, or is VerticalPanel just very annoyingly
> buggy?
>
>
> -- 
> 李静
>
> >

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



emptyText property for TextBoxBase

2009-08-24 Thread Jaroslav Záruba

It would be nice to have such property on TextBoxBase class.

XUL input elements have this: 
https://developer.mozilla.org/en/XUL/Property/emptyText
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



defaultValue and reset for FocusWidget

2009-08-24 Thread Jaroslav Záruba

I would like to suggest adding defaultValue property for FocusWidget
class. It would be similar to defaultValue HTML input-elements have.
Setting it would not fire anything but you would be able to call a
reset() method on all subclasses which would set value of the widget
to its default.
--~--~-~--~~~---~--~~
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: Using class on both client and server sides

2009-08-24 Thread Thomas Broyer



On 24 août, 12:28, Ice13ill  wrote:
> And what if i want to use a package both on the client and server
> side, but one of the classes has imports from app engine witch cannot
> be used in GWT. Can i instruct the compiler (let's say in the .gwt.xml
> file) to exclude a class from a package when compiling ?

Yes,  supports ANT-like filter attributes:
http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html#DevGuidePathFiltering

See also http://code.google.com/p/google-web-toolkit/wiki/ResourceOracle
for the gory details.

--~--~-~--~~~---~--~~
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: Using class on both client and server sides

2009-08-24 Thread Ice13ill

And what if i want to use a package both on the client and server
side, but one of the classes has imports from app engine witch cannot
be used in GWT. Can i instruct the compiler (let's say in the .gwt.xml
file) to exclude a class from a package when compiling ?

On Jul 29, 6:18 pm, Nuno  wrote:
> Also, if you class is just a pojo you dont really need to create it in two
> places...
> the server code can access all of your client code.
> You just need to make the classes you want to transport from client to
> server or vice versa.
>
> In your example Contact may stay in the client package, and if you need to
> send a Contact object to the server, or make the server
> send it to you, just make this class Serializable.
>
>
>
> On Wed, Jul 29, 2009 at 12:10 PM, Paul Robinson  wrote:
>
> > You want this in your gwt.xml file:
> >    
> >    
>
> > Note that if any  element appears in your gwt.xml, then the
> > implied client source path is not added for you - so you will need both
> > of the above.
>
> > Paul
>
> > Ice13ill wrote:
> > > Hello,
> > > I'm trying to use a class (let's say Contact) on both client and
> > > server sides (packages: com.app.client and com.app.server). For that
> > > purpose I created a shared package (com.app.shared) in which to put
> > > the Contact class. But gwt (client side) only "sees" classes in
> > > com.app.client package. How can I use the Contact class on client side
> > > for the com.app.shared package? Do I have to add a  tag in
> > > my .gwt.xml file ?
> > > Thanks.
>
> --
> Quer aprender a programar? acompanhe:
> Wants to learn GWT? Follow this blog ->
>
> http://tcninja.blogspot.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: Creating a plugin framework with GWT

2009-08-24 Thread Dave

Cheers Nathan,

That's a useful response.  I didn't feel happy trying to send the UI
classes across RPC, for the reasons you stated.  I'm still looking at
ways, where I will let developers 'produce' plugins that consist of a
back and frontend. So the frontend widget/java script can easily be
loaded, although I like your HTML suggestion.

On Aug 22, 9:06 pm, Nathan Wells  wrote:
> Dave,
>
> the first thing need to know is that you're attempting to break some
> core rules. Widgets can only be created on the client-side. There are
> numerous reasons for this, but essentially it boils down to this: RPC
> calls should be about the model... data transfer, not UI component
> transfer. That's not to say that what you're talking about is
> impossible, it's just not going to be as pretty as you would like it
> to be. You can make it so that your TreeItem contains an "HTML"
> widget. Then you would probably provide some hook on the server-side
> for someone to specify what that html is.
>
> Again, this breaks the rules, though
>
> On Aug 21, 4:56 am, Dave  wrote:
>
> > Hi,
>
> > I am trying to figure out how to create a pluginframeworkwith GWT,
> > let me explain
>
> > I have created an application that has a menu on the left side and a
> > form on the right site of the screen.  The menu is a tree and the form
> > is a vertical panel (think of the example mail application).
>
> > I have created a new class called CustomTreeItem that extends
> > TreeItem.
> > My custom class contains a member variable which is a vertical panel.
> > When a user click on a instance of CustomTreeItem in the menu the
> > vertical panel is displayed on the right site of the screen.
>
> > I would like to extend this by allowing developers to produce custom
> > forms. i.e allow developers to add in there own CustomTreeItems,
> > without having to recompile with my code.
> > My inital plan was to have a directory in the classpath, so at runtime
> > a class loader on the server side would look for any classes that were
> > derived from my CustomTreeItem in that folder and load them.
> > The client would make an RPC request for the tree items, so it could
> > build up the Tree.  I quickly discovered that VerticalPanel couldn't
> > be serialized (I assume because this is translated to javascript), so
> > this wouldn't work.
>
> > Is it possible for developers to create a vertical panel, and then
> > translate it to js (storing it somewhere on the server)
> > Then within my application if I know the name of the js/verticalpanel
> > instance, load in and construct the panel?
>
> > Any info/ideas/suggestions would be appreciated
>
> > Cheers
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Change focus on another browser window/tab?

2009-08-24 Thread Ice13ill

If i open another window or tab with a gwt Anchor let's say...  is it
possible to select that window/tab from within the code ? or just
another opened window/tab.
Is there a method like .getOpenedWindows() - Window[] ?
or .getWindowByTitle(String title) or smth like that ?
--~--~-~--~~~---~--~~
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 1.7 Now Available

2009-08-24 Thread leo loong
Thank you!a Ha!

2009/8/24 李静 

> hi,
> the samples projects don't have eclipse files in them.
> maybe you can create a new project and copy the src files.
> hope that helps you!
>
> 2009/8/24 holeo 
>
>
>> In eclipse3.5 and Google eclipse 3.5 plug-ins,
>> Use "File -> Import... -> Existing Projects into Workspace"
>> I can't import GWT1.7 /samples project. ! "No projects are found to
>> import."
>>
>> help help!!
>>
>> On Jul 23, 6:54 am, Bruce Johnson  wrote:
>> > Hi everyone,
>> >
>> > (Most people are probably already quite aware of the new GWT 1.7
>> release,
>> > but we wanted to send out an "official" announcement we could pin to the
>> top
>> > of the message list.)
>> >
>> > GWT 1.7 is a minor update that adds better support for Internet Explorer
>> 8,
>> > Firefox 3.5, and Safari 4. Each of these new browser versions introduced
>> at
>> > least one change that negatively impacted compiled GWT modules, so we
>> > recommend that you do update to GWT 1.7 and recompile your existing
>> > applications to ensure that they work with the latest versions of
>> browsers.
>> > No source code changes on your part should be required.
>> >
>> > Normally, a minor update such as this would have been named 1.6.5 (the
>> > previous latest version of GWT was 1.6.4), but we did add the value
>> "ie8" to
>> > the "user.agent" deferred binding property, which could impact projects
>> > using custom deferred binding rules that are sensitive to that property.
>> > Thus, we went withGWT 1.7 rather than GWT 1.6.5, to indicate that you
>> may
>> > need to pay attention to that change. Details are in the release notes.
>> >
>> > In every other respect, this is just a bugfix release, so in the vast
>> > majority of cases, the update-recompile process should be nearly
>> effortless.
>> >
>> > Download here:
>> http://code.google.com/p/google-web-toolkit/downloads/list?can=1&q=GW...
>> >
>> > Cheers,
>> > Bruce, on behalf of your friendly GWT Team
>>
>>
>>
>
>
> --
> Lij
> >
>

--~--~-~--~~~---~--~~
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: 求助,无法在eclipse3.5中导入samples里的项目

2009-08-24 Thread leo loong
呵呵~是有中英两个版本,本着解决问题的原则出发,相信中文也很强大!~
其实平时我也是用你们所说的方法导入。
可就是在samples里面每个项目都有个README.txt,都说可以File -> Import... -> Existing Projects
into Workspace直接导入,可就不能导入,呵呵~

2009/8/24 李静 

> 貌似这个话题两个版本,还有个英文的,刚才先看到英文的,搞了半天回复了,结果发现下一个邮件就是中文版的。
> 郁闷掉了!!!
>
> 2009/8/24 陈金元 
>
>  新建的时候选择从目录新建就可以了。。。不需要拷代码的。。。
>> 话说这个论坛居然有人用中文问问题。。?我当时问的时候累死累活翻成英文的。
>>
>> --
>> Date: Mon, 24 Aug 2009 10:55:46 +0800
>> Subject: Re: 求助,无法在eclipse3.5中导入samples里的项目
>> From: lijing0...@gmail.com
>> To: google-web-toolkit@googlegroups.com
>>
>> 你好:
>> samples 里面没有eclipse项目文件,你可以在eclipse里新建一个项目,把samples里的代码拷过去就行了!!
>>
>> 2009/8/24 holeo 
>>
>> 我在eclipse3.5中,安装有google eclipse 3.5 plug-ins.
>> 使用 File -> Import... -> Existing Projects into Workspace 但无法导入gwt1.7里面的
>> samples里的项目.提示:No projects are found to import.
>> 怎么解决这个问题呢?
>>
>>
>>
>>
>> --
>> 李静
>>
>>
>> --
>> 李静
>>
>> >>
>>

--~--~-~--~~~---~--~~
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 get Image from ImageBundle by String?

2009-08-24 Thread Paul Robinson

Reflection is not supported in GWT.

李静 wrote:
> hi,
> maybe you can use Reflection ;
> just like:
> Class target = ICONS.getClass();
> Method m = target.getMethod(methodName, String.class);
> m.invoke(ICONS, parameters...);
> 2009/8/23 barclay allen  >
>
>
> I have an image bundle setup.
>
> public static final MyIcons ICONS = GWT.create(MyIcons.class);
>
> I can get the image with this.
> ICONS.smiley_face().createImage()
>
>
> How can I dynamically get the smiley_face image by passing a string
> "smiley_face"?
>
> -- 
> 李静
>
> >

--~--~-~--~~~---~--~~
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 get Image from ImageBundle by String?

2009-08-24 Thread mars1412

but, be aware, that you'll loose compile time checking in this case

What would be the use case for this anyway?
Can the user select an image and you store it in the database?

On Aug 24, 6:36 am, 李静  wrote:
> hi,
> maybe you can use Reflection ;
> just like:
>
> Class target = ICONS.getClass();
> Method m = target.getMethod(methodName, String.class);
> m.invoke(ICONS, parameters...);
> 2009/8/23 barclay allen 
>
>
>
> > I have an image bundle setup.
>
> > public static final MyIcons ICONS = GWT.create(MyIcons.class);
>
> > I can get the image with this.
> > ICONS.smiley_face().createImage()
>
> > How can I dynamically get the smiley_face image by passing a string
> > "smiley_face"?
>
> --
> 李静
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Marker gwt-maps

2009-08-24 Thread luigi

Hi all,

I create a Marker with marker=Marker.createPeer(marca); and in the
JSNI i created the marca and i put the events in the JSNI,  after i
put map.addOverlay(marker), and the markers appear in the map but the
events doesnt work, anyone can help, and after gave me this warning
[WARN] Malformed JSNI reference 'addOverlay'; expect subsequent
failures
java.lang.NoSuchFieldError: addOverlay

thanks in advance
--~--~-~--~~~---~--~~
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 customize brows window (i want to show only specific file formats to select)

2009-08-24 Thread mars1412

you could at least attach an onChange listener to the file-input field
and show an errormessage immediately when the user has selected a file
with wrong extension

On Aug 24, 12:39 am, Thomas Broyer  wrote:
> On 22 août, 08:41, Rishi  wrote:
>
> > i am new to GWT, i am creating a file upload web application, could
> > you suggest me how i can customize the browse window, i want to show
> > only specific file formats(type) to upload.
>
> HTML defines an accept="" attribute where you'd list the media types
> acceted by the 
> server:http://www.w3.org/TR/html4/interact/forms.html#adef-accept
>
> Most (if not all?) browsers ignore that attribute however, so there's
> no real reason for GWT to give easy access to it in the FileUpload
> widget...
>
> You can still try fileUpload.getElement().cast
> ().setAccept("image/jpeg, image/png,image/gif") and see what
> happens...
>
> Your only other option is to use a plug-in: applet, Flash,
> Sliverlight, BrowserPlus, Google Gears...
--~--~-~--~~~---~--~~
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: Hide pannel

2009-08-24 Thread Thomas Broyer


On 22 août, 19:23, rasp  wrote:
> Hi all!
> How can I create some hide-panel, like 
> this:http://code.google.com/docreader/#p=google-web-toolkit-incubator&s=go...

GWT-Incubator includes a CollapsiblePanel widget (it's two clicks away
from what you linked to!)

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



gwt-mvc 0.3 is released

2009-08-24 Thread Francois Wauquier

gwt-mvc 0.3 is available now.
http://code.google.com/p/gwt-mvc/
--~--~-~--~~~---~--~~
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: ServletOutputStream Closed while downloading xls stream in GWT

2009-08-24 Thread vijjj

Hi Sin-Kang,

Thanks for the reply.

May be I may have to do something like that. But having to deploy a
separate server just to download a file seems far stretched.
There must be a way out to solve this with the current set up.
Looking for solutions or a work around.

Are there any client based (javascript) libraries available to
generate Excel/PDF?

--~--~-~--~~~---~--~~
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: Why do we define AsyncCallbacks inline?

2009-08-24 Thread Jan Ehrhardt
Once again, the thing you want to do with the callback, is invoking a method
after the request is finished. This can be done very easily with an
annonymous inner class:
public class OuterClass {

  ...

  public void methodForRequest(final int id) {

service.getSomething(id, new AsyncCallback() {

  ...

  onSuccess(Inter result) {
doSomething(id, result);
  }

});

  }

  private void doSomething(int id, int result) {
...
  }

}

This example shows, why annonymous inner classes are great for this use
case. You can tell the 'getSomething' method to invoke the 'doSomething'
method on success. In other languages, you can use closures for such use
cases. The other point is, that the 'id' variable can be passed to the
'doSomething' method as well.
How would this look, if you're using a non-annonymous inner class or an
outer class?
Furthermore, non-annonymous class require a class name, so you've to think
about a name for it. Do you really want this?

Regards
Jan Ehrhardt

On Sun, Aug 23, 2009 at 5:57 PM, Damon Lundin wrote:

>
> BTW, the terminology you are looking for is that the "inline" inner
> class as you put is called an anonymous inner class while the inner
> class that is defined on its own (not at the point of a method call)
> but still inside the outer class is usually just called an inner class
> but named inner class would also work too.  Both of these have been
> available as in Java from the very beginning.
>
> As for why, it is just a matter of taste.  It's sometimes a bit more
> concise to just define an anonymous inner class inline, particularly
> if the inner class code needs access to variables defined in the
> calling method.  With an anonymous inner class you just have to define
> the variables or parameters as final and they can be access in the
> code of the inner class.  With a named inner class you have to define
> extra member variable on the inner class to hold those variables and
> probably a constructor that accepts them.
>
> If you find that it results in a ton of code inside the inner class
> that all indented, you could just move all that code into a method on
> the outer class.  The code in the inner class can access methods and
> methods of the outer class.  You can even reference methods and
> methods of the outer class that have the same name as something in the
> inner class by using the syntax: MyOuter.this.outerMethodCall().
> >
>

--~--~-~--~~~---~--~~
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 best Practices - JS Library Wrappers & Overlay Types

2009-08-24 Thread Bobby

Version 1.10.1 is available here:
http://code.google.com/p/gwt-gdata/downloads/list

Bobby

On Aug 14, 4:53 am, Bobby  wrote:
> I may not be able to correct this IE bug, and it may not be desirable
> either since it isn't a good idea to have the GWT version introduce
> hacks onto the JS library in order to fix a bug - stuff like this is
> better off being corrected in the JS version directly. I'll add this
> as a defect and deal with it later, the workaround being to use a
> script reference to load the API.
>
> I'm starting to think about how to detach the GWT library from the JS
> api in the future. Here's what i'm seeing, in the JS API all GData
> operations (POST, PUT, DELETE) are sent as POST commands. A POST
> variable called HTTP-Method-Override can be used to specify the actual
> operation. Cross-domain POSTS aren't a problem, we can just create and
> submit a hidden form using some JavaScript.
>
> Since GData supports retrieving data in JSON format, we can use a
> JSONP approach to do cross domain reads - this is what the current JS
> API does.
>
> This means that in order to detach the GWT version from the JS
> libraries we have to:
> 1. identify the Atom schema for each data type, there are a few
> hundred classes.
> 2. provide a base implementation that can perform cross-domain POSTS
> and JSONP reads.
>
> I think #1 can be automated and #2 is sensitive but small.
>
> The end result will be a more GWT-optimizable API which can then grow
> at its own pace. The samples and unit tests wouldn't change
> significantly, if at all. We can still use overlay types to wrap
> around the JSON objects returned from GData. I've taken a closer look
> at the GData Java library and i don't think that the GWT and Java APIs
> will ever match because the GWT version will need to be callback-based
> whereas Java doesn't have this limitation.
>
> Anyway, just some thoughts.
>
> Bobby
>
> On Aug 14, 2:53 am, Bobby  wrote:
>
> > There are some quirks which are making it difficult to narrow down the
> > reason why AuthSub fails in IE. So far i know it only happens when
> > google.load is used with a callback, even when google.load is called
> > while the page is being loaded.
>
> > So something like the following:
> > 
> > 
> >     google.load("gdata", "1.10", myCallback);
> > 
> > 
> > 
>
> > Will always see the following behavior:
> > 1. User clicks to login.
> > 2. User is redirect to authorization page and clicks to authorize.
> > 3. User is redirected back to the original page, with a token appended
> > in the URL.
> > 4. Page doesn't consume the token in the URL (the correct behavior is
> > for the page to place the token in a cookie and remove the token from
> > the url).
> > 5. User clicks to login again.
> > 6. User gets redirected to authorization page again, and steps 3-6 are
> > repeated an arbitrary number of times.
> > 7. If, after reaching the authorization page a second time, the user
> > clicks the browser's back button, causing the browser to go back to
> > the page that contains the token in the url, the token is successfully
> > consumed and the user is successfully logged in. Go figure.
>
> > Why "backing" into the page causes GData to successfully consume the
> > token i have no idea - especially since refreshing the page at step 4
> > has no effect.
>
> > My guess is that when backing into the page IE will use a cached
> > version of the GData script, which is processed immediately and may
> > make the difference.
>
> > Bobby
>
> > On Aug 14, 1:37 am, Bobby  wrote:
>
> > > This was outside GWT. I'm trying to find the cause of the IE AuthSub
> > > issue outside of GWT first. Basically, when google.load() is called
> > > after the page has finished loading - such as from a button click,
> > > AuthSub doesn't succeed.
>
> > > Bobby
>
> > > On Aug 14, 12:17 am, Eric Ayers  wrote:
>
> > > > If you are calling JavaScript inside of a GWT JSNI function, you
> > > > should be using $wnd.google.load(...)
>
> > > > On Thu, Aug 13, 2009 at 11:55 PM, Bobby wrote:
>
> > > > > This IE AuthSub issue is not because of the IFrame, the transferToken
> > > > > approach didn't make a difference.
>
> > > > > I tried placing the google.load('gdata', '1.10'); call in a button
> > > > > click event. Here's the code:
> > > > > 
> > > > > 
> > > > >    
> > > > >    http://www.google.com/jsapi";> > > > > script>
> > > > >