Re: How to disable copy or cut in a RichTextArea ?

2013-12-18 Thread Eric Reboisson
hello,

The application runs into a container, so the users can't (easily :-) ) 
access the source code.

And if I might listen for copy/cut ? How could I do that ?

Eric

Le mercredi 18 décembre 2013 17:17:41 UTC+1, Jens a écrit :
>
> You might listen for copy/cut events and prevent their default action but 
> wait...all my browsers can show me the HTML source code :) 
>
> Do you still want to implement something useless? ;-)
>
> -- 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.


How to disable copy or cut in a RichTextArea ?

2013-12-18 Thread Eric Reboisson
Hello,

All is in the title :-)

I know that RichTextArea is an iframe but how could I prevent a user to 
copy its contents ?

Thx by advance.

Eric

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


Drag & drop multiple files and upload it ?

2013-09-24 Thread Eric Reboisson
Hello,
 
We already have a widget to upload file (one by one you browse the local 
filesystem) to a server.
 
We are investigate a solution to drag & drop multiple file to a server and 
if possible reusing our servlet upload component.
 
We found quickly several solutions :
- http://www.moxiegroup.com/moxieapps/gwt-uploader/
- HTML5 solutions
 
But, some solution use Flash, or HTML 5 and maybe not fully compatible with 
the browsers.
 
Could you bring me your advices to implement this solution ?
 
Eric

-- 
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: Bug Eclipse Helios + Gwt Designer + UIConstructor ?

2011-05-03 Thread Eric Reboisson
solved with the last beta :

http://code.google.com/webtoolkit/tools/download-gwtdesigner-beta.html

On Apr 12, 11:07 pm, Eric Reboisson  wrote:
> Hello,
>
> I've installed EclipseHelioswith the Goole GWT plugin.
>
> After that, I've created a sample GWT app with the wizard.
>
> I've implemented my own label widget as follow, and I use the
> @UiConstructor annotation :
>
> import com.google.gwt.core.client.GWT;
> import com.google.gwt.uibinder.client.UiConstructor;
> import com.google.gwt.user.client.ui.Label;
>
> public class MyLabel extends Label {
>
>         @UiConstructor
>         public MyLabel(String key) {
>                 GWT.log(key);
>         }
>
> }
>
> Finally, in a UIBinder, in design mode (terribly slow design mode at
> loading...) I wanted to add my widget but this error appears, is it a
> known bug ? Am I missusing GWT ? :
>
> Error loading module(s).
>
> GWTDesignercan't load a module because of error in gwt.xml module
> description, incorrect resource which requires processing with GWT
> generator or by some other configuration error.
>
> Please check your $project_dir/.gwt/.gwt-log for GWT-specific errors.
>
> This log has the following error messages:
>
>       [ERROR]  missing required attribute(s): key Element
>  (:13)
>
> [ERROR] Deferred binding failed for
> 'sample.client.mytemplate.mytemplateUiBinder'; expect subsequent
> failures
>
> Show stack trace.
> Hide stack trace.
>
> Stack trace:
> org.eclipse.wb.internal.core.utils.exception.DesignerException: 4108
> (Error loading module(s).).
>       [ERROR]  missing required attribute(s): key Element
>  (:13)
>
> [ERROR] Deferred binding failed for
> 'sample.client.mytemplate.mytemplateUiBinder'; expect subsequent
> failures
>
>         at
> com.google.gdt.eclipse.designer.GwtExceptionRewriter.rewrite(GwtExceptionRe 
> writer.java:
> 52)
>         at
> org.eclipse.wb.internal.core.utils.exception.DesignerExceptionUtils.rewrite 
> Exception(DesignerExceptionUtils.java:
> 222)
>         at
> org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.showExceptionOnDesign 
> Pane(XmlDesignPage.java:
> 470)
>         at
> org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.handleDesignException 
> (XmlDesignPage.java:
> 285)
>         at org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.access
> $1(XmlDesignPage.java:271)
>         at org.eclipse.wb.internal.core.xml.editor.XmlDesignPage
> $8.handleException(XmlDesignPage.java:443)
>         at
> org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUt 
> ils.java:
> 324)
>         at
> org.eclipse.wb.core.gef.command.EditCommand.execute(EditCommand.java:
> 50)
>         at
> org.eclipse.wb.internal.gef.core.EditDomain.executeCommand(EditDomain.java:
> 59)
>         at org.eclipse.wb.gef.core.tools.Tool.executeCommand(Tool.java:209)
>         at
> org.eclipse.wb.gef.core.tools.AbstractCreationTool.handleButtonUp(AbstractC 
> reationTool.java:
> 62)
>         at org.eclipse.wb.gef.core.tools.Tool.mouseUp(Tool.java:395)
>         at
> org.eclipse.wb.internal.gef.core.EditDomain.mouseUp(EditDomain.java:
> 255)
>         at
> org.eclipse.wb.internal.gef.graphical.EditEventManager.mouseUp(EditEventMan 
> ager.java:
> 149)
>         at sun.reflect.GeneratedMethodAccessor90.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.eclipse.wb.internal.draw2d.EventManager
> $8.invoke(EventManager.java:325)
>         at $Proxy1.mouseUp(Unknown Source)
>         at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:
> 213)
>         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
>         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
>         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:
> 4066)
>         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
>         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:
> 2640)
>         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
>         at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
>         at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
>         at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:
> 332)
>         at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:
> 664)
>         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:
> 149)
>   

Bug Eclipse Helios + Gwt Designer + UIConstructor ?

2011-04-13 Thread Eric Reboisson
Hello,

I've installed Eclipse Helios with the Goole GWT plugin.

After that, I've created a sample GWT app with the wizard.

I've implemented my own label widget as follow, and I use the
@UiConstructor annotation :

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiConstructor;
import com.google.gwt.user.client.ui.Label;

public class MyLabel extends Label {

@UiConstructor
public MyLabel(String key) {
GWT.log(key);
}
}

Finally, in a UIBinder, in design mode (terribly slow design mode at
loading...) I wanted to add my widget but this error appears, is it a
known bug ? Am I missusing GWT ? :


Error loading module(s).

GWT Designer can't load a module because of error in gwt.xml module
description, incorrect resource which requires processing with GWT
generator or by some other configuration error.

Please check your $project_dir/.gwt/.gwt-log for GWT-specific errors.

This log has the following error messages:



  [ERROR]  missing required attribute(s): key Element
 (:13)

[ERROR] Deferred binding failed for
'sample.client.mytemplate.mytemplateUiBinder'; expect subsequent
failures






Show stack trace.
Hide stack trace.

Stack trace:
org.eclipse.wb.internal.core.utils.exception.DesignerException: 4108
(Error loading module(s).).
  [ERROR]  missing required attribute(s): key Element
 (:13)

[ERROR] Deferred binding failed for
'sample.client.mytemplate.mytemplateUiBinder'; expect subsequent
failures

at
com.google.gdt.eclipse.designer.GwtExceptionRewriter.rewrite(GwtExceptionRewriter.java:
52)
at
org.eclipse.wb.internal.core.utils.exception.DesignerExceptionUtils.rewriteException(DesignerExceptionUtils.java:
222)
at
org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.showExceptionOnDesignPane(XmlDesignPage.java:
470)
at
org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.handleDesignException(XmlDesignPage.java:
285)
at org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.access
$1(XmlDesignPage.java:271)
at org.eclipse.wb.internal.core.xml.editor.XmlDesignPage
$8.handleException(XmlDesignPage.java:443)
at
org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:
324)
at
org.eclipse.wb.core.gef.command.EditCommand.execute(EditCommand.java:
50)
at
org.eclipse.wb.internal.gef.core.EditDomain.executeCommand(EditDomain.java:
59)
at org.eclipse.wb.gef.core.tools.Tool.executeCommand(Tool.java:209)
at
org.eclipse.wb.gef.core.tools.AbstractCreationTool.handleButtonUp(AbstractCreationTool.java:
62)
at org.eclipse.wb.gef.core.tools.Tool.mouseUp(Tool.java:395)
at
org.eclipse.wb.internal.gef.core.EditDomain.mouseUp(EditDomain.java:
255)
at
org.eclipse.wb.internal.gef.graphical.EditEventManager.mouseUp(EditEventManager.java:
149)
at sun.reflect.GeneratedMethodAccessor90.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.wb.internal.draw2d.EventManager
$8.invoke(EventManager.java:325)
at $Proxy1.mouseUp(Unknown Source)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:
213)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:
4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:
2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:
332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:
664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:
149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:
115)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:
196)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:
110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:
79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
369)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.