Friday, December 31, 2021

Last Day, One Last Article in 2021...

@GWT Community: many thanks for all the supports and answers for all my questions!

All the best for GWT / J2CL the best ever Java web browser based framework. Hope to see bigger community for 2022.

One last article for 2021 on the last day in 2021: All Things in 2021 😉😅

https://bit.ly/AllThingsJava2021

Enjoy reading and all the best for 2022!
Lofi

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/ef2de1cf-c489-476a-adfa-0b711d6dde0an%40googlegroups.com.

Sunday, December 12, 2021

HOW TO MAKE MY SMART GWT WEB APP MOBILE

i have challenges with listgrids when it comes to making my mobile application user friendly and the buttons not reducing in size
technology
smart gwt version 6.1
my page is not responsive


--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/CAMjva70Uj75Y4rF_Pt2EPW2j_%3D6WiXhFJDfWXb8MiyvbFb1yhg%40mail.gmail.com.

Wednesday, November 24, 2021

Learn more about our updated Terms of Service

vaughnjjoan@gmail.com

On January 5, 2022, we're making some changes to our Terms of Service. These changes won't affect the way you use Google services, but they'll make it easier for you to understand what to expect from Google — and what we expect from you — as you use our services.

You can review the new terms here. We've also provided a summary of the key changes. At a glance, here's what this update means for you:

  • More clarity on what you can expect from Google and what we expect from you: We're providing more examples to describe the mutually respectful conduct that we expect from all our users. We're also providing more transparency about how we develop, improve, and update our digital content, services, and goods – including more detail about the reasons we make changes and legally-required updates, the advanced notice we provide to you, and your right to withdraw from your contract with us.
  • Legal guarantee: We're summarizing the legal guarantees that you receive under EEA consumer laws when you use our digital content, services, and goods.
  • Withdrawal right: We're providing information about your legal right to withdraw from the terms within 14 days of agreeing to them if you're a consumer based in the European Economic Area (EEA). We're also including a copy of the EU Model Instructions on Withdrawal in case you want to exercise that right.
  • Additional definitions: We're adding more explanatory text to help you understand certain legal concepts that we refer to in our terms, including "commercial guarantee", "legal guarantee", and "lack of conformity".
  • Improved readability: While our terms remain a legal document, we've done our best to make them easier to understand, including reorganizing some topics so that they're easier to find.

If you use Family Link to manage a Google Account for someone else, please take some time to talk to them about these changes.

Thank you for using Google!

Google Ireland Limited, Gordon House, Barrow Street, Dublin 4, Ireland

You have received this email to update you about important changes to Google's Terms of Service.

Sunday, November 14, 2021

Re: Can't upgrade my Gwt 2.4. Where did the "gwt-html5-storage.jar" dissapear?

Thank you so much Thomas, deeply appreciated...

On Sunday, November 14, 2021 at 7:53:35 PM UTC+3 t.br...@gmail.com wrote:
You don't need it anymore: http://www.gwtproject.org/doc/latest/DevGuideHtml5Storage.html
(basically change your imports from com.google.code.gwt.storage to com.google.gwt.storage, there might be other changes needed, I never did such migration myself)

On Sunday, November 14, 2021 at 5:28:38 PM UTC+1 Haluk Acar Güner wrote:
Since the punch cards for the last 40 years, I managed to solve almost all my problems, but miserably failed to upgrade my GWT 2.4 App. Where did the "gwt-html5-storage.jar" dissapear? What is the best strategy to eventually upgrade to 2.9?

Could anyone point me in the right direction please?

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/72364cfb-7701-4ffa-b89a-5b6f29952d7en%40googlegroups.com.

Wednesday, November 3, 2021

Re: Display a list of objects.

I'm not familiar with the material UI.  However, I can see you're missing the "@UiField" on your ListBox declaration.  ie: It should be:
@UiField ListBox canBeusedBy;

Then you call just call "addItem" to add some items into the list.  See http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwListBox for more detail.
On Tuesday, 2 November 2021 at 4:41:25 am UTC+11 tonio....@gmail.com wrote:
Hi,
I've been struggling for days to display a list of objects in an editor using UIBinder.

But I can't figure out which class to use and even less how.

Here are some code snippets:

The UIBinder file
<!-- EventImplEditor.ui.xml file -->
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder
        xmlns:ui="urn:ui:com.google.gwt.uibinder"
        xmlns:m="urn:import:gwt.material.design.client.ui"
        xmlns:ma="urn:import:gwt.material.design.addins.client"
        xmlns:combobox="urn:import:gwt.material.design.addins.client.combobox"
        xmlns:g="urn:import:com.google.gwt.user.client.ui">
   <ui:style>
        .widget {
           margin: 30px;
       }
    </ui:style>
   <m:MaterialDialog ui:field="dialog" width="300px)">
      <m:MaterialContainer ui:field="container" width="300px)" addStyleNames="{style.widget}">
        <m:MaterialPanel>
                <m:MaterialButton  ui:field="exit" text="Exit"/>
        </m:MaterialPanel>
    <m:MaterialPanel>
    <m:MaterialTextBox ui:field="name" label="Name" iconType="FACE" />
    <m:MaterialTextBox ui:field="graphID" label="GraphID" iconType="FACE" />
    </m:MaterialPanel>
    <m:MaterialPanel ui:field="MaterialPanelCombo2">
    </m:MaterialPanel>
    <m:MaterialPanel ui:field="MaterialPanelCombo3">
    </m:MaterialPanel>
    <m:MaterialPanel ui:field="MaterialPanelCombo4">
    </m:MaterialPanel>
    <m:MaterialPanel ui:field="MaterialPanelCombo5">
    </m:MaterialPanel>
    <m:MaterialPanel ui:field="MaterialPanelCombo6">
    </m:MaterialPanel>
    <m:MaterialPanel>
    </m:MaterialPanel>
    <m:MaterialPanel>
    <!-- Here I tried to put List box  but no result -->
    <g:ListBox ui:field="canBeusedBy" />
    </m:MaterialPanel>
      </m:MaterialContainer>
    </m:MaterialDialog>
</ui:UiBinder>





The Editor Java file

package com.lacen.gwt.spot.client.ui.mvp.editors.generated;
 import com.google.gwt.core.client.GWT;
 import com.google.gwt.editor.client.Editor;
 import com.google.gwt.editor.client.SimpleBeanEditorDriver;
 import com.google.gwt.event.dom.client.ClickEvent;
 import com.google.gwt.uibinder.client.UiBinder;
 import com.google.gwt.uibinder.client.UiField;
 import com.google.gwt.uibinder.client.UiHandler;
 import com.google.gwt.user.client.ui.Composite;
 import com.google.gwt.user.client.ui.Widget;
 import com.lacen.event.Event;
 import gwt.material.design.client.ui.MaterialPanel;
 import com.lacen.gwt.spot.client.ui.mvp.editors.ComboBoxEnum;
 import gwt.material.design.client.ui.MaterialDialog;
 import gwt.material.design.client.ui.MaterialTextBox;
 import com.google.gwt.user.client.ui.ListBox;
 import java.util.List;
 import com.lacen.gwt.spot.client.ui.mvp.editors.ListValueSpot;
 import com.lacen.users.Stakeholder;
 import com.lacen.organisation.Action;
 /**
 * Create an editor to describe a event.
 * @author Antonio
 */
 public class EventEditor extends Composite implements Editor<Event> {
      /** The Constant driver. */
      // Editor driver
      private static final EventDriver driver = GWT.create(EventDriver.class);
      /**
      * The Interface EventDriver.
      */
      interface EventDriver extends SimpleBeanEditorDriver<Event, EventEditor> {
      }
      /** The Constant uiBinder. */
      // UiBinder and fields
      private static final EventEditorUiBinder uiBinder = GWT.create(EventEditorUiBinder.class);
      /**
      * The Interface EventEditorUiBinder.
      */
      interface EventEditorUiBinder extends UiBinder<Widget, EventEditor> {
      }
      /** The dialog. */
      @UiField
      MaterialDialog dialog;
      /** The name */
      @UiField
      MaterialTextBox name;
      /** The graphID */
      @UiField
      MaterialTextBox graphID;
      /** The eventStatus */
      @UiField
      MaterialPanel MaterialPanelCombo2;
      ComboBoxEnum<com.lacen.event.HandlingProgress> eventStatus;
      /** The relevance */
      @UiField
      MaterialPanel MaterialPanelCombo3;
      ComboBoxEnum<com.lacen.event.Relevance> relevance;
      /** The status */
      @UiField
      MaterialPanel MaterialPanelCombo4;
      ComboBoxEnum<com.lacen.event.StatusEvent> status;
      /** The detectability */
      @UiField
      MaterialPanel MaterialPanelCombo5;
      ComboBoxEnum<com.lacen.event.Detectability> detectability;
      /** The criticity */
      @UiField
      MaterialPanel MaterialPanelCombo6;
      ComboBoxEnum<com.lacen.event.Criticality> criticity;
      /** The canBeusedBy */
      ListBox canBeusedBy;
      /** The initial object (Event). */
      private Event initialObject;
      /**
      * Instantiates a new Event editor.
      */
      public EventEditor() {
           initWidget(uiBinder.createAndBindUi(this)); //// Create the UI of the Editor.
           eventStatus = new ComboBoxEnum<com.lacen.event.HandlingProgress>("eventStatus", com.lacen.event.HandlingProgress.VALUES);
           MaterialPanelCombo2.add(eventStatus.getComboBox());
           relevance = new ComboBoxEnum<com.lacen.event.Relevance>("relevance", com.lacen.event.Relevance.VALUES);
           MaterialPanelCombo3.add(relevance.getComboBox());
           status = new ComboBoxEnum<com.lacen.event.StatusEvent>("status", com.lacen.event.StatusEvent.VALUES);
           MaterialPanelCombo4.add(status.getComboBox());
           detectability = new ComboBoxEnum<com.lacen.event.Detectability>("detectability", com.lacen.event.Detectability.VALUES);
           MaterialPanelCombo5.add(detectability.getComboBox());
           criticity = new ComboBoxEnum<com.lacen.event.Criticality>("criticity", com.lacen.event.Criticality.VALUES);
           MaterialPanelCombo6.add(criticity.getComboBox());
           dialog.open(); //// Visualize the editor.
      }
      /**
      * Initialize and fill in the editors fields with the Event properties.
      *
      * @param obj the Event.
      */
      public void edit(Event obj) {
           this.initialObject = obj;
           driver.initialize(this); //// Initialize the driver
           driver.edit(this.initialObject); //// Fill the editor with the object
      }
      /**
      * Exit the editor closing the dialog.
      *
      * @param event the event
      */
      @UiHandler("exit")
      public void onExitSelect(ClickEvent event) {
           dialog.close();
      }
 }


In my Event object model, "canBeusedBy" is the name of a "Stakeholder" list that I want to display in the ListBox.

When I call my editor everything is displayed but not the list?  Here after a copy of the editor displayed:
Editor.PNG

Do you have an idea, a specific example with a list of objects.

Thank you for your help.

Antonio
 

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/88ef9293-7280-45d8-9690-439a7131817an%40googlegroups.com.

Tuesday, October 26, 2021

Pb with MaterialListValueBox

Hi all,

I need to create an Editor for an object. This object contains an attribute
List<Stakeholder> canBeUsedBy. I have the method getCanBeUsedBywhich return the list.

In my Editor java side,I set:
@UIField
MaterialListValueBox<List<Stakeholder>> canBeUsedBy;


in my Editor UIBinder side:
<m:MaterialListValueBox ui:field=" canBeUsedBy " placeholder=" canBeUsedBy " />

How can I do to have the String value in the list, because the Stakeholder class just have a method returning a String ans it's that string that I want in my list: The method is getName().

Thanks for your help.

Antonio



--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/CAKULUq_78vFAQD%3DW7eEH1kDrps7T4HT1KPobRJviGjJtam7y%3DA%40mail.gmail.com.

Friday, October 15, 2021

Re: GWT 2.9 compatiblity with GXT 2.3.1a

The short answer is yes, you need to do this for each such bug you find, and if you have a commercial license, you need to do it yourself - the only way to distribute fixes for things like this is under GPLv2, which may not be something you want in your project as a dependency.

If this is a gwt compiler error, editing bytecode is not sufficient, as GWT consumes the source each time it builds. You probably should also update the bytecode if you update the source files. Only the file in question needs to be edited in this way (HtmlEditor, ListField are the ones I know of).

Do not replace with a .toString() call, in case the model holds an explicit null value, casting to object will use StringBuilder.append(Object), which will be null safe, or pick some other null safe approach.

Sencha's release policy at the time was that they supported the last major release - this means that until GXT 4 was released, GXT 2 was supported, and got updates, but once 4.0.0 was available, GXT 2 was no longer supported. To my knowledge, GXT isn't receiving any updates at all any more. Combined with the license issues, it is hard to do more than discuss the possible fixes and how they could be applied.

On Thursday, October 14, 2021 at 11:08:14 PM UTC-5 RT wrote:
Yes, I agree changing the line in the GXT 2.3.1a ListField.java file from:
sb.append(m.get(prop));

To this:
sb.append(m.get(prop).toString());

Would seemingly fix the issue. However I would then need to compile this to a .class file to replace the one in the gxt-2.3.1a-gwt22,jar that I reference in my project and therein lies the problem.  Must I track down all the dependencies for GXT and GWT so that I can do a full recompile from source just for this one line change? Or can I use a java byte code editor to simply insert the .toString() at the right place in the .class file for ListField? I'm not sure how to do that, so I'll have to read up on byte code editors as that seems easier than a full recompile - if I knew where and how to inject the .toString()

However if the OP already had GXT 2.3.1a working with GWT 2.8.2 then I'm guessing they already had to do this operation, and may be able to provide some insight. Unless they were using Java 7 and this is only a Java 8 issue perhaps.

On Wednesday, October 13, 2021 at 5:48:47 PM UTC-5 nilo...@gmail.com wrote:
The updated JDT probably caused this (so that gwt 2.8.2 can support Java 8 language features) - at a guess you'll need to cast the result of m.get(prop) on that line to Object so that StringBuilder.append correctly uses the Object overload.

On Wednesday, October 13, 2021 at 3:41:52 PM UTC-5 RT wrote:
Hi, I am attempting to update to GWT 2.8.2 from 2.7.0 using GXT 2.3.1a however I get the following error:
Errors in 'jar:file:/war/WEB-INF/lib/gxt-2.3.1a-gwt22.jar!/com/extjs/gxt/ui/client/widget/form/ListField.java'
         Line 322: The method append(boolean) is ambiguous for the type StringBuffer

How were you able to get 2.8.2 working with 2.3.1a?  I'm running Java 8 with compiler compliance set to 1.7

On Thursday, June 11, 2020 at 7:13:31 AM UTC-5 priyako...@gmail.com wrote:
Hi All,

Currently our application has below versions -
1. GWT - 2.8.2
2. GXT - 2.3.1a

We are planning to upgrade GWT from 2.8.2 to 2.9.0. But have query regarding its compatibility towards GXT 2.3.1a.
I have gone through GXT Compatiblity version matrix page, but found nowhere officially mentioned that its supported.
So can you please confirm that GWT 2.9 is officially supported with GXT 2.3.1a?

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/82fcc7c6-9397-470c-b76e-0c29dbf7ccdan%40googlegroups.com.

Thursday, October 14, 2021

Re: GWT 2.9 compatiblity with GXT 2.3.1a

Yes, I agree changing the line in the GXT 2.3.1a ListField.java file from:
sb.append(m.get(prop));

To this:
sb.append(m.get(prop).toString());

Would seemingly fix the issue. However I would then need to compile this to a .class file to replace the one in the gxt-2.3.1a-gwt22,jar that I reference in my project and therein lies the problem.  Must I track down all the dependencies for GXT and GWT so that I can do a full recompile from source just for this one line change? Or can I use a java byte code editor to simply insert the .toString() at the right place in the .class file for ListField? I'm not sure how to do that, so I'll have to read up on byte code editors as that seems easier than a full recompile - if I knew where and how to inject the .toString()

However if the OP already had GXT 2.3.1a working with GWT 2.8.2 then I'm guessing they already had to do this operation, and may be able to provide some insight. Unless they were using Java 7 and this is only a Java 8 issue perhaps.

On Wednesday, October 13, 2021 at 5:48:47 PM UTC-5 nilo...@gmail.com wrote:
The updated JDT probably caused this (so that gwt 2.8.2 can support Java 8 language features) - at a guess you'll need to cast the result of m.get(prop) on that line to Object so that StringBuilder.append correctly uses the Object overload.

On Wednesday, October 13, 2021 at 3:41:52 PM UTC-5 RT wrote:
Hi, I am attempting to update to GWT 2.8.2 from 2.7.0 using GXT 2.3.1a however I get the following error:
Errors in 'jar:file:/war/WEB-INF/lib/gxt-2.3.1a-gwt22.jar!/com/extjs/gxt/ui/client/widget/form/ListField.java'
         Line 322: The method append(boolean) is ambiguous for the type StringBuffer

How were you able to get 2.8.2 working with 2.3.1a?  I'm running Java 8 with compiler compliance set to 1.7

On Thursday, June 11, 2020 at 7:13:31 AM UTC-5 priyako...@gmail.com wrote:
Hi All,

Currently our application has below versions -
1. GWT - 2.8.2
2. GXT - 2.3.1a

We are planning to upgrade GWT from 2.8.2 to 2.9.0. But have query regarding its compatibility towards GXT 2.3.1a.
I have gone through GXT Compatiblity version matrix page, but found nowhere officially mentioned that its supported.
So can you please confirm that GWT 2.9 is officially supported with GXT 2.3.1a?

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/907adbec-b7e9-4ff5-98f5-adfa86159679n%40googlegroups.com.

Wednesday, October 13, 2021

Re: GWT 2.9 compatiblity with GXT 2.3.1a

The updated JDT probably caused this (so that gwt 2.8.2 can support Java 8 language features) - at a guess you'll need to cast the result of m.get(prop) on that line to Object so that StringBuilder.append correctly uses the Object overload.

On Wednesday, October 13, 2021 at 3:41:52 PM UTC-5 RT wrote:
Hi, I am attempting to update to GWT 2.8.2 from 2.7.0 using GXT 2.3.1a however I get the following error:
Errors in 'jar:file:/war/WEB-INF/lib/gxt-2.3.1a-gwt22.jar!/com/extjs/gxt/ui/client/widget/form/ListField.java'
         Line 322: The method append(boolean) is ambiguous for the type StringBuffer

How were you able to get 2.8.2 working with 2.3.1a?  I'm running Java 8 with compiler compliance set to 1.7

On Thursday, June 11, 2020 at 7:13:31 AM UTC-5 priyako...@gmail.com wrote:
Hi All,

Currently our application has below versions -
1. GWT - 2.8.2
2. GXT - 2.3.1a

We are planning to upgrade GWT from 2.8.2 to 2.9.0. But have query regarding its compatibility towards GXT 2.3.1a.
I have gone through GXT Compatiblity version matrix page, but found nowhere officially mentioned that its supported.
So can you please confirm that GWT 2.9 is officially supported with GXT 2.3.1a?

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/fc89baa3-122c-4f34-a1dd-278e64980bbbn%40googlegroups.com.

Re: porting older app from 2.5.0 to 2.8.2

Were you able to resolve the error in ListField?  I have the same error trying to get GWT 2.8.2 working with GXT 2.3.1a.

On Sunday, August 11, 2019 at 2:14:35 PM UTC-5 Blaze wrote:
Hi all,

I was wondering if some one can help me on this one...
I have a older app which uses gxt.2.2.5-gwt22.jar, and when compiling with gwt 2.8.2 Im getting some errors like this:

 [ERROR] Errors in 'jar:file:/xxxxx/gxt-2.2.5-gwt22.jar!/com/extjs/gxt/ui/client/widget/form/ListField.java'
     [java]                [ERROR] Line 322: The method append(boolean) is ambiguous for the type StringBuffer


  [ERROR] Errors in 'jar:file:/xxxxxx/gxt-2.2.5-gwt22.jar!/com/extjs/gxt/ui/client/widget/form/HtmlEditor.java'
     [java]                [ERROR] Line 548: Type mismatch: cannot convert from com.google.gwt.dom.client.Element to com.google.gwt.user.client.Element
     [java]          [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly
    

Im guessing other gxt.jar file needs to be used, which adopts the small changes.
I searched on the net, found some but not sure if this are the one to go with. e.g a jar called gxt-2.3.1a-gwt22.jar, also this one on git: https://github.com/bedatadriven/gxt

Can some one give me some insides on this one, that would be great!!

Tnx in advance,
Blaze

        

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/7606987e-0a9e-4831-9944-47fb92540c41n%40googlegroups.com.

Re: GWT 2.9 compatiblity with GXT 2.3.1a

Hi, I am attempting to update to GWT 2.8.2 from 2.7.0 using GXT 2.3.1a however I get the following error:
Errors in 'jar:file:/war/WEB-INF/lib/gxt-2.3.1a-gwt22.jar!/com/extjs/gxt/ui/client/widget/form/ListField.java'
         Line 322: The method append(boolean) is ambiguous for the type StringBuffer

How were you able to get 2.8.2 working with 2.3.1a?  I'm running Java 8 with compiler compliance set to 1.7

On Thursday, June 11, 2020 at 7:13:31 AM UTC-5 priyako...@gmail.com wrote:
Hi All,

Currently our application has below versions -
1. GWT - 2.8.2
2. GXT - 2.3.1a

We are planning to upgrade GWT from 2.8.2 to 2.9.0. But have query regarding its compatibility towards GXT 2.3.1a.
I have gone through GXT Compatiblity version matrix page, but found nowhere officially mentioned that its supported.
So can you please confirm that GWT 2.9 is officially supported with GXT 2.3.1a?

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/a3091108-734e-471e-829c-7473b3fb65f1n%40googlegroups.com.

Re: 2/? Pbs with GWT + Eclipse + Jetty + Neo4J

Hi David,

For your last remark:
Another one is that you seem to want to use java introspection to dynamically load classes in GWT, which is not supported (Class.forName).
I think it's not a pb because this part is executed on the server side and all Java in this case is available.

Thanks for your help
Antonio



Le mer. 13 oct. 2021 à 12:03, David Nouls <david.nouls@gmail.com> a écrit :

I see multiple problems with your code. The most important being that you are ignoring the fact that an rpc call is asynchronous. So the load method will ralways return null because the request has not been executed when the method returns.

Another problem is the fact that the async is returning List<Object>, which would mean gwt needs to generate serializers for all object types in you application at compile time.

Another one is that you seem to want to use java introspection to dynamically load classes in GWT, which is not supported (Class.forName).
On 13 Oct 2021, 09:58 +0200, Guillen Antonio <tonio.guillen@gmail.com>, wrote:
HI all,

I am not comfortable with client-server and RPC and HTTPServlet operation at all.
I get the following message after my request:

200 - POST /spotgwt/spotData (127.0.0.1) 496 bytes
   Request headers
      Host: 127.0.0.1:8887
      User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:92.0) Gecko/20100101 Firefox/92.0
      Accept: */*
      Accept-Language: fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3
      Accept-Encoding: gzip, deflate
      Content-Type: text/x-gwt-rpc; charset=utf-8
      X-GWT-Permutation: A082E84D087467DED16699006D694A7B
      X-GWT-Module-Base: http://127.0.0.1:8887/spotgwt/
      Content-Length: 228
      Origin: http://127.0.0.1:8887
      DNT: 1
      Connection: keep-alive
      Referer: http://127.0.0.1:8887/SpotGWT.html
      Sec-Fetch-Dest: empty
      Sec-Fetch-Mode: cors
      Sec-Fetch-Site: same-origin
   Response headers
      Date: Wed, 13 Oct 2021 07:40:08 GMT
      Content-Encoding: gzip
      Content-Length: 496
      Content-Type: application/json; charset=utf-8
      Content-Disposition: attachment

Can you tell me what this means. Because at first glance I understand that my request is successful, and  the content of the response is in a zip and that the length of the zip is 496 bytes in json format. Attachment ?????

The problem is that my RPC call tells me that it has failed in the following piece of code:


<image.png>
I look forward to your reply.
Thanks a lot for your help
Antonio

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/CAKULUq_jF_Z96s43u_Gm7Z6omqU6H7fQ8758DmTX8yavu1mBMg%40mail.gmail.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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/48970e18-bc80-4df0-b8d7-84adde1c63cb%40Spark.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/CAKULUq9StShWVmmRKvDqccgoqE670BNcSHfdkz-5b5EmTuxNpw%40mail.gmail.com.

Wednesday, September 15, 2021

Re: [ANN] Akasha: Typed Browser API version 0.24 released

Hi,

On Wed, Sep 15, 2021 at 6:27 PM Jens <jens.nehlmeier@gmail.com> wrote:
really interesting work, but don't you think something like feature detection should be handled by a dedicated library like Modernizr for example? You likely want to check for vendor prefixed support when you do feature detection.

It depends upon the actual feature detection that is taking place. All the akasha stuff does is check whether a property/function is present on an object. So mostly it allows you to replace something like:

if (Js.global().has("indexedDB")) { /* perform logic requiring indexDB */ }

with:

if (WindowGlobal.isIndexedDBSupported()) { /* perform logic requiring indexDB */ }

Largely Akasha assumes that browsers conform with the HTML Living document (or whatever it is called) or the underlying spec and only presents the prefixes that are declared as part of the living document. If you want to perform more complex feature detection and polyfills (i.e. assigning prefixed version to unprefixed property or adding polyfills or detecting non-code related features such as css properties) then going with a dedicated library is a better option. 

Mostly we have found that our needs are served with pretty simple feature detection but YMMV
 
--
Cheers,

Peter Donald

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/CACiKNc6Yrhv1E_oMKiP8TBzMHOhHkj%2BULXNnh98Sup8NmG5rMw%40mail.gmail.com.

Re: [ANN] Akasha: Typed Browser API version 0.24 released

Hi,

really interesting work, but don't you think something like feature detection should be handled by a dedicated library like Modernizr for example? You likely want to check for vendor prefixed support when you do feature detection.

-- J.

peter.j...@gmail.com schrieb am Dienstag, 14. September 2021 um 02:48:52 UTC+2:

Akasha is a typed browser API layer that is always up to date with the latest web specifications.

Several significant changes have been made since the 0.17 announced to this group. The major changes include:

  • The ability to test for features before using the feature using methods such as WindowGlobal.isIndexedDBSupported(). The feature tests can be done dynamically at runtime or statically at compile-time. If done at compile time then the code can be compiled assuming that the feature is present or absent.
  • Global execution contexts other than "window" are natively supported. From a practical perspective this means it is relatively easy to use Akasha to write service workers and access the globals via ServiceWorkerGlobal. Similarly  there exists AudioWorkletGlobal and DedicatedWorkerGlobal etc. Within a GWT application, these global execution contexts may still require custom linkers but are much easier to write.

Other changes since the 0.17 release:

  • Update the WebGPU spec to the W3C Working Draft, 10 September 2021 version. This update resulted in a few minor name changes (i.e. the GPURequestAdapterOptions.forceSoftware member was renamed to GPURequestAdapterOptions.forceFallbackAdapterGPUAdapter.isSoftware was renamed to GPUAdapter.isFallbackAdapter) as well as improved modelling of the types that contain constants (i.e. GPUMapMode no longer extends JsObject and is a final class in the java binding).
  • Update the Permissions spec to the W3C Working Draft 07 September 2021 version. This update resulted in a few minor changes to the PermissionsName enumeration, the addition of the name attribute to the PermissionStatus type and the removal of the (unused) PermissionSetParameters.
  • Update the WebCodecs spec to the W3C Working Draft, 8 September 2021 version. This update resulted in many changes across several types. See the API diff for further details.
  • Migrate artifacts generated from the WebCodecs spec to the package codecs in the java binding.
  • Update the Visual Viewport API spec to the Draft Community Group Report 10 September 2021 version. This update resulted in the VisualViewport.segments attribute being made optional (or Nullable in the java binding).
  • Update the Web Share API spec to the W3C Working Draft 03 September 2021 version. This update resulted in the addition of the Navigator.canShare(...) operation.
  • Update the WebXR Device API spec to the W3C Working Draft, 24 August 2021 version. This update resulted in several changes, check the API diff for further details.
  • Update the HTML Living Standard spec to the 11 September 2021 version. This update resulted in several changes, check the API diff for further details. The most significant changes were the addition of oncontextlost and oncontextrestored message handlers to several types and the addition of isContextLost() to contexts as appropriate.
  • Updates across several specifications resulted in PostMessageOptions being renamed to StructuredSerializeOptions.
  • Re-fetch the entire set of specifications ensuring that the required members in dictionaries appear in declaration order as initiated in version v0.15. This has resulted in the reordering of parameters in create() methods in the java binding to represent members in declaration order. This impacted the following types at a minimum: StaticRangeInitXRInputSourcesChangeEventInitRTCRtpCodecCapabilityRTCRtpCodecParametersRTCRtpContributingSourceRTCRtpHeaderExtensionParametersRTCRtpParametersRTCRtpSendParametersRTCStatsRTCTrackEventInitHkdfParamsPbkdf2ParamsAllowedBluetoothDeviceAudioProcessingEventInitIIRFilterOptionsOfflineAudioContextOptions (as well as several other less used dictionaries)
  • Rename several union types to reflect intent, migrate the unions to the java package where they are used and convert unions to marker interfaces where appropriate. i.e. The union type IDBObjectStoreOrIDBIndexUnion was renamed to IDBCursorSource, converted to a marker interface and migrated to the akasha.idb java package. See the API diff for a full list of unions migrated.
  • Type the AudioTrack.kind attribute as an enumeration containing the set of valid values.
  • Add the Resize Observer spec at W3C First Public Working Draft, 11 February 2020 version to the set of specs that are used to generate the browser API. This added the ResizeObserver type and related infrastructure.
  • Generate static types for global execution contexts of a service worker (i.e. SharedWorkerGlobal), a worker (i.e. DedicatedWorkerGlobal), a shared worker (i.e. SharedWorkerGlobal) and audio worklets (i.e. AudioWorkletGlobal).
  • Change the way the java binding generates unions so that methods of the form as[X]() and is[X]() exist for every component type X that is part of the union.
  • Replace usages of @javax.annotations.Nullable with @jsinterop.annotations.JsNullable and @javax.annotations.Nonnull with @jsinterop.annotations.JsNonNull on natively exposed elements to provide additional guidance to the J2CL/closure compiler variant of the java binding.
  • Add event handling code to types (i.e. addXListener(...) and removeXListener(...) methods etc.) to more types and more events. The types and associated events as follows:
    • AbstractWorkererror
    • Animationcancel finish remove
    • AudioWorkletNodeprocessorerror
    • BaseAudioContextstatechange
    • Elementclick contextmenu
    • EventSourceerror
    • GlobalEventHandlersabort animationcancel animationend animationiteration animationstart auxclick beforeinput blur cancel canplay canplaythrough change click close compositionend compositionstart compositionupdate contextmenu cuechange dblclick drag dragend dragenter dragexit dragleave dragover dragstart drop durationchange emptied ended error focus focusin focusout gotpointercapture input invalid keydown keypress keyup load loadeddata loadedmetadata loadstart lostpointercapture mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup pause play playing pointercancel pointerdown pointerenter pointerleave pointermove pointerout pointerover pointerup progress ratechange reset resize scroll securitypolicyviolation seeked seeking select selectionchange selectstart stalled submit suspend timeupdate toggle touchcancel touchend touchmove touchstart transitioncancel transitionend transitionrun transitionstart volumechange waiting wheel
    • HTMLCanvasElementcontextlost contextrestored
    • IDBDatabaseversionchange
    • MediaDevicesdevicechange
    • MediaKeySessionkeystatuseschange message
    • MediaQueryListchange
    • MediaSourcesourceclose sourceended sourceopen
    • Notificationclick close error show
    • OffscreenCanvascontextlost contextrestored
    • PermissionStatuschange
    • RTCDtlsTransporterror statechange
    • ScreenOrientationchange
    • ServiceWorkerContainercontrollerchange messageerror
    • ServiceWorkerGlobalScopecanmakepayment fetch messageerror notificationclose paymentrequest sync
    • ServiceWorkerRegistrationupdatefound
    • SourceBufferabort error update updateend updatestart
    • SourceBufferListaddsourcebuffer removesourcebuffer
    • TextTrackCueenter exit
    • TextTrackListremovetrack
    • WindowEventHandlersafterprint beforeprint beforeunload hashchange languagechange message messageerror offline online pagehide pageshow popstate rejectionhandled storage unhandledrejection unload
    • WorkerGlobalScopeoffline online rejectionhandled unhandledrejection
    • XMLHttpRequestEventTargetabort error load loadend loadstart progress timeout
  • Move the classes IDBObjectStoreOrIDBIndexUnion and IDBObjectStoreOrIDBIndexOrIDBCursorUnion from the akasha.indexdb package to the akasha.idb package. This was done to align with the rename of indexDB package that occurred prior to the initial release of akasha.
  • Annotate several synthesized unions with the @org.jetbrains.annotations.ApiStatus.Internal annotation to make it clear that these types should not be used in user code. IntelliJ IDE will also generate a warning if user code interacts directly with internal types.
  • Ensure that the code parameter to GPUShaderModuleDescriptor.create() is annotated with @WGSL.
  • Replace usages of goog.global with $wnd in the GWT variant. If there is an error while the GWT application is initializing or Akasha is used early in the initialization process, there was previously a period where goog.global had not been assigned and thus the Akasha code would generate errors when using the symbol. This change eliminated this possibility.
  • Start generating @JsOverlay methods of the form boolean isXSupported() for features that may be optional in an implementation. This allows downstream libraries to detect whether a feature is present before making use of the feature. The feature detection can be done at run time or at compile time depending on the needs of the application. The default behaviour of feature detection methods are to perform the checks at runtime, however this can be be changed by defining an appropriately named property in closure compiler to either true or false when using the J2CL variant or setting the equivalent binding property when using the GWT variant. The name of the property is derived from the symbol that is feature detected. Feature detection methods added and the associated compile time properties include:
    • Navigator.isBluetoothSupported() with a property akasha.is__Navigator_bluetooth__supported
    • Navigator.isGpuSupported() with a property akasha.is__Navigator_gpu__supported
    • Window.isLocalStorageSupported() and WindowGlobal.isLocalStorageSupported() with a property akasha.is__Window_localStorage__supported
    • Window.isIndexedDBSupported() and WindowGlobal.isIndexedDBSupported() with a property akasha.is__Window_indexedDB__supported
    • Window.isSessionStorageSupported() and WindowGlobal.isSessionStorageSupported() with a property akasha.is__Window_sessionStorage__supported
    • Window.isSpeechSynthesisSupported() and WindowGlobal.isSpeechSynthesisSupported() with a property akasha.is__Window_speechSynthesis__supported
    • Navigator.isClipboardSupported() with a property akasha.is__Navigator_clipboard__supported
    • Navigator.isCredentialsSupported() with a property akasha.is__Navigator_credentials__supported
    • Navigator.isGeolocationSupported() with a property akasha.is__Navigator_geolocation__supported
    • Navigator.isGetGamepadsSupported() with a property akasha.is__Navigator_isGetGamepadsSupported__supported
    • Navigator.isMediaDevicesSupported() with a property akasha.is__Navigator_mediaDevices__supported
    • Navigator.isPermissionsSupported() with a property akasha.is__Navigator_permissions__supported
    • Navigator.isRequestMediaKeySystemAccessSupported() with a property akasha.is__Navigator_requestMediaKeySystemAccess__supported
    • Navigator.isSendBeaconSupported() with a property akasha.is__Navigator_sendBeacon__supported
    • Navigator.isServiceWorkerSupported() with a property akasha.is__Navigator_serviceWorker__supported
    • Navigator.isShareSupported() with a property akasha.is__Navigator_share__supported
    • Navigator.isVibrateSupported() with a property akasha.is__Navigator_vibrate__supported
    • Navigator.isWakeLockSupported() with a property akasha.is__Navigator_wakeLock__supported
    • Navigator.isXrSupported() with a property akasha.is__Navigator_xr__supported
  • Move the akasha.StringOrLongLongUnion type to akasha.core.StringOrLongLongUnion as it is only used by the akasha.core.JSON type.
  • Add initial support for the akasha:webgpu-j2cl artifact which is an Elemental2 compatible variant of the WebGPU specification.
  • Remove the TrustedScript symbol from the externs generated for the akasha:j2cl artifact as it is no longer required with more recent versions of the closure compiler.

To learn more about Akasha and get started:

https://github.com/akasha/akasha  

Thanks!

The Akasha Team

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/806168cd-8352-4842-b658-dbe8a7549a5fn%40googlegroups.com.