Re: File upload stuck on loading

2022-10-12 Thread system out
code images link

https://ibb.co/G7jwT8s
https://ibb.co/zZfK3Gj

Le mercredi 12 octobre 2022 à 20:15:01 UTC+2, system out a écrit :

> I found that line 59 is what fails. That's why the loader fails.
>
> Offset, newList and size are not null.
>
> please check the attached images 
>
>
>

-- 
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/afd8917a-0738-4196-b0aa-5518895e9787n%40googlegroups.com.


Re: File upload stuck on loading

2022-10-12 Thread system out
I found that line 59 is what fails. That's why the loader fails.

Offset, newList and size are not null.

please check the attached images 


-- 
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/525a0aa6-4104-49ae-a03a-babe31dbc490n%40googlegroups.com.


Re: File upload stuck on loading

2022-10-12 Thread system out
Thanks Craig for your response.
Sadly I can't change that part as too much treatment is happening on the 
server side and data us being communiated as it is to the client.
Same issue happens if I comment the loader.load() then hit the refresh 
button.[image: IMG_20221012_131516.jpg]

Le mercredi 12 octobre 2022 à 13:00:38 UTC+2, ma...@craig-mitchell.com a 
écrit :

> Correction:   
>
> On Wednesday, 12 October 2022 at 9:59:13 pm UTC+11 Craig Mitchell wrote:
>
>> I have no clue what your error is, but it's so much easier to read files 
>> with HTML5 now.
>>
>> Something like this:
>> -
>> 
>>
>> @UiField InputElement fileInput;
>>
>> Event.sinkEvents(fileInput, Event.ONCHANGE);
>> Event.setEventListener(fileInput, event -> handleFileUpload());
>>
>> private void handleFileUpload() {
>> JavaScriptObject files = fileInput.getPropertyJSO("files");
>> 
>> if (files instanceof JsArray) {
>> JsArray filesArray = 
>> (JsArray)files;
>> 
>> if (filesArray.length() > 0) {
>> handleFileUploadJS(filesArray.get(0),  fileData -> 
>> handleAfterFileUpload(fileData));
>> }
>> }
>> }
>>
>> private static native void handleFileUploadJS(JavaScriptObject fileData) 
>> /*-{
>> var fileReader = new FileReader();
>> fileReader.addEventListener("load", function () {
>> // Your file data will be in fileReader.result
>> }, false);
>> fileReader.readAsDataURL(fileData);
>> }-*/;
>> -
>>
>> No server code needed.  :)
>>
>> On Wednesday, 12 October 2022 at 9:24:41 pm UTC+11 
>> system.out...@gmail.com wrote:
>>
>>> For file upload we are using GXT FileUploadField.
>>> for server we are using servlets that extends GWT RemoteServiceServlet
>>> There's a UploadExcelHandler that on success send. a notification. It 
>>> uses puremvc4gwt.
>>> We have a handle notification that gets the received data and calles 
>>> methods to update the grid and reload it 
>>> ( please read my last message for the reload, I found the root cause but 
>>> no solution is found yet)
>>> Thanks
>>> Le mercredi 12 octobre 2022 à 11:59:26 UTC+2, system out a écrit :
>>>
 Yes we are using GXT 2.2.5 with GWT 2.8.1
 We have a custom Grid object created that has an EditoGrid, 
 PagingToolbar, ListStore, ColumnModel and many other properties like 
 height..
 I found that the problem is caused by the load method inside the 
 PagingLoader.
 we have this line: 
 grid.reconfigure(store, grid.getColumnModel())
 then the following line that causes the error:
 loader.load(config).
 config is a PagingLoadConfig
 I tried loader.load() and loader.load(0.50) and 
 grid.getStore().getLoader().load()
 but nothing seems to work.

 Le mardi 11 octobre 2022 à 18:57:04 UTC+2, t.br...@gmail.com a écrit :

> It would certainly help if you provided details on how you do the 
> upload (using GWT's own FormPanel and FileUpload? or a third-party 
> library? 
> GXT-specific widgets?) and how you handle the response (including how you 
> generate it server-side)
> For example, see the note at 
> https://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/ui/FormPanel.html#FormPanel--
>  
> about server-side requirements.
>
> On Tuesday, October 11, 2022 at 4:17:27 PM UTC+2 
> system.out...@gmail.com wrote:
>
>> I managed to print results on client side. I use alerts to chek.
>> The list is received as it is, we have a method that will fill the 
>> grid with that list but somethiing is stopping it. It still print a 
>> loading 
>> spinner that never stops. 
>> The same code works well with gwt 2.4/gxt 2.2.5.
>> Now we are using gwt 2.8/gxt 2.2.5
>>
>> Le lundi 10 octobre 2022 à 21:04:58 UTC+2, system out a écrit :
>>
>>> I migtated gwt app from 2.4 to 2.8
>>> After fixing build erros the app launches and interfaces are 
>>> appearing.
>>> We have a excel file upload.
>>> When I click upload it is stuck on loading. A loading text appears 
>>> and result never shows up.
>>> There a method that takes data imported from excel and put fill some 
>>> objects with it.
>>> The data is well imported. The method that fill objects with it will 
>>> return the filled objects as a List. When I return an empty list it 
>>> works.
>>> Do you know if there's something that should be changed due to the 
>>> migration?
>>>
>>>

-- 
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/d05e05c1-2fdd-4ccd-bd43-ed45e040363dn%40googlegroups.com.


Re: File upload stuck on loading

2022-10-12 Thread Craig Mitchell
Correction:   

On Wednesday, 12 October 2022 at 9:59:13 pm UTC+11 Craig Mitchell wrote:

> I have no clue what your error is, but it's so much easier to read files 
> with HTML5 now.
>
> Something like this:
> -
> 
>
> @UiField InputElement fileInput;
>
> Event.sinkEvents(fileInput, Event.ONCHANGE);
> Event.setEventListener(fileInput, event -> handleFileUpload());
>
> private void handleFileUpload() {
> JavaScriptObject files = fileInput.getPropertyJSO("files");
> 
> if (files instanceof JsArray) {
> JsArray filesArray = 
> (JsArray)files;
> 
> if (filesArray.length() > 0) {
> handleFileUploadJS(filesArray.get(0),  fileData -> 
> handleAfterFileUpload(fileData));
> }
> }
> }
>
> private static native void handleFileUploadJS(JavaScriptObject fileData) 
> /*-{
> var fileReader = new FileReader();
> fileReader.addEventListener("load", function () {
> // Your file data will be in fileReader.result
> }, false);
> fileReader.readAsDataURL(fileData);
> }-*/;
> -
>
> No server code needed.  :)
>
> On Wednesday, 12 October 2022 at 9:24:41 pm UTC+11 system.out...@gmail.com 
> wrote:
>
>> For file upload we are using GXT FileUploadField.
>> for server we are using servlets that extends GWT RemoteServiceServlet
>> There's a UploadExcelHandler that on success send. a notification. It 
>> uses puremvc4gwt.
>> We have a handle notification that gets the received data and calles 
>> methods to update the grid and reload it 
>> ( please read my last message for the reload, I found the root cause but 
>> no solution is found yet)
>> Thanks
>> Le mercredi 12 octobre 2022 à 11:59:26 UTC+2, system out a écrit :
>>
>>> Yes we are using GXT 2.2.5 with GWT 2.8.1
>>> We have a custom Grid object created that has an EditoGrid, 
>>> PagingToolbar, ListStore, ColumnModel and many other properties like 
>>> height..
>>> I found that the problem is caused by the load method inside the 
>>> PagingLoader.
>>> we have this line: 
>>> grid.reconfigure(store, grid.getColumnModel())
>>> then the following line that causes the error:
>>> loader.load(config).
>>> config is a PagingLoadConfig
>>> I tried loader.load() and loader.load(0.50) and 
>>> grid.getStore().getLoader().load()
>>> but nothing seems to work.
>>>
>>> Le mardi 11 octobre 2022 à 18:57:04 UTC+2, t.br...@gmail.com a écrit :
>>>
 It would certainly help if you provided details on how you do the 
 upload (using GWT's own FormPanel and FileUpload? or a third-party 
 library? 
 GXT-specific widgets?) and how you handle the response (including how you 
 generate it server-side)
 For example, see the note at 
 https://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/ui/FormPanel.html#FormPanel--
  
 about server-side requirements.

 On Tuesday, October 11, 2022 at 4:17:27 PM UTC+2 
 system.out...@gmail.com wrote:

> I managed to print results on client side. I use alerts to chek.
> The list is received as it is, we have a method that will fill the 
> grid with that list but somethiing is stopping it. It still print a 
> loading 
> spinner that never stops. 
> The same code works well with gwt 2.4/gxt 2.2.5.
> Now we are using gwt 2.8/gxt 2.2.5
>
> Le lundi 10 octobre 2022 à 21:04:58 UTC+2, system out a écrit :
>
>> I migtated gwt app from 2.4 to 2.8
>> After fixing build erros the app launches and interfaces are 
>> appearing.
>> We have a excel file upload.
>> When I click upload it is stuck on loading. A loading text appears 
>> and result never shows up.
>> There a method that takes data imported from excel and put fill some 
>> objects with it.
>> The data is well imported. The method that fill objects with it will 
>> return the filled objects as a List. When I return an empty list it 
>> works.
>> Do you know if there's something that should be changed due to the 
>> migration?
>>
>>

-- 
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/0640afcb-2b0c-46f8-88b3-596a21297770n%40googlegroups.com.


Re: File upload stuck on loading

2022-10-12 Thread Craig Mitchell
I have no clue what your error is, but it's so much easier to read files 
with HTML5 now.

Something like this:
-


@UiField InputElement fileInput;

Event.sinkEvents(fileInput, Event.ONCHANGE);
Event.setEventListener(fileInput, event -> handleFileUpload());

private void handleFileUpload() {
JavaScriptObject files = fileInput.getPropertyJSO("files");

if (files instanceof JsArray) {
JsArray filesArray = 
(JsArray)files;

if (filesArray.length() > 0) {
handleFileUploadJS(filesArray.get(0),  fileData -> 
handleAfterFileUpload(fileData));
}
}
}

private static native void handleFileUploadJS(JavaScriptObject fileData) 
/*-{
var fileReader = new FileReader();
fileReader.addEventListener("load", function () {
// Your file data will be in fileReader.result
}, false);
fileReader.readAsDataURL(fileData);
}-*/;
-

No server code needed.  :)

On Wednesday, 12 October 2022 at 9:24:41 pm UTC+11 system.out...@gmail.com 
wrote:

> For file upload we are using GXT FileUploadField.
> for server we are using servlets that extends GWT RemoteServiceServlet
> There's a UploadExcelHandler that on success send. a notification. It uses 
> puremvc4gwt.
> We have a handle notification that gets the received data and calles 
> methods to update the grid and reload it 
> ( please read my last message for the reload, I found the root cause but 
> no solution is found yet)
> Thanks
> Le mercredi 12 octobre 2022 à 11:59:26 UTC+2, system out a écrit :
>
>> Yes we are using GXT 2.2.5 with GWT 2.8.1
>> We have a custom Grid object created that has an EditoGrid, 
>> PagingToolbar, ListStore, ColumnModel and many other properties like 
>> height..
>> I found that the problem is caused by the load method inside the 
>> PagingLoader.
>> we have this line: 
>> grid.reconfigure(store, grid.getColumnModel())
>> then the following line that causes the error:
>> loader.load(config).
>> config is a PagingLoadConfig
>> I tried loader.load() and loader.load(0.50) and 
>> grid.getStore().getLoader().load()
>> but nothing seems to work.
>>
>> Le mardi 11 octobre 2022 à 18:57:04 UTC+2, t.br...@gmail.com a écrit :
>>
>>> It would certainly help if you provided details on how you do the upload 
>>> (using GWT's own FormPanel and FileUpload? or a third-party library? 
>>> GXT-specific widgets?) and how you handle the response (including how you 
>>> generate it server-side)
>>> For example, see the note at 
>>> https://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/ui/FormPanel.html#FormPanel--
>>>  
>>> about server-side requirements.
>>>
>>> On Tuesday, October 11, 2022 at 4:17:27 PM UTC+2 system.out...@gmail.com 
>>> wrote:
>>>
 I managed to print results on client side. I use alerts to chek.
 The list is received as it is, we have a method that will fill the grid 
 with that list but somethiing is stopping it. It still print a loading 
 spinner that never stops. 
 The same code works well with gwt 2.4/gxt 2.2.5.
 Now we are using gwt 2.8/gxt 2.2.5

 Le lundi 10 octobre 2022 à 21:04:58 UTC+2, system out a écrit :

> I migtated gwt app from 2.4 to 2.8
> After fixing build erros the app launches and interfaces are appearing.
> We have a excel file upload.
> When I click upload it is stuck on loading. A loading text appears and 
> result never shows up.
> There a method that takes data imported from excel and put fill some 
> objects with it.
> The data is well imported. The method that fill objects with it will 
> return the filled objects as a List. When I return an empty list it works.
> Do you know if there's something that should be changed due to the 
> migration?
>
>

-- 
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/7987c8a0-8cf6-43d9-b5cb-b0ac9784d54bn%40googlegroups.com.


Re: File upload stuck on loading

2022-10-12 Thread system out
For file upload we are using GXT FileUploadField.
for server we are using servlets that extends GWT RemoteServiceServlet
There's a UploadExcelHandler that on success send. a notification. It uses 
puremvc4gwt.
We have a handle notification that gets the received data and calles 
methods to update the grid and reload it 
( please read my last message for the reload, I found the root cause but no 
solution is found yet)
Thanks
Le mercredi 12 octobre 2022 à 11:59:26 UTC+2, system out a écrit :

> Yes we are using GXT 2.2.5 with GWT 2.8.1
> We have a custom Grid object created that has an EditoGrid, PagingToolbar, 
> ListStore, ColumnModel and many other properties like height..
> I found that the problem is caused by the load method inside the 
> PagingLoader.
> we have this line: 
> grid.reconfigure(store, grid.getColumnModel())
> then the following line that causes the error:
> loader.load(config).
> config is a PagingLoadConfig
> I tried loader.load() and loader.load(0.50) and 
> grid.getStore().getLoader().load()
> but nothing seems to work.
>
> Le mardi 11 octobre 2022 à 18:57:04 UTC+2, t.br...@gmail.com a écrit :
>
>> It would certainly help if you provided details on how you do the upload 
>> (using GWT's own FormPanel and FileUpload? or a third-party library? 
>> GXT-specific widgets?) and how you handle the response (including how you 
>> generate it server-side)
>> For example, see the note at 
>> https://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/ui/FormPanel.html#FormPanel--
>>  
>> about server-side requirements.
>>
>> On Tuesday, October 11, 2022 at 4:17:27 PM UTC+2 system.out...@gmail.com 
>> wrote:
>>
>>> I managed to print results on client side. I use alerts to chek.
>>> The list is received as it is, we have a method that will fill the grid 
>>> with that list but somethiing is stopping it. It still print a loading 
>>> spinner that never stops. 
>>> The same code works well with gwt 2.4/gxt 2.2.5.
>>> Now we are using gwt 2.8/gxt 2.2.5
>>>
>>> Le lundi 10 octobre 2022 à 21:04:58 UTC+2, system out a écrit :
>>>
 I migtated gwt app from 2.4 to 2.8
 After fixing build erros the app launches and interfaces are appearing.
 We have a excel file upload.
 When I click upload it is stuck on loading. A loading text appears and 
 result never shows up.
 There a method that takes data imported from excel and put fill some 
 objects with it.
 The data is well imported. The method that fill objects with it will 
 return the filled objects as a List. When I return an empty list it works.
 Do you know if there's something that should be changed due to the 
 migration?



-- 
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/1159568c-753e-4562-a4c1-ea32e3fc9453n%40googlegroups.com.


Re: File upload stuck on loading

2022-10-12 Thread system out
Yes we are using GXT 2.2.5 with GWT 2.8.1
We have a custom Grid object created that has an EditoGrid, PagingToolbar, 
ListStore, ColumnModel and many other properties like height..
I found that the problem is caused by the load method inside the 
PagingLoader.
we have this line: 
grid.reconfigure(store, grid.getColumnModel())
then the following line that causes the error:
loader.load(config).
config is a PagingLoadConfig
I tried loader.load() and loader.load(0.50) and 
grid.getStore().getLoader().load()
but nothing seems to work.

Le mardi 11 octobre 2022 à 18:57:04 UTC+2, t.br...@gmail.com a écrit :

> It would certainly help if you provided details on how you do the upload 
> (using GWT's own FormPanel and FileUpload? or a third-party library? 
> GXT-specific widgets?) and how you handle the response (including how you 
> generate it server-side)
> For example, see the note at 
> https://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/ui/FormPanel.html#FormPanel--
>  
> about server-side requirements.
>
> On Tuesday, October 11, 2022 at 4:17:27 PM UTC+2 system.out...@gmail.com 
> wrote:
>
>> I managed to print results on client side. I use alerts to chek.
>> The list is received as it is, we have a method that will fill the grid 
>> with that list but somethiing is stopping it. It still print a loading 
>> spinner that never stops. 
>> The same code works well with gwt 2.4/gxt 2.2.5.
>> Now we are using gwt 2.8/gxt 2.2.5
>>
>> Le lundi 10 octobre 2022 à 21:04:58 UTC+2, system out a écrit :
>>
>>> I migtated gwt app from 2.4 to 2.8
>>> After fixing build erros the app launches and interfaces are appearing.
>>> We have a excel file upload.
>>> When I click upload it is stuck on loading. A loading text appears and 
>>> result never shows up.
>>> There a method that takes data imported from excel and put fill some 
>>> objects with it.
>>> The data is well imported. The method that fill objects with it will 
>>> return the filled objects as a List. When I return an empty list it works.
>>> Do you know if there's something that should be changed due to the 
>>> migration?
>>>
>>>

-- 
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/f7be6cb3-989a-4959-80b7-1b914aa34396n%40googlegroups.com.


Re: File upload stuck on loading

2022-10-11 Thread Thomas Broyer
It would certainly help if you provided details on how you do the upload 
(using GWT's own FormPanel and FileUpload? or a third-party library? 
GXT-specific widgets?) and how you handle the response (including how you 
generate it server-side)
For example, see the note 
at 
https://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/ui/FormPanel.html#FormPanel--
 
about server-side requirements.

On Tuesday, October 11, 2022 at 4:17:27 PM UTC+2 system.out...@gmail.com 
wrote:

> I managed to print results on client side. I use alerts to chek.
> The list is received as it is, we have a method that will fill the grid 
> with that list but somethiing is stopping it. It still print a loading 
> spinner that never stops. 
> The same code works well with gwt 2.4/gxt 2.2.5.
> Now we are using gwt 2.8/gxt 2.2.5
>
> Le lundi 10 octobre 2022 à 21:04:58 UTC+2, system out a écrit :
>
>> I migtated gwt app from 2.4 to 2.8
>> After fixing build erros the app launches and interfaces are appearing.
>> We have a excel file upload.
>> When I click upload it is stuck on loading. A loading text appears and 
>> result never shows up.
>> There a method that takes data imported from excel and put fill some 
>> objects with it.
>> The data is well imported. The method that fill objects with it will 
>> return the filled objects as a List. When I return an empty list it works.
>> Do you know if there's something that should be changed due to the 
>> migration?
>>
>>

-- 
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/42230b89-319d-4106-a9b5-e97913cdfa80n%40googlegroups.com.


Re: File upload stuck on loading

2022-10-11 Thread system out
I managed to print results on client side. I use alerts to chek.
The list is received as it is, we have a method that will fill the grid 
with that list but somethiing is stopping it. It still print a loading 
spinner that never stops. 
The same code works well with gwt 2.4/gxt 2.2.5.
Now we are using gwt 2.8/gxt 2.2.5

Le lundi 10 octobre 2022 à 21:04:58 UTC+2, system out a écrit :

> I migtated gwt app from 2.4 to 2.8
> After fixing build erros the app launches and interfaces are appearing.
> We have a excel file upload.
> When I click upload it is stuck on loading. A loading text appears and 
> result never shows up.
> There a method that takes data imported from excel and put fill some 
> objects with it.
> The data is well imported. The method that fill objects with it will 
> return the filled objects as a List. When I return an empty list it works.
> Do you know if there's something that should be changed due to the 
> migration?
>
>

-- 
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/68f2cb66-c5d4-4f40-b812-d7c8a4e5ac9cn%40googlegroups.com.


File upload stuck on loading

2022-10-10 Thread system out
I migtated gwt app from 2.4 to 2.8
After fixing build erros the app launches and interfaces are appearing.
We have a excel file upload.
When I click upload it is stuck on loading. A loading text appears and 
result never shows up.
There a method that takes data imported from excel and put fill some 
objects with it.
The data is well imported. The method that fill objects with it will return 
the filled objects as a List. When I return an empty list it works.
Do you know if there's something that should be changed due to the 
migration?

-- 
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/db52a511-e0b8-4315-ad6d-ed8b556d3190n%40googlegroups.com.