Re: Generated class only appearing in one permutation

2012-11-29 Thread Asif Ali
Thanks 4r your great suggestion.

-- 
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: Textarea KeyUpHandler not working

2012-11-29 Thread marco
Hi Thomas,

thanks for your explanation. I had that setElement(rootPanel.getElement()) 
thing in my mind, but I didn't really got what it does until your 
explanation. Now it makes much sense to me what happened.

Cheers,
Marco

Am Mittwoch, 28. November 2012 14:45:51 UTC+1 schrieb Thomas Broyer:
>
>
>
> On Wednesday, November 28, 2012 1:40:18 PM UTC+1, marco wrote:
>>
>> Ok I fixed it, with the following changes
>>
>> -public class ValidatableTextarea extends ComplexPanel
>> +public class ValidatableTextarea extends FlowPanel
>> -   private FlowPanel rootPanel;
>> protected TextArea input;
>> private Label errorLabel;
>>
>> @UiConstructor 
>> public ValidatableTextarea() { 
>> input = new TextArea(); 
>> -   rootPanel = new FlowPanel(); 
>> -   rootPanel.add(input); 
>> +   add(input)
>>
>> -   setElement(rootPanel.getElement()); 
>> }
>> ...
>> public void setText(String text) { 
>> input.setText(String Text); 
>> }
>> ...
>> public void addKeyUpHandler(KeyUpHandler keyUpHandler) { 
>> input.addKeyUpHandler(keyUpHandler); 
>> }
>>
>> Don't know why but it's working now.
>>
>
> I know why: setElement() is only meant to be used when you create your own 
> Widget, not when you extend an existing one. The root of your problem was 
> actually using rootPanel;getElement() as the element for another widget, 
> yet adding widgets to rootPanel (which is never *attached* to the DOM: 
> its element is "physically" attached, by way of the ValidatableTextArea, 
> but the FlowPanel itself is not "logically" attached.
>
> Now, instead of *extending* FlowPanel, you should extend Composite 
> instead, and use a FlowPanel with setWidget (more or less reverting to your 
> previous code, fixing it: ComplexPanel→Composite, setElement→setWidget)
>

-- 
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/-/vlSS2xPuS5AJ.
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: CellTable - how to avoid unnecessary onRangeChange events?

2012-11-29 Thread Rafael Paulino
Magnus, Hi.

I didn't found an easy and simple solution for that.

In my application I wrote a "DataManager" which is an AsyncDataProvider and 
has some cache functionality. So when I get an onRangeChange event I just 
go to server when it's really needed, fetching only the missing range.

It do a lot of things, but only this class for me is getting 800 lines :( 
Of course, this cache functionality is smaller than this, but still complex.

I haven't tested yet the performance of my code.

I could share something with you, if you are interested in. 

Em quarta-feira, 28 de novembro de 2012 12h43min24s UTC-3, Magnus escreveu:
>
> Hi,
>
> I found that my CellTable sends unnecessary onRangeChange events in a 
> specific situation:
>
> - The data source changes, e. g. the user selects another chat room.
> - The new row count is less than the old one.
>
> Then, when calling the data provider's updateRowCount method the GWT code 
> recognizes that the current range exceeds the row count and corrects the 
> range somhow, triggering an onRangeChange event.
> Independend of this, the application also as an idea which records to show 
> and also sets the new range.
>
> In the end, the page is loaded twice. Can we avoid this?
>
> Magnus
>

-- 
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/-/2zj6-6KfK-kJ.
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: CellTable - how to avoid unnecessary onRangeChange events?

2012-11-29 Thread Magnus
Hi Rafael,

thank you for offering me your solution.
But in the meantime I found a very simple solution:

The application has to set the new range *before* a call to updateRowCount 
is made!

The first thing I do right after the data source (chat room) changed is to 
load the new row count.
But *before* passing this new row count to the data provider (which would 
trigger an onRangeChange event then), I set the range myself to a valid 
interval.
Finally, *after* this, I call updateRowCount.

Pseudocode: 

void onSelectChatRoom:()
{
 loadNewRowCount ();
}

void onLoadNewRowCount (int cnt)
{
 Range r = getLastPageRangeForCurrentRoom(cnt);
 tbl.setVisibleRangeAndClearData (r,true); // triggers one onRangeChange 
event

 pvd.updateRowCount (cnt); // does not trigger a second onRangeChange event 
anymore!
}

HTH
Magnus

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



Display errors inside FlexTable - how to get rid off them?

2012-11-29 Thread Hans
Recently there was a display error difficult to track down in my app: 
FlexTable cells were 4px higher than expected (regarding the content box). 
When I eventually set *line-height: 0* the padding/margin/you name it 
evaporated.

So I guess there's a text node consisting of white space or a line break in 
these cells and I don't have a clue why. Or the image itself is causing 
this (creating a new line in terms of HTML).

I do it straighforwardly:

FlexTable ft = new FlexTable();
Image i = new Image(url);
ft.setWidget(row,col,i);

resulting in the cell being rendered 4px higher than the image itself - no 
paddings, borders, margins applied as checked with Chrome's built-in 
DevTools.

I'm very curious to know why this happens because it does not happen on 
another page doing the exact similar thing ... Is this by design (of 
HTML/Chrome/CSS/...)? Should I give XHTML a try instead? Is there a way to 
control all nodes with GWT?

-- 
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/-/uzIyH-z2O2IJ.
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: Firefox 17 dev plugin

2012-11-29 Thread wbabachan
I have built the plugin under Fedora 17 x86 (FC17_x86) and it works fine. 
You can download and use it from here: 

https://docs.google.com/open?id=0Bz789tz1BWLqcVNrOERSOWdLNlU

I hope it will work at least in all Linux x86 OS.

- Waruschan Babachan



Am Mittwoch, 28. November 2012 16:57:06 UTC+1 schrieb Samyem Tuladhar:
>
> Are the windows binaries available yet for FX17? 
>
> On Monday, November 26, 2012 11:07:21 PM UTC-5, Brian Slesinsky wrote:
>>
>> That's due to a bug in the Makefile: it creates the IOOPHM.h file but not 
>> the directory it's in. (The build procedure for plugins is full of this 
>> sort of thing.)
>>
>> But if you sync to head, you should be able to get away with just 
>> building the xpi file from the preexisting binaries, because the binary is 
>> checked in.
>>
>> - Brian
>>
>> On Monday, November 26, 2012 3:53:32 PM UTC-8, Thomas Broyer wrote:
>>>
>>>
>>>
>>> On Monday, November 26, 2012 11:34:29 PM UTC+1, koma wrote:

 I tried to build - would be nice to master that because it will keep on 
 happening every 6 weeks; Ubuntu updates FF even without asking and even 
 without restarting FF;
 I fiddled a bit with the Makefile to include ff170 and tried to find my 
 way in the huge directory structure.

 Finally it started to compile but no luck so far; 

 Missing IOOPHM.h :


>>> That file comes with the patch from 
>>> http://gwt-code-reviews.appspot.com/1870803/
>>>
>>>

-- 
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/-/rqIqKExZmVcJ.
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: Display errors inside FlexTable - how to get rid off them?

2012-11-29 Thread Hans
I changed the fix to use *display: block* for images inside table cells 
instead of messing with* line-height* which seems a cleaner solution.
Waiting for widespread CSS3 support to fight the underlying problem of 
placing inline content ...


-- 
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/-/76iFa-KM394J.
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.



programmatically opening a GWT ListBox

2012-11-29 Thread Tihomir Meščić
Hi everyone,

I have a GWT application that needs to have the ability to programatically 
open a standard GWT ListBox 
widget (com.google.gwt.user.client.ui.ListBox). There is no method in API 
to do this so I was wondering,
is there a workaround solution for this?

Thanks in advance.

-- 
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/-/xAbghXf2OWQJ.
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, this.focus is not a function

2012-11-29 Thread Piotr Kopeć
Hi All
As workaround for editing NULL values in CellTable i've extended Column
All works nice till use of SingleSelectionModel
With selection model editing null values goes random, some values can be 
edited, some not, after few tries selection model stops responding
Related exception stack trace below:

[ERROR] com.google.gwt.core.client.JavaScriptException: (TypeError) 
> @com.google.gwt.dom.client.Element::focus()([]): this.focus is not a 
> function
> [ERROR] at 
> com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
> [ERROR] at 
> com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
> [ERROR] at 
> com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:570)
> [ERROR] at 
> com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:298)
> [ERROR] at 
> com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
> [ERROR] at com.google.gwt.dom.client.Element$.focus$(Element.java)
> [ERROR] at 
> com.google.gwt.cell.client.EditTextCell.resetFocus(EditTextCell.java:240)
> [ERROR] at 
> com.google.gwt.cell.client.EditTextCell.resetFocus(EditTextCell.java:1)
> [ERROR] at 
> com.google.gwt.user.cellview.client.AbstractCellTable.resetFocusOnCellImpl(AbstractCellTable.java:2575)
> [ERROR] at 
> com.google.gwt.user.cellview.client.AbstractCellTable.resetFocusOnCell(AbstractCellTable.java:2193)
> [ERROR] at 
> com.google.gwt.user.cellview.client.AbstractHasData$View$1.execute(AbstractHasData.java:290)
> [ERROR] at 
> com.google.gwt.user.cellview.client.CellBasedWidgetImpl.resetFocus(CellBasedWidgetImpl.java:102)
> [ERROR] at 
> com.google.gwt.user.cellview.client.AbstractHasData$View.resetFocus(AbstractHasData.java:287)
> [ERROR] at 
> com.google.gwt.user.cellview.client.HasDataPresenter.resolvePendingState(HasDataPresenter.java:1374)
> [ERROR] at 
> com.google.gwt.user.cellview.client.HasDataPresenter.access$3(HasDataPresenter.java:1062)
> [ERROR] at 
> com.google.gwt.user.cellview.client.HasDataPresenter$2.execute(HasDataPresenter.java:984)
> [ERROR] at 
> com.google.gwt.core.client.impl.SchedulerImpl$Task$.executeScheduled$(SchedulerImpl.java:50)
> [ERROR] at 
> com.google.gwt.core.client.impl.SchedulerImpl.runScheduledTasks(SchedulerImpl.java:228)
> [ERROR] at 
> com.google.gwt.core.client.impl.SchedulerImpl.flushFinallyCommands(SchedulerImpl.java:327)
> [ERROR] at com.google.gwt.core.client.impl.Impl.exit(Impl.java:266)
> [ERROR] at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:257)
> [ERROR] at sun.reflect.GeneratedMethodAccessor286.invoke(Unknown 
> Source)
> [ERROR] at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> [ERROR] at java.lang.reflect.Method.invoke(Method.java:601)
> [ERROR] at 
> com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
> [ERROR] at 
> com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
> [ERROR] at 
> com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
> [ERROR] at 
> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
> [ERROR] at 
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
> [ERROR] at 
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
> [ERROR] at java.lang.Thread.run(Thread.java:722)
>

Example class for reproducing exception below:

> public class GwtBugTest0 {
>
> // Entity
> class Man {
> String name;
> Date birth;
> }
>
> // column that renders [NONE] for null and is updater, also gives 
> initial value for updater
> abstract class NoneColumn extends Column implements 
> FieldUpdater {
> V def;
>
> public NoneColumn(Cell cell, V def) {
> super(cell);
> this.def = def;
> setFieldUpdater(this);
> }
>
> @Override
> public V getValue(T object) {
> V ret = getRawValue(object);
> return ret == null ? def : ret;
> }
>
> @Override
> public void render(Context context, T object, SafeHtmlBuilder sb) {
> if (getRawValue(object) == null)
> sb.appendHtmlConstant("[NONE]");
> else
> super.render(context, object, sb);
> }
>
> protected abstract V getRawValue(T c);
> }
>
> // CellTable
> class ManTable extends CellTable {
>
> public ManTable() {
> DateTimeFormat DTF = DateTimeFormat.getFormat("-MM-dd");
> Column nameColumn = new NoneColumn String>(new EditTextCell(), "") {
> @Override
> protected String getRawValue(Man c) {
> return c.name;
> }
>
> @Override

Re: GWT Internet Explorer ListBox issues (dropdown items are chopped)

2012-11-29 Thread Yogi
Hi,
I am facing the same problem in IE 8. Does anybody have any solution to 
this problem.


Regards,
Yogi

On Tuesday, July 5, 2011 10:11:52 PM UTC+1, Chicones wrote:
>
> I currently have the same problem. I've made some google searches and
> I've only found js fixes, e.g., with jQuery. But I'd rather try a fix
> within the java GWT code than to manage a custom js for this.
>
> I'll let you know if I make progress on this.
>
> cheers
>
> On Wed, Jun 29, 2011 at 10:38 AM, Mulder > 
> wrote:
> > I am not sure if this has been asked before.
> > I have a GWT Dropdown listbox, which on a dropdown expands the dropdown 
> list
> > automatically to show long list items in FF and Chrome. IE however does 
> not
> > resize dynamically as a result the dropdown list shows chopped items.
> > Any workarounds ?
> >
> > --
> > 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/-/H-RL4DXOXVwJ.
> > To post to this group, send email to 
> > google-we...@googlegroups.com
> .
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com .
> > For more options, visit this group at
> > http://groups.google.com/group/google-web-toolkit?hl=en.
> >
>
>

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



How to dynamically add timestamp to reference script url

2012-11-29 Thread Kevin Nguyen
Hi,

We're using some third party libraries where in their *gwt.xml module, they 
use 

Re: GWT 1.5.3 and gwtext-2.0.4

2012-11-29 Thread Paul Otarola Lopez
hi, there is a design component for gwt-windows-1.5.3? , Example gwt 
designer

On Wednesday, September 15, 2010 6:13:48 PM UTC-5, Guille wrote:
>
> SOLVED 
> The problems was that I mixed GWT-EXT with GXT, so the solution was remove 
> GXT library and now works perfect
>
> -- 
> Guillermo Sánchez
>

-- 
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/-/slkF3iV-BuoJ.
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: Firefox 17 dev plugin

2012-11-29 Thread Thad
On Thursday, November 29, 2012 10:01:49 AM UTC-5, wbabachan wrote:

> I have built the plugin under Fedora 17 x86 (FC17_x86) and it works fine. 
> You can download and use it from here: 
>
> https://docs.google.com/open?id=0Bz789tz1BWLqcVNrOERSOWdLNlU
>
> I hope it will work at least in all Linux x86 OS.
>
> - Waruschan Babachan
>

Thank you. That works for me with openSUSE 12.2 32-bit and Firefox 17.0.2.
 

> Am Mittwoch, 28. November 2012 16:57:06 UTC+1 schrieb Samyem Tuladhar:
>>
>> Are the windows binaries available yet for FX17? 
>>
>> On Monday, November 26, 2012 11:07:21 PM UTC-5, Brian Slesinsky wrote:
>>>
>>> That's due to a bug in the Makefile: it creates the IOOPHM.h file but 
>>> not the directory it's in. (The build procedure for plugins is full of this 
>>> sort of thing.)
>>>
>>> But if you sync to head, you should be able to get away with just 
>>> building the xpi file from the preexisting binaries, because the binary is 
>>> checked in.
>>>
>>> - Brian
>>>
>>> On Monday, November 26, 2012 3:53:32 PM UTC-8, Thomas Broyer wrote:



 On Monday, November 26, 2012 11:34:29 PM UTC+1, koma wrote:
>
> I tried to build - would be nice to master that because it will keep 
> on happening every 6 weeks; Ubuntu updates FF even without asking and 
> even 
> without restarting FF;
> I fiddled a bit with the Makefile to include ff170 and tried to find 
> my way in the huge directory structure.
>
> Finally it started to compile but no luck so far; 
>
> Missing IOOPHM.h :
>
>
 That file comes with the patch from 
 http://gwt-code-reviews.appspot.com/1870803/



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



Canvas drawn objects mouse events

2012-11-29 Thread Matt Fair
 

I have the following code:

public void draw(Context2d context) {

context.beginPath();
context.rect(x, y, width, height);
context.fill();
context.closePath();
context.stroke();

}

I would like to add a mouse event for when the mouse moves over the 
rectangle.  What's the best way to do this?  I was able to do it if I in 
the mouse move event for the canvas and with an if statement I checked to 
see if the mouse moved within the coordinates of the rectangle.  

canvas.addMouseMoveHandler(new MouseMoveHandler() {

  public void onMouseMove(MouseMoveEvent event) {

mouseX = event.getRelativeX(canvas.getElement());
mouseY = event.getRelativeY(canvas.getElement());

if(insideRectangle(mouseX, mouseY)) {

// fire mouse event for rectangle

}

  }

});

However, I am worry about working with a bunch of objects and speed doing 
it this way.  Is there a way to add a mouseMoveHandler directly to the 
rectangle?

Thanks,

Matt

-- 
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/-/ZcJTa9KelVEJ.
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: compiled js files do not work, if compiled "obfuscated", only if compiled "pretty"

2012-11-29 Thread Gasotelo
I got this problem, it was because we have a browser plugin that inserts 
javascript with obfuscated names too, so when the GWT calls a function like 
xf, it was really calling the plugin xf function.

On Monday, January 30, 2012 8:38:17 AM UTC-5, ustakraharez wrote:
>
> Tried from the latest trunk, xs obfuscated still not working... Only 
> pretty .-) 
>
> Best: 
> Gabor 
>
> On jan. 24, 19:19, ustakraharez  wrote: 
> > Thanks a lot for the quick answer! 
> > 
> > I tried with PRETTY and -optimize 9 and also optimize 0. Both of them 
> > worked, and the best optimization gives 5.8Mb file the worst give 
> > 6.5Mb so still not 2.5Mb that obfuscation gives. I try to investigate 
> > further tomorrow, thanks for the tip. 
> > 
> > On jan. 24, 18:07, Colin Alworth  wrote: 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > > Compiling in PRETTY also turns off some of the optimizations, so turn 
> them 
> > > back up again using -optimize 9 in your args. This will hopefully 
> allow you 
> > > to reproduce the issue, but still see what the code looks like to find 
> > > where the error is taking place. 
> > 
> > > Seehttp://
> code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebu... 
> > > for the full list of args that are possible.

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



prefix on obfuscated function names

2012-11-29 Thread Gasotelo


We have a project on GWT and our production version have been compiled on 
obfuscated mode for security reasons. The application works fine, except 
when a browser plugin inserts javascript on the page, because some plugins 
have functions with obfuscated names, like aa, ab, xv, zf, etc...

We wonder if there is a way to tell GWT compiler to add a prefix to all 
javascript obfuscated functions, so the functions get names like cccab, 
ccczf, cccaa, etc.

It is not possible to tell all users to remove their plugins to use our 
page.

Thanks a lot.

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



RootPanel --> OutClickEvent -- > how to detect click event out of the HTML Page it self ?

2012-11-29 Thread Alp Yilancioglu
Hi,
how can i detect the OutMouseClicks out side of the HTML page ?
 
 

-- 
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/-/HSJ3Rg8KXtUJ.
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: Firefox 17 dev plugin

2012-11-29 Thread Frank Hossfeld
OS X 10.8 works fine ... 

Am Donnerstag, 29. November 2012 20:22:09 UTC+1 schrieb Thad:
>
> On Thursday, November 29, 2012 10:01:49 AM UTC-5, wbabachan wrote:
>
>> I have built the plugin under Fedora 17 x86 (FC17_x86) and it works fine. 
>> You can download and use it from here: 
>>
>> https://docs.google.com/open?id=0Bz789tz1BWLqcVNrOERSOWdLNlU
>>
>> I hope it will work at least in all Linux x86 OS.
>>
>> - Waruschan Babachan
>>
>
> Thank you. That works for me with openSUSE 12.2 32-bit and Firefox 17.0.2.
>  
>
>> Am Mittwoch, 28. November 2012 16:57:06 UTC+1 schrieb Samyem Tuladhar:
>>>
>>> Are the windows binaries available yet for FX17? 
>>>
>>> On Monday, November 26, 2012 11:07:21 PM UTC-5, Brian Slesinsky wrote:

 That's due to a bug in the Makefile: it creates the IOOPHM.h file but 
 not the directory it's in. (The build procedure for plugins is full of 
 this 
 sort of thing.)

 But if you sync to head, you should be able to get away with just 
 building the xpi file from the preexisting binaries, because the binary is 
 checked in.

 - Brian

 On Monday, November 26, 2012 3:53:32 PM UTC-8, Thomas Broyer wrote:
>
>
>
> On Monday, November 26, 2012 11:34:29 PM UTC+1, koma wrote:
>>
>> I tried to build - would be nice to master that because it will keep 
>> on happening every 6 weeks; Ubuntu updates FF even without asking and 
>> even 
>> without restarting FF;
>> I fiddled a bit with the Makefile to include ff170 and tried to find 
>> my way in the huge directory structure.
>>
>> Finally it started to compile but no luck so far; 
>>
>> Missing IOOPHM.h :
>>
>>
> That file comes with the patch from 
> http://gwt-code-reviews.appspot.com/1870803/
>
>

-- 
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/-/8GF1cAdEfJQJ.
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: Canvas drawn objects mouse events

2012-11-29 Thread Alfredo Quiroga-Villamil
I don't want to discourage you from trying your own implementation but you
might want to take a look at Lienzo and see if it works for what you need.
It's 100% built on GWT and lighting fast. It should do all the things you
will need and likely more. It's released under Apache.

Explorer:

http://www.emitrom-lienzo.appspot.com/

Download:

http://www.emitrom.com/lienzo/download

Best regards,

Alfredo


On Thu, Nov 29, 2012 at 1:29 PM, Matt Fair  wrote:

> I have the following code:
>
> public void draw(Context2d context) {
>
> context.beginPath();
> context.rect(x, y, width, height);
> context.fill();
> context.closePath();
> context.stroke();
>
> }
>
> I would like to add a mouse event for when the mouse moves over the
> rectangle.  What's the best way to do this?  I was able to do it if I in
> the mouse move event for the canvas and with an if statement I checked to
> see if the mouse moved within the coordinates of the rectangle.
>
> canvas.addMouseMoveHandler(new MouseMoveHandler() {
>
>   public void onMouseMove(MouseMoveEvent event) {
>
> mouseX = event.getRelativeX(canvas.getElement());
> mouseY = event.getRelativeY(canvas.getElement());
>
> if(insideRectangle(mouseX, mouseY)) {
>
> // fire mouse event for rectangle
>
> }
>
>   }
>
> });
>
> However, I am worry about working with a bunch of objects and speed doing
> it this way.  Is there a way to add a mouseMoveHandler directly to the
> rectangle?
>
> Thanks,
>
> Matt
>
> --
> 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/-/ZcJTa9KelVEJ.
> 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
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: Canvas drawn objects mouse events

2012-11-29 Thread Alfredo Quiroga-Villamil
We are just a couple of weeks from having GA by the way and some of the
things we are adding are just amazing. Take a look for instance at this
transform.

http://www.emitrom-lienzo.appspot.com/#ExplorerPlaceImpl:transform_3_points

For the user of our API ... one line of code for that complicated
transform.  Behind the scenes ... a lot of stuff going on.

- All shapes are grouped.
- All shapes are draggable.

The level of sophistication you'll find it's simply amazing and we are just
finishing off 1.0 GA. The package is very light and has no dependencies.


On Thu, Nov 29, 2012 at 5:13 PM, Alfredo Quiroga-Villamil  wrote:

> I don't want to discourage you from trying your own implementation but you
> might want to take a look at Lienzo and see if it works for what you need.
> It's 100% built on GWT and lighting fast. It should do all the things you
> will need and likely more. It's released under Apache.
>
> Explorer:
>
> http://www.emitrom-lienzo.appspot.com/
>
> Download:
>
> http://www.emitrom.com/lienzo/download
>
> Best regards,
>
> Alfredo
>
>
> On Thu, Nov 29, 2012 at 1:29 PM, Matt Fair  wrote:
>
>> I have the following code:
>>
>> public void draw(Context2d context) {
>>
>> context.beginPath();
>> context.rect(x, y, width, height);
>> context.fill();
>> context.closePath();
>> context.stroke();
>>
>> }
>>
>> I would like to add a mouse event for when the mouse moves over the
>> rectangle.  What's the best way to do this?  I was able to do it if I in
>> the mouse move event for the canvas and with an if statement I checked to
>> see if the mouse moved within the coordinates of the rectangle.
>>
>> canvas.addMouseMoveHandler(new MouseMoveHandler() {
>>
>>   public void onMouseMove(MouseMoveEvent event) {
>>
>> mouseX = event.getRelativeX(canvas.getElement());
>> mouseY = event.getRelativeY(canvas.getElement());
>>
>> if(insideRectangle(mouseX, mouseY)) {
>>
>> // fire mouse event for rectangle
>>
>> }
>>
>>   }
>>
>> });
>>
>> However, I am worry about working with a bunch of objects and speed doing
>> it this way.  Is there a way to add a mouseMoveHandler directly to the
>> rectangle?
>>
>> Thanks,
>>
>> Matt
>>
>> --
>> 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/-/ZcJTa9KelVEJ.
>> 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.
>>
>
>
>
> --
> Alfredo Quiroga-Villamil
>
> AOL/Yahoo/Gmail/MSN IM:  lawwton
>
>
>


-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
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: RootPanel --> OutClickEvent -- > how to detect click event out of the HTML Page it self ?

2012-11-29 Thread Jens
In general its window.onBlur in JavaScript but IE handles things a bit 
different as usual ;-) They tried to integrate a focus/blur handler for the 
window object into GWT some time ago but it does not work very well, so 
they removed it. 

See: 
http://code.google.com/p/google-web-toolkit/issues/detail?id=68
http://code.google.com/p/google-web-toolkit/source/detail?r=3565
http://code.google.com/p/google-web-toolkit/source/detail?r=3586


-- J.

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



Pass element & eventHandler to JSNI function

2012-11-29 Thread Webber
Hi,

I'm developing a JS library using GWT. I have a JSNI function and I'm able 
to pass in premitive types to it from js. I'm looking for a way to pass in 
an htmlElement and an EventHandler. Is this something that' supported?

Thanks,


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



Can anyone help me with the gwt requestfactory?

2012-11-29 Thread Anker
hi all,

these days, I learn how to build the gwt project, but when i meet the 
requestfactory , I really don't understand how to build and which class is 
necessary and which is not , so I come here to look for an help .

If  you have a little time ,please wrote a small project for me ,just like 
click a button and it will get something from server, so much thanks , I 
really need your help , my email:caoyuan...@gmail.com 

thanks.

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



Tracking down an erroneous brace

2012-11-29 Thread David Pinn
I'm not seeing any ill effects of this GWT compilation error, but I'm 
anxious about leaving this warning un-addressed:

[INFO] [gwt:compile {execution: default}]
> [INFO] Compiling module net.byandlarge.rendezvous.Rendezvous
> [INFO]Computing all possible rebind results for 
> 'net.byandlarge.rendezvous.client.rendezvouspoints.RendezvousPointsView.Binder'
> [INFO]   Rebinding 
> net.byandlarge.rendezvous.client.rendezvouspoints.RendezvousPointsView.Binder
> [INFO]  Invoking generator 
> com.google.gwt.uibinder.rebind.UiBinderGenerator
> [INFO] The following problems were detected
> [INFO][WARN] Line 13 column 78: encountered "{". Was 
> expecting one of: "[" "*" "." ":"   


To what file do the line number and column number relate? They don't seem 
to correlate to anything suspicious in the .ui.xml file (attached to this 
posting).

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



RendezvousPointsView.ui.xml
Description: XML document


Re: Tracking down an erroneous brace

2012-11-29 Thread Abraham Lin
Looks like there's an extra comma on line 20 (right before the opening 
brace). Not sure why the line number is off, but the column offset is 
correct.

-Abraham

-- 
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/-/U38brj6hoUIJ.
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: Tracking down an erroneous brace

2012-11-29 Thread David Pinn
Well, that's embarrassing. You know, you can look at something forever and 
still not see what is right there in front of you.

Abraham, thank you, thank you.

-David

On Friday, November 30, 2012 2:32:27 PM UTC+11, Abraham Lin wrote:
>
> Looks like there's an extra comma on line 20 (right before the opening 
> brace). Not sure why the line number is off, but the column offset is 
> correct.
>
> -Abraham
>

-- 
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/-/FMRPxN-iWkkJ.
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.



Redirect in GWT

2012-11-29 Thread Jonathan Franchesco Torres Bca
Hi, I have a problem to call a module from another module

Help me, please.

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



Height of DataGrid

2012-11-29 Thread tong123123
I placed a datagrid inside a column of flextable and I found that I must 
expliciitly set the height, and cannot use % like 100%, but % is allowed to 
use in the width, why this happens? due to Datagrid implements 
RequiresResizeInterface
 and its containing widget FlexTable has not implements 
ProvidesResize
?

-- 
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/-/pGe-AVjYS8MJ.
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: Firefox 17 dev plugin

2012-11-29 Thread Dimitrijević Ivan
http://code.google.com/p/google-web-toolkit/source/browse/trunk/plugins/xpcom/prebuilt/gwt-dev-plugin.xpi

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