Aw: Re: Strange History Behaviour

2011-06-21 Thread Sven
We just made a custom PlaceController and Historian to share some log 
messages. Most of the google methods are private so that we can't just 
override them implementing our log messages.

You mentioned GWT.setUncaughtExceptionHandler and i already placed it in my 
code. But it may be the wrong place. Where do i have to place it to catch 
all the exceptions mentioned?


But maybe our placecontroller puts some magic in there:

public DfsPlaceController(EventBus eventBus) {
super(eventBus);
}

public DfsPlaceController(EventBus eventBus, Delegate delegate) {
super(eventBus, delegate);
}

protected BreadcrumbBar createBreadcrumbBar() {
BreadcrumbBar breadcrumbBar = new BreadcrumbBar();
return breadcrumbBar;
}

@Override
public void goTo(Place newPlace) {
LOG.debug(goTo:  + newPlace);
super.goTo(newPlace);
updateBreadcrumbBar(newPlace);
}

public void updateBreadcrumbBar() {
updateBreadcrumbBar(getWhere());
}

protected void updateBreadcrumbBar(Place place) {
try {

RootPanel breadcrumbRootPanel = RootPanel.get(breadcrumb);
if (breadcrumbRootPanel.getWidgetCount() == 0) {
LOG.debug(#updateBreadcrumbBar: No breadcrumb rootpanel 
available.);
return;
}

Widget widget = breadcrumbRootPanel.getWidget(0);
if (!(widget instanceof BreadcrumbBar)) {
LOG.debug(#updateBreadcrumbBar: The first widget is not the 
breadcrumb bar.);
return;
}

BreadcrumbBar breadcrumbBar = (BreadcrumbBar) widget;
BreadcrumbItem[] items = BreadcrumbBar.NO_BREADCRUMB_ITEMS;
if (place instanceof AbstractPlace) {
AbstractPlace abstractPlace = (AbstractPlace) place;
items = abstractPlace.getBreadcrumbItems();
}
breadcrumbBar.setBreadcrumbItems(items);

} catch (Exception ex) {
LOG.error(Unable to update breadcrumb bar., ex);
}
}


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/iBRD7KmQTPwJ.
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 meets Adobe Flex: gwt4air 2.1 is here !

2011-06-21 Thread Alain Ekambi
Hello Yusuf,
I m glad  you got it to work.
I took a look at the link you provided. Looks pretty :)
Maybe you want to change the backgroundColor to white ?
You can do that by calling
*Applicaton.get().setStyle(backgroundColor, #FF);*
*
*
in the initHandler
*
*
Little complicated for now i have to admit. 2.2 will try to simplefy the API
for thing like backgroundcolors.

Thank you 4 using gwt4air.

cheers,

Alain



2011/6/21 Iqbal Yusuf iyu...@dcl-online.com

 Hey Alain:

 First of all I'm extremely sorry about the false call. Yes you are right it
 was my FireFox browser issue. Everything is running as you said. Thanks
 again for a great library. I've put up your video display module with video
 source pointing to one of my Amazon Cloudfront RTMP video. It works.

 http://java.oviplus.com/dipu/



 On Mon, Jun 20, 2011 at 5:59 PM, Alain Ekambi jazzmatad...@googlemail.com
  wrote:


 I ve run the example in different browsers and different machines and
 still cant reproduce the error. It looks like there s problem with your
 local settings. But i cant figure out what.
 Do you have access to another machine  to test ? In the mean time i ll
 still investigate


 2011/6/21 Iqbal Yusuf iyu...@dcl-online.com

  Yes I can run the explorer from here
 http://www.gwt4air.appspot.com/



 On Mon, Jun 20, 2011 at 5:36 PM, Alain Ekambi 
 jazzmatad...@googlemail.com wrote:

 Can you also please tell if you are able to run the explorer on your
 machine ?
 Best,


 Alain


 2011/6/21 Alain Ekambi jazzmatad...@googlemail.com

 This is really wired.
 I ve never seen this error before
 Will have a look at it and get back to to you


 2011/6/20 Iqbal Yusuf iyu...@dcl-online.com

 Here is in detail what I've done so far.

 Step 0:
 Created a GWT application using Eclipse IDE with default settings.

 Step 1:
 Followed your instruction as stated here ==
 http://code.google.com/p/gwt4air/wiki/FlexStart

 Step 2:
 Here is my entry point class;

 *package com.bdeshtv.gwtairtest.client;*
 *
 *
 *import com.ekambi.gwt.web.flex.client.core.framework.FLEX;*
 *import
 com.ekambi.gwt.web.flex.client.core.framework.FlexInitializationHandler;
 *
 *import com.google.gwt.core.client.EntryPoint;*
 *import com.google.gwt.core.client.GWT;*
 *
 *
 *public class Gwt4AirTest implements EntryPoint {*
 *
 *
 * *
 *private static final String SERVER_ERROR = An error occurred while
 *
 * *
 *+ attempting to contact the server. Please check your network *
 * *
 *+ connection and try again.;*
 *
 *
 * *
 *private final GreetingServiceAsync greetingService = GWT*
 * *
 *.create(GreetingService.class);*
 * *
 *public void onModuleLoad() {*
 *
 *
 * *
 * FLEX.init(new FlexInitializationHandler() {*
 * *
 *   @Override*
 * *
 *   public void onInitialization() {*
 * *
 * *
 * *
 *  // your code here*
 *
 *
 * *
 *}});*
 * *

 }
 }



 Here is the error message again. I didn't have to use any controls to
 invoke the error message. Just adding init method will invoke it. I do 
 see
 some folders are getting accessed from the error message. I don't even 
 have
 this folder or E: drive on my laptop.

 An ActionScript error has occured:
 ReferenceError: Error #1056: Cannot create property allowCodeImport on
 flash.system.LoaderContext.
 at mx.core::CrossDomainRSLItem/completeCdRslLoad()*
 [E:\dev\hero_private\frameworks\projects\framework\src\mx\core\CrossDomainRSLItem
 *.as:277]
  at
 mx.core::CrossDomainRSLItem/itemCompleteHandler()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\CrossDomainRSLItem.as:386]
 at flash.events::EventDispatcher/dispatchEventFunction()
  at flash.events::EventDispatcher/dispatchEvent()
 at flash.net::URLLoader/onComplete()

 --
 You received this message because you are subscribed to the Google
 Groups Google 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 API for  non Java based platforms
 http://code.google.com/p/gwt4air/
 http://www.gwt4air.appspot.com/





 --

 GWT API for  non Java based platforms
 http://code.google.com/p/gwt4air/
 http://www.gwt4air.appspot.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.


  --
 You received this message because you are subscribed to the Google Groups
 Google 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

Re: Re : Re: CellTree with SingleSelectionModel will not fire event for root node (GWT 2.3)

2011-06-21 Thread Jens
Hi

Thanks for the tip, but my problem is not loading the nodes, its only
selection the root node that causes me problems (or did i miss
something in the mentioned thread?).

Best regards Jens

On Jun 19, 3:40 pm, mkkm...@gmail.com mkkm...@gmail.com wrote:
 Hi,

 Try
 here:https://groups.google.com/forum/?starthl=en#!searchin/google-web-too...

 Michaël

-- 
You received this message because you are subscribed to the Google Groups 
Google 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.



Aw: Re: Strange History Behaviour

2011-06-21 Thread Sven
UPDATE:

after try catching in my AbstractClientFactory i found something:

protected EventBus createEventBus() {
return new SimpleEventBus() {

@Override
public void fireEvent(Event? event) {
try {
LOG.debug(#fireEvent(Event? event):  + event != null ? 
event.toDebugString() : null);

super.fireEvent(event);
}catch(Exception e){
LOG.error(fire event failed:  + 
e.getCause().getMessage());
}
}

@Override
public void fireEvent(GwtEvent? event) {
try {
LOG.debug(#fireEvent(GwtEvent? event) + event != null ? 
event.toDebugString() : null);
super.fireEvent(event);
}catch(Exception e){
LOG.error(fire gwtevent failed:  + 
e.getCause().getMessage());
}
}
};
}

like you said the inner class (in this case the new SimpleEventBus) is the 
problem. fireEvent(Event? event) runs in my catch method. Problem is that 
the exception just says that i should check the umbrella exception for the 
cause. I don't know how to get this one? Or is this the point where i should 
place my GWT.setUncaughtExceptionHandler?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/v95As2zE_kcJ.
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 will get Multiple-File-Input(input type=file multiple= /) supported?

2011-06-21 Thread Alex Luya
How to get file list? can you post a code split to show how to do it?
--
public static native void getFiles() /*-{
var input =th...@com.domain.client.clx::fileUpload;
   
   for (var i = 0; i  input.files.length; i++) {
  $wnd.alert(input.files[i].name);
   }
return 
}-*/;
--
Above code will report error:
--
Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError):
Cannot read property 'files' of undefined  
--

On Wed, 2011-06-15 at 09:13 -0700, Thomas Broyer wrote:
 JSNI and JavaScriptObject overlay types FTW! 
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/lNk39MwjwWgJ.
 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.


-- 
You received this message because you are subscribed to the Google Groups 
Google 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: RequestFactory with Collections of ValueProxy in a ValueProxy

2011-06-21 Thread Alexandre Ardhuin
it looks like
http://code.google.com/p/google-web-toolkit/issues/detail?id=6354

Alexandre.


2011/6/20 Alexandre Ardhuin alexandre.ardh...@gmail.com

 Hi all,

 I face a very strange behavior on requestFactory with GWT-2.3.
 Sometimes, java.util.SetT collections are not deserialized as expected
 (java.util.ListT works well). Some elements are missing.

 Here's the code that illustrates the problem :

 // --
 // --- client side code
 // --

 @Service(value = MyService.class, locator = MyLocator.class)
 public interface MyRequest extends RequestContext {
 RequestMyObjectProxy getMyObject(int count);
 }

 @ProxyFor(value = MyObject.class)
 public interface MyObjectProxy extends ValueProxy {
 int getExpectedSize();
 SetStringContainerProxy getStringContainers();
 }

 @ProxyFor(value = StringContainer.class)
 public interface StringContainerProxy extends ValueProxy {
 String getString();
 }

 // --
 //  server side code
 // --

 public class MyLocator implements ServiceLocator {
 @Override
 public Object getInstance(final Class? clazz) { return new
 MyService(); }
 }

 public class MyService {
 public MyObject getMyObject(int count) {
 final SetStringContainer stringContainers = new
 HashSetStringContainer();
 for (int i = 0; i  count; i++) {
 stringContainers.add(new StringContainer(String.valueOf(i)));
 }
 return new MyObject(stringContainers.size(), stringContainers);
 }
 }

 public class MyObject {
 private final int expectedSize;
 private final SetStringContainer stringContainers;

 public MyObject(int expectedSize, SetStringContainer
 stringContainers) { this.expectedSize = expectedSize; this.stringContainers
 = stringContainers; }
 public int getExpectedSize() { return expectedSize; }
 public SetStringContainer getStringContainers() { return
 stringContainers; }
 }

 public class StringContainer {
 private final String string;

 public StringContainer(String string) { this.string = string; }
 public String getString() { return string; }
 }


 // --
 //  entry point that show different sizes
 // --

 public class MainPage implements EntryPoint {
 public void onModuleLoad()
 {
 final ClientFactory clientFactory =
 GWT.create(ClientFactory.class);
 clientFactory.init();
 call(clientFactory, 0);
 }

 private void call(final ClientFactory clientFactory, final int i)
 {
 if (i  100) {
 return;
 }

 clientFactory.getRequestFactory().myRequest().getMyObject(i).fire(new
 ReceiverMyObjectProxy() {
 @Override
 public void onSuccess(MyObjectProxy response) {
 RootPanel.get().add(new HTML(response.getExpectedSize() + 
  + response.getStringContainers().size()));
 call(clientFactory, i + 1);
 }
 });
 }
 }

 Here's the results for the 30 first requests (left is the expected size,
 right is the real size) :
 0 0
 1 1
 2 2
 3 3
 4 4
 5 5
 6 6
 7 7
 8 8
 9 9
 10 10
 11 11
 12 4  // problems start here...
 13 4
 14 4
 15 4
 16 4
 17 4
 18 4
 19 4
 20 4
 21 4
 22 4
 23 9
 24 10
 25 11
 26 12
 27 13
 28 14
 29 14
 30 14


 Using java.util.List instead of java.util.Set resolves the problem.

 Did i miss something ?

 Alexandre.



-- 
You received this message because you are subscribed to the Google Groups 
Google 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: Highlight a selected map marker based on a custom icon.

2011-06-21 Thread Thomas Lefort
Have you tried implementing your own marker, ie extending overlay?
mind you there are a few things you'll miss out on, eg drag for
instance but it's pretty straightforward and you can add the dom
elements you like, and change their style.


On Jun 20, 4:00 pm, MeiAestro jmalbre...@gmx.de wrote:
 Still totally clueless. Anybody ANY idea?

 On Jun 16, 10:11 am, MeiAestro jmalbre...@gmx.de wrote:







  It's my first posting here, so hello to everybody!

  My Question: In GWT 2.3.0 I use custom icons in a map as markers. I
  would love to change the icon which is currently selected. This Icon
  should be similar to the original one (i.e. somehow highlighted). I
  thought about different ideas which all are somehow difficult for me
  to realize:

  1. As the icons are (and have to be) stored in a blobdatastore I was
  thinking about painting a second Icon and storing it in the same
  blobdatastore. Unfortunately I did not find a way to draw in an
  existing blobimage (on server side).
  2. Changing the style of the icon (i.e. adding a colored border).
  Unfortunately neither the icon nor the marker have a setstyle
  method. Is the uibinder a possiblel way to do that? I see a problem in
  changing the style of only the selected marker/icon.
  3. Repainting the icon on client side. As far as I could find out this
  won't be possible for all browsers.

  Do you have any hints for me?

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



Re: GWT Context2d - drawing text - fontsize

2011-06-21 Thread ghost23
Works! :o)
Thanks

On 20 Jun., 17:58, Thomas Broyer t.bro...@gmail.com wrote:
 Seehttp://diveintohtml5.org/canvas.html#text
 Which translates in GWT into: context2d.setFont(bold 12px sans-serif);

-- 
You received this message because you are subscribed to the Google Groups 
Google 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: Re : Re: CellTree with SingleSelectionModel will not fire event for root node (GWT 2.3)

2011-06-21 Thread mkkm...@gmail.com
Yes, it's the end of the code:

 // defining
  *private SingleSelectionModelMyType selectionModel =**
new SingleSelectionModelMyType();*

  // inside TreeViewModel ctor (or in a better place)
 * selectionModel.addSelectionChangeHandler(new 
SelectionChangeEvent.Handler() {**

public void onSelectionChange(SelectionChangeEvent event) {
  // fire rpc, a place change or something else
**  // event.getSelectedObject() contain**s the selected element
}
  });*

  // return the DefaultNodeInfo with info about the selection strategy
  public T NodeInfo? getNodeInfo(T value) {

// do something with the value and return the right DefaultNodeInfo
if(value instanceof MyType1) {
  return new DefaultNodeInfoSectionDTO(
  new SectionDataProvider(),
  new MyCustomCellOrADefaultOne(),
  *selectionModel*,
  null);
}
else if ...
  }


Michaël

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/K5UlSlv5YaoJ.
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: No source code is available for type java.lang.NoSuchFieldError

2011-06-21 Thread Paul Robinson



On 20/06/11 21:21, Hilco Wijbenga wrote:

On 20 June 2011 11:59, Nathan Klattn8kl...@gmail.com  wrote:

I've inherited a GWT project and I'm receiving the following compiler error
(more info below):

[java] [ERROR] Line 51: No source code is available for type
java.lang.NoSuchFieldError; did you forget to inherit a required module?

It's complaining about a core part of the language here, right? Why is it
looking for source code for it at all? Is it not finding one of the core jar
files? Do I need to point it at something in the ant build.xml file?

GWT doesn't support *everything* available in the Java core libraries.

See http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html

Note in particular that reflection is not supported for code translated to 
javascript (ie everything in the client).

Paul

--
You received this message because you are subscribed to the Google Groups Google 
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: Aw: Re: Strange History Behaviour

2011-06-21 Thread Thomas Broyer
try {
  super.fireEvent(event);
} catch (UmbrellaException ue) {
  for (Throwable t : ue.getCauses()) {
// here, use your code that prints the stack-trace; and if it's not 
enough, loop over the getCause() hierarchy
  }
}

An UncaughtExceptionHandler is a global catch: basically, your GWT code is 
run in a big try/catch, so any exception you don't catch will go to your 
UncaughtExceptionHandler (if you set one; or they'll generate JavaScript 
errors in your browser console)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Dzqlz4vwqSoJ.
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.



Aw: Re: Strange History Behaviour

2011-06-21 Thread Sven
I solved it You won't believe it... My View is currently using a third 
party calendar which needs to be implemented via native js. Deep in my 
UmbrellaExceptions I found something like $wnd.Calendar is null or wrong 
type. However this was firing an event which got recognized by GWT an 
encapsulated in about 10 UmbrellaExceptions... I also didn't find it because 
I casted to UmbrellaException from gwt shared package but it was from 
bindery package shared ;)

Crazy stuff but thx for your help Thomas.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/yV0S8GNl9KwJ.
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 will get Multiple-File-Input(input type=file multiple= /) supported?

2011-06-21 Thread Thomas Broyer


On Tuesday, June 21, 2011 9:11:28 AM UTC+2, Alex Luya wrote:

 How to get file list? can you post a code split to show how to do it?
 --
 public static native void getFiles() /*-{
 var input =th...@com.domain.client.clx::fileUpload;


'static' + 'this' ?!
 


for (var i = 0; i  input.files.length; i++) {
   $wnd.alert(input.files[i].name);
}
 return 
 }-*/;


Yes, that's the idea (we made a JavaScriptObject for the File JS object, and 
a helper method to get a JsErrayJsFile out of an InputElement)
 

 --
 Above code will report error:
 --
 Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError):
 Cannot read property 'files' of undefined  
 --



Also, is your fileUpload field an InputElement or a FileUplaod widget? if a 
FileUpload widget, you'll have to call 
@.com.google.gwt.user.client.ui.Widget::getElement() on it first.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/kP9XDkdutBIJ.
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.



Aw: Re: Strange History Behaviour

2011-06-21 Thread Sven
This showed me the root of the problem ;)

import com.google.web.bindery.event.shared.UmbrellaException;
...

...
private void checkAndPrintException(Throwable ex) {
if(ex instanceof UmbrellaException){
LOG.debug(UMBRELLA EXCEPTION FOUND);
UmbrellaException umbEx = (UmbrellaException)ex;
for(Throwable t: umbEx.getCauses()){
if(t != null){
checkAndPrintException(t);
LOG.debug(Throwable caught:  + t.getMessage());
}
}
}
}

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/aOKYKcpBLvYJ.
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: Incompatibility between RequestFactory and JPA collections with orphanRemoval=true

2011-06-21 Thread Ryan McFall
Thanks for the help interpreting the JSON.  After I posted the
original message I noted that it looked like only objects referenced
in collections were being updated.

The interesting part of your description of how the diffs are built is
that I took the call to RequestContext#edit on the proxy out, to see
what would happen if I tried to save the original proxy object.  The
JSON string I posted actually came from doing that, so something is
definitely strange.  If I do execute the edit method, the generated
JSON is the same.

Do you know offhand in which class the diff is built, so that I can
look to see if the bug that you pointed out is indeed the source of
the problem?

Thanks,
Ryan


On Jun 20, 4:45 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On Monday, June 20, 2011 9:08:31 PM UTC+2, Ryan McFall wrote:

  Implementing the setSurveyPermissions method as you suggested seems to
  have helped a bit.  However, I'm still a bit confused as to what the
  client-side behavior I'm seeing should be.

  As I mentioned, I retrieve and then send an object, and don't make any
  modifications to the object on the client.  But when I look at the
  operations in SimpleRequestProcessor.processOperationMessages, I see
  the following as the result of the call to req.getOperations.
  Basically, this looks like every object referenced by the Survey proxy
  object is being sent over the network and some of them are marked as
  needing update.  Am I right in that interpretation?

 Actually, only the stable IDs of the referenced objects are sent (T=type,
 S=server ID, they are IdMessage objects; top level objects –the ones with a
 P property and/or UPDATE operation– are OperationMessage).
 I interpret this as meaning it thinks the collection has changed, which
 could very well be a manifestation of the issue I already linked to.

 If so, I'm not sure why this is happening.  Does the client keep track

  of method calls to determine what needs to be updated, or something
  else?

 When you RequestContext#edit() a proxy, a mutable copy is created; and when
 you fire(), the diff is built by comparing with the immutable version (using
 AutoBeanUtils.diff that's mentionned in the issue report).
 I'm not sure what the UPDATE means here (I don't remember).

-- 
You received this message because you are subscribed to the Google Groups 
Google 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: Pluggable modules

2011-06-21 Thread manstis
Hi,

Thanks for your invaluable help.

I'm mashing together a simple example for me to learn from that has a
single statically defined plug-in.

I am growing to believe I need to deploy each plug-in as a separate
WAR on a web-server. Is this true, or have I missed something?

I am also using gwt-exporter to make the JSNI messaging mechanism;
i.e. I just write an Exportable class and use the resulting JS API
from my plugins. I am hoping to use gwt-api-interop to remove the need
to use the JS API.

I assume the JS bridge between GWT applications handles the
messaging between them (i.e. plugins register callbacks to handle
messages sent from the host?)

If I understand correctly, adding additional script tags to my
loader page and having each plug-in as a separate WAR I avoid the
need to inherit in my gwt.xml file?

An example of your use of JavaScriptObject in your messaging sub-
system would be interesting

Thanks again.

Mike

On Jun 17, 12:20 pm, lemaiol lema...@gmail.com wrote:
 I followed the basic ideas of application's linking and loading:
  - The GWT host page is the loader. So you have to know how to
 discover the modules to be loaded.
    + KIS: have a class on the server side that know modules' ids,
 names and URL's and generate the GWT host page using a JSP.
    + Best practice: map the default GWT page's name to the JSP within
 your web.xml. From outside nobody will know that the page is not
 static.
    + The resulting page has as many script tags to load the
 *.nocache.js files as modules should be loaded.
  - Once that all the applications (independent WARs) have been loaded,
 they all live in the same application space: the browser window. But
 they have each an own GWT application space. The JS engine is common
 to all and native JS (not generated from GWT) is more pervasive and
 does not get affected by GWT compilation + linking.
  - Implement a communication mechanism based on JS (ex: message
 dispatch facility)
    + Create an structure in the GWT page where the plugins can
 register themselves. An JSON object will do the trick: var pluggins =
 {{name: 'plugin1', callback: ''}, {name: 'plugin1', callback:
 ''}, ...}; Because it is embedded in the page, it is already there
 (static) when all applications are loaded. No application is assured
 to be loaded and initialized first!
    + Create GWT wrapper classes inheriting from JavaScriptObject to
 access this structure (ex: register / attach, sendMessage,
 receive). Define communication and plugin interfaces and pack all in
 a jar with sources and module.gwt.xml = GWT module.
    + Use JSNI for the methods implementation and calling back into
 GWT. Use these classes in each plugin application. The GWT compiler
 with compile and link the GWT code but the JSNI code remains as it is.
  - Because at some time, the individual plugins have to be shown in
 the web page, create an static HTML structure with explicit HTML IDs.
 One or more of them will be populated by the plugins once at a time.
 It is important that it is static because, once again, it belongs to
 the broswer application space (window) and not to a concrete GWT
 application space. Said in another way, none of you applications
 should generate the DOM elements for other plugins neither from code
 nor with UiBinder.
  - One plugin is the main plugin and he is the first to show up + he
 normally dispatches to other plugins or offers the dispatching
 mechanism.
  - Your application needs a common message model for the messages.
 Should inherit from JavaScriptObject and be created with the class
 factory methods and the populated.

 Which snippets do you want?

 Berto

 On Jun 16, 2:08 am, kendeng9898 dolephi9...@gmail.com wrote:

  Hi Berto,
    Waiting for more details. give some simple sample code is
  appreciate.

    Since the compilation speed  easy development, I've changed to use
  pyjamas project, a python verion of GWT. But I still interesting in
  how to do the plugin. The hardest part is how to solved the different
  compilation and linked.

  Thanks,
  Ken



-- 
You received this message because you are subscribed to the Google Groups 
Google 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 plugin with eclipse indigo

2011-06-21 Thread Lwando Mjila
Oh ok, thanks, what about smartgwt?

On Jun 20, 2:44 pm, Thomas Broyer t.bro...@gmail.com wrote:
 Seehttps://twitter.com/#!/googledevtools/status/81811661354319872

-- 
You received this message because you are subscribed to the Google Groups 
Google 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: Incompatibility between RequestFactory and JPA collections with orphanRemoval=true

2011-06-21 Thread Thomas Broyer
See 
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java

Actually, passing a proxy to a method implicitly edit()s it (see retainArg, 
called from addInvocation, called by the generated implementation of your 
RequestContext methods), that's why you don't see a difference.
The diff is then done in in makeOperationMessage, called by 
makePayloadOperations for each proxy in editedProxies (either create()d, 
edit()d, or used as an invocatino argument).
This is almost the same code as in isChanged, which seems to confirm that 
what you're seeing is due 
to http://code.google.com/p/google-web-toolkit/issues/detail?id=5952

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/6kAODGyxLK8J.
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: EasyGWT 1.1.0 is finally here!

2011-06-21 Thread J.Ganesan
Thank you. In another two days, we will put up a demo running in GAE .
It will be easier for you to get familiarized with API.

J.Ganesan
www.DataStoreGwt.com


On Jun 21, 6:02 am, Alfredo Quiroga-Villamil laww...@gmail.com
wrote:
 I just checked outhttp://www.datastoregwt.com/. I  could not agree more
 with all the statements you have on the page; didn't know this project
 existed. I currently use GiLead. I will def. check it out and give it a try.
 It makes a lot of sense.

 Thanks.

 Alfredo

 On Mon, Jun 20, 2011 at 8:54 PM, J.Ganesan j.gane...@datastoregwt.comwrote:







  Yes. This is very handy for enterprise applications. Takes away the
  drudgery. Nice work.

  J.Ganesan
 www.DataStoreGwt.com

  On Jun 20, 7:40 pm, Alfredo Quiroga-Villamil laww...@gmail.com
  wrote:
   Hello Group:

   We are really happy to announce the release of EasyGWT 1.1.0!

   EasyGWT http://code.google.com/p/easy-gwt/

   *Why EasyGWT?*

   If you have ever worked on multiple projects for large enterprise
   applications you've probably found yourself writing and wiring a view
   usually containing the commonly used HTML column layout. You typically
  end
   up having the need for a North Panel that contains some actions. A South
   Panel is usually also employed to display hyper links containing things
  such
   as Contact Us, Report Issues, etc. Then there is the highly used
   Navigation Panel which contains hyperlinks that upon being clicked on
   display a view in a Center Panel.

   The process of creating this boilerplate code can at times feel
  repetitive,
   time consuming and if you work for a large company then your department
   might end up having a mini-framework and a different organization using
   something completely different. Maintaining such environments quickly
  become
   cumbersome, duplication starts to trickle in and soon you have a problem
   that gets exponentially bigger as the organizations and company grows.

   The need to have a common platform upon which to build enterprise
   applications then becomes apparent and the benefits of such approach are
   huge. To name a few:

      - Applications built with a common platform provide a common look and
      feel for both internal as well as external customers.
      - Patches and new features are instantly available to all developers
      across the company.
      - The Go To Market time for new applications decreases drastically
  while
      the stability of the application itself is greater since it uses a
  well
      tested and used through out framework.

   *What does the module provide:*

      - The commonly used column layout that can be seen in most web
      applications today.

      1. North Panel with Task Bar.
      2. East Panel.
      3. Navigation Panel.
      4. South Panel.
      5. Center Panel:

        - Views are added to this panel.

        - All views have instant access to:

      @Override

      public void onRender() {}

      @Override

      public void prepareToHideView() {}

      @Override

      public void prepareToShowView() {}

      - An implementation of the GWT Event Bus hence allowing the user to
  fire
      and handle events through out the application in a super easy way.

      - Integrated with GXT offering a huge selection of rich widgets.

      - Four themes out of the box since the framework exposes the four CSS
      styles provided by GXT.

      - Login Dialog implementation with Signup and Forgot Password buttons
      already included.

      - The framework loads the left and right banner images as well as the
      login dialog image. All the developer needs to do is to simply create
  them
      and put them under the easyGWT resources in the war directory.

      - More importantly the framework allows the developer to concentrate
  on
      simply creating a List of Navigation Parents with their respective
  children
      containing each a view which is the part where the Software Engineer
  needs
      to really invest time and effort. Simply work on the views needed and
  all
      the other wiring is provided by the framework.

  --
  You received this message because you are subscribed to the Google Groups
  Google 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.

-- 
You received this message because you are subscribed to the Google Groups 
Google 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: building custom event differently to avoid boiler plate coding?

2011-06-21 Thread Ramon Salla
+1 to this!

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/SAqQBT-i0iAJ.
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: building custom event differently to avoid boiler plate coding?

2011-06-21 Thread Elhanan
thanks, i was thinking about maybe starting a blog called the 
no-boilerplate series to post shortcuts such as these i come with, but i 
thought surely folks have more experience then me, in these things..

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/VaLQWBYTYooJ.
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 Project Structure Frontend/Backend

2011-06-21 Thread Ramon Salla
Yes. We are already doing this.
We started using RequestBuilder and Json (Des)Serialization but we ended up 
using plain RPC services as development is so much easier. We are wrapping 
some of those RPC services with REST using jersey. 
We have two dependent projects one with server code and the other with 
shared and client code.
Be careful with this because of SOP and GWT policyFiles! they are tricky.

Ramon Salla

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/GYcElCLyMDgJ.
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 Project Structure Frontend/Backend

2011-06-21 Thread Elhanan Maayan
i'm unfamiliar with SOP and gwt policy files,

i havn't tried much of rpc aside form the fact that each service should only
object of input and object of output both extending RequesInput and
RequestOutput interfaces (generic wise) to avoid break method signature
incase of changes .

i then moved on to request factory and editor framework, this is where i'm
having problems getting a grasp to it.

btw maybe you should check out my feature request for gwt's plugin handling
of gwt.xml module files.

On Tue, Jun 21, 2011 at 3:51 PM, Ramon Salla rsal...@gmail.com wrote:

 Yes. We are already doing this.
 We started using RequestBuilder and Json (Des)Serialization but we ended up
 using plain RPC services as development is so much easier. We are wrapping
 some of those RPC services with REST using jersey.
 We have two dependent projects one with server code and the other with
 shared and client code.
 Be careful with this because of SOP and GWT policyFiles! they are tricky.

 Ramon Salla

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/GYcElCLyMDgJ.
 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.


-- 
You received this message because you are subscribed to the Google Groups 
Google 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 Project Structure Frontend/Backend

2011-06-21 Thread Juan Pablo Gardella
You can use gwt-dispatch if you use RPC.

2011/6/21 Elhanan Maayan elh.mailg...@gmail.com

 i'm unfamiliar with SOP and gwt policy files,

 i havn't tried much of rpc aside form the fact that each service should
 only object of input and object of output both extending RequesInput and
 RequestOutput interfaces (generic wise) to avoid break method signature
 incase of changes .

 i then moved on to request factory and editor framework, this is where i'm
 having problems getting a grasp to it.

 btw maybe you should check out my feature request for gwt's plugin handling
 of gwt.xml module files.


 On Tue, Jun 21, 2011 at 3:51 PM, Ramon Salla rsal...@gmail.com wrote:

 Yes. We are already doing this.
 We started using RequestBuilder and Json (Des)Serialization but we ended
 up using plain RPC services as development is so much easier. We are
 wrapping some of those RPC services with REST using jersey.
 We have two dependent projects one with server code and the other with
 shared and client code.
 Be careful with this because of SOP and GWT policyFiles! they are tricky.

 Ramon Salla

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/GYcElCLyMDgJ.
 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.


  --
 You received this message because you are subscribed to the Google Groups
 Google 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.


-- 
You received this message because you are subscribed to the Google Groups 
Google 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 : Re: Re : Re: CellTree with SingleSelectionModel will not fire event for root node (GWT 2.3)

2011-06-21 Thread mkkm...@gmail.com
Can you post your getNodeInfo methdo code ?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/fhH98t5si6wJ.
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.



UML (Ecore) integration Android

2011-06-21 Thread Dave K
I've made an Ecore diagram and some generated code. I want to use the
generated model in an Android project but I can't get it to work. I've
added the UML project to the build path and can call classes form it.
After compiling no error is given but when I use it in the emulator or
phone it crashes immediatly.

I hope someone can tell me what to do?

Thanks, Dave Kosterink

-- 
You received this message because you are subscribed to the Google Groups 
Google 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 2.4 - What and when?

2011-06-21 Thread cri
What's new in GWT 2.4?

On Jun 20, 3:50 pm, Thomas Broyer t.bro...@gmail.com wrote:
 See also:https://twitter.com/#!/googledevtools/status/81811661354319872

-- 
You received this message because you are subscribed to the Google Groups 
Google 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 meets Adobe Flex: gwt4air 2.1 is here !

2011-06-21 Thread Iqbal Yusuf
Well a BIG THANK YOU Alain.

I'm just enjoying your brilliant cooked up library. :)

That link I put up just for you to test so I haven't done anything yet.
Since all my video contents are up in the Amazon CloudFront cloud it was
vital that I could stream video using rtmp protocol using your tool. It is
working so now I will start my real development soon.

On Tue, Jun 21, 2011 at 1:06 AM, Alain Ekambi
jazzmatad...@googlemail.comwrote:

 Hello Yusuf,
 I m glad  you got it to work.
 I took a look at the link you provided. Looks pretty :)
 Maybe you want to change the backgroundColor to white ?
 You can do that by calling
 *Applicaton.get().setStyle(backgroundColor, #FF);*
 *
 *
 in the initHandler
 *
 *
 Little complicated for now i have to admit. 2.2 will try to simplefy the
 API for thing like backgroundcolors.

 Thank you 4 using gwt4air.

 cheers,

 Alain



 2011/6/21 Iqbal Yusuf iyu...@dcl-online.com

 Hey Alain:

 First of all I'm extremely sorry about the false call. Yes you are right
 it was my FireFox browser issue. Everything is running as you said. Thanks
 again for a great library. I've put up your video display module with video
 source pointing to one of my Amazon Cloudfront RTMP video. It works.

 http://java.oviplus.com/dipu/



 On Mon, Jun 20, 2011 at 5:59 PM, Alain Ekambi 
 jazzmatad...@googlemail.com wrote:


 I ve run the example in different browsers and different machines and
 still cant reproduce the error. It looks like there s problem with your
 local settings. But i cant figure out what.
 Do you have access to another machine  to test ? In the mean time i ll
 still investigate


 2011/6/21 Iqbal Yusuf iyu...@dcl-online.com

  Yes I can run the explorer from here
 http://www.gwt4air.appspot.com/



 On Mon, Jun 20, 2011 at 5:36 PM, Alain Ekambi 
 jazzmatad...@googlemail.com wrote:

 Can you also please tell if you are able to run the explorer on your
 machine ?
 Best,


 Alain


 2011/6/21 Alain Ekambi jazzmatad...@googlemail.com

 This is really wired.
 I ve never seen this error before
 Will have a look at it and get back to to you


 2011/6/20 Iqbal Yusuf iyu...@dcl-online.com

 Here is in detail what I've done so far.

 Step 0:
 Created a GWT application using Eclipse IDE with default settings.

 Step 1:
 Followed your instruction as stated here ==
 http://code.google.com/p/gwt4air/wiki/FlexStart

 Step 2:
 Here is my entry point class;

 *package com.bdeshtv.gwtairtest.client;*
 *
 *
 *import com.ekambi.gwt.web.flex.client.core.framework.FLEX;*
 *import
 com.ekambi.gwt.web.flex.client.core.framework.FlexInitializationHandler;
 *
 *import com.google.gwt.core.client.EntryPoint;*
 *import com.google.gwt.core.client.GWT;*
 *
 *
 *public class Gwt4AirTest implements EntryPoint {*
 *
 *
 * *
 *private static final String SERVER_ERROR = An error occurred while
 *
 * *
 *+ attempting to contact the server. Please check your network *
 * *
 *+ connection and try again.;*
 *
 *
 * *
 *private final GreetingServiceAsync greetingService = GWT*
 * *
 *.create(GreetingService.class);*
 * *
 *public void onModuleLoad() {*
 *
 *
 * *
 * FLEX.init(new FlexInitializationHandler() {*
 * *
 *   @Override*
 * *
 *   public void onInitialization() {*
 * *
 * *
 * *
 *  // your code here*
 *
 *
 * *
 *}});*
 * *

 }
 }



 Here is the error message again. I didn't have to use any controls to
 invoke the error message. Just adding init method will invoke it. I do 
 see
 some folders are getting accessed from the error message. I don't even 
 have
 this folder or E: drive on my laptop.

 An ActionScript error has occured:
 ReferenceError: Error #1056: Cannot create property allowCodeImport
 on flash.system.LoaderContext.
 at mx.core::CrossDomainRSLItem/completeCdRslLoad()*
 [E:\dev\hero_private\frameworks\projects\framework\src\mx\core\CrossDomainRSLItem
 *.as:277]
  at
 mx.core::CrossDomainRSLItem/itemCompleteHandler()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\CrossDomainRSLItem.as:386]
 at flash.events::EventDispatcher/dispatchEventFunction()
  at flash.events::EventDispatcher/dispatchEvent()
 at flash.net::URLLoader/onComplete()

 --
 You received this message because you are subscribed to the Google
 Groups Google 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 API for  non Java based platforms
 http://code.google.com/p/gwt4air/
 http://www.gwt4air.appspot.com/





 --

 GWT API for  non Java based platforms
 http://code.google.com/p/gwt4air/
 http://www.gwt4air.appspot.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
 

setting the default number of tree nodes to display in celltree

2011-06-21 Thread DevJodie
Hi all,

Is there a way to set the number of tree nodes to be displayed in
celltree? setDefaultNodeSize() works only for the child nodes. There
should be a way to set the default number of nodes to be displayed for
the tree nodes that are already open. Does anybody know a way to do
that?

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: Re : Re: Re : Re: CellTree with SingleSelectionModel will not fire event for root node (GWT 2.3)

2011-06-21 Thread Jens Teglhus Møller
Hi

I have trimmed down my tree to a minimal example root node with one
child both strings and here it works (should of course have done this
before my initial post :-(), i suspect it to be related to some
generics stuff that i'm clueless about. I will have to dig deeper into
this.

Sorry for the noise.

Best regards Jens

On Tue, Jun 21, 2011 at 3:18 PM, mkkm...@gmail.com mkkm...@gmail.com wrote:
 Can you post your getNodeInfo methdo code ?

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/fhH98t5si6wJ.
 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.


-- 
You received this message because you are subscribed to the Google Groups 
Google 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.



Displaying entries of an CellList lazily?

2011-06-21 Thread zeroconf
Dear GWT devs,

I would like to display entries of a CellList in a lazy manner,
similar to the Table Widgets of SWT. That is, the data is not
populated before its row is displayed. Unfortunately, I didn't figured
out how this can be done with the CellList or CellTable. The list
contains about 1 entries that are loaded from the server. The
exact number of entries is known. Because of the large number and to
reduce the initial traffic and startup time, I want to display the
terms lazily. I do not want to use a pager because this doesn't allow
one to quickly jump around and also the example in which the list is
updated when the scrollbar is at the bottom is not really useful here
in the scenario. Is this possible with current GWT?

Thanks!
Sebastian

-- 
You received this message because you are subscribed to the Google Groups 
Google 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: Unable to load module entry point class

2011-06-21 Thread Ben Munge
Can you post your code for WelcomePage?

On Jun 20, 11:42 am, SCK guyedj...@gmail.com wrote:
 Hi,

 I'm new developer in GWT. I try somthing and when I want to Run the
 application, I get error Failed to load Module.
 See error in below:

 [ERROR] Unable to load module entry point class
 com.Habou.client.WelcomePage (see associated exception for details)
 com.google.gwt.core.client.JavaScriptException: (TypeError):
 '$wnd.Ext.StatusBar' a la valeur Null ou n'est pas un objet.
  number: -2146823281
  description: '$wnd.Ext.StatusBar' a la valeur Null ou n'est pas un
 objet.
         at com.gwtext.client.widgets.Component.checkExtVer(Native Method)
         at com.gwtext.client.widgets.Component.clinit(Component.java:108)
         at com.Habou.client.WelcomePage.createComponents(WelcomePage.java:31)
         at com.Habou.client.WelcomePage.onModuleLoad(WelcomePage.java:24)

 Thank you for your Help

-- 
You received this message because you are subscribed to the Google Groups 
Google 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: No source code is available for type java.lang.NoSuchFieldError

2011-06-21 Thread Ben Munge
In your GWT console double click the individual errors and you should
get a more detailed stack trace. It likely is something wrong with
your code rather then a missing import/resource. I've gotten a similar
error in the past and it's not overly intuitive.

On Jun 20, 1:59 pm, Nathan Klatt n8kl...@gmail.com wrote:
 I've inherited a GWT project and I'm receiving the following compiler error
 (more info below):

 [java] [ERROR] Line 51: No source code is available for type
 java.lang.NoSuchFieldError; did you forget to inherit a required module?

 It's complaining about a core part of the language here, right? Why is it
 looking for source code for it at all? Is it not finding one of the core jar
 files? Do I need to point it at something in the ant build.xml file?

 For testing purposes, I followed all the GWT 
 instructionshttp://code.google.com/webtoolkit/gettingstarted.html,
 used webAppCreator to generate a Hello, world. app, and that builds and
 runs just fine. I added a simple try...catch(NoSuchFieldError err) - and an
 import java.lang.NoSuchFieldError line - and it gave me the error.

 I'm new to this Java/GWT stuff so I suspect I'm missing something obvious -
 I'd love it if you could point out exactly what! :)

 Thanks.

 =

 $ ant build
 Buildfile: build.xml

 libs:

 javac:
     [javac] Compiling 1 source file to
 /home/nklatt/gwt-2.3.0/MyWebApp/war/WEB-INF/classes

 gwtc:
      [java] Compiling module com.mycompany.mywebapp.MyWebApp
      [java]    Validating newly compiled units
      [java]       [ERROR] Errors in
 'file:/home/nklatt/gwt-2.3.0/MyWebApp/src/com/mycompany/mywebapp/client/MyW 
 ebApp.java'
      [java]          [ERROR] Line 51: No source code is available for type
 java.lang.NoSuchFieldError; did you forget to inherit a required module?
      [java]    Finding entry point classes
      [java]       [ERROR] Unable to find type
 'com.mycompany.mywebapp.client.MyWebApp'
      [java]          [ERROR] Hint: Previous compiler errors may have made
 this type unavailable
      [java]          [ERROR] Hint: Check the inheritance chain from your
 module; it may not be inheriting a required module or a module may not be
 adding its source path entries properly

 BUILD FAILED

-- 
You received this message because you are subscribed to the Google Groups 
Google 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: Dev Mode gwt.rpc file

2011-06-21 Thread Tim
    I'm trying to write code to retrieve the serialization policy
 manually and ran into an issue.  My compiled GWT code outputs a
 gwt.rpc file indicating what can and cannot be serialized for my app
 but when I deploy dev mode that file is no where on my file system.
 Is this in some hidden location?  Is there a way for me to tell dev
 mode to generate this file if it's done in memory or something?
 Thanks

The gwt.rpc-File should be written in Dev Mode. Maybe you are
compiling the GWT-code to another location when starting the Dev Mode?
You can check the Arguments-tab of your Eclipse run configuration if
there is an argument -war pointing to another location.


  Tim

-- 
You received this message because you are subscribed to the Google Groups 
Google 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 with GWT Service results

2011-06-21 Thread Jose Luis Hernandez
Hello!
I have a problem. I am calling to server side on GWT. The results of
call is an ArrayList (result). Inside onSuccess method another
ArrayList is wrapped with the result. However, if I want to use
ArrayList lista outside of onSuccess method it contains 0 elements,
but inside is like result ArrayList. How can I solve it? I have tried
to use lista as class attribute, static attribute,... but it doesn't
run.
Thanks!

public void addContainers() throws Exception {
final ArrayListString lista = new ArrayListString();
gwtService.obtainAttributesDevice(1, new
AsyncCallbackArrayListString(){
@Override
public void onFailure(Throwable caught) {
System.out.println(ERROR);
Window.alert(caught.getMessage());
}
@Override
public void onSuccess(ArrayListString result) {
RootPanel.get(mainContainer).add(new 
Label(Array result:
+result.toString()));
RootPanel.get().add(new 
Label(String.valueOf(Array result:
+result.size(;
lista.addAll(0, result);
RootPanel.get(mainContainer).add(new 
Label(Array lista 1:
+lista.toString()));
RootPanel.get().add(new 
Label(String.valueOf(Array lista 1:
+lista.size(;
}
});
RootPanel.get(mainContainer).add(new Label(Array lista 2:
+lista.toString()));
RootPanel.get().add(new Label(String.valueOf(Array lista 2:
+lista.size(;
for(int i = 0; i  lista.size(); i++){
RootPanel.get().add(new Label(BOTON +i));
}
}

-- 
You received this message because you are subscribed to the Google Groups 
Google 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.



Streaming

2011-06-21 Thread Khadija FERJANI
Hello everybody
Can someone help me with ideas or links about VideoStreaing over GWT please.
Thanks

-- 
Cordialement, Khadija FERJANI
Élève ingénieur à la faculté des sciences de Tunis.

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



How to call a rest web service from gwt mobile application

2011-06-21 Thread syruss
Hi all,

I have created  a mobile application using GWT.I have successfully
created the UI part but i have to call a rest web service from GWT mob
app.

What i have tried is
1.I have called the rest web service using HttpUrlConnection in java
its working fine as web app but if i deployed the app in mobile its
not working.
2.I have tried to call the service using RequestBuilder but its giving
0 status code.

Please suggest me to proceed that

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.



Compiler Deprecated warnings

2011-06-21 Thread Nuno R
Hi,

I'm using SDK 2.1.0 on a project and using incubator (gwt-
incubator-20101117-r1766.jar) for the FastTree widget.
When i compile the project, compiler throws deprecated warnings on
widgets that aren't used on the project code.
As all i can see, FastTree and FastTreeItem doesn't have any reference
to it also.

Why is compiler throwing this warnings? Does the GWT compiler validate
all classes inside de incubator jar?


com/google/gwt/widgetideas/client/impl/GlassPanelImpl.java
deprecated class 'com.google.gwt.user.client.impl.DocumentRootImpl’
deprecated class 'com.google.gwt.user.client.impl.DocumentRootImpl’

com/google/gwt/widgetideas/table/client/
FixedWidthGridBulkRenderer.java
 Line 122: deprecated class
com.google.gwt.widgetideas.table.client.overrides.HTMLTable’

com/google/gwt/widgetideas/table/client/GridBulkRenderer.java
deprecated class
'com.google.gwt.widgetideas.table.client.overrides.HTMLTable’
deprecated class
'com.google.gwt.widgetideas.table.client.overrides.Grid'
deprecated class
'com.google.gwt.widgetideas.table.client.overrides.Grid'
deprecated class
'com.google.gwt.widgetideas.table.client.overrides.HTMLTable'

com/google/gwt/widgetideas/table/client/TableBulkRenderer.java'
deprecated class
'com.google.gwt.widgetideas.table.client.overrides.HTMLTable’

-- 
You received this message because you are subscribed to the Google Groups 
Google 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.



nocache.js and DOM XSS

2011-06-21 Thread Glen
Hi,

I am supporting a couple of older GWT apps (version 1.4) and the IT
Security audit is red-flagging the nocache.js files of these apps with
DOM XSS vulnerabilities.
More specifically, the code highlighted looks to be the use of
document.location.href (i.e. the page URL).

My understanding is this file is the bootstrap script which determines
which javascript version of my app to load, based on the browser
version, OS version and things like that,  and then loads it.

Is this a genuine security risk which would allow someone to inject a
script into the dom by appending it to the page URL via a forged link,
for example?
Or is the audit just flagging code out of context?

And, if there is a risk, what can I do about it?  (Btw, I noticed that
the nocache.js generated by GWT 2.3 has similar code.)

Any help or guidance would be greatly appreciated.

Thanks,

Glen.

-- 
You received this message because you are subscribed to the Google Groups 
Google 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.



Displaying images from server folder

2011-06-21 Thread nikd
Hi,

I'm totally new to this area of programming, and I would like to know
if it is possible to display using GWT the contents of a (random - in
path) folder that resides in server and which are images.

Also, is it possible to add custom controls to the GWT that will
create and/or manipulate folders in server side? Are there any
restrictions.

-- 
You received this message because you are subscribed to the Google Groups 
Google 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.



Eclipse hosted mode in Facebook iframe

2011-06-21 Thread Peter
Hi,

We're developing a Facebook app with GWT but can't get the hosted mode
in Eclipse to work inside Facebook's iframe. Have anyone got this
working? It would make it simpler to debug some issues.

We've tried using the dev plugins for Firefox 4, Explorer 7 and Chrome
12. Firefox and Explorer only shows the last cached, GWT compiled
page. Chrome says Plugin failed to connect to Development Mode
server

We've tried adding gwt.codesvr=127.0.0.1:9997 to both the iframe URL
and to the top window URL.

Anyone else who's made a Facebook app with GWT, please make a comment.

-- 
You received this message because you are subscribed to the Google Groups 
Google 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: GMail like selection combobox

2011-06-21 Thread Ben Munge
It's a pretty simple Widget. The checkbox itself is simply a standard
check box. The event would check all if clicked and unchecked all if
unchecked. The box around it is simply a div styled as a button with a
click event. The click event shows the dropdown which is simply
another collection of divs, each with their own click event to check
the checkboxes of the appropriate type. There's nothing overly unique
about the widget as a whole. Take a look at the Gmail html of the
option and it should be pretty easy to build.

On Jun 17, 4:09 pm, joel jtrun...@gmail.com wrote:
 In GMail there is a combobox that shows a checkbox, you can drop-down
 the box and get the selections such as all/none... If you click
 the checkbox it will checkmark all your emails...

 How can I make that widget with GWT?

 J

-- 
You received this message because you are subscribed to the Google Groups 
Google 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.



java.lang.ExceptionInInitializerError

2011-06-21 Thread hongjie86...@yahoo.com.cn
I am a begginner of GWT.I used gwt-2.3.0.When I debug the sample of
DynaTable under gwt-2.3.0, I encounted some question I can't solve as
the following. when I debug DynaTable ,Jetty print out the Exception
in the following:


java.lang.ExceptionInInitializerError
at com.google.gwt.rpc.server.RPC.decodeRequest(RPC.java:160)
at com.google.gwt.rpc.server.RpcServlet.processCall(RpcServlet.java:
158)
at
com.google.gwt.user.server.rpc.HybridServiceServlet.processCall(HybridServiceServlet.java:
111)
at com.google.gwt.rpc.server.RpcServlet.processPost(RpcServlet.java:
222)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
62)
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:
511)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1166)
at
com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:
35)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
58)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
43)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
122)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:
94)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
418)
at
com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
70)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:351)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
542)
at org.mortbay.jetty.HttpConnection
$RequestHandler.content(HttpConnection.java:938)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
409)
at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:582)
Caused by: java.lang.RuntimeException: Unable to get Unsafe instance
at
com.google.gwt.rpc.server.CommandSerializationUtil.clinit(CommandSerializationUtil.java:
457)
... 36 more
Caused by: java.security.AccessControlException: access denied
(java.lang.RuntimePermission accessClassInPackage.sun.misc)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:
323)
at
java.security.AccessController.checkPermission(AccessController.java:
546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:
532)
at com.google.appengine.tools.development.DevAppServerFactory
$CustomSecurityManager.checkPermission(DevAppServerFactory.java:166)
at java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:
1512)
at java.lang.ClassLoader$1.run(ClassLoader.java:331)
at java.security.AccessController.doPrivileged(Native Method)
at java.lang.ClassLoader.checkPackageAccess(ClassLoader.java:329)
at
com.google.gwt.rpc.server.CommandSerializationUtil.clinit(CommandSerializationUtil.java:
444)
... 36 more

I tried my best to search information through by google, but no
effective information,so I asked for help!

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To 

Re: Displaying entries of an CellList lazily?

2011-06-21 Thread Juan Pablo Gardella
Read this 
threadhttp://groups.google.com/group/google-web-toolkit/browse_thread/thread/f539d58327a351d3?pli=1

2011/6/21 zeroconf dimweth...@gmail.com

 Dear GWT devs,

 I would like to display entries of a CellList in a lazy manner,
 similar to the Table Widgets of SWT. That is, the data is not
 populated before its row is displayed. Unfortunately, I didn't figured
 out how this can be done with the CellList or CellTable. The list
 contains about 1 entries that are loaded from the server. The
 exact number of entries is known. Because of the large number and to
 reduce the initial traffic and startup time, I want to display the
 terms lazily. I do not want to use a pager because this doesn't allow
 one to quickly jump around and also the example in which the list is
 updated when the scrollbar is at the bottom is not really useful here
 in the scenario. Is this possible with current GWT?

 Thanks!
 Sebastian

 --
 You received this message because you are subscribed to the Google Groups
 Google 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.



-- 
You received this message because you are subscribed to the Google Groups 
Google 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: Problem with GWT Service results

2011-06-21 Thread Daniel Mauricio Patino León
  RootPanel.get(mainContainer).add(new Label(Array lista 2:
+lista.toString()));
   RootPanel.get().add(new Label(String.valueOf(Array lista 2:
+lista.size(;
   for(int i = 0; i  lista.size(); i++){
   RootPanel.get().add(new Label(BOTON +i));
   }

esto esta fuera del contexto de asíncrono

 public void onSuccess(ArrayListString result) {
 }

ese contrato del AsyncCallback es el que se ejecuta cuando el servidor
regresa el resultado
si ahi tu result esta vacio entonces checa el lado del servidor.
no debes tener problema con lista.addAll(result);  // no addAll(0,x)
ya que esa lista se va a sobreescribir cada llamada al servidor


2011/6/21 Jose Luis Hernandez jose.hernande...@gmail.com

 Hello!
 I have a problem. I am calling to server side on GWT. The results of
 call is an ArrayList (result). Inside onSuccess method another
 ArrayList is wrapped with the result. However, if I want to use
 ArrayList lista outside of onSuccess method it contains 0 elements,
 but inside is like result ArrayList. How can I solve it? I have tried
 to use lista as class attribute, static attribute,... but it doesn't
 run.
 Thanks!

 public void addContainers() throws Exception {
final ArrayListString lista = new ArrayListString();
gwtService.obtainAttributesDevice(1, new
 AsyncCallbackArrayListString(){
@Override
public void onFailure(Throwable caught) {
System.out.println(ERROR);
Window.alert(caught.getMessage());
}
@Override
public void onSuccess(ArrayListString result) {
RootPanel.get(mainContainer).add(new
 Label(Array result:
 +result.toString()));
RootPanel.get().add(new
 Label(String.valueOf(Array result:
 +result.size(;
lista.addAll(0, result);
RootPanel.get(mainContainer).add(new
 Label(Array lista 1:
 +lista.toString()));
RootPanel.get().add(new
 Label(String.valueOf(Array lista 1:
 +lista.size(;
}
});
RootPanel.get(mainContainer).add(new Label(Array lista 2:
 +lista.toString()));
RootPanel.get().add(new Label(String.valueOf(Array lista 2:
 +lista.size(;
for(int i = 0; i  lista.size(); i++){
RootPanel.get().add(new Label(BOTON +i));
}
 }

 --
 You received this message because you are subscribed to the Google Groups
 Google 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.



-- 
You received this message because you are subscribed to the Google Groups 
Google 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: Eclipse hosted mode in Facebook iframe

2011-06-21 Thread mohamed salah
On Tue, Jun 21, 2011 at 4:12 PM, Peter peter.sundqv...@gmail.com wrote:

 Hi,

 We're developing a Facebook app with GWT but can't get the hosted mode
 in Eclipse to work inside Facebook's iframe. Have anyone got this
 working? It would make it simpler to debug some issues.

 We've tried using the dev plugins for Firefox 4, Explorer 7 and Chrome
 12. Firefox and Explorer only shows the last cached, GWT compiled
 page. Chrome says Plugin failed to connect to Development Mode
 server

 We've tried adding gwt.codesvr=127.0.0.1:9997 to both the iframe URL
 and to the top window URL.

 Anyone else who's made a Facebook app with GWT, please make a comment.

 --
 You received this message because you are subscribed to the Google Groups
 Google 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.




-- 
salam : peter
Resolved issus
this.frame.setUrl(GWT.getHostPageBaseURL() + path);
thanks :mohammad salah
--

*Regard: Mohamed salah hasan
Mobile :+20106594094
tel :+2024460320*

-- 
You received this message because you are subscribed to the Google Groups 
Google 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: Streaming

2011-06-21 Thread Alain Ekambi
May i suggest :

http://www.gwt4air.appspot.com/#mx.controls.VideoDisplay

Best,

Alain

2011/6/20 Khadija FERJANI ferjani.khad...@gmail.com

 Hello everybody
 Can someone help me with ideas or links about VideoStreaing over GWT
 please.
 Thanks

 --
 Cordialement, Khadija FERJANI
 Élève ingénieur à la faculté des sciences de Tunis.

 --
 You received this message because you are subscribed to the Google Groups
 Google 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 API for  non Java based platforms
http://code.google.com/p/gwt4air/
http://www.gwt4air.appspot.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: No source code is available for type java.lang.NoSuchFieldError

2011-06-21 Thread Nathan Klatt
Makes perfect sense - thanks so much for the reply and the link!

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/96qmqceSNOQJ.
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: No source code is available for type java.lang.NoSuchFieldError

2011-06-21 Thread Nathan Klatt
Thanks for the idea - right now I'm strictly command-line (on a remote 
server) but I'll add this to my list of Reasons to Develop on My Local 
Machine with a GUI. :)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/JJhcnb0gfEcJ.
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 call a rest web service from gwt mobile application

2011-06-21 Thread Juan Pablo Gardella
See http://restygwt.fusesource.org/

2011/6/21 syruss navinkumar...@gmail.com

 Hi all,

 I have created  a mobile application using GWT.I have successfully
 created the UI part but i have to call a rest web service from GWT mob
 app.

 What i have tried is
 1.I have called the rest web service using HttpUrlConnection in java
 its working fine as web app but if i deployed the app in mobile its
 not working.
 2.I have tried to call the service using RequestBuilder but its giving
 0 status code.

 Please suggest me to proceed that

 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.



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



Re: Error while updating/installing the Eclipse plugin

2011-06-21 Thread Piro
Are you installing over internet? You can try installation from packed
installation site.
http://code.google.com/intl/en-EN/eclipse/docs/install-from-zip.html

On 20. Jún, 20:00 h., ToddySM todd...@gmail.com wrote:
 I am hitting an error while updating/installing the plugin. Here the
 details:

 An error occurred while collecting items to be installed
 session context was:(profile=epp.package.jee,
 phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=,
 action=).
 Artifact not found: osgi.bundle,com.google.appengine.eclipse.core,
 2.3.1.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.appengine
 Unable to read repository 
 athttp://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips
 Invalid argument: setsockopt
 Artifact not found: osgi.bundle,com.google.gdt.eclipse.maven,
 2.3.1.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
 Artifact not found: osgi.bundle,com.google.gdt.eclipse.platform,
 2.3.1.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
 Artifact not found:
 osgi.bundle,com.google.gdt.eclipse.platform.e36,2.3.1.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
 Artifact not found: osgi.bundle,com.google.gdt.eclipse.platform.shared,
 2.3.1.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
 Artifact not found: osgi.bundle,com.google.gdt.eclipse.suite,
 2.3.1.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
 Artifact not found: osgi.bundle,com.google.gwt.eclipse.core,
 2.3.1.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gwt.eclips...
 Artifact not found: osgi.bundle,com.google.gwt.eclipse.oophm,
 2.3.1.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gwt.eclips...
 Artifact not found: osgi.bundle,com.google.appengine.eclipse.sdkbundle,
 1.5.0.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.appengine
 Artifact not found:
 org.eclipse.update.feature,com.google.appengine.eclipse.sdkbundle.e36.featu 
 re,
 1.5.0.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/features/com.google.appengine...
 Artifact not found: osgi.bundle,com.google.gdt.eclipse.gph,
 2.3.1.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
 Artifact not found:
 osgi.bundle,com.google.gdt.eclipse.gph.e36,2.3.1.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
 Artifact not found: osgi.bundle,com.google.gdt.eclipse.gph.hge,
 2.3.1.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
 Artifact not found: osgi.bundle,com.google.gdt.eclipse.gph.subclipse,
 2.3.1.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
 Artifact not found: osgi.bundle,com.google.gdt.eclipse.gph.subversive,
 2.3.1.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
 Artifact not found: osgi.bundle,com.google.gdt.eclipse.login,
 2.3.1.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
 Artifact not found: osgi.bundle,com.google.gdt.eclipse.managedapis,
 2.3.1.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
 Artifact not found:
 org.eclipse.update.feature,com.google.gdt.eclipse.suite.e36.feature,
 2.3.1.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/features/com.google.gdt.eclip...
 Artifact not found: osgi.bundle,com.google.gwt.eclipse.sdkbundle,
 2.3.0.r36v201104261928.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gwt.eclips...
 Artifact not found:
 org.eclipse.update.feature,com.google.gwt.eclipse.sdkbundle.e36.feature,
 2.3.0.r36v201104261928.http://dl.google.com/eclipse/plugin/3.6/features/com.google.gwt.eclip...

-- 
You received this message because you are subscribed to the Google Groups 
Google 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 CORS with file uploads

2011-06-21 Thread Alan Chaney

Hi

My company is developing a REST API for an asset management system and 
we wish to add support for CORS both in the server (comparatively easy) 
and also in GWT client applications.


One use case for this API is a GWT application where the user uploads a 
file from their local filing system. So far, we've done this using the 
GWT FormPanel and FileUpload classes. AFAIKS from looking at the code, 
FileUpload uses a form element in an iframe. Experiments indicate that 
cross-site uploads actually perform the transfer of data to the server, 
but cookies and special headers are not sent, and the result comes out 
as null. This is exactly as would be expected from reading the Mozilla 
development docs.


As a simple test, I tried adding the Access-Control-Allow-Origin header, 
but, of course, the 'form' post doesn't generate the required OPTIONS 
header and as far as firefox 4 is concerned, this is not a CORS request.


It seems to me that to properly support POST and PUT with content types 
other than text/plain we need to properly implement an HTML5 form upload 
script which uses the new FormData object. Does anyone have any 
experience of AJAX support for CORS within GWT? If so, can they point me 
to/share with me the code that they used?


Thanks in advance

Alan

--
You received this message because you are subscribed to the Google Groups Google 
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.



Standard vs Quirks mode also use of DecoratorPanel in Standard mode

2011-06-21 Thread Myth17
Hello
Can someone describe the advantages/disadvantages of Standard vs Quirks 
mode. Also when to use which?
(I googled around but couldnt not find something describing the issue in 
detail)

Also I have an app in standard mode and I want to use something like 
DecoratorPanel for the Stylized boxes. Any alternatives?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/uQnysQcKMfAJ.
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.



@ImageOptions

2011-06-21 Thread Hilco Wijbenga
Hi all,

I've been using @ImageOptions to scale (PNG) images. This mostly
worked in GWT 2.2 but now that I've moved to GWT 2.3 most images fail
quietly and don't display (meaning that src=# instead of the inlined
image at runtime).

public interface MyResources
  extends
ClientBundle
{
  @Source(org/example/my-image-a.png)
  @ImageOptions(width = 118, height = 156)
  ImageResource myImageA();
:
  @Source(org/example/my-image-b.png)
  @ImageOptions(width = 130)
  ImageResource myImageB();
}

There does not seem to be any rule (AFAICT) that determines which
images work and which don't. What always seems to work is
@ImageOptions (i.e. no scaling) and @ImageOptions(width = W, height =
H) (where H and W are the actual height and width of the image). Other
values might or might not work. (It's quite deterministic though, the
same number(s) for the same image either work or they don't, it
doesn't change from run to run).

I intend to scale the images myself to work around the problem but I
would like to understand what the root cause is and why there are no
error messages. Any ideas?

Cheers,
Hilco

-- 
You received this message because you are subscribed to the Google Groups 
Google 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.



Aw: How to call a rest web service from gwt mobile application

2011-06-21 Thread Jens
Is the web service you want to call accessible on the same 
protocol://domain:port as your GWT app? Normally RequestBuilder should work 
fine for requesting rest web services but maybe you have been run into the Same 
Origin Policy http://en.wikipedia.org/wiki/Same_origin_policy? If thats 
the case I think you have to use GWT's JsonpRequestBuilder to access the 
external web service.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/ewa4HSV7pj4J.
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: Pluggable modules

2011-06-21 Thread lemaiol
Hi Mike,

 I am growing to believe I need to deploy each plug-in as a separate
 WAR on a web-server. Is this true, or have I missed something?

In the case of my architecture, it is even a requirement that every
plugin will be deployed as an own WAR file. It allows different teams
working in parallel in completely independent applications (plugins)
which have a common message data model. When inside the plugins
container, they receive messages with this common data model. When
out of the plugins container, the show a simplified UI to let the
developer pass a message generated by hand and therefore test the
application.

 I am also using gwt-exporter to make the JSNI messaging mechanism;
 i.e. I just write an Exportable class and use the resulting JS API
 from my plugins. I am hoping to use gwt-api-interop to remove the need
 to use the JS API.

I have seen gwt-exporter but do not know gwt-api-interop.

 I assume the JS bridge between GWT applications handles the
 messaging between them (i.e. plugins register callbacks to handle
 messages sent from the host?)

Yes.

 If I understand correctly, adding additional script tags to my
 loader page and having each plug-in as a separate WAR I avoid the
 need to inherit in my gwt.xml file?

My common model and plugin base classes live in a common GWT module
that each plugin inherits.

 An example of your use of JavaScriptObject in your messaging sub-
 system would be interesting

// Application specific common model
 public final class CustomerInfo extends ModuleInfo {
protected CustomerInfo() {
}

public native String getId() /*-{
return this.id;
}-*/;

public native void setId(String id) /*-{
this.id = id;
}-*/;
}

// Base class for common models - no functionality as of now
public class ModuleInfo extends JavaScriptObject {
protected ModuleInfo() {
}
}

// To be implemented by every module
public interface IModuleT extends ModuleInfo {
public String getName();
public void dispatch(String containerId, T moduleInfo);
}

// To be implemented by the main module or classes interested in
module lifecycle events
public interface IModuleAwareT extends ModuleInfo {
public void onModuleAttached(ModuleT module);
}

// Durable callback implementation - Because it uses JSNI, can be
inherited from GWT modules but it is interoperable. Avoids using gwt-
exporter
public final class ModuleListenerT extends ModuleInfo extends
JavaScriptObject {
protected ModuleListener() {
}

public void onModuleAttached(ModuleT module) {
invokeCallback(getCallback(), module);
}

private native void invokeCallback(JavaScriptObject callback,
ModuleT module) /*-{
this.callback(module);
}-*/;

private native JavaScriptObject getCallback() /*-{
return this.callback;
}-*/;

public native void setCallback(JavaScriptObject callback) /*-{
this.callback = callback;
}-*/;
}

// Support for common modules functionality (static methods)
public abstract class ModulesSupport {
public static T extends ModuleInfo boolean
registerAsListener(IModuleAwareT instance) {
ModulesConfigT modulesConfig = getModulesConfig();
boolean result = null != modulesConfig;
if (result) {
modulesConfig.registerListener(createListener(instance));
}
return result;
}

public static T extends ModuleInfo boolean
registerAsModule(IModuleT module) {
ModulesConfig modulesConfig = ModulesConfig.get();
boolean result = null != modulesConfig;
if (result) {
modulesConfig.attach(module.getName(),
createDispatchCallback(module));
}
return result;
}

public static T extends ModuleInfo ModulesConfigT
getModulesConfig() {
return ModulesConfig.get();
}

private static T extends ModuleInfo ModuleListenerT
createListener(IModuleAwareT instance) {
ModuleListenerT result =
JavaScriptObject.createObject().cast();
result.setCallback(createListenerCallback(instance));
return result;
}

private static native JavaScriptObject
createListenerCallback(IModuleAware instance) /*-{
return function(module) {
 
instance.@org.myexample.modules.client.IModuleAware::onModuleAttached(Lorg/
myexample/modules/client/Module;)(module);
};
}-*/;

private static native JavaScriptObject
createDispatchCallback(IModule instance) /*-{
return function(containerId, moduleInfo) {
 
instance.@org.myexample.modules.client.IModule::dispatch(Ljava/lang/
String;Lorg/myexample/modules/client/ModuleInfo;)(containerId,
moduleInfo);
};
}-*/;
}

Hope it helps,
Berto

-- 
You received this message because you are subscribed to the Google Groups 
Google 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 

Re: Context Menu in CellTable

2011-06-21 Thread André Salvati
Ok, following 1) I've got the code bellow.

Now, how can I define an event handler on a view which wraps this
CellTable??

These handlers are suposed to be defined by view and not by cells!!


public class TextCellNX extends AbstractSafeHtmlCellString {

public TextCellNX() {
super(SimpleSafeHtmlRenderer.getInstance(), contextmenu);
}

public TextCellNX(SafeHtmlRendererString renderer) {
super(renderer);
}

@Override
public void render(Context context, SafeHtml value, SafeHtmlBuilder
sb) {
if (value != null) {
sb.append(value);
}
}

@Override
public void onBrowserEvent(Context context, Element parent, String
value, NativeEvent event, ValueUpdaterString valueUpdater) {
String eventType = event.getType();

if (contextmenu.equals(eventType)) {

event.preventDefault();

MenuBar popupMenuBar = new MenuBar(true);
MenuItem acao1 = new MenuItem(Ação 1, true,  new 
Command() {

@Override
public void execute() {
Window.alert(clicado);
//placeController.goTo(new 
ProxyListPlace(ClienteProxy.class));
}

});

popupMenuBar.addItem(acao1);
popupMenuBar.setVisible(true);

PopupPanel popupPanel = new PopupPanel(true);
popupPanel.add(popupMenuBar);
popupPanel.setPopupPosition(event.getClientX(),
event.getClientY());
popupPanel.show();

}
}
}

-- 
You received this message because you are subscribed to the Google Groups 
Google 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: Context Menu in CellTable

2011-06-21 Thread André Salvati
Should I use EventBus even when the event is generated by an inner
component?

What would be a good design?

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: RadioButton exception on create in IE9

2011-06-21 Thread Benju
I also have this problem with GWT 2.3.0 and creating buttons.

On May 13, 7:13 am, piXi slop...@gmail.com wrote:
 Helow,

 First my develop enviroment :
 Windows 7 x64
 Netbeans 7.0 ( tried also 6.9.1)
 Gwt4nb 2.10
 GWT2.2.0

 today I have upgraded my html to HTML5 and have encountered this
 error:

 00:01:30,687 [ERROR] Uncaughtexceptionescaped
 com.google.gwt.core.client.JavaScriptException: 
 (null):DOMException:INVALID_CHARACTER_ERR(5)  code: 5  ABORT_ERR: 20
 ...
 WRONG_DOCUMENT_ERR: 4   at
 com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann 
 elServer.java:
 237)    at
 com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
 129)    at
 com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
 561)    at
 com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
 269)    at
 com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j 
 ava:
 91)     at
 com.google.gwt.dom.client.DOMImplTrident.createInputRadioElement(DOMImplTri 
 dent.java)
         at com.google.gwt.dom.client.Document$.createRadioInputElement$
 (Document.java:961)     at
 com.google.gwt.user.client.DOM.createInputRadio(DOM.java:214)   at
 com.google.gwt.user.client.ui.RadioButton.init(RadioButton.java:64)
 at com.google.gwt.user.client.ui.RadioButton.init(RadioButton.java:
 100)    at
 si.tridens.esmserver.client.common.CPM.createFilterRadio(CPM.java:525)
         at
 si.tridens.esmserver.client.widget.FilterPanel.addFilterColumn(FilterPanel. 
 java:
 65)     at
 si.tridens.esmserver.client.page.ProcessesTab.initTab(ProcessesTab.java:
 96)     at
 si.tridens.esmserver.client.MainEntryPoint.addProcessesTab(MainEntryPoint.j 
 ava:
 335)    at si.tridens.esmserver.client.MainEntryPoint
 $3.execute(MainEntryPoint.java:504)     at
 com.google.gwt.core.client.impl.SchedulerImpl$Task$.executeScheduled$
 (SchedulerImpl.java:50)         at
 com.google.gwt.core.client.impl.SchedulerImpl.runScheduledTasks(SchedulerIm 
 pl.java:
 229)    at
 com.google.gwt.core.client.impl.SchedulerImpl.flushPostEventPumpCommands(Sc 
 hedulerImpl.java:
 389)    at com.google.gwt.core.client.impl.SchedulerImpl
 $Flusher.execute(SchedulerImpl.java:78)         at
 com.google.gwt.core.client.impl.SchedulerImpl.execute(SchedulerImpl.java:
 139)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
 39)     at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
 l.java:
 25)     at java.lang.reflect.Method.invoke(Method.java:597)     at
 com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
 at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
 71)     at
 com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav a:
 157)    at
 com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingFo 
 rReturn(BrowserChannelServer.java:
 326)    at
 com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann 
 elServer.java:
 207)    at
 com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
 129)    at
 com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
 561)    at
 com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
 269)    at
 com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j 
 ava:
 91)     at com.google.gwt.core.client.impl.Impl.apply(Impl.java)        at
 com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)      at
 sun.reflect.GeneratedMethodAccessor184.invoke(Unknown Source)   at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
 l.java:
 25)     at java.lang.reflect.Method.invoke(Method.java:597)     at
 com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
 at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
 71)     at
 com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav a:
 157)    at
 com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChanne 
 lServer.java:
 281)    at
 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan 
 nelServer.java:
 531)    at
 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java :
 352)    at java.lang.Thread.run(Thread.java:662)

 I get thisexceptiononly on IE9, Firefox and Chrome are working
 perfect.
 I have upgraded to HTML5 because of rounded edges in IE. With debuging
 I have located problem, and it occours on RadioButton create. I have
 also tested this with fresh dummy project showing only one radio
 button and I got same error than in my project.

 Have anyone expirienced similar problem ? I haven't found any solution
 for my problem using 'mr.google'.

 Any help will be appriciate.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, 

Re: השב: Re: building custom event differently to avoid boiler plate coding?

2011-06-21 Thread Alex D.
You shouldn't use custom events for every possible event in your app, imo -- 
or, even better, identify the best events that match as much as possible.

What you're suggesting by this is removing the strong-type event definitions 
provided by Java.

Of couse, you can work with a class called Event, that merely has a String 
name and Object data, but this defeats the purpose of what GWT is 
suggesting

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Y_ZKLyl29DkJ.
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.



Apache Shiro or Spring Security??

2011-06-21 Thread Fabricio Pizzichillo
 Hello everyone.
What security and authentication framework works well with a GWT application
?
Someone used some as Apache-Shiro or Spring-Security?
What do you recommend?

thanks
Fabricio

-- 
You received this message because you are subscribed to the Google Groups 
Google 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: Apache Shiro or Spring Security??

2011-06-21 Thread Juan Pablo Gardella
I use spring security and works. Is robust and mature.

2011/6/21 Fabricio Pizzichillo fpizzichi...@gmail.com

 Hello everyone.
 What security and authentication framework works well with a GWT
 application?
 Someone used some as Apache-Shiro or Spring-Security?
 What do you recommend?

 thanks
 Fabricio

  --
 You received this message because you are subscribed to the Google Groups
 Google 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.


-- 
You received this message because you are subscribed to the Google Groups 
Google 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: Apache Shiro or Spring Security??

2011-06-21 Thread Fabricio Pizzichillo
thanks, I'll do some research on how to integrate

2011/6/21 Juan Pablo Gardella gardellajuanpa...@gmail.com

 I use spring security and works. Is robust and mature.

 2011/6/21 Fabricio Pizzichillo fpizzichi...@gmail.com

  Hello everyone.
 What security and authentication framework works well with a GWT
 application?
 Someone used some as Apache-Shiro or Spring-Security?
 What do you recommend?

 thanks
 Fabricio

  --
 You received this message because you are subscribed to the Google Groups
 Google 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.


  --
 You received this message because you are subscribed to the Google Groups
 Google 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.


-- 
You received this message because you are subscribed to the Google Groups 
Google 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 : @ImageOptions

2011-06-21 Thread Thomas Broyer
Could it rather be about how you *use* the ImageResource? 
See http://code.google.com/p/google-web-toolkit/issues/detail?id=6145

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Uifwj_2ZtLgJ.
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: השב: Re: building custom event differently to avoid boiler plate coding?

2011-06-21 Thread Elhanan Maayan
first off  you probably mean the strong type definitions provided by GWT,
not java right?

second, that's not what i'm suggesting, i don't want to use events for
enable disable buttons, but i  do want to use to create logical
messages, that a work process has ended/started, or basically whatever
causes you to leave a view and enter another one.

i'm also not working with just Object or string, i'm doing exactly the same
thing gwt does only with less code, i'm providing strong typed events, with
generics, only without the need to actually create a new class for it every
single time

i can do this:

private final MessageFactoryEntity ENTITY_CREATED=new
MessageFactoryEntity()
private final MessageFactoryEntity ENTITY_DELETED  =new
MessageFactoryEntity();

...
addHandler(ENTITY_CREATED=new MessageHandlerEntity{
}

fire(ENTITY_CREATED.fire(entity))

i get a strong typed custom event just like before, only with much less
code..

On Tue, Jun 21, 2011 at 10:46 PM, Alex D. alex.dobjans...@gmail.com wrote:

 You shouldn't use custom events for every possible event in your app, imo
 -- or, even better, identify the best events that match as much as possible.


 What you're suggesting by this is removing the strong-type event
 definitions provided by Java.

 Of couse, you can work with a class called Event, that merely has a String
 name and Object data, but this defeats the purpose of what GWT is
 suggesting

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/Y_ZKLyl29DkJ.

 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.


-- 
You received this message because you are subscribed to the Google Groups 
Google 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: Apache Shiro or Spring Security??

2011-06-21 Thread Juan Pablo Gardella
good luck

2011/6/21 Fabricio Pizzichillo fpizzichi...@gmail.com

 thanks, I'll do some research on how to integrate


 2011/6/21 Juan Pablo Gardella gardellajuanpa...@gmail.com

 I use spring security and works. Is robust and mature.

 2011/6/21 Fabricio Pizzichillo fpizzichi...@gmail.com

  Hello everyone.
 What security and authentication framework works well with a GWT
 application?
 Someone used some as Apache-Shiro or Spring-Security?
 What do you recommend?

 thanks
 Fabricio

  --
 You received this message because you are subscribed to the Google Groups
 Google 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.


  --
 You received this message because you are subscribed to the Google Groups
 Google 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.


  --
 You received this message because you are subscribed to the Google Groups
 Google 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.


-- 
You received this message because you are subscribed to the Google Groups 
Google 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: Apache Shiro or Spring Security??

2011-06-21 Thread Juan Pablo Gardella
I do a simple sample
https://bitbucket.org/gardellajuanpablo/gwt-sample/wiki/Homethat integrate
with spring security, but is very basic. Have server side protected method
too with jsr-250.

I can't said anything about apache shiro, but if you choose spring security
you will no have problems

2011/6/21 Juan Pablo Gardella gardellajuanpa...@gmail.com

 good luck


 2011/6/21 Fabricio Pizzichillo fpizzichi...@gmail.com

 thanks, I'll do some research on how to integrate


 2011/6/21 Juan Pablo Gardella gardellajuanpa...@gmail.com

 I use spring security and works. Is robust and mature.

 2011/6/21 Fabricio Pizzichillo fpizzichi...@gmail.com

  Hello everyone.
 What security and authentication framework works well with a GWT
 application?
 Someone used some as Apache-Shiro or Spring-Security?
 What do you recommend?

 thanks
 Fabricio

  --
 You received this message because you are subscribed to the Google
 Groups Google 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.


  --
 You received this message because you are subscribed to the Google Groups
 Google 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.


  --
 You received this message because you are subscribed to the Google Groups
 Google 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.




-- 
You received this message because you are subscribed to the Google Groups 
Google 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.



customize animation effect of Tree/TreeItem

2011-06-21 Thread karthik reddy
I went through the code in Tree/TreeItem and seems like the animation 
duration( I think this governs how slow/fast the the tree collapses with the 
slide down effect) is hard-coded and set to private:

private static final int  ANIMATION_DURATION = 200;

Hoping against hope: Is there any other way this duration be customized???

FYI:I still have not taken the plunge into Cell-based widgets yet. So, 
CellTree is offlimits to me.

thanks


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/MJT1z55Yt84J.
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: Apache Shiro or Spring Security??

2011-06-21 Thread Elhanan Maayan
 we are exploring apache shiro with gwt integration, the reason is first of
all, you don't spring beans for it, and 2nd is that also provides for
session management which spring security does not.
even folks at spring forums say shiro has much broader scope then security
..


On Wed, Jun 22, 2011 at 6:17 AM, Juan Pablo Gardella 
gardellajuanpa...@gmail.com wrote:

 I do a simple sample
 https://bitbucket.org/gardellajuanpablo/gwt-sample/wiki/Homethat
 integrate with spring security, but is very basic. Have server side
 protected method too with jsr-250.

 I can't said anything about apache shiro, but if you choose spring security
 you will no have problems


 2011/6/21 Juan Pablo Gardella gardellajuanpa...@gmail.com

 good luck


 2011/6/21 Fabricio Pizzichillo fpizzichi...@gmail.com

 thanks, I'll do some research on how to integrate


 2011/6/21 Juan Pablo Gardella gardellajuanpa...@gmail.com

 I use spring security and works. Is robust and mature.

 2011/6/21 Fabricio Pizzichillo fpizzichi...@gmail.com

  Hello everyone.
 What security and authentication framework works well with a GWT
 application?
 Someone used some as Apache-Shiro or Spring-Security?
 What do you recommend?

 thanks
 Fabricio

  --
 You received this message because you are subscribed to the Google
 Groups Google 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.


  --
 You received this message because you are subscribed to the Google
 Groups Google 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.


  --
 You received this message because you are subscribed to the Google Groups
 Google 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.



  --
 You received this message because you are subscribed to the Google Groups
 Google 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.


-- 
You received this message because you are subscribed to the Google Groups 
Google 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.



onCellClicked alternative?

2011-06-21 Thread Navindian
PFA class.

I am able to implement onCellClicked event with this. Looks like with the
latest gwt 2.3.3, it is deprecated. Please suggest alternate way of
implementing this in the flextable.

Thanks
navindian

-- 
You received this message because you are subscribed to the Google Groups 
Google 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.



McintoshEntryPoint.java
Description: Binary data


Re: Eclipse hosted mode in Facebook iframe

2011-06-21 Thread Peter
I think you misunderstood. We don't want to create an iframe in GWT code. 
Our GWT page is loaded in an iframe. The URL of the iframe is 
http://127.0.0.1:/Page.html?gwt.codesvr=127.0.0.1:9997;. But this 
doesn't work with the development mode in Eclipse. 

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Ao1ZyLHPsKIJ.
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-contrib] Re: Don't allow DataflowOptimizer to perform constant transformation on expressions with side-effects. (issue1467801)

2011-06-21 Thread zundel

LGTM, just some comments.


http://gwt-code-reviews.appspot.com/1467801/diff/1/dev/core/test/com/google/gwt/dev/jjs/impl/gflow/DataflowOptimizerTest.java
File
dev/core/test/com/google/gwt/dev/jjs/impl/gflow/DataflowOptimizerTest.java
(right):

http://gwt-code-reviews.appspot.com/1467801/diff/1/dev/core/test/com/google/gwt/dev/jjs/impl/gflow/DataflowOptimizerTest.java#newcode333
dev/core/test/com/google/gwt/dev/jjs/impl/gflow/DataflowOptimizerTest.java:333:
addSnippetClassDecl(static volatile boolean TRUE = true;);
I'm not clear on the purpose of TRUE.

http://gwt-code-reviews.appspot.com/1467801/diff/1/dev/core/test/com/google/gwt/dev/jjs/impl/gflow/DataflowOptimizerTest.java#newcode349
dev/core/test/com/google/gwt/dev/jjs/impl/gflow/DataflowOptimizerTest.java:349:
// TODO: Allow the second line below to be transformed to just:
EntryPoint.x = n;
you mean, because the method always returns true?

http://gwt-code-reviews.appspot.com/1467801/

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


[gwt-contrib] Re: Disabling test for null on getBrowserById for DOM elements without DTD when running on Chrome 11... (issue1462805)

2011-06-21 Thread rchandia

On 2011/06/20 18:48:41, tobyr wrote:

LGTM


Submitted as of r10354

http://gwt-code-reviews.appspot.com/1462805/

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


[gwt-contrib] Re: A general purpose script injection class for injecting a script directly (issue1451818)

2011-06-21 Thread jlabanca


http://gwt-code-reviews.appspot.com/1451818/diff/8002/user/src/com/google/gwt/core/client/ScriptInjector.java
File user/src/com/google/gwt/core/client/ScriptInjector.java (right):

http://gwt-code-reviews.appspot.com/1451818/diff/8002/user/src/com/google/gwt/core/client/ScriptInjector.java#newcode73
user/src/com/google/gwt/core/client/ScriptInjector.java:73: public void
inject() {
On 2011/06/21 01:30:49, zundel wrote:

On 2011/06/20 20:58:29, jlabanca wrote:
 Can this return the script element?



I'm willing to make this change but I'm not sure what hte use case is?

 Is it

still a good thing to return the script element if its just been

removed from

the DOM?


It would allow you to remove the script element at any time, not
necessarily immediately after it was added.  It would also allow you to
add attributes, such as an ID, to the script element, which might be
useful.

http://gwt-code-reviews.appspot.com/1451818/

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


[gwt-contrib] Re: A general purpose script injection class for injecting a script directly (issue1451818)

2011-06-21 Thread zundel

http://gwt-code-reviews.appspot.com/1451818/

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


[gwt-contrib] Re: A general purpose script injection class for injecting a script directly (issue1451818)

2011-06-21 Thread zundel


http://gwt-code-reviews.appspot.com/1451818/diff/8002/user/src/com/google/gwt/core/client/ScriptInjector.java
File user/src/com/google/gwt/core/client/ScriptInjector.java (right):

http://gwt-code-reviews.appspot.com/1451818/diff/8002/user/src/com/google/gwt/core/client/ScriptInjector.java#newcode73
user/src/com/google/gwt/core/client/ScriptInjector.java:73: public void
inject() {
On 2011/06/21 13:35:06, jlabanca wrote:

On 2011/06/21 01:30:49, zundel wrote:
 On 2011/06/20 20:58:29, jlabanca wrote:
  Can this return the script element?

 I'm willing to make this change but I'm not sure what hte use case

is?  Is it

 still a good thing to return the script element if its just been

removed from

 the DOM?



It would allow you to remove the script element at any time, not

necessarily

immediately after it was added.  It would also allow you to add

attributes, such

as an ID, to the script element, which might be useful.


Done.

http://gwt-code-reviews.appspot.com/1451818/diff/10011/user/src/com/google/gwt/core/client/ScriptInjector.java#newcode30
user/src/com/google/gwt/core/client/ScriptInjector.java:30: *   new
ScriptInjector.FromString(scriptBody).inject();
(Change from using new on the builder object to using a factory method.)

http://gwt-code-reviews.appspot.com/1451818/

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


[gwt-contrib] Issue 6504: AutoBean doesn't support enums with anonymous enum values (issue1467802)

2011-06-21 Thread t . broyer

Reviewers: bobv, rjrjr,

Description:
Issue 6504: AutoBean doesn't support enums with anonymous enum values

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

Affected files:
  M user/src/com/google/web/bindery/autobean/shared/ValueCodex.java
  M user/test/com/google/web/bindery/autobean/shared/AutoBeanCodexTest.java
  M user/test/com/google/web/bindery/requestfactory/shared/SimpleEnum.java


Index: user/src/com/google/web/bindery/autobean/shared/ValueCodex.java
diff --git  
a/user/src/com/google/web/bindery/autobean/shared/ValueCodex.java  
b/user/src/com/google/web/bindery/autobean/shared/ValueCodex.java
index  
4bcb3042665ec31c40ec8d03edf90ac63be30639..a7ffe5a59c366a3dc0892a7feeba40a939d355de  
100644

--- a/user/src/com/google/web/bindery/autobean/shared/ValueCodex.java
+++ b/user/src/com/google/web/bindery/autobean/shared/ValueCodex.java
@@ -352,7 +352,7 @@ public class ValueCodex {
* May return codenull/code.
*/
   private static T Type findType(ClassT clazz) {
-if (clazz.isEnum()) {
+if (clazz.isEnum() || (clazz.getSuperclass() != null   
clazz.getSuperclass().isEnum())) {

   return Type.ENUM;
 }
 return TYPES_BY_CLASS.get(clazz);
Index:  
user/test/com/google/web/bindery/autobean/shared/AutoBeanCodexTest.java
diff --git  
a/user/test/com/google/web/bindery/autobean/shared/AutoBeanCodexTest.java  
b/user/test/com/google/web/bindery/autobean/shared/AutoBeanCodexTest.java
index  
13f69b3410705d23e3e8807aea86b265d09f98da..3b7574f392838d1d0833eae00f37036f3709bc27  
100644
---  
a/user/test/com/google/web/bindery/autobean/shared/AutoBeanCodexTest.java
+++  
b/user/test/com/google/web/bindery/autobean/shared/AutoBeanCodexTest.java

@@ -141,7 +141,16 @@ public class AutoBeanCodexTest extends GWTTestCase {
   }

   enum MyEnum {
-FOO, BAR,
+FOO,
+/**
+ * Contains a method that cannot even be called, but is enough to make
+ * MyEnum.BAR.getClass().isEnum()==false, because BAR's class is now an
+ * anonymous subclass of MyEnum.
+ */
+BAR {
+  private void dummy() {
+  }
+},
 // The eclipse formatter wants to put this annotation inline
 @PropertyName(quux)
 BAZ;
Index:  
user/test/com/google/web/bindery/requestfactory/shared/SimpleEnum.java
diff --git  
a/user/test/com/google/web/bindery/requestfactory/shared/SimpleEnum.java  
b/user/test/com/google/web/bindery/requestfactory/shared/SimpleEnum.java
index  
b338e5f1046eaca299b65909b77f9827361b72e7..0313679e710f68aa56a48e8325c008cd9ad01a42  
100644

--- a/user/test/com/google/web/bindery/requestfactory/shared/SimpleEnum.java
+++ b/user/test/com/google/web/bindery/requestfactory/shared/SimpleEnum.java
@@ -19,5 +19,14 @@ package com.google.web.bindery.requestfactory.shared;
  * Test enum class.
  */
 public enum SimpleEnum {
-  FOO, BAR
+  FOO,
+  /**
+   * Contains a method that cannot even be called, but is enough to make
+   * SimpleEnum.BAR.getClass().isEnum()==false, because BAR's class is now  
an

+   * anonymous subclass of MyEnum.
+   */
+  BAR {
+private void dummy() {
+}
+  }
 }


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


[gwt-contrib] Re: A general purpose script injection class for injecting a script directly (issue1451818)

2011-06-21 Thread jlabanca

Full review this time.


http://gwt-code-reviews.appspot.com/1451818/diff/10011/user/src/com/google/gwt/core/client/ScriptInjector.java
File user/src/com/google/gwt/core/client/ScriptInjector.java (right):

http://gwt-code-reviews.appspot.com/1451818/diff/10011/user/src/com/google/gwt/core/client/ScriptInjector.java#newcode23
user/src/com/google/gwt/core/client/ScriptInjector.java:23: * can pull
in as few dependencies as possible and live in the Core module.
I suggest moving this to a comment at the top of the class instead of in
the JavaDoc.  Its just an implementation detail.

http://gwt-code-reviews.appspot.com/1451818/diff/10011/user/src/com/google/gwt/core/client/ScriptInjector.java#newcode52
user/src/com/google/gwt/core/client/ScriptInjector.java:52: * Builder
for directly injecting a script body directly into the DOM.
directly repeated directly twice in the same sentence

http://gwt-code-reviews.appspot.com/1451818/diff/10011/user/src/com/google/gwt/core/client/ScriptInjector.java#newcode55
user/src/com/google/gwt/core/client/ScriptInjector.java:55: private
boolean removeTag = true;
removeTag should default to false.  I think the most common use case is
to inject a library, in which case you do not want to remove it.

What was the rationale for defaulting to true?

http://gwt-code-reviews.appspot.com/1451818/diff/10011/user/src/com/google/gwt/core/client/ScriptInjector.java#newcode140
user/src/com/google/gwt/core/client/ScriptInjector.java:140:
attachListeners(scriptElement, callback);
You should attach the listeners before setting the source in case the
script loads synchronously. I know that with images in IE, onload fires
synchronously (as soon as you set the url) if the image is cached.

http://gwt-code-reviews.appspot.com/1451818/diff/10011/user/test/com/google/gwt/core/client/ScriptInjectorTest.java
File user/test/com/google/gwt/core/client/ScriptInjectorTest.java
(right):

http://gwt-code-reviews.appspot.com/1451818/diff/10011/user/test/com/google/gwt/core/client/ScriptInjectorTest.java#newcode70
user/test/com/google/gwt/core/client/ScriptInjectorTest.java:70:
JavaScriptObject scriptElement = findScriptTextInThisWindow(scriptBody);
You can now get the scriptElement from inject() instead of searching for
it.  You could sanity check that the scriptElement lives in the head
element of the correct window.

http://gwt-code-reviews.appspot.com/1451818/diff/10011/user/test/com/google/gwt/core/client/ScriptInjectorTest.java#newcode73
user/test/com/google/gwt/core/client/ScriptInjectorTest.java:73:
assertFalse(cleanup failed, nativeTest1Worked());
If the script fails to inject (worked is false), you'll hit this error,
which is misleading.  If you move the assertTrue() above the
assertFalse(), then the fail case returns a more meaningful error.

Of course that means you won't cleanup, but if an error occurs anyway,
that's okay.  And, if an error occurs, you probably don't have to
cleanup because the script was never injected.

http://gwt-code-reviews.appspot.com/1451818/diff/10011/user/test/com/google/gwt/core/client/ScriptInjectorTest.java#newcode150
user/test/com/google/gwt/core/client/ScriptInjectorTest.java:150:
fail();
Add a message like Expected script injection to succeed.

http://gwt-code-reviews.appspot.com/1451818/diff/10011/user/test/com/google/gwt/core/client/ScriptInjectorTest.java#newcode186
user/test/com/google/gwt/core/client/ScriptInjectorTest.java:186:
fail();
reason?

http://gwt-code-reviews.appspot.com/1451818/

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


[gwt-contrib] Cleans up the mobile web app sample for 2.4. (issue1468801)

2011-06-21 Thread rchandia

Reviewers: jlabanca,

Description:
Cleans up the mobile web app sample for 2.4.


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

Affected files:
  M samples/mobilewebapp/pom.xml
  M  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/gaerequest/client/GaeAuthRequestTransport.java
  M  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/gaerequest/client/GaeAuthenticationFailureEvent.java
  M  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/gaerequest/client/ReloadOnAuthenticationFailure.java
  M  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/MobileWebApp.gwt.xml
  M  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/App.java
  M  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/ClientFactory.java
  M  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/ClientFactoryImpl.java
  M  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/ClientFactoryImplMobile.java
  M  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/ClientFactoryImplTablet.java
  M  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/MobileWebApp.java
  M  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/MobileWebAppShell.java
  D  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/Provider.java
  M  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/activity/AppActivityMapper.java
  A  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/activity/AppActivityMapperTablet.java
  A  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/activity/AppPlaceHistoryMapper.java
  A  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/activity/TaskActivity.java
  D  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/activity/TaskEditActivity.java
  D  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/activity/TaskEditView.java
  D  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/activity/TaskListActivity.java
  D  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/activity/TaskListView.java
  D  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/activity/TaskReadView.java
  M  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/desktop/DesktopTaskEditView.java
  M  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/desktop/DesktopTaskListView.java
  M  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/desktop/DesktopTaskReadView.java
  M  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/desktop/DesktopTaskReadView.ui.xml
  M  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/desktop/MobileWebAppShellDesktop.java
  A  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/event/ActionEvent.java
  A  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/event/ActionNames.java
  M  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/event/ShowTaskEvent.java
  A  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/event/TaskEditEvent.java
  A  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/event/TaskListUpdateEvent.java
  M  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/mobile/MobileTaskEditView.java
  M  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/mobile/MobileTaskListView.java
  M  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/mobile/MobileTaskReadView.java
  M  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/mobile/MobileWebAppShellMobile.java
  M  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/mobile/TaskProxyCell.java
  M  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/tablet/MobileWebAppShellTablet.java
  M  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/tablet/TabletTaskEditView.java
  M  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/tablet/TabletTaskReadView.java
  A  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/ui/PieChart.java
  A  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/presenter/task/TaskEditPresenter.java
  A  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/presenter/task/TaskEditView.java
  A  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/presenter/task/TaskPlace.java
  A  

[gwt-contrib] Re: Cleans up the mobile web app sample for 2.4. (issue1468801)

2011-06-21 Thread jlabanca

LGTM


http://gwt-code-reviews.appspot.com/1468801/diff/1/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/mobile/MobileTaskReadView.java
File
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/mobile/MobileTaskReadView.java
(right):

http://gwt-code-reviews.appspot.com/1468801/diff/1/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/mobile/MobileTaskReadView.java#newcode92
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/mobile/MobileTaskReadView.java:92:

spaces

http://gwt-code-reviews.appspot.com/1468801/diff/1/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/tablet/MobileWebAppShellTablet.java
File
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/tablet/MobileWebAppShellTablet.java
(right):

http://gwt-code-reviews.appspot.com/1468801/diff/1/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/tablet/MobileWebAppShellTablet.java#newcode190
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/tablet/MobileWebAppShellTablet.java:190:
* handlers to the bus If it did, we sould have to give it a
we sould/we would

http://gwt-code-reviews.appspot.com/1468801/

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


[gwt-contrib] Re: Don't allow DataflowOptimizer to perform constant transformation on expressions with side-effects. (issue1467801)

2011-06-21 Thread jbrosenberg

http://gwt-code-reviews.appspot.com/1467801/

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


[gwt-contrib] Re: Cleans up the mobile web app sample for 2.4. (issue1468801)

2011-06-21 Thread rchandia


http://gwt-code-reviews.appspot.com/1468801/diff/1/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/mobile/MobileTaskReadView.java
File
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/mobile/MobileTaskReadView.java
(right):

http://gwt-code-reviews.appspot.com/1468801/diff/1/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/mobile/MobileTaskReadView.java#newcode92
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/mobile/MobileTaskReadView.java:92:

On 2011/06/21 15:37:15, jlabanca wrote:

spaces


Done.

http://gwt-code-reviews.appspot.com/1468801/diff/1/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/tablet/MobileWebAppShellTablet.java
File
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/tablet/MobileWebAppShellTablet.java
(right):

http://gwt-code-reviews.appspot.com/1468801/diff/1/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/tablet/MobileWebAppShellTablet.java#newcode190
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/client/tablet/MobileWebAppShellTablet.java:190:
* handlers to the bus If it did, we sould have to give it a
On 2011/06/21 15:37:15, jlabanca wrote:

we sould/we would


Done.

http://gwt-code-reviews.appspot.com/1468801/

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


[gwt-contrib] Re: Cleans up the mobile web app sample for 2.4. (issue1468801)

2011-06-21 Thread rchandia

http://gwt-code-reviews.appspot.com/1468801/

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


[gwt-contrib] Re: Don't allow DataflowOptimizer to perform constant transformation on expressions with side-effects. (issue1467801)

2011-06-21 Thread jbrosenberg


http://gwt-code-reviews.appspot.com/1467801/diff/1/dev/core/test/com/google/gwt/dev/jjs/impl/gflow/DataflowOptimizerTest.java
File
dev/core/test/com/google/gwt/dev/jjs/impl/gflow/DataflowOptimizerTest.java
(right):

http://gwt-code-reviews.appspot.com/1467801/diff/1/dev/core/test/com/google/gwt/dev/jjs/impl/gflow/DataflowOptimizerTest.java#newcode333
dev/core/test/com/google/gwt/dev/jjs/impl/gflow/DataflowOptimizerTest.java:333:
addSnippetClassDecl(static volatile boolean TRUE = true;);
removed (was leftover from refactoring)

http://gwt-code-reviews.appspot.com/1467801/diff/1/dev/core/test/com/google/gwt/dev/jjs/impl/gflow/DataflowOptimizerTest.java#newcode349
dev/core/test/com/google/gwt/dev/jjs/impl/gflow/DataflowOptimizerTest.java:349:
// TODO: Allow the second line below to be transformed to just:
EntryPoint.x = n;
well, the multi-expression (EntryPoint.x = n, true) will always return
true, so the || EntryPoint.fail() will never be reachable.

http://gwt-code-reviews.appspot.com/1467801/

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


[gwt-contrib] Re: Issue 6504: AutoBean doesn't support enums with anonymous enum values (issue1467802)

2011-06-21 Thread bobv

LGTM.  Will commit and integrate into 2.4 branch.

http://gwt-code-reviews.appspot.com/1467802/

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


[gwt-contrib] [google-web-toolkit] r10357 committed - Updated rpc generator result caching to support full cacheability...

2011-06-21 Thread codesite-noreply

Revision: 10357
Author:   jbrosenb...@google.com
Date: Tue Jun 21 04:31:29 2011
Log:  Updated rpc generator result caching to support full cacheability
Also added support for changes to relevant properties and custom field  
serializers


Review at http://gwt-code-reviews.appspot.com/1464802

http://code.google.com/p/google-web-toolkit/source/detail?r=10357

Added:
  
/trunk/user/src/com/google/gwt/user/rebind/rpc/CachedRpcTypeInformation.java

Modified:
 /trunk/user/src/com/google/gwt/user/rebind/rpc/ProxyCreator.java
  
/trunk/user/src/com/google/gwt/user/rebind/rpc/SerializableTypeOracleBuilder.java
  
/trunk/user/src/com/google/gwt/user/rebind/rpc/ServiceInterfaceProxyGenerator.java

 /trunk/user/src/com/google/gwt/user/rebind/rpc/Shared.java
 /trunk/user/src/com/google/gwt/user/rebind/rpc/TypeSerializerCreator.java

===
--- /dev/null
+++  
/trunk/user/src/com/google/gwt/user/rebind/rpc/CachedRpcTypeInformation.java	 
Tue Jun 21 04:31:29 2011

@@ -0,0 +1,202 @@
+/*
+ * Copyright 2011 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the License); you may  
not
+ * use this file except in compliance with the License. You may obtain a  
copy of

+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,  
WITHOUT

+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations  
under

+ * the License.
+ */
+package com.google.gwt.user.rebind.rpc;
+
+import com.google.gwt.core.ext.TreeLogger;
+import com.google.gwt.core.ext.typeinfo.JArrayType;
+import com.google.gwt.core.ext.typeinfo.JPrimitiveType;
+import com.google.gwt.core.ext.typeinfo.JRawType;
+import com.google.gwt.core.ext.typeinfo.JRealClassType;
+import com.google.gwt.core.ext.typeinfo.JType;
+import com.google.gwt.core.ext.typeinfo.TypeOracle;
+
+import java.io.Serializable;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Map;
+import java.util.Set;
+
+/**
+ * A container for type information, for use with generator result caching.
+ */
+public class CachedRpcTypeInformation implements Serializable {
+  private final MapString, Long lastModifiedTimes = new HashMapString,  
Long();
+  private final SetString instantiableFromBrowser = new  
HashSetString();

+  private final SetString instantiableToBrowser = new HashSetString();
+  private final SetString serializableFromBrowser = new  
HashSetString();

+  private final SetString serializableToBrowser = new HashSetString();
+  private final SetString typesNotUsingCustomSerializer = new  
HashSetString();

+  private final SetString customSerializerTypes = new HashSetString();
+
+  public CachedRpcTypeInformation(SerializableTypeOracle typesFromBrowser,
+  SerializableTypeOracle typesToBrowser, SetJType  
customSerializersUsed,

+  SetJType typesNotUsingCustomSerializers) {
+
+recordTypes(serializableFromBrowser, instantiableFromBrowser,  
typesFromBrowser);
+recordTypes(serializableToBrowser, instantiableToBrowser,  
typesToBrowser);

+
+for (JType type : customSerializersUsed) {
+  addCustomSerializerType(type);
+}
+
+for (JType type : typesNotUsingCustomSerializers) {
+  addTypeNotUsingCustomSerializer(type);
+}
+  }
+
+  public void addCustomSerializerType(JType type) {
+String sourceName = type.getQualifiedSourceName();
+lastModifiedTimes.put(sourceName, getLastModifiedTime(type));
+customSerializerTypes.add(sourceName);
+  }
+
+  public void addTypeNotUsingCustomSerializer(JType type) {
+String sourceName = type.getQualifiedSourceName();
+typesNotUsingCustomSerializer.add(sourceName);
+  }
+
+  public boolean checkLastModifiedTime(JType type) {
+Long cachedTime = lastModifiedTimes.get(type.getQualifiedSourceName());
+if (cachedTime == null) {
+  return false;
+}
+return cachedTime == getLastModifiedTime(type);
+  }
+
+  public boolean checkTypeInformation(TreeLogger logger, TypeOracle  
typeOracle,
+  SerializableTypeOracle typesFromBrowser, SerializableTypeOracle  
typesToBrowser) {

+
+JType[] typesFrom = typesFromBrowser.getSerializableTypes();
+if (typesFrom.length != serializableFromBrowser.size()) {
+  if (logger.isLoggable(TreeLogger.TRACE)) {
+logger.log(TreeLogger.TRACE,
+The number of serializable types sent from the browser has  
changed);
+logDifferencesBetweenCurrentAndCachedTypes(logger, typesFrom,  
serializableFromBrowser);

+  }
+  return false;
+}
+
+JType[] typesTo = typesToBrowser.getSerializableTypes();
+if (typesTo.length != serializableToBrowser.size()) {
+  if (logger.isLoggable(TreeLogger.TRACE)) {
+logger.log(TreeLogger.TRACE,
+The number of serializable types sent to the 

[gwt-contrib] Re: A general purpose script injection class for injecting a script directly (issue1451818)

2011-06-21 Thread zundel

http://gwt-code-reviews.appspot.com/1451818/

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


[gwt-contrib] Re: A general purpose script injection class for injecting a script directly (issue1451818)

2011-06-21 Thread zundel

http://gwt-code-reviews.appspot.com/1451818/

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


[gwt-contrib] Re: A general purpose script injection class for injecting a script directly (issue1451818)

2011-06-21 Thread zundel

Updated patch.


http://gwt-code-reviews.appspot.com/1451818/diff/10011/user/src/com/google/gwt/core/client/ScriptInjector.java
File user/src/com/google/gwt/core/client/ScriptInjector.java (right):

http://gwt-code-reviews.appspot.com/1451818/diff/10011/user/src/com/google/gwt/core/client/ScriptInjector.java#newcode23
user/src/com/google/gwt/core/client/ScriptInjector.java:23: * can pull
in as few dependencies as possible and live in the Core module.
On 2011/06/21 14:51:15, jlabanca wrote:

I suggest moving this to a comment at the top of the class instead of

in the

JavaDoc.  Its just an implementation detail.


Done.

http://gwt-code-reviews.appspot.com/1451818/diff/10011/user/src/com/google/gwt/core/client/ScriptInjector.java#newcode52
user/src/com/google/gwt/core/client/ScriptInjector.java:52: * Builder
for directly injecting a script body directly into the DOM.
On 2011/06/21 14:51:15, jlabanca wrote:

directly repeated directly twice in the same sentence


It's quite direct.
(fixed)

http://gwt-code-reviews.appspot.com/1451818/diff/10011/user/src/com/google/gwt/core/client/ScriptInjector.java#newcode55
user/src/com/google/gwt/core/client/ScriptInjector.java:55: private
boolean removeTag = true;
On 2011/06/21 14:51:15, jlabanca wrote:

removeTag should default to false.  I think the most common use case

is to

inject a library, in which case you do not want to remove it.



What was the rationale for defaulting to true?


This is a trick lifted from the linker.  Removing the script tag does
not cause the definitions in the script to go away, it just removes it
from the DOM saving some memory

Here's one article on it:
http://www.javascriptkit.com/javatutors/loadjavascriptcss2.shtml

http://gwt-code-reviews.appspot.com/1451818/diff/10011/user/src/com/google/gwt/core/client/ScriptInjector.java#newcode140
user/src/com/google/gwt/core/client/ScriptInjector.java:140:
attachListeners(scriptElement, callback);
On 2011/06/21 14:51:15, jlabanca wrote:

You should attach the listeners before setting the source in case the

script

loads synchronously. I know that with images in IE, onload fires

synchronously

(as soon as you set the url) if the image is cached.


Done. I assumed it would not fire loaded until its attached to the dom.

http://gwt-code-reviews.appspot.com/1451818/diff/10011/user/test/com/google/gwt/core/client/ScriptInjectorTest.java
File user/test/com/google/gwt/core/client/ScriptInjectorTest.java
(right):

http://gwt-code-reviews.appspot.com/1451818/diff/10011/user/test/com/google/gwt/core/client/ScriptInjectorTest.java#newcode70
user/test/com/google/gwt/core/client/ScriptInjectorTest.java:70:
JavaScriptObject scriptElement = findScriptTextInThisWindow(scriptBody);
On 2011/06/21 14:51:15, jlabanca wrote:

You can now get the scriptElement from inject() instead of searching

for it.

You could sanity check that the scriptElement lives in the head

element of the

correct window.


Good point, I need to test the return value, but in this case, I still
wanted to see that there was no tag in the DOM because it is supposed to
be removed now.

http://gwt-code-reviews.appspot.com/1451818/diff/10011/user/test/com/google/gwt/core/client/ScriptInjectorTest.java#newcode73
user/test/com/google/gwt/core/client/ScriptInjectorTest.java:73:
assertFalse(cleanup failed, nativeTest1Worked());
On 2011/06/21 14:51:15, jlabanca wrote:

If the script fails to inject (worked is false), you'll hit this

error, which is

misleading.  If you move the assertTrue() above the assertFalse(),

then the fail

case returns a more meaningful error.



Of course that means you won't cleanup, but if an error occurs anyway,

that's

okay.  And, if an error occurs, you probably don't have to cleanup

because the

script was never injected.


If the injection fails, then nativeTest1Worked() returns false... so
this test would pass.

http://gwt-code-reviews.appspot.com/1451818/diff/10011/user/test/com/google/gwt/core/client/ScriptInjectorTest.java#newcode150
user/test/com/google/gwt/core/client/ScriptInjectorTest.java:150:
fail();
On 2011/06/21 14:51:15, jlabanca wrote:

Add a message like Expected script injection to succeed.


Done.

http://gwt-code-reviews.appspot.com/1451818/diff/10011/user/test/com/google/gwt/core/client/ScriptInjectorTest.java#newcode186
user/test/com/google/gwt/core/client/ScriptInjectorTest.java:186:
fail();
On 2011/06/21 14:51:15, jlabanca wrote:

reason?


Done. (here and elsewhere)

http://gwt-code-reviews.appspot.com/1451818/diff/5008/user/src/com/google/gwt/core/client/ScriptInjector.java
File user/src/com/google/gwt/core/client/ScriptInjector.java (right):

http://gwt-code-reviews.appspot.com/1451818/diff/5008/user/src/com/google/gwt/core/client/ScriptInjector.java#newcode281
user/src/com/google/gwt/core/client/ScriptInjector.java:281: private
static void doSuccessCb(CallbackVoid, Exception callback) {
I introduced a bug in my test and was pulling my hair out to debug it
before I added this code.


[gwt-contrib] Re: A general purpose script injection class for injecting a script directly (issue1451818)

2011-06-21 Thread jlabanca


http://gwt-code-reviews.appspot.com/1451818/diff/10011/user/src/com/google/gwt/core/client/ScriptInjector.java
File user/src/com/google/gwt/core/client/ScriptInjector.java (right):

http://gwt-code-reviews.appspot.com/1451818/diff/10011/user/src/com/google/gwt/core/client/ScriptInjector.java#newcode55
user/src/com/google/gwt/core/client/ScriptInjector.java:55: private
boolean removeTag = true;
On 2011/06/21 16:31:50, zundel wrote:

On 2011/06/21 14:51:15, jlabanca wrote:
 removeTag should default to false.  I think the most common use case

is to

 inject a library, in which case you do not want to remove it.

 What was the rationale for defaulting to true?



This is a trick lifted from the linker.  Removing the script tag does

not cause

the definitions in the script to go away, it just removes it from the

DOM saving

some memory



Here's one article on it:
http://www.javascriptkit.com/javatutors/loadjavascriptcss2.shtml


Weird.

http://gwt-code-reviews.appspot.com/1451818/diff/10011/user/test/com/google/gwt/core/client/ScriptInjectorTest.java
File user/test/com/google/gwt/core/client/ScriptInjectorTest.java
(right):

http://gwt-code-reviews.appspot.com/1451818/diff/10011/user/test/com/google/gwt/core/client/ScriptInjectorTest.java#newcode73
user/test/com/google/gwt/core/client/ScriptInjectorTest.java:73:
assertFalse(cleanup failed, nativeTest1Worked());
On 2011/06/21 16:31:50, zundel wrote:

On 2011/06/21 14:51:15, jlabanca wrote:
 If the script fails to inject (worked is false), you'll hit this

error, which

is
 misleading.  If you move the assertTrue() above the assertFalse(),

then the

fail
 case returns a more meaningful error.

 Of course that means you won't cleanup, but if an error occurs

anyway, that's

 okay.  And, if an error occurs, you probably don't have to cleanup

because the

 script was never injected.



If the injection fails, then nativeTest1Worked() returns false... so

this test

would pass.


SGTM

http://gwt-code-reviews.appspot.com/1451818/diff/5008/user/src/com/google/gwt/core/client/ScriptInjector.java
File user/src/com/google/gwt/core/client/ScriptInjector.java (right):

http://gwt-code-reviews.appspot.com/1451818/diff/5008/user/src/com/google/gwt/core/client/ScriptInjector.java#newcode245
user/src/com/google/gwt/core/client/ScriptInjector.java:245:
scriptElement.onload = function() {
All javascript handles should be wrapped in $entry(...) to ensure proper
reentry
into GWT code, which is essential for catching exceptions.  That;s
probably why
you had trouble debugging the bug you mentioned below.

Syntax:
scriptElement.onload = $entry(function() {
  // Put stuff here.
});

http://gwt-code-reviews.appspot.com/1451818/diff/5008/user/src/com/google/gwt/core/client/ScriptInjector.java#newcode250
user/src/com/google/gwt/core/client/ScriptInjector.java:250:
scriptElement.onerror = function() {
Wrap in $entry

http://gwt-code-reviews.appspot.com/1451818/diff/5008/user/src/com/google/gwt/core/client/ScriptInjector.java#newcode252
user/src/com/google/gwt/core/client/ScriptInjector.java:252: var ex =
@com.google.gwt.core.client.CodeDownloadException::new(Ljava/lang/String;)(onerror()
called.);
spaces

http://gwt-code-reviews.appspot.com/1451818/diff/5008/user/src/com/google/gwt/core/client/ScriptInjector.java#newcode255
user/src/com/google/gwt/core/client/ScriptInjector.java:255:
scriptElement.onreadystatechange = function() {
Wrap in $entry

http://gwt-code-reviews.appspot.com/1451818/diff/5008/user/src/com/google/gwt/core/client/ScriptInjector.java#newcode281
user/src/com/google/gwt/core/client/ScriptInjector.java:281: private
static void doSuccessCb(CallbackVoid, Exception callback) {
On 2011/06/21 16:31:50, zundel wrote:

I introduced a bug in my test and was pulling my hair out to debug it

before I

added this code.


Wrap the onload/onerror functions in $entry, and GWT will forward errors
to the UncaughtExceptionHandler.  Sorry I missed that before.

http://gwt-code-reviews.appspot.com/1451818/diff/5008/user/test/com/google/gwt/core/client/ScriptInjectorTest.java
File user/test/com/google/gwt/core/client/ScriptInjectorTest.java
(right):

http://gwt-code-reviews.appspot.com/1451818/diff/5008/user/test/com/google/gwt/core/client/ScriptInjectorTest.java#newcode63
user/test/com/google/gwt/core/client/ScriptInjectorTest.java:63: public
void gwtTearDown() {
I'm pretty sure gwtTearDown is protected in GWTTestCase.  Probably no
reason to make it public here.

http://gwt-code-reviews.appspot.com/1451818/

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


[gwt-contrib] Re: Cleans up the mobile web app sample for 2.4. (issue1468801)

2011-06-21 Thread rchandia

submitted as r10358

http://gwt-code-reviews.appspot.com/1468801/

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


[gwt-contrib] Re: Improve GwtAstBuilder output when stack emulation is enabled. (issue1460801)

2011-06-21 Thread scottb


http://gwt-code-reviews.appspot.com/1460801/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java
File dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java (left):

http://gwt-code-reviews.appspot.com/1460801/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java#oldcode3183
dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java:3183:
On 2011/06/16 04:55:02, jbrosenberg wrote:

s/createSynthic.../createSynthetic...


Done.

http://gwt-code-reviews.appspot.com/1460801/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java
File dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java
(right):

http://gwt-code-reviews.appspot.com/1460801/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java#newcode2020
dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java:2020:
bridgeMethod.freezeParamTypes();
jbrosenberg: it didn't maps infos from the original params to the bridge
params.

zundel: createSyntheticMethod is used for clinit, init, getClass, which
have no associated JDT binding.  createSyntheticMethodFromBinding is
used for enum.values/valueOf, which do.

http://gwt-code-reviews.appspot.com/1460801/

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


[gwt-contrib] [google-web-toolkit] r10359 committed - Support anonymous enum types in AutoBean ValueCodex....

2011-06-21 Thread codesite-noreply

Revision: 10359
Author:   gwt.mirror...@gmail.com
Date: Tue Jun 21 10:47:41 2011
Log:  Support anonymous enum types in AutoBean ValueCodex.
Issue 6504.
http://gwt-code-reviews.appspot.com/1467802/
Patch by: t.broyer
Review by: bobv

http://code.google.com/p/google-web-toolkit/source/detail?r=10359

Modified:
 /trunk/user/src/com/google/web/bindery/autobean/shared/ValueCodex.java
  
/trunk/user/test/com/google/web/bindery/autobean/shared/AutoBeanCodexTest.java
  
/trunk/user/test/com/google/web/bindery/requestfactory/shared/SimpleEnum.java


===
--- /trunk/user/src/com/google/web/bindery/autobean/shared/ValueCodex.java	 
Mon Apr 18 02:42:06 2011
+++ /trunk/user/src/com/google/web/bindery/autobean/shared/ValueCodex.java	 
Tue Jun 21 10:47:41 2011

@@ -123,6 +123,11 @@
   }
 },
 ENUM(Enum.class) {
+  @Override
+  public boolean canUpcast(Object value) {
+return value instanceof Enum;
+  }
+
   @Override
   public Enum? decode(Class? clazz, Splittable value) {
 return (Enum?) clazz.getEnumConstants()[(int) value.asNumber()];
@@ -352,7 +357,7 @@
* May return codenull/code.
*/
   private static T Type findType(ClassT clazz) {
-if (clazz.isEnum()) {
+if (clazz.isEnum() || (clazz.getSuperclass() != null   
clazz.getSuperclass().isEnum())) {

   return Type.ENUM;
 }
 return TYPES_BY_CLASS.get(clazz);
===
---  
/trunk/user/test/com/google/web/bindery/autobean/shared/AutoBeanCodexTest.java	 
Mon Apr 18 02:42:06 2011
+++  
/trunk/user/test/com/google/web/bindery/autobean/shared/AutoBeanCodexTest.java	 
Tue Jun 21 10:47:41 2011

@@ -141,7 +141,17 @@
   }

   enum MyEnum {
-FOO, BAR,
+FOO,
+/**
+ * Contains a method that cannot even be called, but is enough to make
+ * MyEnum.BAR.getClass().isEnum()==false, because BAR's class is now an
+ * anonymous subclass of MyEnum.
+ */
+BAR {
+  @SuppressWarnings(unused)
+  private void dummy() {
+  }
+},
 // The eclipse formatter wants to put this annotation inline
 @PropertyName(quux)
 BAZ;
===
---  
/trunk/user/test/com/google/web/bindery/requestfactory/shared/SimpleEnum.java	 
Tue Apr  5 10:47:39 2011
+++  
/trunk/user/test/com/google/web/bindery/requestfactory/shared/SimpleEnum.java	 
Tue Jun 21 10:47:41 2011

@@ -19,5 +19,15 @@
  * Test enum class.
  */
 public enum SimpleEnum {
-  FOO, BAR
-}
+  FOO,
+  /**
+   * Contains a method that cannot even be called, but is enough to make
+   * SimpleEnum.BAR.getClass().isEnum()==false, because BAR's class is now  
an

+   * anonymous subclass of MyEnum.
+   */
+  BAR {
+@SuppressWarnings(unused)
+private void dummy() {
+}
+  }
+}

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


[gwt-contrib] [google-web-toolkit] r10360 committed - Don't allow DataflowOptimizer to perform constant transformation on ex...

2011-06-21 Thread codesite-noreply

Revision: 10360
Author:   gwt.mirror...@gmail.com
Date: Tue Jun 21 10:56:04 2011
Log:  Don't allow DataflowOptimizer to perform constant transformation  
on expressions with side-effects.


Review at http://gwt-code-reviews.appspot.com/1467801

http://code.google.com/p/google-web-toolkit/source/detail?r=10360

Modified:
  
/trunk/dev/core/src/com/google/gwt/dev/jjs/impl/gflow/constants/ConstantsTransformationFunction.java
  
/trunk/dev/core/test/com/google/gwt/dev/jjs/impl/gflow/DataflowOptimizerTest.java


===
---  
/trunk/dev/core/src/com/google/gwt/dev/jjs/impl/gflow/constants/ConstantsTransformationFunction.java	 
Fri Apr  2 14:35:01 2010
+++  
/trunk/dev/core/src/com/google/gwt/dev/jjs/impl/gflow/constants/ConstantsTransformationFunction.java	 
Tue Jun 21 10:56:04 2011

@@ -56,6 +56,11 @@

   Preconditions.checkNotNull(condition,
   Null condition in %s: %s, node, node.getJNode());
+
+  if (condition.hasSideEffects()) {
+return;
+  }
+
   JValueLiteral evaluatedCondition =
 ExpressionEvaluator.evaluate(condition, assumption);

===
---  
/trunk/dev/core/test/com/google/gwt/dev/jjs/impl/gflow/DataflowOptimizerTest.java	 
Wed Jun 15 12:44:51 2011
+++  
/trunk/dev/core/test/com/google/gwt/dev/jjs/impl/gflow/DataflowOptimizerTest.java	 
Tue Jun 21 10:56:04 2011

@@ -2,6 +2,8 @@

 import com.google.gwt.dev.jjs.ast.JMethod;
 import com.google.gwt.dev.jjs.ast.JProgram;
+import com.google.gwt.dev.jjs.impl.DeadCodeElimination;
+import com.google.gwt.dev.jjs.impl.MethodInliner;
 import com.google.gwt.dev.jjs.impl.OptimizerTestBase;

 public class DataflowOptimizerTest extends OptimizerTestBase {
@@ -9,6 +11,10 @@
   protected void setUp() throws Exception {
 super.setUp();

+/*
+ * TODO: Each of these snippets shouldn't be setup for every test, and  
thus should be moved
+ * to the individual test cases they are needed for (or to shared  
methods if needed).

+ */
 addSnippetClassDecl(static void foo(int i) { });
 addSnippetClassDecl(static boolean bar() { return true; });
 addSnippetClassDecl(static void baz(boolean b) {  });
@@ -29,6 +35,9 @@
 addSnippetClassDecl(static class Foo { int i; int j; int k; });
 addSnippetClassDecl(static Foo createFoo() {return null;});
 addSnippetClassDecl(static Foo staticFooInstance;);
+
+runMethodInliner = false;
+runDCE = false;
   }

   public void testLinearStatements1() throws Exception {
@@ -305,9 +314,60 @@
   long lng8 = lng  8;,
   return lng8;);
   }
+
+  /*
+   * This test is a regression for an issue where inlined multiexpressions  
were getting removed
+   * by the ConstantsTransformationFunction, based on the constant value  
of the multi-expression,
+   * despite there being side-effects of the multi-expression.  So, we  
want to test that inlining

+   * proceeds, but not further constant transformation.
+   *
+   * TODO: This test may need to evolve over time, as the specifics of the  
optimizers change.  One
+   * obvious todo is to allow some form of constant transformation to  
occur with inlined

+   * multi-expressions (see comment below).
+   */
+  public void testInlinedConstantExpressionWithSideEffects() throws  
Exception {

+
+runDCE = true;
+runMethodInliner = true;
+
+addSnippetClassDecl(static void fail() { +
+  throw new RuntimeException(); +
+});
+addSnippetClassDecl(static Integer x;);
+addSnippetClassDecl(static boolean copy(Number n) { +
+  x = (Integer) n; +
+  return true; +
+});
+
+optimize(int,
+  Integer n = new Integer(1);,
+  if (!copy(n)) {,
+fail();,
+  },
+  return x;)
+// TODO: Allow the second line below to be transformed to  
just: EntryPoint.x = n;

+.intoString(Integer n = new Integer(1);,
+((EntryPoint.x = n, true)) || EntryPoint.fail();,
+return EntryPoint.x.intValue(););
+
+  }
+
+  private boolean runDCE;
+  private boolean runMethodInliner;

   @Override
   protected boolean optimizeMethod(JProgram program, JMethod method) {
-return DataflowOptimizer.exec(program, method).didChange();
+boolean didChange = false;
+
+if (runDCE) {
+  didChange = DeadCodeElimination.exec(program).didChange() ||  
didChange;

+}
+
+if (runMethodInliner) {
+  didChange = MethodInliner.exec(program).didChange() || didChange;
+}
+
+didChange = DataflowOptimizer.exec(program, method).didChange() ||  
didChange;

+return didChange;
   }
 }

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


[gwt-contrib] Re: Improve GwtAstBuilder output when stack emulation is enabled. (issue1460801)

2011-06-21 Thread zundel

LGTM

http://gwt-code-reviews.appspot.com/1460801/

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


[gwt-contrib] Adds a static factory method to create Event.Type using type (issue1462806)

2011-06-21 Thread bduff

Reviewers: rjrjr,

Description:
Adds a static factory method to create Event.Type using type
inference (to avoid having to duplicate generic type parameters).


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

Affected files:
  M user/src/com/google/web/bindery/event/shared/Event.java


Index: user/src/com/google/web/bindery/event/shared/Event.java
===
--- user/src/com/google/web/bindery/event/shared/Event.java (revision 10359)
+++ user/src/com/google/web/bindery/event/shared/Event.java (working copy)
@@ -28,6 +28,22 @@
*/
   public static class TypeH {
 private static int nextHashCode;
+
+/**
+ * Conveniently creates an instance of {@code Type}, using generic
+ * type inference. Using this method, you can replace calls like:
+ * pre{@code
+ *   TypeMyHandler TYPE = new TypeMyHandler();
+ * }/pre
+ * with:
+ * pre{@code
+ *   TypeMyHandler TYPE = Type.create();
+ * }/pre
+ */
+public static H TypeH create() {
+  return new TypeH();
+}
+
 private final int index;

 /**


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


[gwt-contrib] Re: A general purpose script injection class for injecting a script directly (issue1451818)

2011-06-21 Thread zundel

http://gwt-code-reviews.appspot.com/1451818/

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


[gwt-contrib] Re: A general purpose script injection class for injecting a script directly (issue1451818)

2011-06-21 Thread jlabanca

LGTM

http://gwt-code-reviews.appspot.com/1451818/

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


[gwt-contrib] Re: A general purpose script injection class for injecting a script directly (issue1451818)

2011-06-21 Thread zundel

http://gwt-code-reviews.appspot.com/1451818/

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


[gwt-contrib] Re: A general purpose script injection class for injecting a script directly (issue1451818)

2011-06-21 Thread zundel


http://gwt-code-reviews.appspot.com/1451818/diff/5008/user/src/com/google/gwt/core/client/ScriptInjector.java
File user/src/com/google/gwt/core/client/ScriptInjector.java (right):

http://gwt-code-reviews.appspot.com/1451818/diff/5008/user/src/com/google/gwt/core/client/ScriptInjector.java#newcode245
user/src/com/google/gwt/core/client/ScriptInjector.java:245:
scriptElement.onload = function() {
On 2011/06/21 16:46:24, jlabanca wrote:

All javascript handles should be wrapped in $entry(...) to ensure

proper reentry

into GWT code, which is essential for catching exceptions.  That;s

probably why

you had trouble debugging the bug you mentioned below.



Syntax:
scriptElement.onload = $entry(function() {
   // Put stuff here.
});


Done.

http://gwt-code-reviews.appspot.com/1451818/diff/5008/user/src/com/google/gwt/core/client/ScriptInjector.java#newcode250
user/src/com/google/gwt/core/client/ScriptInjector.java:250:
scriptElement.onerror = function() {
On 2011/06/21 16:46:24, jlabanca wrote:

Wrap in $entry


Done.

http://gwt-code-reviews.appspot.com/1451818/diff/5008/user/src/com/google/gwt/core/client/ScriptInjector.java#newcode252
user/src/com/google/gwt/core/client/ScriptInjector.java:252: var ex =
@com.google.gwt.core.client.CodeDownloadException::new(Ljava/lang/String;)(onerror()
called.);
On 2011/06/21 16:46:24, jlabanca wrote:

spaces


Done.

http://gwt-code-reviews.appspot.com/1451818/diff/5008/user/src/com/google/gwt/core/client/ScriptInjector.java#newcode255
user/src/com/google/gwt/core/client/ScriptInjector.java:255:
scriptElement.onreadystatechange = function() {
On 2011/06/21 16:46:24, jlabanca wrote:

Wrap in $entry


Done.

http://gwt-code-reviews.appspot.com/1451818/diff/5008/user/src/com/google/gwt/core/client/ScriptInjector.java#newcode281
user/src/com/google/gwt/core/client/ScriptInjector.java:281: private
static void doSuccessCb(CallbackVoid, Exception callback) {
On 2011/06/21 16:46:24, jlabanca wrote:

On 2011/06/21 16:31:50, zundel wrote:
 I introduced a bug in my test and was pulling my hair out to debug

it before I

 added this code.



Wrap the onload/onerror functions in $entry, and GWT will forward

errors to the

UncaughtExceptionHandler.  Sorry I missed that before.


Done.

http://gwt-code-reviews.appspot.com/1451818/diff/5008/user/test/com/google/gwt/core/client/ScriptInjectorTest.java
File user/test/com/google/gwt/core/client/ScriptInjectorTest.java
(right):

http://gwt-code-reviews.appspot.com/1451818/diff/5008/user/test/com/google/gwt/core/client/ScriptInjectorTest.java#newcode63
user/test/com/google/gwt/core/client/ScriptInjectorTest.java:63: public
void gwtTearDown() {
On 2011/06/21 16:46:24, jlabanca wrote:

I'm pretty sure gwtTearDown is protected in GWTTestCase.  Probably no

reason to

make it public here.


removed.

http://gwt-code-reviews.appspot.com/1451818/

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


  1   2   >