Friday, April 26, 2019

jsinterop problem

I want to convert the following js code into Java code using Jsinterop:

var disWorld = new AMap.DistrictLayer.World({
    zIndex:10,
    styles:{
        'nation-stroke':function(props){
            //props:{type:Nation_Border_China/Nation_Border_Foreign}
            if(props.type=='Nation_Border_China'){
                return 'red'
            }else{
                return 'white'
            }
        },
        'coastline-stroke': [0.8, 0.63, 1, 1], 
        'fill':function(props){
            //props:{NAME_CHH,NAME_ENG,SOC}
            return getColorBySOC(props.SOC)
        }
    }
})

I am struggling with "nation-stroke". How do I implement it in Jsinterop? 

Thanks,

David

--
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 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: GWT upgrade with com.extjs:gxt

As of my knowledge there is a gxt 2.5 compatible jar which works fine with gwt 2.8. If you would like to use just 2.8 features then this would be the easiest way.



--
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 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: GWT upgrade with com.extjs:gxt

Or you can also consider to migrate to SmartGWT - it still has LGPL license https://www.smartclient.com/product/

середа, 10 квітня 2019 р. 07:48:18 UTC+2 користувач medasani kesavi написав:
Hi,

I currently have a project which is using  GWT 2.4.0 with extjs  GXT 2.2.5. We are planning to upgrade the project to utilise GWT lastest version 2.8.2 and JDK 1.8. However  upon initial analysis it is evident that GWT 2.8.2 is only compatible with sencha GXT 4 versions. I came across https://github.com/bedatadriven/gxt which says we can continue to use GWT 2.8.2 along with jdk 1.8 with extjs gxt itself.

I am also using multiple other gxt jars like uibinder,gxt-guava etc

Could some one please provide pointer on this.

If I need to migrate to sencha GXT completely, would i need to rewrite the UI again?

Please assist

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

Thursday, April 25, 2019

Re: Regarding Spellcheck in GWT RichtextArea

Define "not working"?

In a quick test here, it appears to inherit your browser's spell check language settings:


GWT 2.6.0 is more than five years old; the current released version is 2.8.2.

http://www.gwtproject.org/download.html

On Thursday, April 25, 2019 at 6:33:31 AM UTC-7, mallig...@gmail.com wrote:
Hello All,

Here I am using GWT RichtextArea, in this editor spell check is not working and my gwt version 2.6.0,

Please help with any suggestions

Thanks in advance..!

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

Regarding Spellcheck in GWT RichtextArea

Hello All,

Here I am using GWT RichtextArea, in this editor spell check is not working and my gwt version 2.6.0,

Please help with any suggestions

Thanks in advance..!

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

Wednesday, April 24, 2019

Re: Different colspan

Hi jens,

Thanks. I tried this "FlexTable.getFlexCellFormatter().setColSpan(0,0,50).
But it is formatting the first row by taking the maximum colwidth of flex table + 50.

Any suggestions on this?

--
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 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: Immutables with RestyGWT and gwt-jackson

BTW due to https://github.com/gwtproject/gwt/issues/9612 it works only with Java8 in GWT 2.8.2

S.

On Tuesday, April 2, 2019 at 9:03:28 PM UTC+2, foal wrote:
Hi,

Spent several hours to make workable Immutables (https://immutables.github.io) objects with RestyGWT and gwt-jackson. Default approach with
@JsonSerialize(as = ImmutableVal.class)
@JsonDeserialize(as = ImmutableVal.class)

 doesn't works (gwt-jackson ignore @JsonDeserialize "as" attribute on class level) but after looking into the source code I realize that "builder" attribute is supported and works. So variant  with
@Value.Style(builder = "new") // builder has to have constructor
@JsonDeserialize(builder = ImmutableVal.Builder.class)

works.

Hope it will save somebody several hours of investigation :)

Best,
Stas


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

Tuesday, April 23, 2019

[ANN] (Unofficial) Elemental2 2.23 release

Elemental2 provides type checked access to browser APIs for Java
code. This is done by using closure extern files and generating
JsTypes, which are part of the new JsInterop specification that
is both implemented in GWT and J2CL.


This is an unofficial release to Maven Central under a different groupId.
Please don't bug the original authors. Versions are released on demand.

Unfortunately 2.22 was released with a patch incorrectly applied that led
to DomGlobal.location and Window.location being incorrectly typed. This
subsequent release just removes the incorrect patch to fix the types.

API Changes relative to Elemental2 version 2.22

elemental2-dom:
  - 1 non breaking changes.
  - 2 breaking changes.

The complete set of Elemental2 API differences is available at


The Maven dependencies can be added to your pom.xml via

    <dependency>
      <groupId>org.realityforge.com.google.elemental2</groupId>
      <artifactId>${artifact-id}</artifactId>
      <version>2.23</version>
    </dependency>

where artifact-id is one of

* elemental2-core
* elemental2-dom
* elemental2-promise
* elemental2-indexeddb
* elemental2-svg
* elemental2-webgl
* elemental2-media
* elemental2-webstorage
* elemental2-webassembly

Hope this helps,

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

[ANN] (Unofficial) Elemental2 2.22 release

Elemental2 provides type checked access to browser APIs for Java
code. This is done by using closure extern files and generating
JsTypes, which are part of the new JsInterop specification that
is both implemented in GWT and J2CL.


This is an unofficial release to Maven Central under a different groupId.
Please don't bug the original authors. Versions are released on demand.

This release uses a different version schema which is essentially
2.[BuildNumber] at the request of a few who found the old schema distasteful.

The API diff reports are also generated statically and stored on a GitHub
pages site so that they are always available.

API Changes relative to Elemental2 version 1.0.0-b21-6a027d2

elemental2-dom:
  - 52 non breaking changes.
  - 53 potentially breaking changes.
  - 23 breaking changes.
elemental2-webgl:
  - 297 potentially breaking changes.

The complete set of Elemental2 API differences is available at


The Maven dependencies can be added to your pom.xml via

    <dependency>
      <groupId>org.realityforge.com.google.elemental2</groupId>
      <artifactId>${artifact-id}</artifactId>
      <version>2.22</version>
    </dependency>

where artifact-id is one of

* elemental2-core
* elemental2-dom
* elemental2-promise
* elemental2-indexeddb
* elemental2-svg
* elemental2-webgl
* elemental2-media
* elemental2-webstorage
* elemental2-webassembly

Hope this helps,

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

Monday, April 22, 2019

Re: Different colspan

There is FlexTable.getFlexCellFormatter().setColSpan()/setRowSpan()


-- 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+unsubscribe@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.

Different colspan

Hi all,

Is there any way to have different colspan for each row in grid/flex table?

Please give some points on this.

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+unsubscribe@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.

Sunday, April 21, 2019

Re: GWT upgrade with com.extjs:gxt

Yo need to perform a migration:

https://docs.sencha.com/gxt/4.x/guides/getting_started/migration/Migration2to3.html

El mié., 10 abr. 2019 a las 7:47, medasani kesavi
(<medasani2003@gmail.com>) escribió:
>
> Hi,
>
> I currently have a project which is using GWT 2.4.0 with extjs GXT 2.2.5. We are planning to upgrade the project to utilise GWT lastest version 2.8.2 and JDK 1.8. However upon initial analysis it is evident that GWT 2.8.2 is only compatible with sencha GXT 4 versions. I came across https://github.com/bedatadriven/gxt which says we can continue to use GWT 2.8.2 along with jdk 1.8 with extjs gxt itself.
>
> I am also using multiple other gxt jars like uibinder,gxt-guava etc
>
> Could some one please provide pointer on this.
>
> If I need to migrate to sencha GXT completely, would i need to rewrite the UI again?
>
> Please assist
>
> --
> 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 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.

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

Thursday, April 18, 2019

Re: Display with FlexTable

Just add the additional detail rows as in the showcase: http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwFlexTable.

If your list of components is large and variable (perhaps it comes from the server), I would recommend that you use a Cell Table (custom datagrid), such as this one:


On Tuesday, April 16, 2019 at 1:58:58 PM UTC-6, Nanditha Nandu wrote:
Any ideas how to do this?

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

Tuesday, April 16, 2019

Display with FlexTable

Any ideas how to do this?

--
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 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: SuggestBox in a CellTable

Hi Craig,

I'm trying to place the SuggestBox widget inside CellTable.
Created the custom class "SuggestBoxTextInputCell" which extends the TextInputCell.


And changed the browserEvent as following:

public void onBrowserEvent(Context context, Element parent, String value,

NativeEvent event, ValueUpdater<String> valueUpdater) {

super.onBrowserEvent(context, parent, value, event, valueUpdater);

// Ignore events that don't target the input.

InputElement input = getInputElement(parent);

String eventType = event.getType();

if (BrowserEvents.FOCUS.equals(eventType)) {

TextBox textBox = new MyTextBox(input);

suggestBox = new MySuggestBox(suggestBox.getSuggestOracle(), textBox);

suggestBox.onAttach();

}

Element target = event.getEventTarget().cast();

}



But I want to pass my own suggestionText.

Hence the created a constructor:

public SuggestBoxTextInputCell(MultiWordSuggestOracle suggestions) {

this(suggestions, new TextBox());

}

public SuggestBoxTextInputCell(MultiWordSuggestOracle suggestions,

ValueBoxBase<String> box) {

//this(suggestions, box);

}


After this I'm stuck.

And want to call SuggestBoxTextInputCell(Suggestions) in CellTable.

On Tuesday, April 16, 2019 at 6:06:10 AM UTC+5:30, Craig Mitchell wrote:
It would help knowing what the problem is, as we don't know what your custom SuggestBox is.

Maybe look into http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwCustomDataGrid and look how EditTextCell works, and then make a EditSuggestBox.

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

Monday, April 15, 2019

Re: SuggestBox in a CellTable

It would help knowing what the problem is, as we don't know what your custom SuggestBox is.

Maybe look into http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwCustomDataGrid and look how EditTextCell works, and then make a EditSuggestBox.

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

Display with FlexTable

Hi All,

I have a Component table with following columns,



I have a Details table with following columns



So I have a List<Details> and List<Components>.

I'm using Flex table to display the contents:
I want to display the information in the following format.

for all the component .

Please help.

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

Sunday, April 14, 2019

Re: How to get the SuggestBox value

Thankyou so much!! It worked :)


But was not able to get the value using getValue(). Alternative way worked.

On Saturday, April 13, 2019 at 3:35:30 AM UTC+5:30, Rogelio Flores wrote:
Yes, or a full solution that I just tested it works:

 public void onModuleLoad()
  {

    MultiWordSuggestOracle oracle = new MultiWordSuggestOracle();
    String[] words = {"Alpha", "Apple", "Anaconda", "Beta", "Beautiful", "Best", "Better"};
    for (String word: words)
    {
      oracle.add(word);
    }

    SuggestBox suggestBox = new SuggestBox(oracle);
    suggestBox.setSize("300px", "40px");

    suggestBox.addSelectionHandler((SelectionEvent<SuggestOracle.Suggestion> suggestion) ->
    {
      GWT.log("SuggestBox Value: " + suggestBox.getValue());

      // You can also get the value this way from the event:
      GWT.log("Selected Value: " + suggestion.getSelectedItem().getReplacementString());
    });

    DockLayoutPanel p = new DockLayoutPanel(Style.Unit.EM);
    p.add(suggestBox);

    RootLayoutPanel rp = RootLayoutPanel.get();
    rp.add(p);
  }



On Friday, April 12, 2019 at 3:42:09 PM UTC-6, Filipe Sousa wrote:
suggestionBox.getValue()?

On Thursday, April 11, 2019 at 12:02:57 PM UTC+1, Nanditha Nandu wrote:
final SuggestBox  suggestionBox = new SuggestBox(suggestions);

where suggestions is the custom suggest words passed using MultiWordSuggestOracle

Im trying to get the value selected from the suggestions in the SuggestBox using below line:

 String text = suggestionBox.getTextBox().getValue();

But the value of text is " "

Please help.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+unsubscribe@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: SuggestBox in a CellTable

Any one has any solution on this? Please help. Thanks.





On Wednesday, April 10, 2019 at 10:07:18 PM UTC+5:30, Nanditha Nandu wrote:
How to call this custom SuggestBox.. In the cellTable with passing default suggestions.

Please help.

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

Friday, April 12, 2019

Re: How to get the SuggestBox value

Yes, or a full solution that I just tested it works:

 public void onModuleLoad()
  {

    MultiWordSuggestOracle oracle = new MultiWordSuggestOracle();
    String[] words = {"Alpha", "Apple", "Anaconda", "Beta", "Beautiful", "Best", "Better"};
    for (String word: words)
    {
      oracle.add(word);
    }

    SuggestBox suggestBox = new SuggestBox(oracle);
    suggestBox.setSize("300px", "40px");

    suggestBox.addSelectionHandler((SelectionEvent<SuggestOracle.Suggestion> suggestion) ->
    {
      GWT.log("SuggestBox Value: " + suggestBox.getValue());

      // You can also get the value this way from the event:
      GWT.log("Selected Value: " + suggestion.getSelectedItem().getReplacementString());
    });

    DockLayoutPanel p = new DockLayoutPanel(Style.Unit.EM);
    p.add(suggestBox);

    RootLayoutPanel rp = RootLayoutPanel.get();
    rp.add(p);
  }



On Friday, April 12, 2019 at 3:42:09 PM UTC-6, Filipe Sousa wrote:
suggestionBox.getValue()?

On Thursday, April 11, 2019 at 12:02:57 PM UTC+1, Nanditha Nandu wrote:
final SuggestBox  suggestionBox = new SuggestBox(suggestions);

where suggestions is the custom suggest words passed using MultiWordSuggestOracle

Im trying to get the value selected from the suggestions in the SuggestBox using below line:

 String text = suggestionBox.getTextBox().getValue();

But the value of text is " "

Please help.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+unsubscribe@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: How to get the SuggestBox value

suggestionBox.getValue()?

On Thursday, April 11, 2019 at 12:02:57 PM UTC+1, Nanditha Nandu wrote:
final SuggestBox  suggestionBox = new SuggestBox(suggestions);

where suggestions is the custom suggest words passed using MultiWordSuggestOracle

Im trying to get the value selected from the suggestions in the SuggestBox using below line:

 String text = suggestionBox.getTextBox().getValue();

But the value of text is " "

Please help.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+unsubscribe@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: How to get the SuggestBox value

Did anyone have the solution to this ?



On Thursday, April 11, 2019 at 4:32:57 PM UTC+5:30, Nanditha Nandu wrote:
final SuggestBox  suggestionBox = new SuggestBox(suggestions);

where suggestions is the custom suggest words passed using MultiWordSuggestOracle

Im trying to get the value selected from the suggestions in the SuggestBox using below line:

 String text = suggestionBox.getTextBox().getValue();

But the value of text is " "

Please help.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+unsubscribe@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.

Thursday, April 11, 2019

Re: Is this project active?

This may be true running the TodomvcProd.gwt.xml but if you run TodomvcDev.gwt.xml it should be fine. We don't use Maven at work so I may have misconfigured the tooling :/

I did try to run the TodomvcDev.gwt.xml, however, I needed to remove TodomvcProd from GWT General Settings (using Eclipse).  Now works great!  Thanks!

Also, thanks for the heads up on reusing existing React components.  :-)

--
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 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: Is this project active?



On Fri, Apr 12, 2019 at 1:04 PM Craig Mitchell <mail@craig-mitchell.com> wrote:
You can use both of them together ;) We use react+GWT and absolutely love it. We use a state management library Arez (https://arez.github.io/) which is very similar conceptually to Mobx done in Java style. You can see a sample application @ https://github.com/react4j/react4j-todomvc/tree/arez_maven/src/main/java/react4j/todomvc

That is very cool!  I couldn't get Super Dev Mode working due to:

[ERROR] linkers other than CrossSiteIFrameLinker aren't supported. Found: com.google.gwt.core.linker.SingleScriptLinker


This may be true running the TodomvcProd.gwt.xml but if you run TodomvcDev.gwt.xml it should be fine. We don't use Maven at work so I may have misconfigured the tooling :/
 
However, the GWT compile worked fine, and it ran on my Tomcat server.  Going to dive into the code to see how easy/hard it would be to use existing React components.

We *used* to use existing react components but due to differences between the different environments it always felt a bit clunky and I am not sure how easy it would be to do at this stage. You would probably need to use jsinterop to get the react component type and write a custom builder to create the component and it should be possible but we don't do this anymore. We found it is easier to just port the component and keep in java land.

--
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 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: Is this project active?

You can use both of them together ;) We use react+GWT and absolutely love it. We use a state management library Arez (https://arez.github.io/) which is very similar conceptually to Mobx done in Java style. You can see a sample application @ https://github.com/react4j/react4j-todomvc/tree/arez_maven/src/main/java/react4j/todomvc

That is very cool!  I couldn't get Super Dev Mode working due to:

[ERROR] linkers other than CrossSiteIFrameLinker aren't supported. Found: com.google.gwt.core.linker.SingleScriptLinker

However, the GWT compile worked fine, and it ran on my Tomcat server.  Going to dive into the code to see how easy/hard it would be to use existing React components.

Thanks sharing the project!  :-)

--
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 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: [ANN] (Unofficial) Elemental2 1.0.0-b21-6a027d2 release

Thanks Peter!

On Sun, 7 Apr 2019 at 23:41, Peter Donald <peter@realityforge.org> wrote:
Elemental2 provides type checked access to browser APIs for Java
code. This is done by using closure extern files and generating
JsTypes, which are part of the new JsInterop specification that
is both implemented in GWT and J2CL.


This is an unofficial release to Maven Central under a different groupId.
Please don't bug the original authors. Versions are released on demand.

API Changes relative to Elemental2 version 1.0.0-b20-bfe6e22

  4 non breaking changes.
  4 potentially breaking changes.
  38 non breaking changes.
  149 potentially breaking changes.
  49 breaking changes.
  3 non breaking changes.
  3 potentially breaking changes.
  8 breaking changes.
  1 non breaking changes.
  2 breaking changes.
  137 breaking changes.
  8 non breaking changes.
  4 potentially breaking changes.
  8 breaking changes.

The Maven dependencies can be added to your pom.xml via

    <dependency>
      <groupId>org.realityforge.com.google.elemental2</groupId>
      <artifactId>${artifact-id}</artifactId>
      <version>1.0.0-b21-6a027d2</version>
    </dependency>

where artifact-id is one of

* elemental2-core
* elemental2-dom
* elemental2-promise
* elemental2-indexeddb
* elemental2-svg
* elemental2-webgl
* elemental2-media
* elemental2-webstorage
* elemental2-webassembly

Hope this helps,

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

--
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 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: display using DataListProvider

Hi,

Is very simple and intuitive to write code to Flextable!


Em qui, 11 de abr de 2019 às 09:38, Nanditha Nandu <nanditha212@gmail.com> escreveu:
Thanks. But how to display the contents using FlexTable can you please elaborate.

I have a List<Hardware> result as my query output.
where Hardware contains function like getName(), setName().. etc.

I'm new to GWT :)




On Thursday, April 11, 2019 at 12:05:43 AM UTC+5:30, Hugo Haas wrote:
Run out of this component... try FlexTable, your life will be wonderfull.

 

Em qua, 10 de abr de 2019 15:26, Nanditha Nandu <nandi...@gmail.com> escreveu:
Currently I'm Display the data in the following Format:


Is there any way , where I will be able to display Data like:

Component : ICS
Material : value
Serial : value
Comments : value


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

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


--
Hugo Haas
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-

Mobile: +55 (41) 99162-9439

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

initialize the object using flex Table contents

Hi,

Im new to GWT
I have a fields in Custom class as,
getName(), setName, getCity(), setCity() etc.

Im using Flex table to read the values from the user:

               FlexTable t = new FlexTable();
                t.setText(0, 0, "Name");
t.setText(0, 1, "City"); 

t.setWidget(1, 0, new TextBox()); 
t.setWidget(1, 1, new TextBox());

And using flex table addrow() , so that mutiple details can be entered at the same time.

Now how to store the data entered by user to the object of my class..like c.setName() ..so that it can be easy to store in the database.

--
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 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: display using DataListProvider

Thanks. But how to display the contents using FlexTable can you please elaborate.

I have a List<Hardware> result as my query output.
where Hardware contains function like getName(), setName().. etc.

I'm new to GWT :)




On Thursday, April 11, 2019 at 12:05:43 AM UTC+5:30, Hugo Haas wrote:
Run out of this component... try FlexTable, your life will be wonderfull.

 

Em qua, 10 de abr de 2019 15:26, Nanditha Nandu <nandi...@gmail.com> escreveu:
Currently I'm Display the data in the following Format:


Is there any way , where I will be able to display Data like:

Component : ICS
Material : value
Serial : value
Comments : value


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

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

How to get the SuggestBox value

final SuggestBox  suggestionBox = new SuggestBox(suggestions);

where suggestions is the custom suggest words passed using MultiWordSuggestOracle

Im trying to get the value selected from the suggestions in the SuggestBox using below line:

 String text = suggestionBox.getTextBox().getValue();

But the value of text is " "

Please help.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+unsubscribe@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.

Wednesday, April 10, 2019

display using DataListProvider

Currently I'm Display the data in the following Format:


Is there any way , where I will be able to display Data like:

Component : ICS
Material : value
Serial : value
Comments : value


--
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 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: SuggestBox in a CellTable

How to call this custom SuggestBox.. In the cellTable with passing default suggestions.

Please help.

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

DataListPrivider

How to display the following information using datlisProvider.

Component1
Column1 value
Column2 value
Column3 value
Component2
Column1 value
Column2 value.
.
.

--
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 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: Security Vulnerability Detected in GWT Library

gwt-dev is only used during maven build or at least for the code server running on my workstation, this is not necessary.

May be gwt-servlet for old legacy apps thet still use GWT-RPC, but most now use REST service and REST clients.

Anyway thanks for your suggestions.

Have a nice day

Il giorno mercoledì 10 aprile 2019 10:26:00 UTC+2, Hrishikesh Joshi ha scritto:
GWT 2.8.2:
All
All

---

##### Description
Security Vulnerability Detected in gwt-dev.jar & gwt-servlet.jar are reported by Dependency checker tool

Below are the details -
1. Gwt-dev.jar - 
               1.1 Vulnerable version of jetty library(current version-- 9.2.14, available ) 
               1.2 Vulnerable version of commons-collections(current version - 3.2.1)
               1.3 Vulnerable version of org.apache.httpcomponents:httpclient(current version - 4.3.1)

2. Gwt-servlet.jar             
               1.1 Vulnerable version of Google Protobuf(current version - 2.5.0, available version - 3.4.0)

##### Steps to reproduce
Refer instruction from following web site.

Is community going to update 3rd party library used by GWT to remove these Vulnerability ?

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

Security Vulnerability Detected in GWT Library

GWT 2.8.2:
All
All

---

##### Description
Security Vulnerability Detected in gwt-dev.jar & gwt-servlet.jar are reported by Dependency checker tool
https://jeremylong.github.io/DependencyCheck/

Below are the details -
1. Gwt-dev.jar - 
               1.1 Vulnerable version of jetty library(current version-- 9.2.14, available ) 
               1.2 Vulnerable version of commons-collections(current version - 3.2.1)
               1.3 Vulnerable version of org.apache.httpcomponents:httpclient(current version - 4.3.1)

2. Gwt-servlet.jar             
               1.1 Vulnerable version of Google Protobuf(current version - 2.5.0, available version - 3.4.0)

##### Steps to reproduce
Refer instruction from following web site.
https://jeremylong.github.io/DependencyCheck/dependency-check-ant/index.html

Is community going to update 3rd party library used by GWT to remove these Vulnerability ?

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

Tuesday, April 9, 2019

GWT upgrade with com.extjs:gxt

Hi,

I currently have a project which is using  GWT 2.4.0 with extjs  GXT 2.2.5. We are planning to upgrade the project to utilise GWT lastest version 2.8.2 and JDK 1.8. However  upon initial analysis it is evident that GWT 2.8.2 is only compatible with sencha GXT 4 versions. I came across https://github.com/bedatadriven/gxt which says we can continue to use GWT 2.8.2 along with jdk 1.8 with extjs gxt itself.

I am also using multiple other gxt jars like uibinder,gxt-guava etc

Could some one please provide pointer on this.

If I need to migrate to sencha GXT completely, would i need to rewrite the UI again?

Please assist

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

Monday, April 8, 2019

Re: Is this project active?



On Mon, Apr 8, 2019 at 2:34 PM Craig Mitchell <mail@craig-mitchell.com> wrote:
I took a break from GWT to develop in React for 2 years.  While the React structure is okay, writing in JS is just painful.  TypeScript looked a little better, but never got the chance to dive into it.  Now I'm back using GWT and loving it!

You can use both of them together ;) We use react+GWT and absolutely love it. We use a state management library Arez (https://arez.github.io/) which is very similar conceptually to Mobx done in Java style. You can see a sample application @ https://github.com/react4j/react4j-todomvc/tree/arez_maven/src/main/java/react4j/todomvc

We are still on Java8/GWT2.X but hopefully by mid year our apps will be cut across to Java11/J2CL+closure compiler. So far everything is looking good ;)

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

Sunday, April 7, 2019

Re: Is this project active?

+1 keep up the great work!

I took a break from GWT to develop in React for 2 years.  While the React structure is okay, writing in JS is just painful.  TypeScript looked a little better, but never got the chance to dive into it.  Now I'm back using GWT and loving it!

Also finding it hard to argue for GWT against the Angular and React people in the company, especially as Java 11 (and 12) is becoming the norm.  Looking forward to GWT3.0!

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

[ANN] (Unofficial) Elemental2 1.0.0-b21-6a027d2 release

Elemental2 provides type checked access to browser APIs for Java
code. This is done by using closure extern files and generating
JsTypes, which are part of the new JsInterop specification that
is both implemented in GWT and J2CL.


This is an unofficial release to Maven Central under a different groupId.
Please don't bug the original authors. Versions are released on demand.

API Changes relative to Elemental2 version 1.0.0-b20-bfe6e22

  4 non breaking changes.
  4 potentially breaking changes.
  38 non breaking changes.
  149 potentially breaking changes.
  49 breaking changes.
  3 non breaking changes.
  3 potentially breaking changes.
  8 breaking changes.
  1 non breaking changes.
  2 breaking changes.
  137 breaking changes.
  8 non breaking changes.
  4 potentially breaking changes.
  8 breaking changes.

The Maven dependencies can be added to your pom.xml via

    <dependency>
      <groupId>org.realityforge.com.google.elemental2</groupId>
      <artifactId>${artifact-id}</artifactId>
      <version>1.0.0-b21-6a027d2</version>
    </dependency>

where artifact-id is one of

* elemental2-core
* elemental2-dom
* elemental2-promise
* elemental2-indexeddb
* elemental2-svg
* elemental2-webgl
* elemental2-media
* elemental2-webstorage
* elemental2-webassembly

Hope this helps,

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