[gwt-dev] Librairies with same package name

2020-05-07 Thread Yann
Hi,

within my project, I use the library commons-digester-1.8

Following a need, I now use the library gwt-dev-2.3.0

When launching the application I get this error : 

Exception caught while initializing context 
java.lang.NoSuchMethodError: 
org/apache/commons/digester/xmlrules/DigesterLoader.createDigester(Lorg/xml/sax/InputSource;)Lorg/apache/commons/digester/Digester;
  at 
fr.cnasea.commons.webfwk.util.config.lecture.XMLDigesterReader.getConfig(XMLDigesterReader.java:157)
  at 
fr.cnasea.commons.webfwk.util.config.CnaseaAppConfigurator.configure(CnaseaAppConfigurator.java:76)
  at 
fr.cnasea.osiris.commons.gwt.server.Config.contextInitialized(Config.java:47)


It turns out that the two libraries have the same class in the same package 
with the same method :

[image: img.png] 







Package : org.apache.commons.digester.xmlrules
Class : DigesterLoader
Method : createDigester

Since the use of gwt-dev, it is the method of this library which is called.
I tried to use newer versions of gwt-dev but the environment makes it not 
possible

How can I fix it?

Thanks for your help,
Yann

-- 
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/1232fe4d-891c-48f2-8e3e-c8dcad6bd7de%40googlegroups.com.


Re: Trailing _0 in variable names and -generateJsInteropExports flag

2016-09-26 Thread Yann Vo
Hello Thomas, thanks for giving it a try! Indeed, it works! Now I feel so 
stupid! :(

Apparently some pieces must have been remaining from my previous builds... 
anyway... Jens and Thomas, thanks again for your time and my apologies for 
the noise!

-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Trailing _0 in variable names and -generateJsInteropExports flag

2016-09-26 Thread Yann Vo
BTW, of course, I could add the isNative=true and define my messages "DTOs" 
in pure JavaScript.
The goal of my issue and this message were not to get a working solution 
but rather to avoid a nasty bug in 2.8.0 final...

-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Trailing _0 in variable names and -generateJsInteropExports flag

2016-09-26 Thread Yann Vo
Hello,

I just raised https://github.com/gwtproject/gwt/issues/9431 for which I had 
a quick rely (thanks for that!) but... it was closed and flagged invalid.

Rather than polluting the bug database further, I open this thread (which I 
would have done initially if I had not considered this behavior as a 
regression wrt 2.8beta1).

Now my question: I have done the suggested change: I added 
-generateJsInteropExports in my compile command, but it does not seem to do 
any good...

See 
https://github.com/jandsu/gwt-webworker/commit/37e4751bf5c1a914a65df8c8da9e5d311f55e78f

Whether I add -nogenerateJsInteropExports or -generateJsInteropExports does 
not seem to change anything (and if I make an intentional typo 
-nogenerateJsInteropExportypos, the compiler yells which proves that my 
flags are properly passed to the compiler).

After some research I am still stuck... Can it be that my custom linker (to 
make the generated code work in a web worker) is the cause of the problem?

Thanks in advance for your attention!

Best regards

-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: AutoBeanCodexEncode does not encode numbers when zero is the value

2016-09-21 Thread Yann Vo
For what it's worth, more than 3 years later... one workaround to have zero 
values serialized (along with the key) as you ask for is to use an Integer 
rather than an int.
This is the JavaScript semantic (anything can be undefined or null) and 
then it behaves as other JSON serializers to omit null value but not zero 
values.

Hope this helps if anybody ever reads this...

Le vendredi 19 juillet 2013 23:56:24 UTC+2, Pedro Lamarão a écrit :
>
>
>
> Em sexta-feira, 19 de julho de 2013 16h33min26s UTC-3, AJ escreveu:
>>
>> The AutoBean page 
>>  states
>> Goals
>>
>>- Decrease boilerplate in model-rich applications
>>- Support easy encoding of AutoBeans to JSON structures
>>- Provide support code for common operations on data-model objects
>>- *Usable in non-GWT (e.g. server) code*
>>
>> Of course, that could mean usable in non-GWT Java code, but it doesn't 
>> say that :)
>>
>
>
> It is usable, as intended.
> It is just not "decodable by unawares JSON parser" as you initially 
> expected.
> A Java machine is not needed to decode this representation.
> You just need to decode it according with its protocol.
>
> --
>  P. 
>

-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Deformed DialogBox

2013-03-11 Thread yann
Hello, 

I have the same problem. You found the solution ? Or anyone !!

Thx


Le jeudi 7 juillet 2011 13:50:56 UTC+2, Tiago Rinck Caveden a écrit :
>
> Hello all,
>
> I'm a newbie in GWT and I am struggling to create a dialog box using 
> UIBinder. I'm sorry if this has already been discussed but I couldn't find 
> it.
>
> This is the graphical result of my dialog :-(
> [image: Screenshot.png]
>
> The code that I'm doing is the following.
> First, the java code for the view:
>
> public class DebtorCreationDialog extends DialogBox {
>
> @UiTemplate("DebtorCreationDialog.ui.xml")
> interface DebtorCreationDialogUiBinder extends
> UiBinder {
> }
> 
> private static DebtorCreationDialogUiBinder uiBinder = GWT
> .create(DebtorCreationDialogUiBinder.class);
> 
> @UiField TextBox debtorSurname;
> 
> @UiField TextBox debtorGivenName;
>
> public DebtorCreationDialog() {
> uiBinder.createAndBindUi(this);
> setSize("400px","300px");
> }
>
> public String getDebtorSurname() {
> return debtorSurname.getText();
> }
>
>
> public void setDebtorSurname(String surname) {
> debtorSurname.setText(surname);
> }
>
>
> public String getDebtorGivenName() {
> return debtorGivenName.getText();
> }
>
> public void setDebtorGivenName(String givenName) {
> debtorGivenName.setText(givenName);
> }
> }
>
>
> Here, the UI XML code for the binder:
>
>  xmlns:g="urn:import:com.google.gwt.user.client.ui">
> 
>  glassEnabled="true">
> 
> Insertion de 
> nouveau débiteur
> 
> 
> 
> 
> 
> Nom 
> du débiteur
>  ui:field="debtorSurname" />
> 
> 
> 
> 
>  key="mandates.debtorGivenName">Prénom du débiteur
>  ui:field="debtorGivenName"/>
> 
> 
> 
> 
> 
>  
>
>
> Does anyone have any idea of what am I doing wrong?
>
> Two other questions I'd like to ask, if I manage to solve the main problem 
> above:
>
>- Must I do the setSize in the java code for the dialog not to be 
>tiny? I tried adding the attributes length and width to g:DialogBox but 
>that didn't work. 
>- Can't I center the dialog by setting some attribute in the XML? I 
>saw the center() method, but I'd rather do it in the XML if possible.
>
>
> Thank you.
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Cancel CellList selection

2011-11-10 Thread Yann
Thomas,

Overriding SingleSelectionModel.setSelected() works like a charm.
It's so obvious I really should have figured it by myself...
Thanks a lot !

-- 
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: Cancel CellList selection

2011-11-10 Thread Yann
Apologies Thomas, "onCellPreview" is actually called !
I didn't find yet which native event I should cancel, but I'm working
on it...

-- 
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: Cancel CellList selection

2011-11-10 Thread Yann
Hello Thomas,

Thanks a lot for your response but what do you mean by "Try with a
custom CellPreviewEvent.Handler".

I tried :

myCellList.addCellPreviewHandler(new
CellPreviewEvent.Handler(){
@Override
public void onCellPreview(CellPreviewEvent in_event){
System.out.println(in_event);
}
});

But "onCellPreview" is never called !

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



Cancel CellList selection

2011-11-09 Thread Yann
Hello,

Is there a way to cancel a user selection of a row in a "CellList" ?
I can't find something like a "BeforeSelectionHandler" on a
"TabLayoutPanel".
I would like to be able to prompt a message indicating that the
current edited object of the CellList has not been saved if the user
clicks on another cell.
Any idea ?

Thanks.
Yann.

-- 
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: GWT with Seam in Host mode.

2010-06-11 Thread Yann
Hi,

We use the same kind of configuration but we do not try to use Jetty
at all.

This means that we deploy at least the EJB jar with all Seam
components to JBoss, then start JBoss, connect our browser to the
application and finally add the GWT "development mode" parameter into
the URL of the browser.

Starting the DevMode class can be done using the -noserver parameter
to avoid starting Jetty.

Best regards

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



Adding text to GWTGL ??

2010-05-10 Thread yann menesguen
Hello everyone,

I'm using GWTGL to create a 3D coverflow, and i would like to add some
text on each coverflow item.
How could it be possible, do I have to change things on my Texture2D ?
I'm really lost !!

Many thanks

Yann

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



Graphical javascript objects implemented to GWT

2010-03-18 Thread yann menesguen
Hello,

I've a problem : I've got a .js graphical object (coverflow) that I
would like to integrate into a GWT project.
How is it possible with JSNI ? How can I add it into a container to
show it on my browser ?

I'm sorry I'm a new adept of GWT and I don't have all the technical
experience...

Thanks for your help !

-- 
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-tool...@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: Proposal for a compiler optimization parameter allowing a cross-module communication scheme.

2009-04-09 Thread Yann

I am not sure how this helps on the issue I am trying to solve...

You say:

>Then for your central communication, you can use
>JSNI to transfer data between modules

but transferring Java instances between modules is exactly what I am
failing to achieve, due to the zealous compiler optimizations

>or, better yet, have 1 module that inherits the other
>modules & can then provide them with a ServerEventsRouter to use.

the issue then is that my router is then necessarily dependant on all
possibly loaded modules... Not a very nice architecture, is it? (and
quite painful in terms of build time ;-) ).

Thanks anyway for your reply!

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



Proposal for a compiler optimization parameter allowing a cross-module communication scheme.

2009-04-08 Thread Yann

===
Context information
===

In order to handle server "push" events, I am using a pattern
described and used in multiple places: a getEvents() RPC method waits
for up to 30 seconds but returns as soon as an event is received.

The issue is that this pattern eats a browser connection, so that if
two GWT modules (loaded on a given page) do register to server events,
the 2 allowed connections are wasted.

Hence my desire to have a central events receiver/router in the
browser and possibly several GWT modules listening to that router.

===
In the router:
===
public class ServerEventsRouter
{

public static void addServerEventsListener( ServerEventListener
listener )
{
// register the listener in a collection...
}
...

   private static native void createRegisteringFunction() /*-{
$wnd.addServerEventsListener =
@com.foo.gwt.ServerEventsRouter::addServerEventsListener(Lcom/foo/gwt/
events/ServerEventListener;);
}-*/;

...

}

The createRegisteringFunction() needs to be called first somehow...

===
And then, in the client listener:
===

private native void registerServerEventsListener
( ServerEventListener listener )/*-{
$wnd.addServerEventsListener ( listener );
}-*/;

and

   registerServerEventsListener( new ServerEventListener() {
   public void onServerEvent( ServerEvent event ) {
   GWT.log( "Received event", null );
   });


===
The Issue(s)
===
However, as you might expect, this doesn't work. Well, it works for
'hello world' type of functions which not not require parameters...
but the ServerEventListener parameter is not "marshalled" properly.


A. In WEB mode

The ServerEventListener interface is not implemented by any class in
the router module, so that the dispatching function is optimized from:

for ( ServerEvent event : events ) {
for ( ServerEventListener listener : listeners ) {
listener.onServerEvent( event );
}
}

into something like:

for (event$iterator = events.iterator(); event$iterator.hasNext
();) {
dynamicCast(event$iterator.next_0(), 11);
for (listener$iterator = $AbstractList$IteratorImpl(new
AbstractList$IteratorImpl(), this$static.m_listeners); listener
$iterator.i < listener$iterator.this$0.size_0();) {
throwClassCastExceptionUnlessNull($next_1(listener
$iterator));
null.nullMethod();
}
}


B. In HOSTED mode

Presumably in order to match the behaviour of the WEB mode, the
classes in the two modules are loaded from two different class
loaders, so that the implementations of the ServerEventListener are
not seen as such in the router module and any assignment generates a
class cast exception.


===
My proposal
===

Instruct the compiler not to optimize out sub-classes of a specified
type (here ServerEventListener), and have these classes loaded from a
common upstream (i.e. "more global") class loader in Hosted Mode.

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