Re: Using JsInterop to create JS object literals

2022-06-28 Thread Michael Conrad
try adding name = "Object" so that it uses an empty javascript Object as
the wrapped item.

I found this via Googling:

@JsType(namespace = JsPackage.GLOBAL, isNative = true, name = "Object")
public class MyPluginConfig {
@JsProperty public void set(String str);
@JsProperty public String get();
...
}

Ref: https://stackoverflow.com/a/36329387/12407701


On Tue, Jun 28, 2022 at 6:24 PM Nicolas Chamouard 
wrote:

> Yes, it does not change anything :
>
> @JsType(*isNative*=*true*, *namespace* = JsPackage.*GLOBAL*)
>
> *public* *class* OptionOverrides {
>
>
> @JsConstructor
>
> *public* OptionOverrides() {}
>
>
>
> @JsProperty
>
> *public* *native* String getInitialView();
>
> @JsProperty
>
> *public* *native* *void* setInitialView(String initialView);
>
> }
>
>
> Still the same error : *$wnd.OptionOverrides is not a constructor*
>
> Le mardi 28 juin 2022 à 23:27:08 UTC+2, m.conr...@gmail.com a écrit :
>
>> Have you tried giving the class a constructor?
>>
>>
>> On Tue, Jun 28, 2022 at 4:04 PM Nicolas Chamouard <
>> ncham...@alara-group.fr> wrote:
>>
>>> Hello,
>>>
>>> I am using JsInterop to integrate FullCalendar to my GWT application.
>>> As described here https://fullcalendar.io/docs/initialize-globals, I am
>>> supposed to create an object literal and pass it to the Calendar()
>>> constructor.
>>>
>>> I have managed to create this class :
>>>
>>> @JsType(*namespace* = JsPackage.*GLOBAL*)
>>>
>>> *public* *class* OptionOverrides {
>>>
>>>
>>> @JsProperty
>>>
>>> *public* *native* String getInitialView();
>>>
>>> @JsProperty
>>>
>>> *public* *native* *void* setInitialView(String initialView);
>>>
>>> }
>>>
>>> It works but the FullCalendar complains about all the Java Object stuff
>>> that is translated to javascript : equals(), hashCode(), etc
>>>
>>> I have tried to add* isNative=true* to my class, but in this case i
>>> cannot instantiate it in Java (error : $wnd.OptionOverrides is not a
>>> constructor)
>>>
>>> Is there an other way to do this, am I missing something here ?
>>>
>>> Thanks
>>>
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "GWT Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to google-web-tool...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/google-web-toolkit/a03c881a-48d4-4892-9fae-7719bc9a57b8n%40googlegroups.com
>>> 
>>> .
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-web-toolkit/4d8099ea-3a37-4026-b459-f228e35ca59bn%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/CAFHWztzapXtRGkSs1foFVkDQBv1bgn-sk70%3D%2BCyokKGJ1Y6AQA%40mail.gmail.com.


Re: Using JsInterop to create JS object literals

2022-06-28 Thread Nicolas Chamouard
Yes, it does not change anything : 

@JsType(*isNative*=*true*, *namespace* = JsPackage.*GLOBAL*)

*public* *class* OptionOverrides {


@JsConstructor

*public* OptionOverrides() {}



@JsProperty

*public* *native* String getInitialView();

@JsProperty

*public* *native* *void* setInitialView(String initialView);

}


Still the same error : *$wnd.OptionOverrides is not a constructor*

Le mardi 28 juin 2022 à 23:27:08 UTC+2, m.conr...@gmail.com a écrit :

> Have you tried giving the class a constructor?
>
>
> On Tue, Jun 28, 2022 at 4:04 PM Nicolas Chamouard  
> wrote:
>
>> Hello,
>>
>> I am using JsInterop to integrate FullCalendar to my GWT application.
>> As described here https://fullcalendar.io/docs/initialize-globals, I am 
>> supposed to create an object literal and pass it to the Calendar() 
>> constructor.
>>
>> I have managed to create this class : 
>>
>> @JsType(*namespace* = JsPackage.*GLOBAL*)
>>
>> *public* *class* OptionOverrides {
>>
>>
>> @JsProperty
>>
>> *public* *native* String getInitialView();
>>
>> @JsProperty
>>
>> *public* *native* *void* setInitialView(String initialView);
>>
>> }
>>
>> It works but the FullCalendar complains about all the Java Object stuff 
>> that is translated to javascript : equals(), hashCode(), etc
>>
>> I have tried to add* isNative=true* to my class, but in this case i 
>> cannot instantiate it in Java (error : $wnd.OptionOverrides is not a 
>> constructor)
>>
>> Is there an other way to do this, am I missing something here ?
>>
>> Thanks
>>
>>
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "GWT Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-web-tool...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-web-toolkit/a03c881a-48d4-4892-9fae-7719bc9a57b8n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/4d8099ea-3a37-4026-b459-f228e35ca59bn%40googlegroups.com.


Re: Using JsInterop to create JS object literals

2022-06-28 Thread Michael Conrad
Have you tried giving the class a constructor?


On Tue, Jun 28, 2022 at 4:04 PM Nicolas Chamouard 
wrote:

> Hello,
>
> I am using JsInterop to integrate FullCalendar to my GWT application.
> As described here https://fullcalendar.io/docs/initialize-globals, I am
> supposed to create an object literal and pass it to the Calendar()
> constructor.
>
> I have managed to create this class :
>
> @JsType(*namespace* = JsPackage.*GLOBAL*)
>
> *public* *class* OptionOverrides {
>
>
> @JsProperty
>
> *public* *native* String getInitialView();
>
> @JsProperty
>
> *public* *native* *void* setInitialView(String initialView);
>
> }
>
> It works but the FullCalendar complains about all the Java Object stuff
> that is translated to javascript : equals(), hashCode(), etc
>
> I have tried to add* isNative=true* to my class, but in this case i
> cannot instantiate it in Java (error : $wnd.OptionOverrides is not a
> constructor)
>
> Is there an other way to do this, am I missing something here ?
>
> Thanks
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-web-toolkit/a03c881a-48d4-4892-9fae-7719bc9a57b8n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/CAFHWztz%2Bs1cvtpEM341n0RiYhEstQ-iu5BUAvjC0jk4WnoU8ug%40mail.gmail.com.


Using JsInterop to create JS object literals

2022-06-28 Thread Nicolas Chamouard
Hello,

I am using JsInterop to integrate FullCalendar to my GWT application.
As described here https://fullcalendar.io/docs/initialize-globals, I am 
supposed to create an object literal and pass it to the Calendar() 
constructor.

I have managed to create this class : 

@JsType(*namespace* = JsPackage.*GLOBAL*)

*public* *class* OptionOverrides {


@JsProperty

*public* *native* String getInitialView();

@JsProperty

*public* *native* *void* setInitialView(String initialView);

}

It works but the FullCalendar complains about all the Java Object stuff 
that is translated to javascript : equals(), hashCode(), etc

I have tried to add* isNative=true* to my class, but in this case i cannot 
instantiate it in Java (error : $wnd.OptionOverrides is not a constructor)

Is there an other way to do this, am I missing something here ?

Thanks



-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/a03c881a-48d4-4892-9fae-7719bc9a57b8n%40googlegroups.com.


Re: Install GWT plugin for Firefox26

2022-06-28 Thread Thomas Broyer
Well it should be downloadable at 
https://dl-ssl.google.com/gwt/plugins/firefox/gwt-dev-plugin.xpi (link from 
the error page that should appear in Firefox; copy/paste to another browser 
for download, then install it in Firefox)

On Tuesday, June 28, 2022 at 8:17:32 PM UTC+2 Ben Shapiro wrote:

> We have the gwt-dev-plugin-1.26-rc1.xpi plugin here in our office. I am 
> happy to give you a copy if you want.  Then you can manually install it on 
> your old version of Firefox.
>
> You can reach me at bshapiro @ qvera.com.
>
> Thanks.
>
> On Friday, June 24, 2022 at 3:29:44 AM UTC-6 dis0...@gmail.com wrote:
>
>> I maintain the (old) application with the GWT part. To run the system 
>> locally (bugs fixing or minor code changes) I need the FF26 - and the GWT 
>> plugin.
>> Each time I have to setup my machine for the task, I install the FF26 and 
>> the GWT plugin. No problems in the past. But this year I get the error 
>> while doing it:
>>
>> Secure Connection Failed
>> An error occurred during a connection to www.gwtproject.org. Cannot 
>> communicate securely with peer: no common encryption algorithm(s). (Error 
>> code: ssl_error_no_cypher_overlap) 
>>
>> How can I install the GWT plugin on my FF26 browser?
>>
>> Thanks!
>>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/5ed6f7fd-c2e0-42e5-99f5-ef3817110c8bn%40googlegroups.com.


Re: Install GWT plugin for Firefox26

2022-06-28 Thread 'Ben Shapiro' via GWT Users
We have the gwt-dev-plugin-1.26-rc1.xpi plugin here in our office. I am 
happy to give you a copy if you want.  Then you can manually install it on 
your old version of Firefox.

You can reach me at bshapiro @ qvera.com.

Thanks.

On Friday, June 24, 2022 at 3:29:44 AM UTC-6 dis0...@gmail.com wrote:

> I maintain the (old) application with the GWT part. To run the system 
> locally (bugs fixing or minor code changes) I need the FF26 - and the GWT 
> plugin.
> Each time I have to setup my machine for the task, I install the FF26 and 
> the GWT plugin. No problems in the past. But this year I get the error 
> while doing it:
>
> Secure Connection Failed
> An error occurred during a connection to www.gwtproject.org. Cannot 
> communicate securely with peer: no common encryption algorithm(s). (Error 
> code: ssl_error_no_cypher_overlap) 
>
> How can I install the GWT plugin on my FF26 browser?
>
> Thanks!
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/7145216a-739c-4826-b424-424c750f8a83n%40googlegroups.com.


Re: What are legal "user.agent=" values?

2022-06-28 Thread mmo
For the sake of others running into the same issue: 

I was able to fix the the above issue causing the error "Value 'ie8' in not 
a valid value for property 'user.agent'" by providing my own version of the 
".../com/sencha/gxt/core/Core.gwt.xml"-file (the original is in 
gxt-4.0.2.jar) in which I commented away the outdated stuff following the 
" " comment.

But only to now getting stuck with: 
...
[INFO] --- gwt-maven-plugin:2.10.0:compile (default) @ zhquest-web ---
[INFO] Compiling module ch.zh.ksta.zhquest.ZHQuestWebDevelopment
[INFO] [ERROR] Unexpected internal compiler error
[INFO] java.lang.IllegalArgumentException
[INFO]  at org.objectweb.asm.ClassVisitor.(Unknown Source)
[INFO]  at org.objectweb.asm.ClassVisitor.(Unknown Source)
[INFO]  at 
com.google.gwt.dev.javac.BytecodeSignatureMaker$CompileDependencyVisitor.(BytecodeSignatureMaker.java:59)
[INFO]  at 
com.google.gwt.dev.javac.BytecodeSignatureMaker.visitCompileDependenciesInBytecode(BytecodeSignatureMaker.java:227)
[INFO]  at 
com.google.gwt.dev.javac.BytecodeSignatureMaker.getCompileDependencySignature(BytecodeSignatureMaker.java:209)
[INFO]  at 
com.google.gwt.dev.javac.CompiledClass.getSignatureHash(CompiledClass.java:166)
[INFO]  at 
com.google.gwt.dev.javac.Dependencies$Ref.(Dependencies.java:41)
[INFO]  at 
com.google.gwt.dev.javac.Dependencies$Ref.(Dependencies.java:36)
[INFO]  at 
com.google.gwt.dev.javac.Dependencies.resolve(Dependencies.java:100)
[INFO]  at 
com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:349)
[INFO]  at 
com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:532)
[INFO]  at 
com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:464)
[INFO]  at 
com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:423)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:210)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:190)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:131)
[INFO]  at com.google.gwt.dev.Compiler.compile(Compiler.java:192)
[INFO]  at com.google.gwt.dev.Compiler.compile(Compiler.java:143)
[INFO]  at com.google.gwt.dev.Compiler.compile(Compiler.java:132)
[INFO]  at com.google.gwt.dev.Compiler$1.run(Compiler.java:110)
[INFO]  at 
com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)
[INFO]  at 
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)
[INFO]  at com.google.gwt.dev.Compiler.main(Compiler.java:113)

WTF?

On Tuesday, June 28, 2022 at 6:18:07 PM UTC+2 mmo wrote:

> Thanks for responding and clarifying this! 
>
> Unfortunately, we are using some library which obviously tries to set an 
> outdated value and so I now end up in:
> ...
> [INFO] --- gwt-maven-plugin:2.10.0:compile (default) @ zhquest-web ---
> [INFO] Loading inherited module 'ch.zh.ksta.zhquest.ZHQuestWebDevelopment'
> [INFO]Loading inherited module 'ch.zh.ksta.zhquest.ZHQuestWeb'
> [INFO]   Loading inherited module 'com.sencha.gxt.ui.GXT'
> [INFO]  Loading inherited module 'com.sencha.gxt.data.Data'
> [INFO] Loading inherited module 'com.sencha.gxt.core.Core'
> [INFO][ERROR] Line 108: Value 'ie8' in not a valid value 
> for property 'user.agent'
>
> :-(
>
> Too many libraries in use here...
>
> On Monday, June 27, 2022 at 4:58:25 PM UTC+2 Jens wrote:
>
>> So - according to the release notes which mention “FF”, “Chrome”, “IE” 
>>> (for IE11), “Edge”, and “Safari” as new user.agent values I changed 
>>> that to "Chrome, Edge". 
>>>
>>
>> Not these values are for running HTMLUnit, not for GWT compiler.
>>
>>
>> Thus my question: what *are* the new valid user.agent values? Do they 
>>> have to be in all-lowercase (as the old ones) or what exactly can or does 
>>> one have to enter here? 
>>>
>>
>> GWT 2.10.0 user.agent values are 
>>
>>- gecko1_8: Used for FireFox and IE 11
>>- safari: Used for everything based on WebKit (Safari, Chrome, Edge, 
>>Opera, ...)
>>
>>
>>
>> -- J.
>>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/44830087-2e16-43a5-8db0-34565876eaa2n%40googlegroups.com.


Re: What are legal "user.agent=" values?

2022-06-28 Thread mmo
Thanks for responding and clarifying this! 

Unfortunately, we are using some library which obviously tries to set an 
outdated value and so I now end up in:
...
[INFO] --- gwt-maven-plugin:2.10.0:compile (default) @ zhquest-web ---
[INFO] Loading inherited module 'ch.zh.ksta.zhquest.ZHQuestWebDevelopment'
[INFO]Loading inherited module 'ch.zh.ksta.zhquest.ZHQuestWeb'
[INFO]   Loading inherited module 'com.sencha.gxt.ui.GXT'
[INFO]  Loading inherited module 'com.sencha.gxt.data.Data'
[INFO] Loading inherited module 'com.sencha.gxt.core.Core'
[INFO][ERROR] Line 108: Value 'ie8' in not a valid value 
for property 'user.agent'

:-(

Too many libraries in use here...

On Monday, June 27, 2022 at 4:58:25 PM UTC+2 Jens wrote:

> So - according to the release notes which mention “FF”, “Chrome”, “IE” 
>> (for IE11), “Edge”, and “Safari” as new user.agent values I changed that 
>> to "Chrome, Edge". 
>>
>
> Not these values are for running HTMLUnit, not for GWT compiler.
>
>
> Thus my question: what *are* the new valid user.agent values? Do they have 
>> to be in all-lowercase (as the old ones) or what exactly can or does one 
>> have to enter here? 
>>
>
> GWT 2.10.0 user.agent values are 
>
>- gecko1_8: Used for FireFox and IE 11
>- safari: Used for everything based on WebKit (Safari, Chrome, Edge, 
>Opera, ...)
>
>
>
> -- J.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/c1a46cb7-c0ac-48a7-bae5-339f74c1b816n%40googlegroups.com.