Re: UTF-8 Encoding problem

2010-11-27 Thread agi
I had the same problem as well (but using JBOSS).. it is still
pending.. temporary workaround was creating a Filter
(javax.servlet.Filter ) which sets encoding to every response.. but in
near future I need to do it on some smarter way:) Hope somebody will
answer this question,

cheers
agata

On Nov 26, 4:28 pm, Ronaldo Rigoni rrig...@gmail.com wrote:
 Hello all,
 I'm running my GWT application with Glassfish V2 application server.
 There's  a big problem with encoding, Glassfish is configured all with
 UTF-8, the RPC call is UTF-8 too, but, when the GWT recieve the
 response, the encoding is broken, specialy text with HTML format.
 The main Gwt HTML file is with UTF-8 encoding too, and the meta tag.
  Some GWT request header is follows:

 Why the Accept-Charset is  requested with ISO?
 The data I'm sending is p educação saúde alimentação/p
 When this text return to the client returns like this p\n\teducação
 saúde alimentação/p
 Of course is correct, but when I try to set in a textArea the text
 turns crazy educação saúde alimentação

 Any suggestion?

 ===
 Host    127.0.0.1:
 User-Agent      Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.11) Gecko/
 20101013 Ubuntu/10.04 (lucid) Firefox/3.6.11
 Accept  text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
 Accept-Language en-us,en;q=0.5
 Accept-Encoding gzip,deflate
 Accept-Charset  ISO-8859-1,utf-8;q=0.7,*;q=0.7
 Keep-Alive      115
 Connection      keep-alive
 X-GWT-Permutation       HostedMode
 X-GWT-Module-Base      http://127.0.0.1:/ferramentaaulagwt/
 Content-Type    text/x-gwt-rpc; charset=utf-8
 Refererhttp://127.0.0.1:/ferramentaaulagwt/hosted.html?ferramentaaulagwt
 Content-Length  1331
 Cookie  JSESSIONID=1gmpreaoyhwf8;
 FA_TIPO_AULA_PREVIAMENTE_CRIADA=EDITAR;
 FA_ID_AULA_PREVIAMENTE_CRIADA=24302
 Pragma  no-cache
 Cache-Control   no-cache

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



File upload

2010-11-27 Thread Sreekanth Nambiar
Hi,

What is the best approach to upload a file?

1. Is it mandatory to submit the form? How should i implement the Remote
Service in this case?

2. Can i upload the file with an asynchronous call? What should be the input
parameters to the Remote service  method in this case?


Can anybody help me with some sample code?

Thanks
Sreekanth

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



Re: newbie trying to use htmlunit gwt 2.1 to test greet example

2010-11-27 Thread Steve Moyer
You aren't finding any buttons because HTML doesn't have a button
tag.  Use one of the methods described under Finding a specific
element at this page: http://htmlunit.sourceforge.net/gettingStarted.html.
I generally find myself needing xpath sooner or later.

smoyer

On Nov 6, 4:45 am, Ray Tayek rta...@ca.rr.com wrote:
 hi, i am trying to use htmlunit to test the greeting service that
 gets generated in eclipse when you make a new web application project.

 i am trying to find the send button in the project.

 i tried some of the suggestions 
 athttp://htmlunit.sourceforge.net/faq.html#AJAXDoesNotWork, but all of
 my tests fail (please see below)

 i can not find any buttons and some tests get a bunch of css warnings.

 if i run this test on the real app that i want to test i get similar
 results with *no* warnings. this real app uses htmlunit 2.8, while
 the greet service uses whatever came with gwt 2.1. so i am sorta confused.

 what should i try next?

 any pointers will be appreciated.

 thanks

 package p;

 import org.junit.*;
 import static org.junit.Assert.*;
 import com.gargoylesoftware.htmlunit.*;
 import com.gargoylesoftware.htmlunit.html.*;

 public class SimpleTestCase {

 @Test public void testVanilla() throws Exception {
 System.out.println(testVanilla);
 final WebClient webClient = new WebClient();
 final HtmlPage page =
 webClient.getPage(http://127.0.0.1:/Reasx.html?gwt.codesvr=127.0.0.1:9997;);
 final DomNodeListHtmlElement buttons = page.getElementsByTagName(button);
 assertTrue(buttons.size()  0);

 }

 @Test public void testNicelyResynchronizingAjaxController() throws Exception {
 System.out.println(testNicelyResynchronizingAjaxController);
 final WebClient webClient = new WebClient();
 webClient.setAjaxController(new NicelyResynchronizingAjaxController());
 final HtmlPage page =
 webClient.getPage(http://127.0.0.1:/Reasx.html?gwt.codesvr=127.0.0.1:9997;);
 final DomNodeListHtmlElement buttons = page.getElementsByTagName(button);
 assertTrue(buttons.size()  0);

 }

 @Test public void testwaitForBackgroundJavaScript() throws Exception {
 System.out.println(testwaitForBackgroundJavaScript);
 final WebClient webClient = new WebClient();
 final HtmlPage page =
 webClient.getPage(http://127.0.0.1:/Reasx.html?gwt.codesvr=127.0.0.1:9997;);
 webClient.waitForBackgroundJavaScript(1);
 final DomNodeListHtmlElement buttons = page.getElementsByTagName(button);
 assertTrue(buttons.size()  0);}

 @Test public void testwaitForBackgroundJavaScriptStartingBefore()
 throws Exception {
 System.out.println(testwaitForBackgroundJavaScriptStartingBefore);
 final WebClient webClient = new WebClient();
 final HtmlPage page =
 webClient.getPage(http://127.0.0.1:/Reasx.html?gwt.codesvr=127.0.0.1:9997;);
 webClient.waitForBackgroundJavaScript(1);
 final DomNodeListHtmlElement buttons = page.getElementsByTagName(button);
 assertTrue(buttons.size()  0);

 }

 @Test public void testWait() throws Exception {
 System.out.println(testWait);
 final WebClient webClient = new WebClient();
 final HtmlPage page =
 webClient.getPage(http://127.0.0.1:/Reasx.html?gwt.codesvr=127.0.0.1:9997;);
 Thread.sleep(1);
 final DomNodeListHtmlElement buttons = page.getElementsByTagName(button);
 assertTrue(buttons.size()  0);

 }

 @Test public void testWaitForCondition() throws Exception {
 final WebClient webClient = new WebClient();
 final HtmlPage page =
 webClient.getPage(http://127.0.0.1:/Reasx.html?gwt.codesvr=127.0.0.1:9997;);
 DomNodeListHtmlElement buttons = page.getElementsByTagName(button);
 for (int i = 0; i  20; i++) {
 buttons = page.getElementsByTagName(button);
 System.out.println(buttons.size());
 if (buttons.size()  0) {
 break;}

 synchronized (page) {
 page.wait(1000);}
 }

 assertTrue(buttons.size()  0);

 }
 }

 //console output

 testVanilla
 Nov 5, 2010 3:23:10 PM
 com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
 WARNING: Expected content type of 'application/javascript' or
 'application/ecmascript' for remotely loaded JavaScript element at
 'http://127.0.0.1:/reasx/reasx.nocache.js', but got
 'application/x-javascript'.
 testNicelyResynchronizingAjaxController
 Nov 5, 2010 3:23:10 PM
 com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
 WARNING: Expected content type of 'application/javascript' or
 'application/ecmascript' for remotely loaded JavaScript element at
 'http://127.0.0.1:/reasx/reasx.nocache.js', but got
 'application/x-javascript'.
 testwaitForBackgroundJavaScript
 Nov 5, 2010 3:23:10 PM
 com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
 WARNING: Expected content type of 'application/javascript' or
 'application/ecmascript' for remotely loaded JavaScript element at
 'http://127.0.0.1:/reasx/reasx.nocache.js', but got
 'application/x-javascript'.
 Nov 5, 2010 3:23:10 PM
 com.gargoylesoftware.htmlunit.DefaultCssErrorHandler error
 WARNING: CSS error: null [488:24] Error in expression. Invalid token
 =. Was 

Re: different Google Update Sites???

2010-11-27 Thread Eric Clayberg
You are correct. Both can be used together without any problems. The
current version of GWT Designer is designed to work with all recent
version of GWT up to GWT 2.1. And, yes, the integration will get
better and better over time. :-)

-Eric

On Nov 26, 10:03 am, Didier Durand durand.did...@gmail.com wrote:
 Hi,

 Yes, you can use them jointly.

 One point though: you have to be in synch in the dependencies: GWT
 Designer version may have requirements on a given version of GWT. So,
 be careful.

 It will probably get simpler over time as Google harmonizes the
 various products but some patience is needed, I guess.

 regards
 didier

 On Nov 26, 3:00 pm, Magnus alpineblas...@googlemail.com wrote:







  So can I mix these two update sites? Aren't there any dependencies?

  Magnus

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



Re: Gilead AND GWT

2010-11-27 Thread Richard Berger
I had some difficulties getting Gilead/Hibernate/GWT working together,
but here is something I posted about 11 months ago after I got it all
working - hope it helps you... 
http://www.mail-archive.com/google-web-toolkit@googlegroups.com/msg34602.html

Enjoy,
RB

On Nov 25, 12:00 pm, Noor baken...@gmail.com wrote:
 Hi, thanks, yes i think i should place there as well. I just hope to
 get out of this problem. We here are almost all programmers, when we
 get a problem its a fun to debug it. When u have tried to debug for
 one whole, at end of the one day it become a stress and then at the
 end of the second, it is hopeless case if time is limited, and that's
 my case fooo!!

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



New blog article about my latest GWT project

2010-11-27 Thread Jeff Schwartz
I've created a new blog article with screen shots about my latest GWT
project. If you are interested please point your browser to
http://jeff-schwartz.blogspot.com/2010/11/screenshots-of-love-my-vehicle-on-web.html
.

I will be updating the article periodically as development of the
application progresses as well as writing new articles specifically about
developing the application using GWT and App Engine.

I hope you find the article interesting and please feel free to leave a
comment.

Sincerely,
Jeff

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



Re: Repeating Timer and onUnload()

2010-11-27 Thread Max Jonas Werner
Hi ep,

yeah, that's what I meant with putting the cancel() call in
onUnload().

Max

On Nov 24, 11:08 am, ep eplisc...@googlemail.com wrote:
 subclass a timer to your custom, which binds on a widget it works
 with. when the widget is detached your timer can cancel himself -
 kinda selfdestruction :)

 On 23 Nov., 17:26, Max Jonas Werner m...@maxwerner.de wrote:

  Hi,

  I have built a widget for my GWT application that shows the latest
  actions users of the application have performed. To refresh this
  widget automatically I use a Timer and its schedule() method like
  this:

      private final Timer t = new Timer() {
          @Override
          public void run() {
              // perform RPC call here to refresh the list of activities
              schedule(1);
          }
      };
      ...
      t.schedule(1);

  I'm using schedule() here since scheduleRepeating() could lead to
  shorter intervalls which I don't want to. However, I could also have
  used scheduleRepeating() here, that's not the actual problem.

  My problem/question is rather: When this widget is removed from the
  DOM I'll have to cancel() the timer, so I override onUnload() and call
  t.cancel() in there. Is this the method you would recommend or is
  there some other fancy way of cancelling timers automatically when
  widgets are unloaded/detached?

  Thanks
  Max

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



Re: File upload

2010-11-27 Thread Jim Douglas
Yes, you must submit the form to upload a file (or files), and the
file(s) must be selected by direct action of the user.  The basic
structure is:

On the client side, a GWT FormPanel containing a FileUpload widget
(and optionally other information, e.g. one or more Hidden fields
containing information that will be meaningful to your servlet).

http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/client/ui/FileUpload.html
http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/client/ui/FormPanel.html
http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/client/ui/Hidden.html

Let's assume that your servlet URL is /fileUploadServlet.  Your
FormPanel needs to do something like this:

private static final String SERVLET = /fileUploadServlet;

setAction(SERVLET);
setEncoding(ENCODING_MULTIPART);
setMethod(METHOD_POST);

One the server side, you want to install the Apache FileUpload package
from here:

http://commons.apache.org/fileupload/

Using those helper functions in that package, the doPost method in
your FileUploadServlet class becomes straightforward.  Just choose
from one of these examples:

http://commons.apache.org/fileupload/using.html
http://commons.apache.org/fileupload/streaming.html

On Nov 27, 2:36 am, Sreekanth Nambiar pk.sreeka...@gmail.com wrote:
 Hi,

 What is the best approach to upload a file?

 1. Is it mandatory to submit the form? How should i implement the Remote
 Service in this case?

 2. Can i upload the file with an asynchronous call? What should be the input
 parameters to the Remote service  method in this case?

 Can anybody help me with some sample code?

 Thanks
 Sreekanth

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



Re: How do you use Custom Widgets (Composites) multiple times?

2010-11-27 Thread Paul
That above code does not work. I have tried it exactly. The only part
I removed was the import statements.


On Nov 23, 10:22 am, jhulford jhulf...@gmail.com wrote:
 You can't do what you're asking.  A widget instance can only be added
 to a single parent container.

 The code you posted looks ok though, so I'm guessing you probably have
 a typo in your real code where you're trying to add the same instance
 of FirstClass to elementA and elementB, which will cause the error
 you're describing.

 On Nov 22, 12:00 am, Paul daemo...@gmail.com wrote:







  Sorry if this is somewhere else and I missed it, but I have aCustom
  Widget that I need to be able to addmultipletimesto anothercustom
  widget I am creating. I do not seem to understand something about this
  process and so I get the following errors:

  Different parents for double associations
  The other component is added to a parent component more than once.

  So basically, the first one gets nuked and only the second one shows
  up. What am I missing? Can someone please assist me in understanding
  what is wrong. Thank you so much in advance. Below is the code:

  public class FirstClass extends Composite
  {
       public FirstClass()
       {
            Image image = new Image(img/picture.png);
            AbsolutePanel element = new AbsolutePanel();

            element.add(image, 0, 0);

            initWidget(element);
       }

  }

  public class SecondClass extends Composite
  {
       public SecondClass()
       {
            HorizontalPanel element = new HorizontalPanel();

            VerticalPanel elementA = new VerticalPanel();
            element.add(elementA);

            VerticalPanel elementB = new VerticalPanel();
            element.add(elementB);

            elementA.add(new FirstClass());
            elementB.add(new FirstClass());

            initWidget(element);
       }

  }

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



Re: How do you use Custom Widgets (Composites) multiple times?

2010-11-27 Thread Paul
I have added the new for each instance. I do not understand why I can
not add a composite multiple times. Does anyone know of a way to mimic
this behavior if this is not directly possible. If I need to have 50
identical things on the page, having to create 50 manually is
ridiculous, I should be able to create one that I can use multiple
times.


On Nov 23, 10:43 am, ep eplisc...@googlemail.com wrote:
 what jhulford meant is that you really have to make a new on every
 widget class you add to any place.

 On 22 Nov., 06:00, Paul daemo...@gmail.com wrote:







  Sorry if this is somewhere else and I missed it, but I have aCustom
  Widget that I need to be able to addmultipletimesto anothercustom
  widget I am creating. I do not seem to understand something about this
  process and so I get the following errors:

  Different parents for double associations
  The other component is added to a parent component more than once.

  So basically, the first one gets nuked and only the second one shows
  up. What am I missing? Can someone please assist me in understanding
  what is wrong. Thank you so much in advance. Below is the code:

  public class FirstClass extends Composite
  {
       public FirstClass()
       {
            Image image = new Image(img/picture.png);
            AbsolutePanel element = new AbsolutePanel();

            element.add(image, 0, 0);

            initWidget(element);
       }

  }

  public class SecondClass extends Composite
  {
       public SecondClass()
       {
            HorizontalPanel element = new HorizontalPanel();

            VerticalPanel elementA = new VerticalPanel();
            element.add(elementA);

            VerticalPanel elementB = new VerticalPanel();
            element.add(elementB);

            elementA.add(new FirstClass());
            elementB.add(new FirstClass());

            initWidget(element);
       }

  }

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



Re: newbie trying to use htmlunit gwt 2.1 to test greet example

2010-11-27 Thread Ray Tayek

At 04:36 AM 11/27/2010, you wrote:

You aren't finding any buttons because HTML doesn't have a button
tag.  Use one of the methods described under Finding a specific
element at this page: http://htmlunit.sourceforge.net/gettingStarted.html.
I generally find myself needing xpath sooner or later.


the tests below all pass.

i have: button id=xxx type=buttonClick Me!/button in the 
html, so it finds that one. but it does not find any of the dynamic 
ones that i made with: final Button b = new Button(commandId); in the 
clinet code.


so i am still puzzled.

thanks


package hw;

import org.junit.*;
import static org.junit.Assert.*;
import com.gargoylesoftware.htmlunit.*;
import com.gargoylesoftware.htmlunit.html.*;

public class BasicHtmlUnitRPCTestCase {

@BeforeClass public static void setUpBeforeClass() throws Exception {

}
static final String 
url=http://127.0.0.1:/Reasy.html?gwt.codesvr=127.0.0.1:9997;;
@AfterClass public static void tearDownAfterClass() throws 
Exception {}


@Before public void setUp() throws Exception {}

@After public void tearDown() throws Exception {}

@Test public void testVanilla() throws Exception {
System.out.println(testVanilla);
final WebClient webClient = new WebClient();
final HtmlPage page = webClient.getPage(url);
final DomNodeListHtmlElement buttons = 
page.getElementsByTagName(button);

assertTrue(buttons.size() = 1);
}

@Test public void testNicelyResynchronizingAjaxController() 
throws Exception {

System.out.println(testNicelyResynchronizingAjaxController);
final WebClient webClient = new WebClient();
webClient.setAjaxController(new 
NicelyResynchronizingAjaxController());

final HtmlPage page = webClient.getPage(url);
final DomNodeListHtmlElement buttons = 
page.getElementsByTagName(button);

assertTrue(buttons.size() = 1);
}

@Test public void testwaitForBackgroundJavaScript() throws Exception {
System.out.println(testwaitForBackgroundJavaScript);
final WebClient webClient = new WebClient();
final HtmlPage page = webClient.getPage(url);
webClient.waitForBackgroundJavaScript(1);
final DomNodeListHtmlElement buttons = 
page.getElementsByTagName(button);

assertTrue(buttons.size() = 1);
}
@Test public void 
testwaitForBackgroundJavaScriptStartingBefore() throws Exception {


System.out.println(testwaitForBackgroundJavaScriptStartingBefore);
final WebClient webClient = new WebClient();
final HtmlPage page = webClient.getPage(url);
webClient.waitForBackgroundJavaScript(1);
final DomNodeListHtmlElement buttons = 
page.getElementsByTagName(button);

assertTrue(buttons.size() = 1);
}

@Test public void testWait() throws Exception {
System.out.println(testWait);
final WebClient webClient = new WebClient();
final HtmlPage page = webClient.getPage(url);
Thread.sleep(1);
final DomNodeListHtmlElement buttons = 
page.getElementsByTagName(button);

assertTrue(buttons.size() = 1);
}

@Test public void testWaitForCondition() throws Exception {
final WebClient webClient = new WebClient();
final HtmlPage page = webClient.getPage(url);
DomNodeListHtmlElement buttons = 
page.getElementsByTagName(button);

for (int i = 0; i  20; i++) {
buttons = page.getElementsByTagName(button);
System.out.println(buttons.size());
if (buttons.size() = 1) {
break;
}
synchronized (page) {
page.wait(1000);
}
}
assertTrue(buttons.size() = 1);
}

}



---
co-chair http://ocjug.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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Repeating Timer and onUnload()

2010-11-27 Thread Thomas Broyer


On 23 nov, 17:26, Max Jonas Werner m...@maxwerner.de wrote:
 Hi,

 I have built a widget for my GWT application that shows the latest
 actions users of the application have performed. To refresh this
 widget automatically I use a Timer and its schedule() method like
 this:

     private final Timer t = new Timer() {
         @Override
         public void run() {
             // perform RPC call here to refresh the list of activities
             schedule(1);
         }
     };
     ...
     t.schedule(1);

 I'm using schedule() here since scheduleRepeating() could lead to
 shorter intervalls which I don't want to. However, I could also have
 used scheduleRepeating() here, that's not the actual problem.

 My problem/question is rather: When this widget is removed from the
 DOM I'll have to cancel() the timer, so I override onUnload() and call
 t.cancel() in there. Is this the method you would recommend or is
 there some other fancy way of cancelling timers automatically when
 widgets are unloaded/detached?

Starting with GWT 2.1 you can add an AttachEvent.Handler to be
informed when a widget is attached/detached:
http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/client/ui/Widget.html#addAttachHandler(com.google.gwt.event.logical.shared.AttachEvent.Handler)
But if your timer is instantiated as part of your widget, I'd go with
overriding onUnload rather than attaching an event handler on itself.

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



Re: using hyperlink to process commands?

2010-11-27 Thread Magnus
Hi,

thank you! In the meantime, I have got it working with Anchor and
ClickListener.

Magnus

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



clicking outside of widget seems to disable NativePreviewHandler ONKEYPRESS

2010-11-27 Thread KaffeineComa
I'm using a NativePreviewHandler to intercept ONKEYPRESS events
application-wide. I'm doing this so that I can implement a customized
text entry widget (example at
http://www.quickbrownfrog.com/#!typing:lesson:lesson001.xml:1).

It's been working fine, but I recently noticed a problem on IE8: if
the user clicks outside of my widget, the NativePreviewHandler no
longer gets ONKEYPRESS events; it's as if the widget has lost focus,
even though it's not relying on focus for receiving events.
Interestingly, it still seems to get mouse events, just not key
presses. If the user clicks inside the widget, it will again start
receiving ONKEYPRESS.

This does not seem to happen on Safari, Firefox or Chrome.

My understanding of Event.addNativePreviewHandler() is that it will
receive ALL events, regardless of focus... is that incorrect?

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: using hyperlink to process commands?

2010-11-27 Thread Jeff Schwartz
You can use history tokens in response to the anchor click events which will
fire off an event which you can catch in your history event processing code.

On Sat, Nov 27, 2010 at 7:52 PM, Magnus alpineblas...@googlemail.comwrote:

 Hi,

 thank you! In the meantime, I have got it working with Anchor and
 ClickListener.

 Magnus

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




-- 
*Jeff Schwartz*

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



How to Make a NumberCell Clickable

2010-11-27 Thread savilak
Hi,

how can I make a NumberCell clickable (just like ClickableTextCell)?

I need to do this because I am using Sortable Column is my cell Table
and i need to be able to click on number sorted columns.

Thank you for your time.

Savilak

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



Re: Internal compiler error when upgrading vom 2.0.4 to 2.1.0.RC1

2010-11-27 Thread Ltearno
Thank you so much i would have not thought of that !
U saved me !!!

On 20 oct, 15:45, wolfgang wor@gmail.com wrote:
 solved the problem. I changed the order in java build path (order and
 export), so that GWT SDK is now on Top.
 everything compiles without exception.

 On 15 Okt., 12:02, wolfgang wor@gmail.com wrote:

  Sorry for posting this twice - haven't found the first post so I
  assumed it got lost somewhere.

  On 15 Okt., 11:58, wolfgang wor@gmail.com wrote:

   I got thiserrormessage from thecompilerwhen I tried an upgrade
   from 2.0.4 to 2.1.0.RC1:

    [ERROR]  Internalcompilererror
   java.lang.NoSuchMethodError:
   com.google.gwt.uibinder.rebind.UiBinderWriter.init(Lcom/google/gwt/
   core/ext/typeinfo/JClassType;Ljava/lang/String;Ljava/lang/String;Lcom/
   google/gwt/core/ext/typeinfo/TypeOracle;Lcom/google/gwt/uibinder/
   rebind/MortalLogger;Lcom/google/gwt/uibinder/rebind/FieldManager;Lcom/
   google/gwt/uibinder/rebind/messages/MessagesWriter;Lcom/google/gwt/
   uibinder/rebind/DesignTimeUtils;Lcom/google/gwt/uibinder/rebind/
   UiBinderContext;)V
           at
   com.google.gwt.uibinder.rebind.UiBinderGenerator.generateOnce(UiBinderGenerator.java:
   135)
           at
   com.google.gwt.uibinder.rebind.UiBinderGenerator.generate(UiBinderGenerator.java:
   119)
           at
   com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:
   427)
           at
   com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
   39)
           at com.google.gwt.dev.shell.StandardRebindOracle
   $Rebinder.tryRebind(StandardRebindOracle.java:115)
           at com.google.gwt.dev.shell.StandardRebindOracle
   $Rebinder.rebind(StandardRebindOracle.java:58)
           at
   com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
   161)
           at
   com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
   150)
           at com.google.gwt.dev.Precompile
   $DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(Precompile.java:
   345)
           at
   com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:
   106)
           at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
   $CompilerImpl.process(AbstractCompiler.java:254)
           at 
   org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:
   444)
           at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
   $CompilerImpl.compile(AbstractCompiler.java:175)
           at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
   $CompilerImpl.compile(AbstractCompiler.java:288)
           at 
   com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access
   $400(AbstractCompiler.java:145)
           at
   com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:
   632)
           at
   com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:
   124)
           at
   com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:
   54)
           at
   com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:
   484)
           at
   com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:
   32)
           at com.google.gwt.dev.Precompile.precompile(Precompile.java:544)
           at com.google.gwt.dev.Precompile.precompile(Precompile.java:465)
           at com.google.gwt.dev.Compiler.run(Compiler.java:205)
           at com.google.gwt.dev.Compiler.run(Compiler.java:177)
           at com.google.gwt.dev.Compiler$1.run(Compiler.java:149)
           at 
   com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
   87)
           at
   com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
   81)
           at com.google.gwt.dev.Compiler.main(Compiler.java:156)

   [ERROR] Unexpected
   java.lang.NoSuchMethodError:
   com.google.gwt.uibinder.rebind.UiBinderWriter.init(Lcom/google/gwt/
   core/ext/typeinfo/JClassType;Ljava/lang/String;Ljava/lang/String;Lcom/
   google/gwt/core/ext/typeinfo/TypeOracle;Lcom/google/gwt/uibinder/
   rebind/MortalLogger;Lcom/google/gwt/uibinder/rebind/FieldManager;Lcom/
   google/gwt/uibinder/rebind/messages/MessagesWriter;Lcom/google/gwt/
   uibinder/rebind/DesignTimeUtils;Lcom/google/gwt/uibinder/rebind/
   UiBinderContext;)V
           at
   com.google.gwt.uibinder.rebind.UiBinderGenerator.generateOnce(UiBinderGenerator.java:
   135)
           at
   com.google.gwt.uibinder.rebind.UiBinderGenerator.generate(UiBinderGenerator.java:
   119)
           at
   com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:
   427)
           at
   com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
   39)
           at com.google.gwt.dev.shell.StandardRebindOracle
   

Simple question about GWT.create() signature

2010-11-27 Thread Alessandro Carraro (JUG Padova)
A simple qestion, sorry if it is a FAQ:

Why
  public static T T create(Class? classLiteral)
and not
  public static T T create(ClassT classLiteral)

the second one would save me from a lot of unnecessary casts (IMHO).
What's worse, I tried to write the helper function:

@SuppressWarnings(unchecked)
public static T T create(ClassT classLiteral) {
return (T) GWT.create(classLiteral);
}

But after a month I discovered that the compiler does not like it at
all (it complains that GWT.create must be called only using class
literals... could be nice if it could find that MY helper is called
with only using  literals...

Is it possible to get a hook into the compiler phase to replace all
invocations of my helper 'inlining' it?

thanks

Alex

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



How to expand a particular node in a CellTree?

2010-11-27 Thread Rogério Yokomizo
How to expand a particular node in a CellTree?

I created a CellTree based on GWT sample (http://http://gwt.google.com/
samples/Showcase/Showcase.html), but with over 2 levels.

sample levels:
Category  ContentWidth

my app:
Category  ContentWidth  ContentWidth  ContentWidth  ...

In the sample, the cells are expanded as follows:
Showcase.java:

// Expand the tree node associated with the content.
Category category = treeModel.getCategoryForContentWidget(
contentWidget);
TreeNode node = mainMenu.getRootTreeNode();
int childCount = node.getChildCount();
for (int i = 0; i  childCount; i++) {
  if (node.getChildValue(i) == category) {
node.setChildOpen(i, true, true);
break;
  }
}

How to expand a cell at a level below RootTreeNode?

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Gwt 2.1 Eclipse Helios

2010-11-27 Thread Daniel Leon
i got the same problem here, eclipse send erros about class paths and
whitout the GWT Designer this doesnt happens



update the latest beta of GWT designer doesnt solve the problem.
=S

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



Expenses example - cache warning

2010-11-27 Thread David Sowerby
I compile the expenses example from trunk, but got the following
warning appearing every second or so:

26-Nov-2010 20:28:01
com.google.gwt.sample.expenses.server.domain.Report
findReportEntriesBySearch
WARNING: Exception retrieving memcache instance:
net.sf.jsr107cache.CacheException: Could not find class:
'ri.cache.BasicCacheFactory'

I found this post:, which gives the answer

http://code.google.com/p/googleappengine/issues/detail?id=3099


I changed the imports in both Report and ReportBack classes from

import net.sf.jsr107cache.Cache;
import net.sf.jsr107cache.CacheException;
import net.sf.jsr107cache.CacheFactory;
import net.sf.jsr107cache.CacheManager;

to

import javax.cache.Cache;
import javax.cache.CacheException;
import javax.cache.CacheFactory;
import javax.cache.CacheManager;

and the problem is cleared

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



How to override CellTable css

2010-11-27 Thread manstis
Hi,

I need to override some CellTable CSS definitions.

I've been able to isolate the classes to some named along the lines
of .GL0PBETBKC, .GL0PBETBEC etc.

The CellTable CSS appears to be injected into my module after my .css
file and the only way I have been able to override the above styles is
by using !important in my css file. Firebug shows the CellTable's CSS
to come from http://127.0.0.1:/MyModule.html?gwt.codesvr=127.0.0.1:9997.

Can anybody please advise the best way to override the above styles?
They are not part of standard.css and therefore changing my GWT Module
to inherit from 'com.google.gwt.user.theme.standard.StandardResources'
and linking to standard.css from my HTML page manually does not
provide a solution.

Thanks,

Mike

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



Request factory: java.lang.NoClassDefFoundError: org/json/JSONException

2010-11-27 Thread Simon Majou
Hello,

I am trying to run the dynatablerf example for request factory, and I
get :

bodyh2HTTP ERROR: 500/h2preorg/json/JSONException/pre
pRequestURI=/gwtRequest/ph3Caused by:/
h3prejava.lang.NoClassDefFoundError: org/json/JSONException
at
com.google.gwt.requestfactory.server.RequestFactoryServlet.doPost(RequestFactoryServlet.java:
111)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1097)
at
com.google.gwt.sample.dynatablerf.server.SchoolCalendarService.doFilter(SchoolCalendarService.java:
91)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1088)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
360)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
181)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
729)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at
org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:
49)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
505)
at org.mortbay.jetty.HttpConnection
$RequestHandler.content(HttpConnection.java:843)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
395)
at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:488)
Caused by: java.lang.ClassNotFoundException: org.json.JSONException
at java.lang.ClassLoader.findClass(ClassLoader.java:359)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:
352)
at
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:
337)
... 23 more

Can you tell which jar to use to resolve that ? Shouldn't the classes
be included into GWT 2.1 ?

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



Re: [gwt-contrib] Re: Add README step to use the Google Web Toolkit SDK in the gwt-user project so that users can run ... (issue966802)

2010-11-27 Thread Miguel Méndez
Actually, I'm not sure that this is accurate.  I just tried it out against
gwt-user and gwt-dev with natures and builders on in a clean eclipse Helios
install (no GPE) and I did not see any exceptions thrown.  There were no
visible exceptions and the error log was not updated.

It seems worth it to take a look and see if it is eclipse version specific.

On Wed, Nov 24, 2010 at 10:31 AM, rda...@google.com wrote:

 I think that jat is right - if you have a builder defined on your
 project that Eclipse does not know about, it will throw an exception.

 For now, let's go with this update to the README. I think, as a future
 step, we should add the natures and builders to the gwt-user and gwt-dev
 project, and make it a necessary step for them to install GPE.


 http://gwt-code-reviews.appspot.com/966802/show

 --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors




-- 
Miguel

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Issue 5474: RequestFactory response encoding (issue1154801)

2010-11-27 Thread t . broyer

Reviewers: bobv,

Description:
Fix for RequestFactoryServlet and unit test.

Also fixed testUserInfo in RequestFactoryTest, which was not
asynchronous (and therefore, I believe, wasn't actually testing
anything).

The tests use finishTest and not finishTestAndReset because they don't
use SimpleFooRequest and SimpleBarRequest, so they don't need the extra
reset() requests.

Please review this at http://gwt-code-reviews.appspot.com/1154801/show

Affected files:
  user/src/com/google/gwt/requestfactory/server/RequestFactoryServlet.java
  user/test/com/google/gwt/requestfactory/client/RequestFactoryTest.java
  user/test/com/google/gwt/requestfactory/server/Simple.java
  user/test/com/google/gwt/requestfactory/shared/SimpleRequest.java
  user/test/com/google/gwt/requestfactory/shared/SimpleRequestFactory.java


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Comment on OverlayTypes in google-web-toolkit

2010-11-27 Thread codesite-noreply

Comment by ltearno:

This is too bad (at the end of the document) :

The implementation of overlay types in GWT 1.5 does not support Generators  
defining new JSO subtypes (due to the need to redefine or otherwise extend  
JavaScriptObject$ during subsequent compilation). This restriction is still  
in place.



Being able to generate sub classes of JavaScriptObject would be so coool

For more information:
http://code.google.com/p/google-web-toolkit/wiki/OverlayTypes

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


Re: [gwt-contrib] Re: r9277 committed - Removing reference to designTime.getProvidedField()

2010-11-27 Thread Stephanie Brubaker
Konstantin, we have a separate release branch for 2.1.1 that is forked from
trunk.  Your change has not been integrated into that branch, so when I
picked up a piece of your code in UiBinderWriter it broke testing in the
release branch. This change was only applied to the release branch, not to
trunk, so your code should be intact.  Please let me know if you're seeing
any issues with trunk.

Thanks,
Stephanie

On Thu, Nov 25, 2010 at 3:22 PM, Konstantin.Scheglov 
konstantin.scheg...@gmail.com wrote:



  Then other pieces of the change were not integrated, as this was
 preventing
  the 2.1 branch from building.

   I see method getProvidedField() in DesignTimeUtils in SVN trunk, so
 I'm not sure what could be missed.
  I also regularly build GWT from project in SVN without build
 problems.


  On Nov 25, 2010 8:12 AM, Konstantin.Scheglov 
 
 
 
 
 
 
 
  konstantin.scheg...@gmail.com wrote:
 
   No!
   This change breaks @UiField(provided=true) support in GWT Designer,
   important feature which we want to support for GWT 2.1.1.
 
   On 24 ноя, 19:55, codesite-nore...@google.com wrote:
   Revision: 9277
   Author: gwt.mirror...@gmail.com
   Date: Wed Nov 24 08:54:59 2010
   Log: Removing reference to designTime.getProvidedField()
 
  http://code.google.com/p/google-web-toolkit/source/detail?r=9277
 
   Modified:
 
  /releases/2.1/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java
 
 
 
 
 
 
 
 
 
   ===
   ---
  
 /releases/2.1/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java
   Fri Nov 19 05:49:25 2010
   +++
  
 /releases/2.1/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java
   Wed Nov 24 08:54:59 2010
   @@ -1093,15 +1093,8 @@
 
 // TODO why can this be null?
 if (fieldWriter != null) {
   -  String initializer;
   -  if (designTime.isDesignTime()) {
   -String typeName =
   ownerField.getType().getRawType().getQualifiedSourceName();
   -initializer = designTime.getProvidedField(typeName,
   -ownerField.getName());
   -  } else {
   -initializer = formatCode(owner.%1$s, fieldName);
   -  }
   -  fieldManager.lookup(fieldName).setInitializer(initializer);
   +  fieldManager.lookup(fieldName).setInitializer(
   +  formatCode(owner.%1$s, fieldName));
 }
   }
 }
   @@ -1215,4 +1208,3 @@
 designTime.addDeclarations(w);
   }
 }
   -
 
   --
  http://groups.google.com/group/Google-Web-Toolkit-Contributors

 --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors


-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Re: [gwt-contrib] Re: r9277 committed - Removing reference to designTime.getProvidedField()

2010-11-27 Thread Konstantin Scheglov
Konstantin, we have a separate release branch for 2.1.1 that is forked from
 trunk.  Your change has not been integrated into that branch, so when I
 picked up a piece of your code in UiBinderWriter it broke testing in the
 release branch. This change was only applied to the release branch, not to
 trunk, so your code should be intact.  Please let me know if you're seeing
 any issues with trunk.


  Current state in trunk is valid.

  Will final version of GWT 2.1.1 which users will download still have
design time tweaks of UiBinderWriter?





 Thanks,
 Stephanie


 On Thu, Nov 25, 2010 at 3:22 PM, Konstantin.Scheglov 
 konstantin.scheg...@gmail.com wrote:



  Then other pieces of the change were not integrated, as this was
 preventing
  the 2.1 branch from building.

   I see method getProvidedField() in DesignTimeUtils in SVN trunk, so
 I'm not sure what could be missed.
  I also regularly build GWT from project in SVN without build
 problems.


  On Nov 25, 2010 8:12 AM, Konstantin.Scheglov 
 
 
 
 
 
 
 
  konstantin.scheg...@gmail.com wrote:
 
   No!
   This change breaks @UiField(provided=true) support in GWT Designer,
   important feature which we want to support for GWT 2.1.1.
 
   On 24 ноя, 19:55, codesite-nore...@google.com wrote:
   Revision: 9277
   Author: gwt.mirror...@gmail.com
   Date: Wed Nov 24 08:54:59 2010
   Log: Removing reference to designTime.getProvidedField()
 
  http://code.google.com/p/google-web-toolkit/source/detail?r=9277
 
   Modified:
 
 
 /releases/2.1/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java
 
 
 
 
 
 
 
 
 
   ===
   ---
  
 /releases/2.1/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java
   Fri Nov 19 05:49:25 2010
   +++
  
 /releases/2.1/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java
   Wed Nov 24 08:54:59 2010
   @@ -1093,15 +1093,8 @@
 
 // TODO why can this be null?
 if (fieldWriter != null) {
   -  String initializer;
   -  if (designTime.isDesignTime()) {
   -String typeName =
   ownerField.getType().getRawType().getQualifiedSourceName();
   -initializer = designTime.getProvidedField(typeName,
   -ownerField.getName());
   -  } else {
   -initializer = formatCode(owner.%1$s, fieldName);
   -  }
   -
  fieldManager.lookup(fieldName).setInitializer(initializer);
   +  fieldManager.lookup(fieldName).setInitializer(
   +  formatCode(owner.%1$s, fieldName));
 }
   }
 }
   @@ -1215,4 +1208,3 @@
 designTime.addDeclarations(w);
   }
 }
   -
 
   --
  http://groups.google.com/group/Google-Web-Toolkit-Contributors

 --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors


  --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors




-- 
Konstantin Scheglov,
Google, Inc.

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors