RequestFactoryEditorDriver Can P be a list of proxy ?

2014-02-14 Thread pierre laurent
Hi There,

Interface RequestFactoryEditorDriverP,E extends 
Editorhttp://www.gwtproject.org/javadoc/latest/com/google/gwt/editor/client/Editor.html
? super P
 Type Parameters:P - the type of Proxy being editedE - the type of Editorthat 
will edit the 
Record


Can P be a list of proxy ?

I do have a list of proxy ( see below ) i want to fill within a datagrid, 
if not possible, is there any workaround ?

  interface HistoFichesDriver extends
 RequestFactoryEditorDriverListHistoFichesProxy, HistofichesEditor {
}


Regards,

Pierre

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: RequestFactoryEditorDriver Can P be a list of proxy ?

2014-02-14 Thread almagnit
For editing nested collections use ListEditor

http://docs.sencha.com/gxt-guides/3/data/editors/Editors.html


2014-02-14 12:13 GMT+04:00 pierre laurent aurelie.virg...@gmail.com:

 Hi There,

 Interface RequestFactoryEditorDriverP,E extends 
 Editorhttp://www.gwtproject.org/javadoc/latest/com/google/gwt/editor/client/Editor.html
 ? super P
  Type Parameters:P - the type of Proxy being editedE - the type of Editorthat 
 will edit the
 Record


 Can P be a list of proxy ?

 I do have a list of proxy ( see below ) i want to fill within a datagrid,
 if not possible, is there any workaround ?

   interface HistoFichesDriver extends
  RequestFactoryEditorDriverListHistoFichesProxy, HistofichesEditor {
 }


 Regards,

 Pierre

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-web-toolkit+unsubscr...@googlegroups.com.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-web-toolkit.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


setWidgetSize on DockLayoutPanel does not effectively seem to update anything

2014-02-14 Thread Thomas Rodenhausen
I use a DockLayoutPanel using UIBinder like this:

 g:DockLayoutPanel unit='PX' ui:field='dockLayoutPanel'
 g:north size='200'
g:HTMLPanel ui:field=northPanel.../g:HTMLPanel
 /g:north
 g:center
  g:ScrollPanel ui:field=centerPanel
  ...
   /g:ScrollPanel
/g:center
g:south size='0'
 g:HTMLPanel/g:HTMLPanel
/g:south
/g:DockLayoutPanel

At some point I want to set the size of the north widget to 100px only.
I tried dockLayoutPanel.setWidgetSize(northPanel, 100), but it does not 
work: 
- When I debug everything looks ok, the doLayout() of DockLayoutPanel seems 
to be processed correctly, looking at the top and bottom values that are 
set on the layers of the northPanel and centerPanel. 
- However, in the browser, it ends up staying the same when I look at the 
produced HTML + CSS. 
- I tried to manually call animate() and forceLayout() without a difference.

Any ideas why that could be?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: CellTable:: Deselecting an already selected row

2014-02-14 Thread Alicia Jones
Jon, please clarify...
1. Where selectionModel_ declared and instantiated?
2. Do you have a constructor?  In the code-as-is this private method is 
never called.

Thanks!
Alicia

On Friday, September 6, 2013 8:18:12 AM UTC-5, Jon T wrote:

 public class MyDataGridT extends DataGridT {
  private SetT priorSelectionSet_; 
  

  /**
   * Allows User To Deselect A DataGrid Row By Clicking A Second Time On 
 The Prior Selection
   */
  private void addDeselectMechanism(){
/*
  NOTES:   
  1. ClickHandler() fires every time the grid is clicked.  
 2. selectionModel SelectionChangeHandler() does NOT fire when clicking
a row that is already selected.
 3. Generally, ClickHandler() fires and then SelectionChangeHandler() 
 fires,
but testing showed some exceptions to this order and duplicate 
 firings.
 4. The Current SelectedSet is Updated AFTER the ClickHandler() fires, 
 so natural
ClickHandler() timing does not permit current SelectedSet 
 inspections.  
 5. In this case, the scheduleDeferred() code will ALWAYS fires when a 
 grid is clicked,
it will fire at a PREDICTABLE time, and AFTER the current 
 SelectedSet has been updated.
   */  
   super.addHandler(new ClickHandler(){
  @Override
  public void onClick(ClickEvent event) {
   Scheduler.get().scheduleDeferred(new ScheduledCommand() {
@Override
public void execute() {
 SetT currentSelectedSet = selectionModel_.getSelectedSet();
 if( (currentSelectedSet.size() == 1) 
  (priorSelectionSet_ != null) ){
  if( (currentSelectedSet.size() == priorSelectionSet_.size()) 
 
 (currentSelectedSet.containsAll( priorSelectionSet_ ) ) 
 ){ 
   selectionModel_.clear();
  }
   }
priorSelectionSet_ = new HashSetT();
priorSelectionSet_.addAll( selectionModel_.getSelectedSet() 
 );
}
   });  
   
  }
  }, ClickEvent.getType());
  }
  .
 }
  


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: RequestFactoryEditorDriver Can P be a list of proxy ?

2014-02-14 Thread Thomas Broyer
You don't need the editor framework to feed a DataGrid.

For other use-cases, workarounds include using an EditorDriver per value in 
the list, or having the list as a property in a wrapper object.

On Friday, February 14, 2014 9:13:13 AM UTC+1, pierre laurent wrote:

 Hi There,

 Interface RequestFactoryEditorDriverP,E extends 
 Editorhttp://www.gwtproject.org/javadoc/latest/com/google/gwt/editor/client/Editor.html
 ? super P
  Type Parameters:P - the type of Proxy being editedE - the type of Editorthat 
 will edit the 
 Record


 Can P be a list of proxy ?

 I do have a list of proxy ( see below ) i want to fill within a datagrid, 
 if not possible, is there any workaround ?

   interface HistoFichesDriver extends
  RequestFactoryEditorDriverListHistoFichesProxy, HistofichesEditor {
 }


 Regards,

 Pierre


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Compile Error after switching to 2.6 in first compile run

2014-02-14 Thread Jan Thewes
Well, the order has to do something with the failing compile. But this is 
new with GWT 2.6. Before our compilation always worked. And we don't have 
changed our code since the change to 2.6. 
Still need ideas what this can be. In my opinion this is a GWT internal bug.

Am Dienstag, 11. Februar 2014 18:20:38 UTC+1 schrieb BGL:

 I would say that the order of compilation is not the one you expect. The 
 error
 Line 23: No source code is available for type 
 de.gad.gfw.web.navigator.menu.model.MenuElement; did you forget to inherit 
 a required module?
   Errors in 
 'file:/Users/xgadjth/sandboxes/b21_gwt-03.03.00/render/source/de/gad/gfw/web/gui/render/dialog/print/PrintMenu.java'
  Line 8: The hierarchy of the type PrintMenu is inconsistent

 says that you do not have the class file in your compilation classpath. 
 Then, for any reason, the jar or the class file (with its source) is found 
 in the classpath and the compilation is working.Difficult to say without 
 the build process.
 Compare the order when you compile module per module and full automated. 
 There must be a difference. Or do you deploy resources when you compile 
 one by one ? This would publish some jar somewhere that are theun used by 
 the first project...





 2014-02-11 17:09 GMT+01:00 Jan Thewes jant...@gmail.com javascript::

 Ok any further information.
 We're trying to compile 5 modules at a time. That fails
 When compiling all the 5 modules alone. It works!
 We also have a merge-module. These combines 4 of our 5 modules. This 
 merge module compiles without any error, too!
 So this is a real strange behavior...

 Am Dienstag, 11. Februar 2014 09:25:05 UTC+1 schrieb Jan Thewes:

 Hey guys,

 we have a very strange problem here.
 We've a real large application written in GWT using GXT.
 We wanted to switch to 2.6 because we need IE10 support.
 For that reason we patched the GXT 2.3.1 source so that it works with 
 GWT 2.6.

 We now have the problem that the first compile fails. After the compile 
 failed I start the compile again and it ends successful.
 I don't really know what the problem is. I added the compile log.
 There you can see that the compile fails with an error related 
 to AutoHidePreventMenu (line 966)
 I added a detail log where you can see the error in more detail 
 (compiled with output Debug).


 Any help is appreciated.

 If I can provide any further information feel free to ask!

 Cheers,
 Jan

  -- 
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to google-web-toolkit+unsubscr...@googlegroups.com javascript:.
 To post to this group, send email to 
 google-we...@googlegroups.comjavascript:
 .
 Visit this group at http://groups.google.com/group/google-web-toolkit.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


FlexTable RowSpan Issue

2014-02-14 Thread Davide Micheletti
Hi all, i've found an issue when using RowSpan with FlexTable.
When you try to insert a text, with RowSpan, in a column the other columns
at right shift by one.

Here an Example:

''|''|''|''|
''|''|''|''|
''|
FIRST TEXT
 
|''|''|
''|

|''|''|
''|''|''|''|
''|''|''|''|
''|''|''|''|
''|''|''|''|
'


Now, I want to insert the text SECOND TEXT with a RowSpan in the column 0

''|''|''|''|'|
''|''|''|''|'|
''|''|
  FIRST TEXT
 |''|''|
  SECOND TEXT
|''|

|''|'|
''|''|''|''|'|
''|''|''|''|'|
''|''|''|''|'|
''|''|''|''|'|

Now the answer is: why this happens?
NOTICE the new empty column at the right

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to 

Excluding permutation compilation combinations?

2014-02-14 Thread Ed
How can I exclude certain permutation compilation combinations?
Example: I have the following combination showing in my soyc report that I 
like to exclude:
'ipad' , 'user.agent' : 'ie9'

Note: I know how to hard code the required compiler permutations output 
(include action), that I use during development, but for production I like 
to config it the other way around: exclude some combinations.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


gwt 2.6 symlinks with jetty

2014-02-14 Thread Антон Печенко
Hi, all!

With last update to gwt 2.6 I have headache tring to get jetty serve my 
symlinked .html files. Now all of my projects had stopped to work. In 2.5 
and earlier I edited included jetty config in gwt-dev.jar to 
set org.mortbay.util.FileResource.checkAliases=false. Now it seems not 
possible. So help me force jetty to see symlinks. Maybe it is possible to 
pass some parameters to jetty somehow to do that.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Using SuperDevMode with code splitting

2014-02-14 Thread Luis Fernando Planella Gonzalez
Hi.
I'm recently attempting to use SuperDevMode, but our project is quite 
large, and the generated compiled .js has ~12MB.
Chrome struggles (and hangs) when attempting to download source maps, 
making the whole debugging unpractical.
Without SuperDevMode, we use code splitting, and the fragments are much 
more manageable.
But SuperDevMode always compiles the application to a single .js file.
Is it possible to use code splitting with SuperDevMode?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Compile Error after switching to 2.6 in first compile run

2014-02-14 Thread Boris Lenzinger
There is this error in your stack :
   [ERROR] Errors in
'file:/Users/xgadjth/sandboxes/b21_gwt-03.03.00/render/source/de/gad/gfw/web/gui/render/toolbar/ToolBar.java'
  [ERROR] Line 116: The method addStyleName(String) is undefined for
the type AutoHidePreventMenu
  [ERROR] Line 123: The method hide() is undefined for the type
AutoHidePreventMenu
  [ERROR] Line 134: Type mismatch: cannot convert from
AutoHidePreventMenu to Menu

Could you tell usthe hierarchy of the ToolBar class ?

The same for those classes :

   [ERROR] Errors in
'file:/Users/xgadjth/sandboxes/b21_gwt-03.03.00/uigxt/source/de/gad/gfw/web/gui/uigxt/widget/valuta/ValutaDateField.java'
   [ERROR] Errors in
'file:/Users/xgadjth/sandboxes/b21_gwt-03.03.00/webUI/source/de/gad/gfw/web/gui/webui/gxt/widget/wrapper/misc/WMenu.java'

I see in your packages name that you have gxt. Is there any chance that the
version of GXT you are using at compile time is not the same that you are
using in your IDE ? My assumption is that you could use in your IDE a
version of GXT that has an API that is consistent with your code but at
compile time, you are using another (probably older) version of GXT.




2014-02-14 12:33 GMT+01:00 Jan Thewes janthe...@gmail.com:

 Well, the order has to do something with the failing compile. But this is
 new with GWT 2.6. Before our compilation always worked. And we don't have
 changed our code since the change to 2.6.
 Still need ideas what this can be. In my opinion this is a GWT internal
 bug.

 Am Dienstag, 11. Februar 2014 18:20:38 UTC+1 schrieb BGL:

 I would say that the order of compilation is not the one you expect. The
 error
 Line 23: No source code is available for type
 de.gad.gfw.web.navigator.menu.model.MenuElement; did you forget to
 inherit a required module?
   Errors in 'file:/Users/xgadjth/sandboxes/b21_gwt-03.03.00/
 render/source/de/gad/gfw/web/gui/render/dialog/print/PrintMenu.java'
  Line 8: The hierarchy of the type PrintMenu is inconsistent

 says that you do not have the class file in your compilation classpath.
 Then, for any reason, the jar or the class file (with its source) is found
 in the classpath and the compilation is working.Difficult to say without
 the build process.
 Compare the order when you compile module per module and full automated.
 There must be a difference. Or do you deploy resources when you compile
 one by one ? This would publish some jar somewhere that are theun used by
 the first project...





 2014-02-11 17:09 GMT+01:00 Jan Thewes jant...@gmail.com:

 Ok any further information.
 We're trying to compile 5 modules at a time. That fails
 When compiling all the 5 modules alone. It works!
 We also have a merge-module. These combines 4 of our 5 modules. This
 merge module compiles without any error, too!
 So this is a real strange behavior...

 Am Dienstag, 11. Februar 2014 09:25:05 UTC+1 schrieb Jan Thewes:

 Hey guys,

 we have a very strange problem here.
 We've a real large application written in GWT using GXT.
 We wanted to switch to 2.6 because we need IE10 support.
 For that reason we patched the GXT 2.3.1 source so that it works with
 GWT 2.6.

 We now have the problem that the first compile fails. After the compile
 failed I start the compile again and it ends successful.
 I don't really know what the problem is. I added the compile log.
 There you can see that the compile fails with an error related
 to AutoHidePreventMenu (line 966)
 I added a detail log where you can see the error in more detail
 (compiled with output Debug).


 Any help is appreciated.

 If I can provide any further information feel free to ask!

 Cheers,
 Jan

  --
 You received this message because you are subscribed to the Google
 Groups Google Web Toolkit group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to google-web-toolkit+unsubscr...@googlegroups.com.
 To post to this group, send email to google-we...@googlegroups.com.

 Visit this group at http://groups.google.com/group/google-web-toolkit.
 For more options, visit https://groups.google.com/groups/opt_out.


  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-web-toolkit+unsubscr...@googlegroups.com.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-web-toolkit.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit 

Re: native Drag n Drop support

2014-02-14 Thread Rogelio Flores
On my GWT.create conference 
presentationhttp://www.slideshare.net/RogelioFlores2/tabular-data-with-gwt, 
I showed dnd working between two DataGrids. It supports multi-selection and 
it uses the basic native dnd events that come with GWT mentioned by Thomas. 
I've never done the same with trees, but I would think it would be very 
similar to what I showed on slide #22, which includes a link to a source 
code snippet showing the meaninful parts.


On Thursday, February 13, 2014 4:31:07 AM UTC-5, Thomas Broyer wrote:

 GWT supports the native drag and drop events in browsers where they are 
 supportedhttp://www.gwtproject.org/javadoc/latest/com/google/gwt/event/dom/client/DragDropEventBase.html#isSupported().
  
 This is rather low-level though.
 I think there are things in GwtQuery that enhance some GWT widgets with 
 drag-and-drop, if you need something higher-level. I don't use GwtQuery 
 though, so I might be wrong.

 To answer you second question, gwt-dnd is not a wrapper, it's pure GWT; 
 implementing (AFAIK) drag and drop using mousedown/mousemove/mouseup events.

 On Thursday, February 13, 2014 9:42:05 AM UTC+1, Malik Farhan wrote:

 Is there native Drag n Drop support in GWT because I couldn't find any in 
 showcase.
 If not then is there any Drag n drop support (drang n drop with 
 multi-select between 2 trees) which is written by extending pure GWT.
 I found gwt-dnd but i dont know if its a jS wrapper or a pure GWT 
 extension.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Using SuperDevMode with code splitting

2014-02-14 Thread Luis Fernando Planella Gonzalez
Well, after patching CompilerOptionsImpl in gwt-codeserver.jar to return 
true in isRunAsyncEnabled(), the code server started splitting the code, 
but source maps were only generated for the initial fragment.
I don't know the internals, but shouldn't be terribly hard to have the 
source maps for each split point, right? Or isn't it at all supported by 
the compiler?
Compiling using -saveSource -saveSourceOutput dir together with 
set-property name=compiler.useSourceMaps value=true / and 
set-configuration-property name=includeSourceMapUrl value=true / 
correctly saves all sources in the output dir and sets the source map 
comments on each script...
Also, the CompilerOptionsImpl has this:
  @Override
  public boolean shouldSaveSource() {
return false; // handling this a different way
  }

This different way is explicitly not handling the runAsync case.
Is there a strong reason for this?
Thanks in advance.

Em sexta-feira, 14 de fevereiro de 2014 15h55min02s UTC-2, Luis Fernando 
Planella Gonzalez escreveu:

 Hi.
 I'm recently attempting to use SuperDevMode, but our project is quite 
 large, and the generated compiled .js has ~12MB.
 Chrome struggles (and hangs) when attempting to download source maps, 
 making the whole debugging unpractical.
 Without SuperDevMode, we use code splitting, and the fragments are much 
 more manageable.
 But SuperDevMode always compiles the application to a single .js file.
 Is it possible to use code splitting with SuperDevMode?


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: RequestFactoryEditorDriver Can P be a list of proxy ?

2014-02-14 Thread Rogelio Flores
On the other hand, if you are editing a list of proxies and using a 
DataGrid, you want to take a look at
HasDataEditor, which allows you to edit a list of proxies by doing simply 
this:

HasDataEditorProxy myListEditor = HasDataEditor.of(myDataGrid)


On Friday, February 14, 2014 6:07:46 AM UTC-5, Thomas Broyer wrote:

 You don't need the editor framework to feed a DataGrid.

 For other use-cases, workarounds include using an EditorDriver per value 
 in the list, or having the list as a property in a wrapper object.

 On Friday, February 14, 2014 9:13:13 AM UTC+1, pierre laurent wrote:

 Hi There,

 Interface RequestFactoryEditorDriverP,E extends 
 Editorhttp://www.gwtproject.org/javadoc/latest/com/google/gwt/editor/client/Editor.html
 ? super P
  Type Parameters:P - the type of Proxy being editedE - the type of 
 Editorthat will edit the 
 Record


 Can P be a list of proxy ?

 I do have a list of proxy ( see below ) i want to fill within a datagrid, 
 if not possible, is there any workaround ?

   interface HistoFichesDriver extends
  RequestFactoryEditorDriverListHistoFichesProxy, HistofichesEditor {
 }


 Regards,

 Pierre



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Chrome apps and GWT

2014-02-14 Thread alucard
This worked for me:

You have to add a new linker extended from DirectInstallLinker.

public class CspLinker extends DirectInstallLinker {

@Override
protected String getJsInstallLocation(LinkerContext context) {
return path/to/modified/script/installLocationMainWindow.js;
}
}


then you need to modify the installLocationMainWindow.js script (the 
setupInstallLocation function) like so:

function setupInstallLocation() {
if (init) {
return;
}
//  var script = window.document.createElement('script');
//  script.language='javascript';
//  script.text = var $wnd = window;;
//  window.document.body.appendChild(script);
window.$wnd = window;
init = true;
}


finally add this to your .gwt.xml file:

define-linker name=cspLinker class=
com.foo.bar.chrome.linker.CspLinker /
add-linker name=cspLinker /




On Monday, February 10, 2014 9:52:12 AM UTC+1, Andrew Mackenzie wrote:

 You might need to try a different GWT linker that supports cross-site 
 requests. I'll look to see which one I used tonight.
 On Feb 10, 2014 8:52 AM, alucard slice.of...@gmail.com javascript: 
 wrote:

 I am not sure I understood well but it seems that you loaded the GWT app 
 in a webview or something similar. That is not what I meant. I'd like to be 
 able to invoke the chrome.* apis from my GWT app (after I wrap them). I 
 tried this by modifying the Browser sample 
 apphttps://github.com/GoogleChrome/chrome-app-samples/tree/master/browser. 
 I modified the browser.html file to load the GWT app. The GWT app is 
 trivial, just an entry point with a simple JSNI method that logs a simple 
 message via console.log (this part shouldn't break CSP). I tried with and 
 without the DirectInstallLinker, the result is a bit better with the 
 linker (it reports fewer errors in the app console) but it does not work 
 either way.
 I didn't get the part about the loaders.
 Thanks for your help.

 On Sunday, February 9, 2014 3:18:42 PM UTC+1, Andrew Mackenzie wrote:

 I've developed a Chrome extension using mainly GWT, but it's mostly 
 loaded by the extension remotely (loading JS handcrafted). It's mainly a 
 build/packaging problem. GWT will build the JS for you and the loaders 
 then you have to include into your extension file hierarchy in your build, 
 and load as you desire.

  -- 
 You received this message because you are subscribed to a topic in the 
 Google Groups Google Web Toolkit group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/google-web-toolkit/Y1pPOVZmeoU/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to 
 google-web-toolkit+unsubscr...@googlegroups.com javascript:.
 To post to this group, send email to 
 google-we...@googlegroups.comjavascript:
 .
 Visit this group at http://groups.google.com/group/google-web-toolkit.
 For more options, visit https://groups.google.com/groups/opt_out.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Form factor support using GIN

2014-02-14 Thread Nava
Hi,

I have followed your approach but I have got error that MyGinjector should 
be annotated with GinModule. In your example you have not annotated 
MyGinjector.
Can you please help providing sample code fragment which works. I am 
developing an web application for Desktop, Tablet, Mobile platforms, I am 
kind of stuck.

Kind regards
Nava

On Monday, 7 January 2013 05:15:43 UTC, Alexandre Senecal wrote:

 Thank you for this example, it was quite helpful! 
 One small correction, the form factor specific Ginjectors should extend 
 the MyGinjector interface as follows:


 

 @GinModules(SharedGinModule.class, DesktopGinModule.class)
 interface DesktopGinjector extends *MyGinjector *{
// nothing special here; it's only used for the @GinModules annotation
 }
 @GinModules(SharedGinModule.class, TabletGinModule.class)
 interface TabletGinjector extends *MyGinjector *{ }
 @GinModules(SharedGinModule.class, PhoneGinModule.class)
 interface PhoneGinjector extends *MyGinjector *{ }



 On Sunday, 6 November 2011 09:58:07 UTC-5, Thomas Broyer wrote:

 Deferred binding only occurs when you use GWT.create(). If you new 
 ViewFactory(), there's no reason you'll be given a TableViewFactory. GWT 
 doesn't change Java's semantics.

 What you have to do is to use a distinct Ginjector depending on the form 
 factor, and you can re-use the same GinModule(s) for all the shared binding 
 configurations, and add a specific GinModule per form factor. 
 Unfortunately, you cannot use both a generate-with (GIN's Ginjector) and 
 replace-with (chose the right Ginjector depending on form factor), so 
 you'll have to use a replace-with rule on a provider class for you 
 Ginjector:

 interface MyGinjector extends Ginjector {
// all your accessors
 }
 @GinModules(SharedGinModule.class, DesktopGinModule.class)
 interface DesktopGinjector extends Ginjector {
// nothing special here; it's only used for the @GinModules annotation
 }
 @GinModules(SharedGinModule.class, TabletGinModule.class)
 interface TabletGinjector extends Ginjector { }
 @GinModules(SharedGinModule.class, PhoneGinModule.class)
 interface PhoneGinjector extends Ginjector { }

 interface GinjectorProvider {
MyGinjector get();
 }
 class DesktopGinjectorProvider implements GinjectorProvider {
public MyGinjector get() { return GWT.create(DesktopGinjector.class); }
 }
 class TabletGinjectorProvider implements GinjectorProvider {
public MyGinjector get() { return GWT.create(TabletGinjector.class); }
 }
 class PhoneGinjectorProvider implements GinjectorProvider {
public MyGinjector get() { return GWT.create(PhoneGinjector.class); }
 }

 replace-with class=...DesktopGinjectorProvider
when-type-is class=...GinjectorProvider /
when-property-is name=formfactor value=desktop /
 /replace-with



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Form factor support using GIN

2014-02-14 Thread Jens
Do your Desktop/Tablet/MobileGinjectors extend from MyGinjector?

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Help] GWT + GAE + Android - Where to start?

2014-02-14 Thread Bruno Brito
Andrew Mackenzie,

This is what I've acomplished so far:

- Created my entity class with JDO annotations.
- Created Endpoint class using GPE.
- Created Client Endpoint Libraries using GPE.
- Deployed to App Engine.
- Created an Android App, imported the necessary client libraries and I was 
able to do basic CRUD operations on my datastore.

GREAT!

Now comes the GWT part. Here's what I've done.
First, I used my backend project with the APIs, created a simple HTML file 
and used Google Cloud Endpoint support to Javascript to create and use some 
CRUD operations. Succeed.

My next step was to copy my endpoint classes and libraries to my GWT 
project and depploy it to my App Engine account.
I tested my Android App and had success with my crud operations.

But now comes the problem. I don't have access to my HTML file to make the 
CRUD. I had to insert the Javascript code directly to my Java code of GWT. 
And no matter what I tried, I simply didn't succeed.
Is there an easier way to do this? Because Google Cloud Endpoints supports 
Javascript client. I know GWT is basically JS, however, it doesn't sound 
that trivial to me.

Do you have any sample or tips?

Once again, thank you very much.

Em terça-feira, 11 de fevereiro de 2014 17h47min19s UTC-2, Andrew Mackenzie 
escreveu:

 No worries. I mean one server wepapp (GAE plus GWT) that exposes an API to 
 your Android app. You might want to chose JSON for API format and use gson 
 library in GAE and Android projects.

 The Google Cloud Platform Mobile Backends Starter Project might be a good 
 learning ground as it generates GAE and Android projects for you.

 See my post at

 http://devcon5.blogspot.com.es/2013/12/google-cloud-platform-mobile-backends.html

 If you structure by our code just right, you can have one Pure Java SHARED 
 project (eclipse, would be a module in IntelliJ or maven) that is used by 
 main Android app project and by GAE/GWT webapp project.but maybe not 
 worthy your effort. It can have common model objectsbut you might want 
 to JDO annotate on GAE and not on Android - that will break Android 
 compile :-(

 If you dont use Endpoints or some other library to help you create  REST 
 API then in your GAE project you will have to implement API using servlets 
 mapped to paths (in web.XML) that your Android client uses. 



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Trying to export non-static methods to javascript via JSNI

2014-02-14 Thread rjcarr
The subject sums it up pretty well, so let's get right to code:

public class Main implements EntryPoint {
 public void onModuleLoad() {
   export();
 }

 public void log(String msg) {
  ...
 }
 
 public static native void export() /*-{
   $wnd.log = $entry(th...@package.main::log(Ljava/lang/String));

 }-*/;

This doesn't work for me and I get giant stack traces in my javascript 
logs.  I got this idea from the JSNI docs so not sure where I'm going 
wrong.  However, if I change things to this:

public class Main implements EntryPoint {
 public void onModuleLoad() {
   export();
 }

 public static void log(String msg) {
  ...
 }
 
 public static native void export() /*-{
   $wnd.log = $entry(@package.Main::log(Ljava/lang/String));

 }-*/;

Then it works fine.  What am I doing wrong?  Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Trying to export non-static methods to javascript via JSNI

2014-02-14 Thread rjcarr
I should point out the differences.  In the first non-working example I use 
'this' in my export.  In the second example I remove the 'this' and declare 
my log() method as static.

Also, I there's a typo and my string type signatures, they should be 
followed by a semi-colon, so Ljava/lang/String;

On Friday, February 14, 2014 10:51:13 PM UTC-8, rjcarr wrote:

 The subject sums it up pretty well, so let's get right to code:

 public class Main implements EntryPoint {
  public void onModuleLoad() {
export();
  }

  public void log(String msg) {
   ...
  }
  
  public static native void export() /*-{
$wnd.log = $entry(th...@package.main::log(Ljava/lang/String));

  }-*/;

 This doesn't work for me and I get giant stack traces in my javascript 
 logs.  I got this idea from the JSNI docs so not sure where I'm going 
 wrong.  However, if I change things to this:

 public class Main implements EntryPoint {
  public void onModuleLoad() {
export();
  }

  public static void log(String msg) {
   ...
  }
  
  public static native void export() /*-{
$wnd.log = $entry(@package.Main::log(Ljava/lang/String));

  }-*/;

 Then it works fine.  What am I doing wrong?  Thanks!



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [gwt-contrib] Re: Not able to run GWTTestCase

2014-02-14 Thread Thomas Broyer
On the Eclipse side, I'd check whether the Jetty dependency is exported 
by the gwt-dev project. If it's not, then it won't be on the classpath of 
tests from the gwt-user project.
It might be that we failed to properly update the Eclipse config files when 
updating Jetty (it does work for me, but I'm using a very old Eclipse 
workspace, and maybe Eclipse caches those things somewhere)

On Thursday, February 13, 2014 11:33:12 PM UTC+1, Brian Slesinsky wrote:

 I'm not an Eclipse user, but we did upgrade to Jetty 8.1 in 2.6 and its 
 package changed. If you put the new version of Jetty in your classpath that 
 will probably fix it.

 - Brian



 On Thu, Feb 13, 2014 at 6:44 AM, Stephan Beutel 
 stephan...@gmail.comjavascript:
  wrote:

 I also tried it with the Eclipse 3.8 and end up at the same point. I'm 
 not able to run any GWTTestCase.



 Am Mittwoch, 12. Februar 2014 12:17:55 UTC+1 schrieb Stephan Beutel:

 Hello,

 I set up my Eclipse to contribute to GWT and worked through the Readme 
 to set up an Eclipse workspace.
 All errors are gone in my Eclipse (Springsource Toolsuite) now, but I'm 
 not able to run any GWTTestCase from within my Eclipse.

 The Ant build runs successfully.

 When trying to run any GWTTestCase I get this error:

 java.lang.Error: Unresolved compilation problems: 
  The import org.eclipse.jetty cannot be resolved
 The import org.eclipse.jetty cannot be resolved
 The import org.eclipse.jetty cannot be resolved
  The import org.eclipse.jetty cannot be resolved
 The import org.eclipse.jetty cannot be resolved
 The import org.eclipse.jetty cannot be resolved
  The import org.eclipse.jetty cannot be resolved
 The import org.eclipse.jetty cannot be resolved
 The import org.eclipse.jetty cannot be resolved
  The import org.eclipse.jetty cannot be resolved
 The import org.eclipse.jetty cannot be resolved
 The import org.eclipse.jetty cannot be resolved
  The import org.eclipse.jetty cannot be resolved
 The import org.eclipse.jetty cannot be resolved
 The import org.eclipse.jetty cannot be resolved
  The import org.eclipse.jetty cannot be resolved
 AbstractLifeCycle cannot be resolved to a type
 RequestLog cannot be resolved to a type
  Request cannot be resolved to a type
 Response cannot be resolved to a type
 AbstractHttpConnection cannot be resolved to a type
  HttpFields cannot be resolved to a type
 Field cannot be resolved to a type
 Logger cannot be resolved to a type
  Logger cannot be resolved to a type
 Server cannot be resolved to a type
 WebAppContext cannot be resolved to a type
  Server cannot be resolved to a type
 WebAppContext cannot be resolved to a type
 Server cannot be resolved to a type
  WebAppContext cannot be resolved to a type
 Log cannot be resolved
 WebAppContext cannot be resolved to a type
  Server cannot be resolved to a type
 WebAppContext cannot be resolved to a type
 Server cannot be resolved to a type
  Log cannot be resolved
 Log cannot be resolved
 Server cannot be resolved to a type
  Server cannot be resolved to a type
 Log cannot be resolved
 WebAppContext cannot be resolved to a type
  WebAppClassLoader cannot be resolved to a type
 The method findResource(String) of type JettyLauncher.
 WebAppContextWithReload.WebAppClassLoaderExtension must override or 
 implement a supertype method
  WebAppClassLoader cannot be resolved to a type
 WebAppClassLoader cannot be resolved to a type
 The method findClass(String) of type JettyLauncher.
 WebAppContextWithReload.WebAppClassLoaderExtension must override or 
 implement a supertype method
  WebAppClassLoader cannot be resolved to a type
 The method isServerClass(String) is undefined for the type JettyLauncher.
 WebAppContextWithReload.WebAppClassLoaderExtension
  WebAppClassLoader cannot be resolved to a type
 The method addClassPath(String) is undefined for the type JettyLauncher.
 WebAppContextWithReload.WebAppClassLoaderExtension
  The method getInitParams() is undefined for the type JettyLauncher.
 WebAppContextWithReload
 The method setParentLoaderPriority(boolean) is undefined for the type 
 JettyLauncher.WebAppContextWithReload
  The method isSystemClass(String) of type 
 JettyLauncher.WebAppContextWithReload 
 must override or implement a supertype method
 WebAppContext cannot be resolved to a type
  The method doStart() of type JettyLauncher.WebAppContextWithReload 
 must override or implement a supertype method
 The method 
 setClassLoader(JettyLauncher.WebAppContextWithReload.WebAppClassLoaderExtension)
  
 is undefined for the type JettyLauncher.WebAppContextWithReload
  WebAppContext cannot be resolved to a type
 The method doStop() of type JettyLauncher.WebAppContextWithReload must 
 override or implement a supertype method
  WebAppContext cannot be resolved to a type
 The method getClassLoader() is undefined for the type JettyLauncher.
 WebAppContextWithReload
  The method setClassLoader(null) is undefined for the type 
 JettyLauncher.WebAppContextWithReload
 AbstractConnector cannot be 

[gwt-contrib] Re: bug in permutations.js?

2014-02-14 Thread Stephen Haberman

Here is the difference in the generated JS. From a ~10/2013 trunk build:

function com_google_gwt_dom_client_StyleInjector_StyleInjectorImpl(){
  switch (permutationId) {
case 1:
case 2:
case 3:
  return new StyleInjector$StyleInjectorImplIE_0;
  }
  return new StyleInjector$StyleInjectorImpl_0;
}

So, even when permutationId was undefined (which it was for gecko_18,
which was basically permutation 0), it was fine, it'd get the non-IE
version.

But now with 2.6:

function com_google_gwt_dom_client_StyleInjector_StyleInjectorImpl(){
  switch (permutationId) {
case 0:
case 4:
  return new StyleInjector$StyleInjectorImpl_0;
  }
  return new StyleInjector$StyleInjectorImplIE_0;
}

The output changed; now when permutationId is undefined, which it still
is for gecko_1.8 (no change there), then IE is the default.

AFAICT the DOM.gwt.xml rules for StyleInjector haven't changed
recently. The permutations.js hasn't changed (permutationId was
undefined both pre-/post-2.6).

So, I can file a patch to make permutationId=0, but any ideas why this
would have changed since October-ish?

It must have been that, previously, case 0 would never have been put
inside the runtime switch statement, and instead always have been the
fallback.

- Stephen

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups GWT 
Contributors group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [gwt-contrib] bug in permutations.js?

2014-02-14 Thread Stephen Haberman

 Yes it sounds like a bug. Want to add that to the issue tracker?

https://code.google.com/p/google-web-toolkit/issues/detail?id=8575

I've verified that the patch fixes the behavior in our application.

Any good suggestions about how to test this? Or volunteers to review
the patch?

Given it was, I assume, a bug in permutations.js, I imagine I would
have to create a mini test app with collapse-all-properties, have it
compile to JS, and then somehow verify that the right deferred binding
for permutation 0 (which ever browser that happened to be) got the
right selection.

Thanks,
Stephen

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups GWT 
Contributors group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [gwt-contrib] bug in permutations.js?

2014-02-14 Thread Brian Slesinsky
Maybe turn on soft permutations in a sample app, since we do at least test
those manually before a release.

Long-term, I'd like to see us using soft permutations by default, perhaps
to collapse some browser permutations. If it were more commonly used then
we'd likely notice that it's broken pretty quickly.

- Brian


On Fri, Feb 14, 2014 at 2:32 PM, Stephen Haberman
step...@exigencecorp.comwrote:


  Yes it sounds like a bug. Want to add that to the issue tracker?

 https://code.google.com/p/google-web-toolkit/issues/detail?id=8575

 I've verified that the patch fixes the behavior in our application.

 Any good suggestions about how to test this? Or volunteers to review
 the patch?

 Given it was, I assume, a bug in permutations.js, I imagine I would
 have to create a mini test app with collapse-all-properties, have it
 compile to JS, and then somehow verify that the right deferred binding
 for permutation 0 (which ever browser that happened to be) got the
 right selection.

 Thanks,
 Stephen

 --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors
 ---
 You received this message because you are subscribed to the Google Groups
 GWT Contributors group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups GWT 
Contributors group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.