Re: CellTable height shrinks upon paging

2012-01-16 Thread Raziel
I don't think performance is the main reason, but the fact that the
current way the loading indicator works by taking the place of the
current data until more data is loaded. However, when there's no
indicator I think it should be (theoretically) possible to skip that
state, leave the data there until the new one is obtained, and then
do the clean and re-populate immediately, in order to eliminate the
flickering. Just like when using a (non-asynchronous) ListLoader, the
paging doesn't show any flickering.

On Jan 14, 9:10 am, Patrick Tucker tucker...@gmail.com wrote:
 I agree.  I think the number of rows should stay the same and when
 needed, set the left over cells to empty.  Unfortunately, they
 probably had a good reason to remove the rows instead.  I'm guessing
 rendering is faster the way it is now.

 On Jan 13, 11:06 am, Raziel raziel...@gmail.com wrote:







  The behaviour of a CellTable when paging is to show the loading
  indicator (nothing if no indicator is configured) and then fill the
  new retrieved data.

  Whereas this sounds reasonably correct, I find it to be a problem the
  fact that the grid will momentarily shrink in height to accommodate
  only the loading indicator (or all the way up to the header if there's
  no indicator set).

  I understand it is a feature of this grid to take as much space as it
  is required by its content. However, I think the better behaviour
  would for the height not to resize while showing the loading indicator
  (if that's at all possible), or at least that when we turn off the
  indicator - setLoadingIndicator(null) - the current page is not wiped
  out but right before replacing it with the new data. The latter would
  prevent that momentary flickering when paging, just like you can see
  the grid behave in the GWT 
  Showcase:http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTable

  Note that the Showcase doesn't present that flickering because the
  data is hardcoded in the provider (i.e. it's not asynchronously
  fetched).

  I've debugged and taken a look at the underlying implementation and
  it's not that easy to follow. I see there are a few loading states
  (loaded, loading, partially loaded), but not exactly sure about how to
  modify the logic to achieve what I want without breaking something
  else. So I'm wondering if somebody can give me some pointers about how
  to go ahead and extend the CellTable to make it work the way I
  describe (at least setting the indicator to null to indicate that the
  current page will be removed when the new one is passed).

  Also, does anybody know if this feature would be added soon to the
  celltable? I cannot imagine that this flickering is a desired effect,
  hence I'm also wondering if I should log a ticket?

  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.



CellTable height shrinks upon paging

2012-01-13 Thread Raziel
The behaviour of a CellTable when paging is to show the loading
indicator (nothing if no indicator is configured) and then fill the
new retrieved data.

Whereas this sounds reasonably correct, I find it to be a problem the
fact that the grid will momentarily shrink in height to accommodate
only the loading indicator (or all the way up to the header if there's
no indicator set).

I understand it is a feature of this grid to take as much space as it
is required by its content. However, I think the better behaviour
would for the height not to resize while showing the loading indicator
(if that's at all possible), or at least that when we turn off the
indicator - setLoadingIndicator(null) - the current page is not wiped
out but right before replacing it with the new data. The latter would
prevent that momentary flickering when paging, just like you can see
the grid behave in the GWT Showcase: 
http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTable

Note that the Showcase doesn't present that flickering because the
data is hardcoded in the provider (i.e. it's not asynchronously
fetched).

I've debugged and taken a look at the underlying implementation and
it's not that easy to follow. I see there are a few loading states
(loaded, loading, partially loaded), but not exactly sure about how to
modify the logic to achieve what I want without breaking something
else. So I'm wondering if somebody can give me some pointers about how
to go ahead and extend the CellTable to make it work the way I
describe (at least setting the indicator to null to indicate that the
current page will be removed when the new one is passed).

Also, does anybody know if this feature would be added soon to the
celltable? I cannot imagine that this flickering is a desired effect,
hence I'm also wondering if I should log a ticket?

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.



What is the proper way of implementing page-level select-all through a Checkbox Header in a CellTable

2011-11-22 Thread Raziel
This question has been asked and partially responded in a number of
posts:

http://groups.google.com/group/google-web-toolkit/browse_thread/thread/dc3a97cd25deb6e3/392dfcdb35f04c95?lnk=gstq=DefaultSelectionModel#392dfcdb35f04c95
http://snipt.net/araujo921/checkbox-in-gwt-celltable-header/
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/56f5513b709cd041
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/b20080056a76276f
http://0-groups.google.com.topcat.switchinc.org/group/google-web-toolkit/browse_thread/thread/6d4e65510855e6f6

However, I still haven't found I clean answer to what seems to me a
very common feature requested in data presentation (and editing)
grids.

In summary we want to be able to add a checkbox header to a selection
column of checkboxes that:

* Checking it will select all visible items in the grid.
* Unchecking it will deselect all visible items in the grid.
* Any change in the visible data, caused for example by paging or
sorting, will result in the checkbox header value to be updated
according to the rules above: if all visible items are selected then
check it, otherwise uncheck it.

The straightforward logic would suggest that the following
implementation should work:

  CheckboxCell headerCheckbox = new CheckboxCell();
  HeaderBoolean selectPageHeader = new
HeaderBoolean(headerCheckbox) {
@Override
public Boolean getValue() {
  for (T item : grid.getVisibleItems()) {
if (!getSelectionModel().isSelected(item)) {
  return false;
}
  }
  return grid.getVisibleItems().size()  0;
}
  };
  selectPageHeader.setUpdater(new ValueUpdaterBoolean() {
@Override
public void update(Boolean value) {
  for (T item : grid.getVisibleItems()) {
getSelectionModel().setSelected(item, value);
  }
}
  });
  grid.insertColumn(0, checkColumn, selectPageHeader);

However, the result is not the expected:

* When updating the visible data, lets say by moving to the next page,
the getValue() method gets called. The first couple of calls,
getVisibleItems() returns empty, and then it returns the new not-yet-
selected data. In each case, getValue() returns false. However, this
produces no change in the checked state of the header. This in itself
seems like a bug to me.

* When just toggling the checkbox header, this ends up in the opposite
state than desired. Even though update() gets called with the proper
value that reflects the checkbox header state, and the last calls made
to getValue() result in the proper value being returned. The only
irregular logic I see that could cause this, is that when clicking
on the header, the getValue() method gets called before the update() -
to obtain the key and create a cell context. That results in
getValue() returning the wrong value (i.e. the opposite). However,
after update() gets called and it sets the selection state of the
visible items, getValue() gets called again, thus returning the proper
value this time.

I guess there are ways where the header can be created in a way where
we can control better how its value is set and retrieved. However,
this being such a common use case, and whose logical implementation
shown above produces inconsistent results, tells me that either I'm
completely missing something, or that this is a flaw in the celltable
widgets.

I would appreciate any input on this regard,

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.



What is the proper way of implementing page-level select-all through a Checkbox Header in a CellTable

2011-11-22 Thread Raziel
This question has been asked and partially responded in a number of
posts:

http://groups.google.com/group/google-web-toolkit/browse_thread/thread/dc3a97cd25deb6e3/392dfcdb35f04c95?lnk=gstq=DefaultSelectionModel#392dfcdb35f04c95
http://snipt.net/araujo921/checkbox-in-gwt-celltable-header/
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/56f5513b709cd041
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/b20080056a76276f
http://0-groups.google.com.topcat.switchinc.org/group/google-web-toolkit/browse_thread/thread/6d4e65510855e6f6

However, I still haven't found I clean answer to what seems to me a
very common feature requested in data presentation (and editing)
grids.

In summary we want to be able to add a checkbox header to a selection
column of checkboxes that:

* Checking it will select all visible items in the grid.
* Unchecking it will deselect all visible items in the grid.
* Any change in the visible data, caused for example by paging or
sorting, will result in the checkbox header value to be updated
according to the rules above: if all visible items are selected then
check it, otherwise uncheck it.

The straightforward logic would suggest that the following
implementation should work:

  CheckboxCell headerCheckbox = new CheckboxCell();
  HeaderBoolean selectPageHeader = new
HeaderBoolean(headerCheckbox) {
@Override
public Boolean getValue() {
  for (T item : grid.getVisibleItems()) {
if (!getSelectionModel().isSelected(item)) {
  return false;
}
  }
  return grid.getVisibleItems().size()  0;
}
  };
  selectPageHeader.setUpdater(new ValueUpdaterBoolean() {
@Override
public void update(Boolean value) {
  for (T item : grid.getVisibleItems()) {
getSelectionModel().setSelected(item, value);
  }
}
  });
  grid.insertColumn(0, checkColumn, selectPageHeader);

However, the result is not the expected:

* When updating the visible data, lets say by moving to the next page,
the getValue() method gets called. The first couple of calls,
getVisibleItems() returns empty, and then it returns the new not-yet-
selected data. In each case, getValue() returns false. However, this
produces no change in the checked state of the header. This in itself
seems like a bug to me.

* When just toggling the checkbox header, this ends up in the opposite
state than desired. Even though update() gets called with the proper
value that reflects the checkbox header state, and the last calls made
to getValue() result in the proper value being returned. The only
irregular logic I see that could cause this, is that when clicking
on the header, the getValue() method gets called before the update() -
to obtain the key and create a cell context. That results in
getValue() returning the wrong value (i.e. the opposite). However,
after update() gets called and it sets the selection state of the
visible items, getValue() gets called again, thus returning the proper
value this time.

I guess there are ways where the header can be created in a way where
we can control better how its value is set and retrieved. However,
this being such a common use case, and whose logical implementation
shown above produces inconsistent results, tells me that either I'm
completely missing something, or that this is a flaw in the celltable
widgets.

I would appreciate any input on this regard,

Thanks

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



Re: GWT CELLTABLE :How to handle event on checkbox header like gmail Inbox?.

2011-11-22 Thread Raziel
I think this is a bug in GWT: 
http://code.google.com/p/google-web-toolkit/issues/detail?id=7014

See the proposed workaround. It works perfectly fine for me.

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



KeyboardSelectionPolicy BOUND_TO_SELECTION vs ENABLED

2011-11-14 Thread Raziel
Hi, could somebody provide a simple but complete explanation, and
perhaps a use case, for the usage of
KeyboardSelectionPolicy.BOUND_TO_SELECTION and
KeyboardSelectionPolicy.ENABLED?

I've looked at the code, and see a number of tickets being resolved
around this concept, but I'm still not clear of the intention and thus
usage of this concept (specially when the enumeration names seem
orthogonal: ENABLED/DISABLED vs BOUND_TO_SELECTION).

Thanks a lot

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



NumberFormat format with all available decimal digits

2011-08-29 Thread Raziel
Hi, I would like to be able to call the NumberFormat format method
with a Double and get in the string all the digits available in the
Double value.

It seems to me that you have to forcefully specify in the patter one
digit per decimal you want to display (i.e. #.# for 5 decimal
digits, #.## for 2, #.### for 7, etc.), or otherwise the
format method would round it up.

Is there any way or pattern where I can specify the formatter to show
all available decimals in the passed double value? Something like
#.#*

Any help will be greatly appreciated.

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.



[gwt-contrib] Re: [google-web-toolkit] r10459 committed - JsoNormalizer did not give unique names to devirtualized...

2011-07-29 Thread Raziel
Hi, I'd like to know what are the implications of this issue.

I just updated from GWT 2.1 to 2.3, and I'm having an error where the 
xxx__devirtual$ function is undefined for one of my JSO objects methods. The 
hierarchy of my JSO is as follows:

InterfaceA
  + getId

InterfaceB extends InterfaceA

MyJSO extends JavaScriptObject implements InterfaceB
 + getId

There are other java classes (i.e. non-JSO) implementing InterfaceA.

Any insight would be appreciated,

Thanks

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

Adding event handler to the document

2010-06-08 Thread Raziel
What's the best way to add an event handler (for example for keyboard
events) to the entire document?

I need something more general than the FocusPanel; specially because
I cannot attach a FocusPanel to my application's body.

I've seen some solutions sinking events and using
addNativePreviewHandler but it seems kinda overly complicated for
something that should probably be no more than a line of code. Then
there's also warnings like Please note that nondeterministic behavior
will result if more than one GWT application registers preview
handlers. See issue 3892 for details. that tell me I should be extra
careful with this.

Thanks

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



Re: Compiling classes that refer to uncompilable classes

2010-05-21 Thread Raziel
DTOs and that it's good and useful, but I'm talking about compilation.
I want to be able to use a server-side class on the client GWT code.
Whether I need to pass it around between client and server is another
story. Right now I'm just trying to use it. The problem comes when the
class has fields that are not GWT serializable. In that case I'm
wondering if there's a way to use deferred binding (or something else)
to provide alternate implementations for those uncompilable fields'
types.

The base deferred binding obviously doesn't work since it's not a
straight replacement of a type for its implementation (it's more a way
to generate instances, and thus its use through GWT.create). But I'm
wondering if there's something more obcure that I have missed.

At least having an annotation (already proposed and logged in a ticket
http://code.google.com/p/google-web-toolkit/issues/detail?id=3769q=serveronly)
for the compiler to ignore such fields, would be a partial solution.
But I really wish there's a replacement option.



On May 21, 5:42 am, José González Gómez
jose.gonzalez.go...@gmail.com wrote:
 Use DTOs and some mapping helpers to communicate with the presentation
 layer (GWT). There's a prior discussion in the group regardin this,
 search forDozer/Gilead.

 HTH, best regards
 José

 On 20 mayo, 23:16, Raziel raziel...@gmail.com wrote:





  Hi, currently I create modules in order to access server-side classes
  in my GWT client code. Until now all these classes have not referred
  (directly or indirectly) to classes outside of the GWT JRE emulation.

  However, now I need to be able to compile a bean with a reference to
  javax.xml.namescape.QName. And in general I see how it might soon be
  needed to compile classes with references to uncompilable classes
  either because it's a third party class and we don't have the source
  available, or it's a JRE class for which there's no emulation yet,
  etc.

  So I'm wondering if there's a way to use deferred binding to provide
  the compiler with a client-side specific implementation of those
  classes. The caveat of course is that the class containing the
  offending reference to uncompilable code should not be changed. For
  example:

  class MyBean {

    QName q;

    MyBean(QName q) {
      this.q = q;
    }

  }

  Maybe something along the lines of ...

  replace-with class=com.mycompany.gwt.bind.MyQName
      when-type-is class=javax.xml.namescape.QName/
  /replace-with

  For what I read nothing of the like is possible, since for starters
  the deferred implementation has to go through GWT.create(), but I'm
  hoping there's another way I haven't thought about.

  Thanks

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



Compiling classes that refer to uncompilable classes

2010-05-20 Thread Raziel
Hi, currently I create modules in order to access server-side classes
in my GWT client code. Until now all these classes have not referred
(directly or indirectly) to classes outside of the GWT JRE emulation.

However, now I need to be able to compile a bean with a reference to
javax.xml.namescape.QName. And in general I see how it might soon be
needed to compile classes with references to uncompilable classes
either because it's a third party class and we don't have the source
available, or it's a JRE class for which there's no emulation yet,
etc.

So I'm wondering if there's a way to use deferred binding to provide
the compiler with a client-side specific implementation of those
classes. The caveat of course is that the class containing the
offending reference to uncompilable code should not be changed. For
example:

class MyBean {

  QName q;

  MyBean(QName q) {
this.q = q;
  }

}

Maybe something along the lines of ...

replace-with class=com.mycompany.gwt.bind.MyQName
when-type-is class=javax.xml.namescape.QName/
/replace-with

For what I read nothing of the like is possible, since for starters
the deferred implementation has to go through GWT.create(), but I'm
hoping there's another way I haven't thought about.

Thanks

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



AsyncProxy Example

2010-04-19 Thread Raziel
Does anybody have an example of implementing AsyncProxy to dynamically
load a class via the underlying runAsync?

Basically I use the snippet of code in the AsyncProxy javadoc, but at
compilation time I get the following error:

  interface IFoo {
void doSomething(int a, int b);
void anotherMethod(Object o);
  }
  class FooImpl implements IFoo {
@Override
public void anotherMethod(Object o) {
}
@Override
public void doSomething(int a, int b) {
}
  }

  @ConcreteType(FooImpl.class)
  interface FooProxy extends AsyncProxyIFoo, IFoo {}

  class UserOfIFoo {
private IFoo foo = GWT.create(FooProxy.class);

void makeTrouble() {
  // This first call triggers a runAsync load
  foo.doSomething(1, 2);

  // and this second will replayed after the call to doSomething()
  foo.anotherMethod(A string);
}
  }


 [java]   Computing all possible rebind results for
'com.mypackage.client.util.FooProxy'
 [java]  Rebinding com.mypackage.client.util.FooProxy
 [java] Invoking
com.google.gwt.dev.javac.StandardGeneratorConte
x...@162144c
 [java][ERROR] Expecting concrete
typecom.mypackage.client.util.FooImpl to be static.
 [java][ERROR] Errors in 'file:/C:/work/gwt/GWTProject/src/com/
mypackage/client/util/FooProxy.java'

 [java]   [ERROR] Line 72:  Failed to resolve
'com.mypackage.client.util.FooProxy' via deferred binding
 [java][ERROR] Cannot proceed due to previous errors


What does it mean FooImpl to be static? I mean, this is the example
in the javadoc! I don;t see any special instructions for using
AsyncProxy.

Thanks

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



Re: Lightweight Metrics System

2010-04-01 Thread Raziel
Yeah, I looked at the actual JS implementation to figure it out.

Anyway I logged a ticket so they incorrect/incomplete documentation is
updated: http://code.google.com/p/google-web-toolkit/issues/detail?id=4757


Thanks!

On Mar 17, 4:17 am, igm igor.miha...@gmail.com wrote:
 I think returing boolean is not enough to use it properly. I played
 with this metric system some time ago and found gwt-debug-panel
 project (http://code.google.com/p/gwt-debug-panel/) which is a good
 source of how to use it.
 Have a look here for example to see the implementation of
 __gwtStatsEvent 
 function:http://code.google.com/p/gwt-debug-panel/source/browse/trunk/src/exam...
 lines #37-#43.

 On Mar 16, 11:46 pm, Raziel raziel...@gmail.com wrote:



  Ok, I figured it out: __gwtStatsEvent has to return a boolean!

  The documentation, nor the example mentions it, but the RPC code (at
  least the RPC code) expects it.

  On Mar 16, 4:32 pm, Raziel raziel...@gmail.com wrote:

   Hi, I'm trying to integrate the Lightweight Metrics System into my
   application. Which basically means I added the snippet of code shown
   in 
   here:http://code.google.com/webtoolkit/doc/latest/DevGuideLightweightMetri...
   into my host page. The problem is that when I load my application in
   dev mode I get the following exception:

   16:22:07.703 [ERROR] [mymodule] Unable to load module entry point
   class com.myapp.gwt.appbuilder.client.MyModule (see associated
   exception for details)
   com.google.gwt.dev.shell.HostedModeException: Something other than a
   boolean was returned from JSNI method
   '@com.google.gwt.user.client.rpc.impl.remoteserviceproxy::stats(Lcom/
   google/gwt/core/client/JavaScriptObject;)': JS value of type
   undefined, expected boolean
       at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:100)
       at
   com.google.gwt.dev.shell.ModuleSpace.invokeNativeBoolean(ModuleSpace.java:
   181)
       at
   com.google.gwt.dev.shell.JavaScriptHost.invokeNativeBoolean(JavaScriptHost.
java:
   35)
       at
   com.google.gwt.user.client.rpc.impl.RemoteServiceProxy.stats(RemoteServiceP
roxy.java)
       at
   com.myapp.gwt.appbuilder.client.services.ApplicationRPCService_Proxy.invoke
(ApplicationRPCService_Proxy.java:
   25)
       at
   com.myapp.gwt.appbuilder.client.command.BaseInvokerRPCAsync.invoke(BaseInvo
kerRPCAsync.java:
   47)
       at
   com.myapp.gwt.appbuilder.client.command.SafeInvokerAsync.invoke(SafeInvoker
Async.java:
   58)
       at
   com.myapp.gwt.appbuilder.client.models.AppMainModel.getAvailableApplication
s(AppMainModel.java:
   10)
       at
   com.myapp.gwt.appbuilder.client.controllers.AppMainControl.createNavigation
View(AppMainControl.java:
   84)
       at
   com.myapp.gwt.appbuilder.client.controllers.AppMainControl.init(AppMainCo
ntrol.java:
   41)
       at
   com.myapp.gwt.appbuilder.client.MyModule.onModuleLoadDeferred(MyModule.java
:
   63)
       at
   com.myapp.gwt.appbuilder.client.MyModule.onModuleLoad(MyModule.java:
   45)
       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.ModuleSpace.onLoad(ModuleSpace.java:
   369)
       at
   com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler
.java:
   185)
       at
   com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan
nelServer.java:
   380)
       at
   com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java
:
   222)
       at java.lang.Thread.run(Thread.java:619)

   When I load the application the bootstrap, loadExternalRefs,
   moduleStartup events are called and complete, but as soon as it gets
   to the RPC it crashes.

   This does not happen in regular web mode.

   Does anybody have any idea what the issue could be?

   Thanks

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



Lightweight Metrics System

2010-03-16 Thread Raziel
Hi, I'm trying to integrate the Lightweight Metrics System into my
application. Which basically means I added the snippet of code shown
in here: 
http://code.google.com/webtoolkit/doc/latest/DevGuideLightweightMetrics.html
into my host page. The problem is that when I load my application in
dev mode I get the following exception:

16:22:07.703 [ERROR] [mymodule] Unable to load module entry point
class com.myapp.gwt.appbuilder.client.MyModule (see associated
exception for details)
com.google.gwt.dev.shell.HostedModeException: Something other than a
boolean was returned from JSNI method
'@com.google.gwt.user.client.rpc.impl.RemoteServiceProxy::stats(Lcom/
google/gwt/core/client/JavaScriptObject;)': JS value of type
undefined, expected boolean
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:100)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeBoolean(ModuleSpace.java:
181)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeBoolean(JavaScriptHost.java:
35)
at
com.google.gwt.user.client.rpc.impl.RemoteServiceProxy.stats(RemoteServiceProxy.java)
at
com.myapp.gwt.appbuilder.client.services.ApplicationRPCService_Proxy.invoke(ApplicationRPCService_Proxy.java:
25)
at
com.myapp.gwt.appbuilder.client.command.BaseInvokerRPCAsync.invoke(BaseInvokerRPCAsync.java:
47)
at
com.myapp.gwt.appbuilder.client.command.SafeInvokerAsync.invoke(SafeInvokerAsync.java:
58)
at
com.myapp.gwt.appbuilder.client.models.AppMainModel.getAvailableApplications(AppMainModel.java:
10)
at
com.myapp.gwt.appbuilder.client.controllers.AppMainControl.createNavigationView(AppMainControl.java:
84)
at
com.myapp.gwt.appbuilder.client.controllers.AppMainControl.init(AppMainControl.java:
41)
at
com.myapp.gwt.appbuilder.client.MyModule.onModuleLoadDeferred(MyModule.java:
63)
at
com.myapp.gwt.appbuilder.client.MyModule.onModuleLoad(MyModule.java:
45)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
369)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
185)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
380)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
222)
at java.lang.Thread.run(Thread.java:619)

When I load the application the bootstrap, loadExternalRefs,
moduleStartup events are called and complete, but as soon as it gets
to the RPC it crashes.

This does not happen in regular web mode.

Does anybody have any idea what the issue could be?

Thanks

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



Re: Lightweight Metrics System

2010-03-16 Thread Raziel
Ok, I figured it out: __gwtStatsEvent has to return a boolean!

The documentation, nor the example mentions it, but the RPC code (at
least the RPC code) expects it.

On Mar 16, 4:32 pm, Raziel raziel...@gmail.com wrote:
 Hi, I'm trying to integrate the Lightweight Metrics System into my
 application. Which basically means I added the snippet of code shown
 in 
 here:http://code.google.com/webtoolkit/doc/latest/DevGuideLightweightMetri...
 into my host page. The problem is that when I load my application in
 dev mode I get the following exception:

 16:22:07.703 [ERROR] [mymodule] Unable to load module entry point
 class com.myapp.gwt.appbuilder.client.MyModule (see associated
 exception for details)
 com.google.gwt.dev.shell.HostedModeException: Something other than a
 boolean was returned from JSNI method
 '@com.google.gwt.user.client.rpc.impl.remoteserviceproxy::stats(Lcom/
 google/gwt/core/client/JavaScriptObject;)': JS value of type
 undefined, expected boolean
     at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:100)
     at
 com.google.gwt.dev.shell.ModuleSpace.invokeNativeBoolean(ModuleSpace.java:
 181)
     at
 com.google.gwt.dev.shell.JavaScriptHost.invokeNativeBoolean(JavaScriptHost. 
 java:
 35)
     at
 com.google.gwt.user.client.rpc.impl.RemoteServiceProxy.stats(RemoteServiceP 
 roxy.java)
     at
 com.myapp.gwt.appbuilder.client.services.ApplicationRPCService_Proxy.invoke 
 (ApplicationRPCService_Proxy.java:
 25)
     at
 com.myapp.gwt.appbuilder.client.command.BaseInvokerRPCAsync.invoke(BaseInvo 
 kerRPCAsync.java:
 47)
     at
 com.myapp.gwt.appbuilder.client.command.SafeInvokerAsync.invoke(SafeInvoker 
 Async.java:
 58)
     at
 com.myapp.gwt.appbuilder.client.models.AppMainModel.getAvailableApplication 
 s(AppMainModel.java:
 10)
     at
 com.myapp.gwt.appbuilder.client.controllers.AppMainControl.createNavigation 
 View(AppMainControl.java:
 84)
     at
 com.myapp.gwt.appbuilder.client.controllers.AppMainControl.init(AppMainCo 
 ntrol.java:
 41)
     at
 com.myapp.gwt.appbuilder.client.MyModule.onModuleLoadDeferred(MyModule.java :
 63)
     at
 com.myapp.gwt.appbuilder.client.MyModule.onModuleLoad(MyModule.java:
 45)
     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.ModuleSpace.onLoad(ModuleSpace.java:
 369)
     at
 com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler 
 .java:
 185)
     at
 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan 
 nelServer.java:
 380)
     at
 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java :
 222)
     at java.lang.Thread.run(Thread.java:619)

 When I load the application the bootstrap, loadExternalRefs,
 moduleStartup events are called and complete, but as soon as it gets
 to the RPC it crashes.

 This does not happen in regular web mode.

 Does anybody have any idea what the issue could be?

 Thanks

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



Re: Unable to run DevMode

2009-12-22 Thread Raziel
The jar is untouched. I also have configured the startupUrl in my
eclipse plug-in Program Arguments. I can debug, however it only works
after the second time I put the address in the browser's address bar.
The first time I get that exception.

On Dec 22, 11:40 am, Rajeev Dayal rda...@google.com wrote:
 On Mon, Dec 21, 2009 at 11:57 PM, Sam E. ssaam...@gmail.com wrote:
  I am having the same issue right now.

  00:00:00.684 [WARN] Error processing classpath URL 'file:/Users/
  ssaammee/.m2/repository/com/sun/jdmk/jmxtools/1.2.1/
  jmxtools-1.2.1.jar'
  java.util.zip.ZipException: error in opening zip file   at
  java.util.zip.ZipFile.open(Native Method)       at
  java.util.zip.ZipFile.init(ZipFile.java:114)  at
  java.util.jar.JarFile.init(JarFile.java:133)  at
  java.util.jar.JarFile.init(JarFile.java:97)   at
  com.google.gwt.dev.resource.impl.ResourceOracleImpl.createEntryForUrl
  (ResourceOracleImpl.java:175)   at
  com.google.gwt.dev.resource.impl.ResourceOracleImpl.addAllClassPathEntries
  (ResourceOracleImpl.java:223)   at
  com.google.gwt.dev.resource.impl.ResourceOracleImpl.getAllClassPathEntries
  (ResourceOracleImpl.java:249)   at
  com.google.gwt.dev.resource.impl.ResourceOracleImpl.init
  (ResourceOracleImpl.java:293)   at
  com.google.gwt.dev.resource.impl.ResourceOracleImpl.init
  (ResourceOracleImpl.java:283)   at
  com.google.gwt.dev.cfg.ModuleDef.normalize(ModuleDef.java:449)  at
  com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule
  (ModuleDefLoader.java:287)      at
  com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath
  (ModuleDefLoader.java:141)      at
  com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:867)         at
  com.google.gwt.dev.DevMode.loadModule(DevMode.java:425)         at
  com.google.gwt.dev.DevMode.doSlowStartup(DevMode.java:340)      at
  com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:953)    at
  com.google.gwt.dev.DevModeBase.run(DevModeBase.java:690)        at
  com.google.gwt.dev.DevMode.main(DevMode.java:251)

  On Dec 21, 4:55 pm, Raziel raziel...@gmail.com wrote:
   Hi, I just upgraded my application from 1.7.0 to 2.0, and while
   everything is working fine in production mode, when I try to run
   Development mode I get the following error:

   Loading modules
      com.appiancorp.gwt.appbuilder.ApplicationBuilderDev
         Public resources found in...
            [WARN] Error processing classpath URL 'file:/C:/Documents
   %20and%20Settings/raziel.alvarez/.m2/repository/com/sun/jdmk/jmxtools/
   1.2.1/jmxtools-1.2.1.jar'
   java.util.zip.ZipException: error in opening zip file
           at java.util.zip.ZipFile.open(Native Method)
           at java.util.zip.ZipFile.init(ZipFile.java:114)
           at java.util.jar.JarFile.init(JarFile.java:133)
           at java.util.jar.JarFile.init(JarFile.java:97)
           at
   com.google.gwt.dev.resource.impl.ResourceOracleImpl.createEntryForUrl
   (ResourceOracleImpl.java:175)
           at

  com.google.gwt.dev.resource.impl.ResourceOracleImpl.addAllClassPathEntries
   (ResourceOracleImpl.java:223)
           at

  com.google.gwt.dev.resource.impl.ResourceOracleImpl.getAllClassPathEntries
   (ResourceOracleImpl.java:249)
           at com.google.gwt.dev.resource.impl.ResourceOracleImpl.init
   (ResourceOracleImpl.java:293)
           at com.google.gwt.dev.resource.impl.ResourceOracleImpl.init
   (ResourceOracleImpl.java:283)
           at com.google.gwt.dev.cfg.ModuleDef.normalize(ModuleDef.java:449)
           at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule
   (ModuleDefLoader.java:287)
           at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath
   (ModuleDefLoader.java:141)
           at
  com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:867)
           at com.google.gwt.dev.DevMode.loadModule(DevMode.java:425)
           at com.google.gwt.dev.DevMode.doSlowStartup(DevMode.java:340)
           at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:953)
           at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:690)
           at com.google.gwt.dev.DevMode.main(DevMode.java:251)
            [WARN] Error processing classpath URL 'file:/C:/Documents
   %20and%20Settings/raziel.alvarez/.m2/repository/com/sun/jmx/jmxri/
   1.2.1/jmxri-1.2.1.jar'
   java.util.zip.ZipException: error in opening zip file
           at java.util.zip.ZipFile.open(Native Method)
           at java.util.zip.ZipFile.init(ZipFile.java:114)
           at java.util.jar.JarFile.init(JarFile.java:133)
           at java.util.jar.JarFile.init(JarFile.java:97)
           at
   com.google.gwt.dev.resource.impl.ResourceOracleImpl.createEntryForUrl
   (ResourceOracleImpl.java:175)
           at

  com.google.gwt.dev.resource.impl.ResourceOracleImpl.addAllClassPathEntries
   (ResourceOracleImpl.java:223)
           at

  com.google.gwt.dev.resource.impl.ResourceOracleImpl.getAllClassPathEntries
   (ResourceOracleImpl.java:249

Unable to run DevMode

2009-12-21 Thread Raziel
Hi, I just upgraded my application from 1.7.0 to 2.0, and while
everything is working fine in production mode, when I try to run
Development mode I get the following error:

Loading modules
   com.appiancorp.gwt.appbuilder.ApplicationBuilderDev
  Public resources found in...
 [WARN] Error processing classpath URL 'file:/C:/Documents
%20and%20Settings/raziel.alvarez/.m2/repository/com/sun/jdmk/jmxtools/
1.2.1/jmxtools-1.2.1.jar'
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.init(ZipFile.java:114)
at java.util.jar.JarFile.init(JarFile.java:133)
at java.util.jar.JarFile.init(JarFile.java:97)
at
com.google.gwt.dev.resource.impl.ResourceOracleImpl.createEntryForUrl
(ResourceOracleImpl.java:175)
at
com.google.gwt.dev.resource.impl.ResourceOracleImpl.addAllClassPathEntries
(ResourceOracleImpl.java:223)
at
com.google.gwt.dev.resource.impl.ResourceOracleImpl.getAllClassPathEntries
(ResourceOracleImpl.java:249)
at com.google.gwt.dev.resource.impl.ResourceOracleImpl.init
(ResourceOracleImpl.java:293)
at com.google.gwt.dev.resource.impl.ResourceOracleImpl.init
(ResourceOracleImpl.java:283)
at com.google.gwt.dev.cfg.ModuleDef.normalize(ModuleDef.java:449)
at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule
(ModuleDefLoader.java:287)
at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath
(ModuleDefLoader.java:141)
at com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:867)
at com.google.gwt.dev.DevMode.loadModule(DevMode.java:425)
at com.google.gwt.dev.DevMode.doSlowStartup(DevMode.java:340)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:953)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:690)
at com.google.gwt.dev.DevMode.main(DevMode.java:251)
 [WARN] Error processing classpath URL 'file:/C:/Documents
%20and%20Settings/raziel.alvarez/.m2/repository/com/sun/jmx/jmxri/
1.2.1/jmxri-1.2.1.jar'
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.init(ZipFile.java:114)
at java.util.jar.JarFile.init(JarFile.java:133)
at java.util.jar.JarFile.init(JarFile.java:97)
at
com.google.gwt.dev.resource.impl.ResourceOracleImpl.createEntryForUrl
(ResourceOracleImpl.java:175)
at
com.google.gwt.dev.resource.impl.ResourceOracleImpl.addAllClassPathEntries
(ResourceOracleImpl.java:223)
at
com.google.gwt.dev.resource.impl.ResourceOracleImpl.getAllClassPathEntries
(ResourceOracleImpl.java:249)
at com.google.gwt.dev.resource.impl.ResourceOracleImpl.init
(ResourceOracleImpl.java:293)
at com.google.gwt.dev.resource.impl.ResourceOracleImpl.init
(ResourceOracleImpl.java:283)
at com.google.gwt.dev.cfg.ModuleDef.normalize(ModuleDef.java:449)
at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule
(ModuleDefLoader.java:287)
at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath
(ModuleDefLoader.java:141)
at com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:867)
at com.google.gwt.dev.DevMode.loadModule(DevMode.java:425)
at com.google.gwt.dev.DevMode.doSlowStartup(DevMode.java:340)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:953)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:690)
at com.google.gwt.dev.DevMode.main(DevMode.java:251)

I'm trying to run DevMode from Eclipse. I have to say my project
configuration is not typical. Since my GWT application lives within
another application that requires logging in, previously in 1.7 I used
to point the start URL in the Debug Web Application configuration to
the address that pointed to the login page. So I just logged in and
navigated to my GWT application, and at that moment the breakpoint
weer hit and everything worked nicely.

However, now I don't know where to specify the start URL since the new
plug-in removed that field, and DevMode doesn't seem to be doing
anything and instead I get that exception.

Any ideas?

Thanks

--

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




Re: How do I use development mode on an external server via eclipse? GWT 2.0

2009-12-21 Thread Raziel
I added the -startup option, and although DevMode generates the
gwt.codesvr parameter, when pasting it into the browser I still cannot
get the breakpoints to work.

In my case my GWT application is part of another application, and this
one requires to go through a login page. Previously (i.e. GWT 1.7) I
specified the start URL to be the login page and then after logging in
I just needed to navigate where my GWT application was and from that
moment everything worked fine. Now, I specify the same URL (i.e. the
login page) as the start URL, copy the devmode generated URL and paste
it in the browser. But when I get to my GWT application and it loads,
breakpoints don't work.

Any idea?

Thanks

On Dec 10, 11:15 am, Rajeev Dayal rda...@google.com wrote:
 This is exactly right - just add:

  -startupUrlhttp://myotherserver/path/to/my/page.html

 to the program arguments list. Note that the argument is -startupUrl, not
 -startUrl.



 On Thu, Dec 10, 2009 at 8:38 AM, Thomas Broyer t.bro...@gmail.com wrote:

  On Dec 10, 11:13 am, Stefan Sigvardsson scht...@gmail.com wrote:
   Hi!

   In the previous versions of GWT i have been able to use hosted mode
   against my external server this wayhttp://
  code.google.com/intl/sv-SE/webtoolkit/doc/latest/FAQ_Debugging...

   I just whitelistes the address and typed a different URL in this
  viewhttp://code.google.com/eclipse/images/gwt_launch_settings.png

   Now the URL field has been removed in v2.0 (development mode).

   I have to run it on the external server because that is where my XML-
   RPC web service and database are.

   Help? Please?

  Just provide the -startUrl argument (in the Arguments box in the
  Launch as Web Application dialog):
   -startUrlhttp://myotherserver/path/to/my/page.html

  Then GWT will add the appropriate ?gwt.codesrv=... argument to the URL.

  --

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




Re: How do I use development mode on an external server via eclipse? GWT 2.0

2009-12-21 Thread Raziel
I made it work. Apparently now DevMode only pays attention if the URL
that represents the request that loads the application has the
gwt.codesvr parameter. I hope there's another way to preserve the old
behavior where hosted mode was able to debug applications no matter
how they were loaded, as long as they were loaded. See my use case:
logged in to an application, and eventually navigated to my embedded
GWT application at which point hosted mode took over and debugging has
very intuitive.

Otherwise it will be very inconvenient, at least for me, since my
applications are loaded through links (for example), and now such
links have to be (somehow) decorated with the gwt.codesvr parameter.

Please tell me there's another way.

On Dec 21, 5:17 pm, Raziel raziel...@gmail.com wrote:
 I added the -startup option, and although DevMode generates the
 gwt.codesvr parameter, when pasting it into the browser I still cannot
 get the breakpoints to work.

 In my case my GWT application is part of another application, and this
 one requires to go through a login page. Previously (i.e. GWT 1.7) I
 specified the start URL to be the login page and then after logging in
 I just needed to navigate where my GWT application was and from that
 moment everything worked fine. Now, I specify the same URL (i.e. the
 login page) as the start URL, copy the devmode generated URL and paste
 it in the browser. But when I get to my GWT application and it loads,
 breakpoints don't work.

 Any idea?

 Thanks

 On Dec 10, 11:15 am, Rajeev Dayal rda...@google.com wrote:



  This is exactly right - just add:

   -startupUrlhttp://myotherserver/path/to/my/page.html

  to the program arguments list. Note that the argument is -startupUrl, not
  -startUrl.

  On Thu, Dec 10, 2009 at 8:38 AM, Thomas Broyer t.bro...@gmail.com wrote:

   On Dec 10, 11:13 am, Stefan Sigvardsson scht...@gmail.com wrote:
Hi!

In the previous versions of GWT i have been able to use hostedmode
against my external server this wayhttp://
   code.google.com/intl/sv-SE/webtoolkit/doc/latest/FAQ_Debugging...

I just whitelistes the address and typed a different URL in this
   viewhttp://code.google.com/eclipse/images/gwt_launch_settings.png

Now the URL field has been removed in v2.0 (developmentmode).

I have to run it on the external server because that is where my XML-
RPC web service and database are.

Help? Please?

   Just provide the -startUrl argument (in the Arguments box in the
   Launch as Web Application dialog):
    -startUrlhttp://myotherserver/path/to/my/page.html

   Then GWT will add the appropriate ?gwt.codesrv=... argument to the URL.

   --

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




Deprecated XXXListenerCollection warnings when migrating to GWT 2.0

2009-12-18 Thread Raziel
Hi, I'm migrating my application from GWT 1.7 to GWT 2.0, and
everything seems ok except for the warning below every time I
compile:

]   Adding '69' new generated units
]  Validating newly compiled units
] [WARN] Warnings in 'generated://
3DE2D57126EAE7405EEA01A75D45584C/com/appiancorp/gwt/appbuilder/client/
services/ApplicationRPCS
eSerializer.java'
][WARN] Line 286: Referencing deprecated class
'com.google.gwt.user.client.ui.ChangeListenerCollection'
][WARN] Line 291: Referencing deprecated class
'com.google.gwt.user.client.ui.ClickListenerCollection'
][WARN] Line 296: Referencing deprecated class
'com.google.gwt.user.client.ui.FocusListenerCollection'
][WARN] Line 301: Referencing deprecated class
'com.google.gwt.user.client.ui.FormHandlerCollection'
][WARN] Line 306: Referencing deprecated class
'com.google.gwt.user.client.ui.KeyboardListenerCollection'
][WARN] Line 311: Referencing deprecated class
'com.google.gwt.user.client.ui.LoadListenerCollection'
][WARN] Line 316: Referencing deprecated class
'com.google.gwt.user.client.ui.MouseListenerCollection'
][WARN] Line 321: Referencing deprecated class
'com.google.gwt.user.client.ui.MouseWheelListenerCollection'
][WARN] Line 326: Referencing deprecated class
'com.google.gwt.user.client.ui.PopupListenerCollection'
][WARN] Line 331: Referencing deprecated class
'com.google.gwt.user.client.ui.ScrollListenerCollection'
][WARN] Line 336: Referencing deprecated class
'com.google.gwt.user.client.ui.TabListenerCollection'
][WARN] Line 341: Referencing deprecated class
'com.google.gwt.user.client.ui.TableListenerCollection'
][WARN] Line 346: Referencing deprecated class
'com.google.gwt.user.client.ui.TreeListenerCollection'
]See snapshot: C:\DOCUME~1\RAZIEL~1.ALV\LOCALS~1\Temp
\ApplicationRPCService_TypeSerializer4633447028131908703.java

I don't understand why in the world I'm getting that since my code
never defines signature related to any of those classes.

Any idea?

Thanks

--

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




Re: Deprecated XXXListenerCollection warnings when migrating to GWT 2.0

2009-12-18 Thread Raziel
Is it maybe because my RPC calls use generics and all these
XXXListenerCollection classes extend ArrayList?

I still don't see the relation, except the compiler overgeneralizing
the generic definitions.

On Dec 18, 5:57 pm, Raziel raziel...@gmail.com wrote:
 Hi, I'm migrating my application from GWT 1.7 to GWT 2.0, and
 everything seems ok except for the warning below every time I
 compile:

 ]       Adding '69' new generated units
 ]          Validating newly compiled units
 ]             [WARN] Warnings in 'generated://
 3DE2D57126EAE7405EEA01A75D45584C/com/appiancorp/gwt/appbuilder/client/
 services/ApplicationRPCS
 eSerializer.java'
 ]                [WARN] Line 286: Referencing deprecated class
 'com.google.gwt.user.client.ui.ChangeListenerCollection'
 ]                [WARN] Line 291: Referencing deprecated class
 'com.google.gwt.user.client.ui.ClickListenerCollection'
 ]                [WARN] Line 296: Referencing deprecated class
 'com.google.gwt.user.client.ui.FocusListenerCollection'
 ]                [WARN] Line 301: Referencing deprecated class
 'com.google.gwt.user.client.ui.FormHandlerCollection'
 ]                [WARN] Line 306: Referencing deprecated class
 'com.google.gwt.user.client.ui.KeyboardListenerCollection'
 ]                [WARN] Line 311: Referencing deprecated class
 'com.google.gwt.user.client.ui.LoadListenerCollection'
 ]                [WARN] Line 316: Referencing deprecated class
 'com.google.gwt.user.client.ui.MouseListenerCollection'
 ]                [WARN] Line 321: Referencing deprecated class
 'com.google.gwt.user.client.ui.MouseWheelListenerCollection'
 ]                [WARN] Line 326: Referencing deprecated class
 'com.google.gwt.user.client.ui.PopupListenerCollection'
 ]                [WARN] Line 331: Referencing deprecated class
 'com.google.gwt.user.client.ui.ScrollListenerCollection'
 ]                [WARN] Line 336: Referencing deprecated class
 'com.google.gwt.user.client.ui.TabListenerCollection'
 ]                [WARN] Line 341: Referencing deprecated class
 'com.google.gwt.user.client.ui.TableListenerCollection'
 ]                [WARN] Line 346: Referencing deprecated class
 'com.google.gwt.user.client.ui.TreeListenerCollection'
 ]                See snapshot: C:\DOCUME~1\RAZIEL~1.ALV\LOCALS~1\Temp
 \ApplicationRPCService_TypeSerializer4633447028131908703.java

 I don't understand why in the world I'm getting that since my code
 never defines signature related to any of those classes.

 Any idea?

 Thanks

--

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




Re: Running multiple instances of the same GWT Application in the same document

2009-10-30 Thread Raziel

Hi Thomas, thanks for the links, although like the ticket says they're
not very conclusive, and not quite what I'm looking for.

In general I'm thinking through all the considerations I have to keep
in mind to build this application which can be injected into the same
page, by different and unrelated sections of code.

The obvious scenarios, like creating or looking for elements by
specific IDs, I'm aware of. When I said generate IDs for a widget
these must be namespaced according to the application's instance that
created it I meant exactly what you said: the application instance
has to know, somehow (probably passed from the snipped of code that
included it), something that identifies it and thus can serve to
name-space it and be able to truly generate different IDs to the other
instances.

My concern is with those things that are not obvious, at least to me.
For example: if you end up with code like the one below, generated
from unrelated pieces of code, the three nocache scripts will create
the exact same selection script named after the module, with the exact
same implementation. Thus, by default there will be 3 iframe generated
containing the injected JS of the application. That's bad HTML since
the iframe tags have an assigned ID equal to the module name, and thus
the document will end up with 3 elements with the same ID. But not
only that: the selection bootstrap script uses the ID to grab the
iframe and call the gwtOnLoad function of the application instance
living within. You can see how this would be error prone since there's
no guarantee that the right iframe will be obtained.

div id=instance1
  script src=/blah/blah/myapp.nocache.js
/div
div id=instance2
  script src=/blah/blah/myapp.nocache.js
/div
div id=instance3
  script src=/blah/blah/myapp.nocache.js
/div


There's not much (if anything) I can do during compile time since the
parameters to identify the applications are available only at runtime.
Even worst in my case, as I said, the instances (injection snippets)
can be done by different unrelated sections of the page. So I have to
figure out how to parameterize the selection script with the runtime
values it needs to 1) uniquely identify the script to avoid calling
one of the exposed function on the wrong script  2) put different IDs
to the iframes 3) obtain the right iframe using the right ID. So this
calls for a new primary linker to change the bootstrap logic. The main
issue being how the script should retrieve the runtime values (since
there's no central place that can provide them).

Anyway, that's my specific problem, but I'm wondering if there are
other considerations I should be aware of.

Thanks



On Oct 29, 9:20 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 30 oct, 01:15, Raziel raziel...@gmail.com wrote:

  Hi, I have a legacy application and thus I'm migrating to GWT by
  reimplementing parts of it at a time. However, one of this parts may
  appear in a document more than once, displaying different information.

  Aside from ensuring that if I generate IDs for a widget these must be
  namespaced according to the application's instance that created it (in
  case I retrieve them by ID somewhere), are there any other precautions
  that I should take to avoid collisions between application instances?
  For example, since the GWT application is put inside an iframe whose
  id is the name of the application's module, shouldn't it be necessary
  to generate the iframes with different ids? Otherwise we'll end up
  with elements (the iframes) with the same ID.

 If you included the very same JS script, why would it run differently
 than the previous one? I mean, you use RootPanel.get(XXX) or
 Document.get().getElementById(XXX) somewhere in your app; and XXX
 cannot be different for 2 instances of the same app in the page
 (it's either hard-coded or taken from the same Dictionnary –whose name
 is hard-coded– or the URL), right?

 If you want your app to appear more than once, in different
 containers of the same page, you'd have to use a Dictionnary or
 similar to pass the containers' IDs to the app, and the app loops
 through the list to instantiate as many root components as
 necessary.
 Seehttp://groups.google.com/group/Google-Web-Toolkit-Contributors/browse...
 andhttp://code.google.com/p/google-web-toolkit/issues/detail?id=2592

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



Re: Running multiple instances of the same GWT Application in the same document

2009-10-30 Thread Raziel

It's a forms framework where different elements in a complex page (you
can call them portlets, or just randomly arranged elements) include
forms they wish to render. Given that not all my app is GWT, I cannot
nicely control the integration with the forms rendering framework
which I'm going to develop in GWT.

I guess an option is just loading the GWT application once, have it
available always so when forms need to render the GWT application can
just be called with the form data and proper information to
namespace the rendering; internally the application would handle
creating a new separate instance per call to render a form.

However I was hoping for a more hmmm traditional approach where the
GWT application is loaded as usual: including the nocache.js, and then
the application instance is in charge of rendering just one form (as
opposed of possibly handling the rendering of many, as with the
previous option). But as I said in my last post that doesn't quite
work out of the box given that GWT is not quite designed (at least the
default selection script) to have many instances in the same page.

I understand this is not an ideal GWT app. scenario, but I'm just
pondering my options to come up with the best approach.

Thanks

On Oct 30, 11:37 am, Ian Bambury ianbamb...@gmail.com wrote:
 Hi Raziel,

 It might help if you explained what the problem is that you are trying to
 solve.

 I can't think of any situation where an html page needs more than one GWT
 app in it.

 Ian

 http://examples.roughian.com

 2009/10/30 Raziel raziel...@gmail.com





  Hi Thomas, thanks for the links, although like the ticket says they're
  not very conclusive, and not quite what I'm looking for.

  In general I'm thinking through all the considerations I have to keep
  in mind to build this application which can be injected into the same
  page, by different and unrelated sections of code.

  The obvious scenarios, like creating or looking for elements by
  specific IDs, I'm aware of. When I said generate IDs for a widget
  these must be namespaced according to the application's instance that
  created it I meant exactly what you said: the application instance
  has to know, somehow (probably passed from the snipped of code that
  included it), something that identifies it and thus can serve to
  name-space it and be able to truly generate different IDs to the other
  instances.

  My concern is with those things that are not obvious, at least to me.
  For example: if you end up with code like the one below, generated
  from unrelated pieces of code, the three nocache scripts will create
  the exact same selection script named after the module, with the exact
  same implementation. Thus, by default there will be 3 iframe generated
  containing the injected JS of the application. That's bad HTML since
  the iframe tags have an assigned ID equal to the module name, and thus
  the document will end up with 3 elements with the same ID. But not
  only that: the selection bootstrap script uses the ID to grab the
  iframe and call the gwtOnLoad function of the application instance
  living within. You can see how this would be error prone since there's
  no guarantee that the right iframe will be obtained.

  div id=instance1
   script src=/blah/blah/myapp.nocache.js
  /div
  div id=instance2
   script src=/blah/blah/myapp.nocache.js
  /div
  div id=instance3
   script src=/blah/blah/myapp.nocache.js
  /div

  There's not much (if anything) I can do during compile time since the
  parameters to identify the applications are available only at runtime.
  Even worst in my case, as I said, the instances (injection snippets)
  can be done by different unrelated sections of the page. So I have to
  figure out how to parameterize the selection script with the runtime
  values it needs to 1) uniquely identify the script to avoid calling
  one of the exposed function on the wrong script  2) put different IDs
  to the iframes 3) obtain the right iframe using the right ID. So this
  calls for a new primary linker to change the bootstrap logic. The main
  issue being how the script should retrieve the runtime values (since
  there's no central place that can provide them).

  Anyway, that's my specific problem, but I'm wondering if there are
  other considerations I should be aware of.

  Thanks

  On Oct 29, 9:20 pm, Thomas Broyer t.bro...@gmail.com wrote:
   On 30 oct, 01:15, Raziel raziel...@gmail.com wrote:

Hi, I have a legacy application and thus I'm migrating to GWT by
reimplementing parts of it at a time. However, one of this parts may
appear in a document more than once, displaying different information.

Aside from ensuring that if I generate IDs for a widget these must be
namespaced according to the application's instance that created it (in
case I retrieve them by ID somewhere), are there any other precautions
that I should take to avoid collisions between application instances?
For example, since

Re: Running multiple instances of the same GWT Application in the same document

2009-10-30 Thread Raziel

Yeah, but my concerns are not as much at that level, but with things
more at the low level of how GWT works. Like what I mentioned about
how the selection script works to load the application JS code into
the iframe, and then execute the bootstrap logic. So I think I'm
leaning to have one application instance, always loaded and ready to
be invoked by external JS, capable of handling many forms.

I'm already dealing with the complexity of the fact that the
application is loaded in a XMLHttpRequest, which poses other
challenges to guarantee the canonical bootstrap sequence.


On Oct 30, 12:23 pm, Ian Bambury ianbamb...@gmail.com wrote:
 Would it be possible for one GWT app to be included every time (with v2.0
 the initial download can be quite small as it allows you to lazy-load code
 chinks as needed with code-splitting). This one app then checks for certain
 IDs added by the portlets. If they exist, it does its stuff.

 RootPanel p;
 p = RootPanel.get(instance1);
 if(p != null) ...
 p = RootPanel.get(instance2);
 if(p != null) ...

 (or a for-next - there are any number of possibilities)

 Ian

 http://examples.roughian.com

 2009/10/30 Raziel raziel...@gmail.com





  It's a forms framework where different elements in a complex page (you
  can call them portlets, or just randomly arranged elements) include
  forms they wish to render. Given that not all my app is GWT, I cannot
  nicely control the integration with the forms rendering framework
  which I'm going to develop in GWT.

  I guess an option is just loading the GWT application once, have it
  available always so when forms need to render the GWT application can
  just be called with the form data and proper information to
  namespace the rendering; internally the application would handle
  creating a new separate instance per call to render a form.

  However I was hoping for a more hmmm traditional approach where the
  GWT application is loaded as usual: including the nocache.js, and then
  the application instance is in charge of rendering just one form (as
  opposed of possibly handling the rendering of many, as with the
  previous option). But as I said in my last post that doesn't quite
  work out of the box given that GWT is not quite designed (at least the
  default selection script) to have many instances in the same page.

  I understand this is not an ideal GWT app. scenario, but I'm just
  pondering my options to come up with the best approach.

  Thanks

  On Oct 30, 11:37 am, Ian Bambury ianbamb...@gmail.com wrote:
   Hi Raziel,

   It might help if you explained what the problem is that you are trying to
   solve.

   I can't think of any situation where an html page needs more than one GWT
   app in it.

   Ian

  http://examples.roughian.com

   2009/10/30 Raziel raziel...@gmail.com

Hi Thomas, thanks for the links, although like the ticket says they're
not very conclusive, and not quite what I'm looking for.

In general I'm thinking through all the considerations I have to keep
in mind to build this application which can be injected into the same
page, by different and unrelated sections of code.

The obvious scenarios, like creating or looking for elements by
specific IDs, I'm aware of. When I said generate IDs for a widget
these must be namespaced according to the application's instance that
created it I meant exactly what you said: the application instance
has to know, somehow (probably passed from the snipped of code that
included it), something that identifies it and thus can serve to
name-space it and be able to truly generate different IDs to the other
instances.

My concern is with those things that are not obvious, at least to me.
For example: if you end up with code like the one below, generated
from unrelated pieces of code, the three nocache scripts will create
the exact same selection script named after the module, with the exact
same implementation. Thus, by default there will be 3 iframe generated
containing the injected JS of the application. That's bad HTML since
the iframe tags have an assigned ID equal to the module name, and thus
the document will end up with 3 elements with the same ID. But not
only that: the selection bootstrap script uses the ID to grab the
iframe and call the gwtOnLoad function of the application instance
living within. You can see how this would be error prone since there's
no guarantee that the right iframe will be obtained.

div id=instance1
 script src=/blah/blah/myapp.nocache.js
/div
div id=instance2
 script src=/blah/blah/myapp.nocache.js
/div
div id=instance3
 script src=/blah/blah/myapp.nocache.js
/div

There's not much (if anything) I can do during compile time since the
parameters to identify the applications are available only at runtime.
Even worst in my case, as I said, the instances (injection snippets)
can be done

Re: why onInjectionDone has to be called from a separate script in the selection script?

2009-10-29 Thread Raziel

I have another more straightforward question: why does the script tag
that calls onInjectionDone has the defer=defer attribute, but the
module scripts (those defined inside the module.xml) don't. These
seems off to me, since the behavior should be the same.


On Oct 28, 10:34 am, Raziel raziel...@gmail.com wrote:
 Oh that makes now a lot of sense. I completely missed that part (even
 though it's a few lines above what I was looking at).

 I guess I'll have to change that code in the linker as well to not use
 document.write but some other way to control the execution of injected
 scripts.

 Has anybody had this issue (loading the host page and thus the GWT
 app) in an XMLHttpRequest, and found a nicer solution to deal with the
 document.write?

 On Oct 27, 7:13 pm, Thomas Broyer t.bro...@gmail.com wrote:



  On 27 oct, 23:44, Raziel raziel...@gmail.com wrote:

   IFrameTemplate.js, the javascript template containing the logic to
  bootstrapthe GWT application, writes ascripttag calling the
  onInjectionDonefunction at the end of the execution of the selection
  script.

   Given thatscripttags always block evaluation of the page until the
  scriptis fetched and evaluated, and that document.write will add the
  scriptright there at the state the document is at the moment of the
   call, I don't understand whyonInjectionDoneis not called directly
   instead.

   My specific problem is that I'm loading my GWT application through an
   XMLHttpRequest, and at the moment thescriptis executed the document
   is already loaded, thus calling document.write wipes out everything.
   I'm planning to modify such logic, and probably callonInjectionDone
   directly. But this code is there for a reason and I'd like to know why
   before I make any change.

  AFAICT, that's to be sure it is called after injected scripts (when
  you use a script/ in your gwt.xml) have been injected (and been
  downloaded):http://code.google.com/p/google-web-toolkit/source/browse/releases/1...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Running multiple instances of the same GWT Application in the same document

2009-10-29 Thread Raziel

Hi, I have a legacy application and thus I'm migrating to GWT by
reimplementing parts of it at a time. However, one of this parts may
appear in a document more than once, displaying different information.

Aside from ensuring that if I generate IDs for a widget these must be
namespaced according to the application's instance that created it (in
case I retrieve them by ID somewhere), are there any other precautions
that I should take to avoid collisions between application instances?
For example, since the GWT application is put inside an iframe whose
id is the name of the application's module, shouldn't it be necessary
to generate the iframes with different ids? Otherwise we'll end up
with elements (the iframes) with the same ID.

Are there any other considerations?

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: why onInjectionDone has to be called from a separate script in the selection script?

2009-10-28 Thread Raziel

Oh that makes now a lot of sense. I completely missed that part (even
though it's a few lines above what I was looking at).

I guess I'll have to change that code in the linker as well to not use
document.write but some other way to control the execution of injected
scripts.

Has anybody had this issue (loading the host page and thus the GWT
app) in an XMLHttpRequest, and found a nicer solution to deal with the
document.write?

On Oct 27, 7:13 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 27 oct, 23:44, Raziel raziel...@gmail.com wrote:





  IFrameTemplate.js, the javascript template containing the logic to
  bootstrap the GWT application, writes a script tag calling the
 onInjectionDonefunction at the end of the execution of the selection
  script.

  Given that script tags always block evaluation of the page until the
  script is fetched and evaluated, and that document.write will add the
  script right there at the state the document is at the moment of the
  call, I don't understand whyonInjectionDoneis not called directly
  instead.

  My specific problem is that I'm loading my GWT application through an
  XMLHttpRequest, and at the moment the script is executed the document
  is already loaded, thus calling document.write wipes out everything.
  I'm planning to modify such logic, and probably callonInjectionDone
  directly. But this code is there for a reason and I'd like to know why
  before I make any change.

 AFAICT, that's to be sure it is called after injected scripts (when
 you use a script/ in your gwt.xml) have been injected (and been
 downloaded):http://code.google.com/p/google-web-toolkit/source/browse/releases/1http://code.google.com/p/google-web-toolkit/source/browse/trunk/dev/c...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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 feasible is to have multiple GWT Applications under the same Eclipse Project?

2009-10-28 Thread Raziel

Is there any disadvantage with having multiple GWT Applications under
the same Eclipse project? They would be properly defined in their own
modules, and code reuse achieved through module inheritance. The only
issue I see is that it might be confusing for people to assume some
class is available in one application just because it's available in
Eclipse's classpath, but compilation fails since it's not in the
GWTCompiler's classpath.

Are there any other complications with this approach?

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



why onInjectionDone has to be called from a separate script in the selection script?

2009-10-27 Thread Raziel

IFrameTemplate.js, the javascript template containing the logic to
bootstrap the GWT application, writes a script tag calling the
onInjectionDone function at the end of the execution of the selection
script.

Given that script tags always block evaluation of the page until the
script is fetched and evaluated, and that document.write will add the
script right there at the state the document is at the moment of the
call, I don't understand why onInjectionDone is not called directly
instead.

My specific problem is that I'm loading my GWT application through an
XMLHttpRequest, and at the moment the script is executed the document
is already loaded, thus calling document.write wipes out everything.
I'm planning to modify such logic, and probably call onInjectionDone
directly. But this code is there for a reason and I'd like to know why
before I make any change.

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: How a GWT module can be loaded dynamically?

2009-09-24 Thread Raziel

I have a similar problem. I need to be able to load my entry point
class without using a script tag.

The .nocache.js script depend on being loaded through the tag since it
uses the src attribute to find the location of the other .js files.

I thought doing something like what you did here (creating a new
script tag and adding it directly to the DOM) would be enough.
However, the document.write either doesn;t work, or the logic to place
a marker tag and get a sibling script to obtain the src doesn't always
get the right tag (it gets other tags that I'm including in my page).

So basically I'd like to know the same thing: how can I load
the .nocache.js script without using a hardcoded script tag.

On Sep 23, 10:51 am, bgoetzmann bertrand.goetzm...@gmail.com wrote:
 Thank you Thomas,

 I searched on the GWT source code, and learnt several things on
 linkers. For the moment, what can interest me is how I could modify
 the ...Main.nocache.js file. I thought find a template...
 Any idea about this?

 - Bertrand.

 On 19 sep, 00:53, Thomas Broyer t.bro...@gmail.com wrote:



  On 17 sep, 18:32, bgoetzmann bertrand.goetzm...@gmail.com wrote:

   Hello,

   I'm developing a GWT 1.6 application with SmartGWT; the application
   works well! The web page's body I use has of course the code bellow to
   load the application:

   script language=javascript src=/...Main.nocache.js/script

   I search a way to dynamically load the application but without
   success; for example, on a link with code like this, in order to add a
   script tag to the page's document:

   a href=javascript:f()test/a

   Having f defined like this:
   function f() {
               var script = document.createElement('script');
               script.setAttribute('type', 'text/javascript');
               script.setAttribute('src', '/...Main.nocache.js');
               document.getElementsByTagName('body')[0].appendChild
   (script);

   }

   But it soesn't work;the behavior is even strange because the entire
   page content is replaced by the tag html containg a sery of script
   tags.

  That's because the selection scripts (nocache.js) use document.write()

   How can I achieve a dynamic load?

  You'd have to write your own selection script. Search the group
  archives and look at Linkers.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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
-~--~~~~--~~--~--~---



new Compiler documentation

2009-04-10 Thread Raziel

Is there a page that explains the options in the new
com.google.gwt.dev.Compiler?

It would be nice if the Upgrade page (http://code.google.com/
webtoolkit/doc/1.6/ReleaseNotes_1_6.html#Upgrading) contained info on
how to go from the GWTCompiler  to the new Compiler; just like it does
for Hosted Mode.

Moreover. if there was a page explaining the command line options then
people would be able to figure out by themselves.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: compiler error in GWT 1.6 RC2

2009-04-10 Thread Raziel

Not exactly that one, but I'm in a similar position. My error looks
like

#
# An unexpected error has been detected by Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x08093e4b,
pid=2268, tid=6000
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (10.0-b23 mixed mode
windows-amd64)
# Problematic frame:
# V  [jvm.dll+0x93e4b]
#
# An error report file with more information is saved as:
# E:\appianrepository\enzo-appsix\gwt\exportconsole\hs_err_pid2268.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

The project compiles fine through Hosted Mode, but I get this error
when I try to compile through my updated compilation scripts.


On Apr 2, 2:47 pm, L Frohman lfroh...@gmail.com wrote:
 I am trying ot convert my GWT 1.5 project to 1.6. It ran OK in hosted mode
 in 1.6, but when I try to compile, I get the error below, in
 com.google.gwt.dev.Compiler.
 Has anybody seen this before?

 ---

      [java] Compiling module com.parvia.builder.Builder
      [java]    [ERROR] Unexpected internal compiler error
      [java] java.lang.StackOverflowError
      [java]     at java.lang.Exception.init(Exception.java:77)
      [java]     at
 java.lang.reflect.InvocationTargetException.init(InvocationTargetExceptio 
 n.java:54)
      [java]     at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown
 Source)
      [java]     at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
 l.java:25)
      [java]     at java.lang.reflect.Method.invoke(Method.java:597)
      [java]     at
 java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
      [java]     at
 java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
      [java]     at
 java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392 )
      [java]     at
 java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
      [java]     at
 java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
      [java]     at
 java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
      [java]     at
 java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392 )
      [java]     at
 java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
      [java]     at
 java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
      [java]     at
 java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
      [java]     at
 java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392 )
      [java]     at
 java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
      [java]     at
 java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
      [java]     at
 java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
      [java]     at
 java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392 )
      [java]     at
 java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
      [java]     at
 java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
      [java]     at
 java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
      [java]     at
 java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392 )
      [java]     at
 java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
      [java]     at
 java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
      [java]     at java.util.ArrayList.writeObject(ArrayList.java:570)
      [java]     at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown
 Source)
      [java]     at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
 l.java:25)
      [java]     at java.lang.reflect.Method.invoke(Method.java:597)
      [java]     at
 java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
      [java]     at
 java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
      [java]     at
 java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392 )
      [java]     at
 java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
      [java]     at
 java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
      [java]     at
 java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
      [java]     at
 java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392 )
      [java]     at
 java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
      [java]     at
 java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
      [java]     at java.util.ArrayList.writeObject(ArrayList.java:570)
      [java]     at 

GWT bootstrap model

2008-12-11 Thread Raziel

Using GWT 1.5.3:

According to the documentation, In the GWT 1.4 bootstrap model, GWT
expects to find all its files in the same path as the
module.nocache.js file.. Thus, having the host HTML file at
http://host.domain.tld/myApp/index.html, and the module.nocache.js
and other files generated by the GWT compiler in other location.

It all works fine for me when I use the script tag. However, in my
application I mostly use a JS function to load scripts dynamically.
This function uses XmlHttpRequest to grab the script content, and then
performs an eval on it. In this case it loads the module.nocache.js
successfully, BUT the script then tries to look for the other
resources under the location/URL that loaded the host page -which in
simple cases could be the location of the host page, but others (for
example when the host page is included in other page, or it's
retrieved through an struts action) could be something completely
different, for which there's not even a physical location.

In some other scenarios, when the host page is part of a deeper
nesting of imported pages, the module.nocache.js is imported
properly but fails when executed, claiming that
com_sample_MyGWTApplication is undefined when executing the following
line: com_sample_MyGWTApplication.onInjectionDone
('com.sample.MyGWTApplication')

I know that it might be my fault, and might be pushing the technology
beyond it's confort zone. However one of the things that appealed to
me to finally use it was the fact that didn;t claim to marry
entirely to it. The problem is that I don;t know what kind of contract
I'm breaking with GWT. The documentations says simply include the JS
file and done, magic! I know nothing is magic, but is there a clearer
document that establishes the contract to properly use GWT? Has
somebody any idea of what could be happening in my case?

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