Re: Developer plugin for Firefox 23 doesn't work

2013-11-25 Thread Gaël Falez
Same issue on ubuntu 12.04 x64 Firefox 25. plug-in 1.25


Le vendredi 22 novembre 2013 04:32:59 UTC+1, Mikhail a écrit :
>
> same issue with plugin 1.25 and firefox 25, fedora 18 x64 
>

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


Running gwt application in production mode

2013-11-25 Thread Mustansar Saeed


I am newbie to GWT. I have built gwt maven project. To run in development 
mode, I first compiled project Google|Compile Project, then from command 
mvn gwt:run, it runs fine on

http://localhost:/index.html?gwt.codesvr=127.0.0.1:9997

but for production I want to access module

http://localhost:/index.html 

When I omit gwt.codesvr= argument, I am getting error "gwt module may need 
to be recompiled". After Recompiling, I get the same error. Any 
help/pointer?

-- 
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: JavaScriptException during JSNI call: Invoking an instance method on a null instance

2013-11-25 Thread Boris Waguia
Thanks ChrisK, You saved my day.

On Tuesday, October 23, 2012 3:23:21 PM UTC+2, ChrisK wrote:
>
> There were a few problems here. My first example calls a zero args 
> function but is not formatted correctly.
>
> If you call something like this:
>   th...@com.mine.PlayerImpl::callback();
>
> It won't work. It needs the method signature and parameters separated (no 
> args signature doesn't imply no args last time I checked in GWT):
>   th...@com.mine.PlayerImpl::callback()();
>
> Notice the additional set of brackets. Very briefly mentioned on 
> https://developers.google.com/web-toolkit/doc/latest/DevGuideCodingBasicsJSNI
> .
>
> For the final code, I ended up passing "this" as a parameter from Java and 
> also wrapping the JS callback function so it ends up looking like this:
>
>   public PlayerImpl() {
> initialiseCallbacks(this);
>   }
>
>   private native void initialiseCallbacks(PlayerImpl impl) /*-{
> $wnd.js_callback = $entry(function() {
>   im...@com.mine.PlayerImpl::callback()();
> });
>   }
>
> I hope that helps.
>
>
> On Monday, 22 October 2012 15:23:43 UTC+1, Kartik Kaipa wrote:
>>
>> Hey
>> did you finally get this working.
>> I am doing the exact same thing
>> I pass in the instance of the object as a parameter in the function method
>>
>> Could you post the working code that you have.
>> Would really apreciate it.
>>
>> Thanks,
>> Kartik
>>
>> On Tuesday, March 23, 2010 7:31:24 PM UTC+5:30, Olivier Monaco wrote:
>>>
>>> ChrisK,
>>>
>>> For instance method, you need to reference the method from the
>>> instance like "this.@...". Here is my exact code that compile:
>>>
>>> private native void installListener()
>>> /*-{
>>> var callback = $entry(this.
>>>
>>> @net.antidot.gwtcommon.mvp.share.client.channel.HTML5MessageChannel::process(Lnet/
>>> antidot/gwtcommon/mvp/share/client/channel/HTML5MessageEvent;));
>>> $wnd.addEventListener("message", (function(callback, channel) {
>>> return function(event) {
>>> callback.call(channel, event);
>>> };
>>> })(callback, this), false);;
>>> }-*/;
>>>
>>> Sorry, I forgot that...
>>>
>>> Olivier
>>>
>>> On 23 mar, 13:58, ChrisK  wrote:
>>> > Actually, Olivier's methods work in development mode but don't seem to
>>> > compile with this error:
>>> >
>>> > "Cannot make an unqualified reference to the instance method callback"
>>> >
>>> > I've tried the pre-assignment of "this" to "var that" and also an
>>> > argument to the JSNI method passing in my instance. I've tried both of
>>> > these with Olivier's first method as well as the second to avoid
>>> > leaks. All with the same result - working in development mode but not
>>> > when I compile.
>>> >
>>> > It looks to me as though the compiler doesn't understand the call
>>> > method or the closure correctly. It looks at though it's trying to
>>> > parse the @mypackage.MyClass::MyMethod() and seeing it's an instance
>>> > method so failed (instead of looking at subsequent JavaScript). Of
>>> > course I could quite easily be doing something wrong.
>>> >
>>> > Thomas - your method compiles fine so I guess I'll use that for now.
>>> >
>>> > On Mar 23, 10:07 am, ChrisK  wrote:
>>> >
>>> > > Ahhh ok. Sorry for the simple questions but I'm just getting my head
>>> > > around all this. I also have some other methods with arguments and
>>> > > have those working thanks to both of you.
>>> >
>>> > > On Mar 23, 9:56 am, Olivier Monaco  wrote:
>>> >
>>> > > > ChrisK,
>>> >
>>> > > > On 23 mar, 10:32, ChrisK  wrote:
>>> >
>>> > > > > Thomas - your solution worked from 6 worked but at first I didn't
>>> > > > > include both pairs of brackets after the function call 
>>> "MyMethod" but
>>> > > > > it turns out they are required. With only one set (i.e. no 
>>> arguments),
>>> > > > > it just doesn't work. I thought that was legal but maybe not.
>>> >
>>> > > > Remember that "@mypackage.MyClass::MyMethod()" is a reference to 
>>> the
>>> > > > function, not a call. The parenthesis allow you to give the full
>>> > > > signature of the method. Java allows two methods to have the same 
>>> name
>>> > > > but different parameters. GWT needs the "full" signature to find 
>>> which
>>> > > > method you want to reference, even is there is only one method with
>>> > > > this name.
>>> >
>>> > > > The second parenthesis are to call the method. If you forgot then, 
>>> you
>>> > > > just obtain the function object and do nothing with it...
>>> >
>>> > > > Olivier
>>> >
>>> >
>>>
>>> a\@a
>>>
>>>

-- 
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 module 'com.mymodule.ui' may need to be (re)compiled

2013-11-25 Thread mustang
Hi,
I am getting the error *GWT module 'com.mymodule.ui' may need to be 
(re)compiled. *I have followed steps 1) Google|Gwt Compile 2) mvn gwt:run. 
I want to access my module via http://localhost:/index.html. I have 
followed the steps mentioned on 
http://stackoverflow.com/questions/5719118/gwt-module-may-need-to-be-recompiled-redux.
 
Can anyone please help to figure this out?

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.


Can you provide a simple Google css for Gwt Grid?

2013-11-25 Thread Tom
In GWT showcase, we often see things like .gwt-TextBox, .gwt-Button that is 
the Google style, but I didn't see .gwt-Grid

Can you provide a simeple css for .gwt-Grid?

I need a bold header & a border for it, also it will be good for getting 
different background for odd & even row in Grid?

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


DataGrid with SingleSelection

2013-11-25 Thread jaga
The right way to manage selection is using a SelectionManager. Try the 
SingleSelectionManager. 

The keyboard selection is something a little different. I actually think 
keyboard selection in GWT is fairly broken. The boundToSelection setting never 
seemed to be useful to me. In any case if you enable keyboard selection the 
cells and rows have an annoying 'third' state. This makes styling difficult 
when attempting clearly illustrate a row's selection state.

Jaga

-- 
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 DatePicker in CellTable

2013-11-25 Thread jaga
Perhaps you can override the DatePickerCell's FieldUpdater() method? 

I realised I hadn't been crystal clear in my answer to 2). Of course once the 
user has picked a date the cell's value has changed.  You may have too store 
the old value and manually update the DateCellpPicker's value.

-- 
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: DataGrid with SingleSelection

2013-11-25 Thread Manuel
I changed my Code. I still use the SingleSelectionModel but changed 
KeyboardSelectionPolicyis to ENABLED. 
I only enabled it to get Up-/Down-Key events to  change the selectedObject 
in the SelectionModel via Keyboard. I also changed my Style, so I dont see 
the KeyboardSelection. Thats just what I need and it works really well.
The boundToSelection caused the problems.

Regards,
Manuel

-- 
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: Can you provide a simple Google css for Gwt Grid?

2013-11-25 Thread Manuel
Do you mean the datagrid?
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/cellview/client/DataGrid.css?r=10228

Regards,
Manuel

Am Montag, 25. November 2013 15:19:22 UTC+1 schrieb Tom:
>
> In GWT showcase, we often see things like .gwt-TextBox, .gwt-Button that 
> is the Google style, but I didn't see .gwt-Grid
>
> Can you provide a simeple css for .gwt-Grid?
>
> I need a bold header & a border for it, also it will be good for getting 
> different background for odd & even row in Grid?
>

-- 
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 use interface CssResource in Utility class (GWT/ GWTP)?

2013-11-25 Thread Tom


I have

public interface MyResource extends ClientBundle{
@NotStrict
@Source("/myResource.css")
MyCssResource css();
}
public interface MyCssResource extends CssResource {
  String gridEvenRow();
  String gridOddRow();
   more styling here
}

in TestView.java

@UiField MyResource res;
@Inject
public TestView(final Binder binder) {
widget = binder.createAndBindUi(this);
res.css().ensureInjected();
}

In TestPresenter.java, I can style Grid without any problem.

for (int i = 1; i < myGrid.getRowCount(); i++) {
if((i%2) == 0){
  myGrid.getRowFormatter().addStyleName(i, 
getView().getRes().css().gridEvenRow());
}
else{
  myGrid.getRowFormatter().addStyleName(i, 
getView().getRes().css().gridOddRow());
}
}

But I don't want to repeat this code every time I initialize a Grid. So I 
want to put this code into a Utility class so that I can use it by just 1 
line of code. Utility.formatGridOddEvenRow(myGrid);

Here is code in Utility

public class Utility {

public static MyResource res;
public Utility(){
 res.css().ensureInjected();
}

public static void formatGridOddEvenRow(Grid grid){
for (int i = 1; i < grid.getRowCount(); i++) {
if((i%2) == 0){
grid.getRowFormatter().addStyleName(i, res.css().gridEvenRow());
}
else{
grid.getRowFormatter().addStyleName(i, res.css().gridOddRow());
}
}
}
}

However, it got run-time error [ERROR] - Uncaught exception escaped ? or 
some kind of error i don't know.

so, How to use interface MyCssResource in Utility class (GWT/ GWTP)?

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