Re: A new article about GWT and IndexedDB with well known Design Patterns

2020-10-30 Thread Lars
Simple remove all the website data (from medium), so cookies and local storage, 
and try again :-)

-- 
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/56981c23-9980-495f-8d70-b1f2951e287bo%40googlegroups.com.


Re: A new article about GWT and IndexedDB with well known Design Patterns

2020-10-29 Thread lofid...@gmail.com
That's wyrd, here is the direct link: 
https://lofidewanto.medium.com/using-indexeddb-on-web-browser-with-well-known-design-patterns-b338b4ab05a8

kool...@gmail.com schrieb am Donnerstag, 29. Oktober 2020 um 14:51:21 UTC+1:

> Not sure that leads anywhere. I'm interested in that article and followed 
> the trail. Medium asked me to login with my Google account or FB account. I 
> chose one, signed up and logged in but that article couldn't be found.
>
> On Wednesday, October 28, 2020 at 6:11:24 PM UTC-4 lofid...@gmail.com 
> wrote:
>
>> A new article about GWT and IndexedDB with known Design Patterns, enjoy 
>> reading: http://bit.ly/GwtIndexedDBDesignPatterns
>>
>> Enjoy reading, thanks.
>> 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/8a7c8de6-91be-4cd5-98f5-a0008dabee39n%40googlegroups.com.


Re: A new article about GWT and IndexedDB with well known Design Patterns

2020-10-29 Thread Thomas Broyer

On Wednesday, October 28, 2020 at 11:11:24 PM UTC+1, lofid...@gmail.com 
wrote:
>
> A new article about GWT and IndexedDB with known Design Patterns, enjoy 
> reading: http://bit.ly/GwtIndexedDBDesignPatterns


Shouldn't your repository be async? Maybe returning promises?
(fwiw, I use https://github.com/jakearchibald/idb in JS which makes 
IndexedDB much easier to use, particularly with async/await; but even 
without async/await, such as GWT, promises are great, with Promise.all() to 
easily do things in parallel and wait for all of them to finish)

-- 
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/125f2bbd-dc31-4408-9b53-de100d0f4bd9o%40googlegroups.com.


Re: A new article about GWT and IndexedDB with well known Design Patterns

2020-10-29 Thread Juan Pablo Gardella
Thanks Lofi!!

On Wed, 28 Oct 2020 at 19:11, lofid...@gmail.com 
wrote:

> A new article about GWT and IndexedDB with known Design Patterns, enjoy
> reading: http://bit.ly/GwtIndexedDBDesignPatterns
>
> Enjoy reading, thanks.
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-web-toolkit/7011834c-e30e-4c2a-aaa1-bbd7bee0a3ecn%40googlegroups.com
> <https://groups.google.com/d/msgid/google-web-toolkit/7011834c-e30e-4c2a-aaa1-bbd7bee0a3ecn%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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/CA%2BkiFseUtQqYC-xAVZkjt8Fwm6AS_4uq4obxCYxiOwC6Z9c3uA%40mail.gmail.com.


A new article about GWT and IndexedDB with well known Design Patterns

2020-10-28 Thread lofid...@gmail.com
A new article about GWT and IndexedDB with known Design Patterns, enjoy 
reading: http://bit.ly/GwtIndexedDBDesignPatterns

Enjoy reading, thanks.
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/7011834c-e30e-4c2a-aaa1-bbd7bee0a3ecn%40googlegroups.com.


New Article Elemental2 IndexedDB GWT

2020-09-15 Thread lofid...@gmail.com
Hi All,

as promised here is the new article about GWT Elemental2 and IndexedDB:  

*"Using IndexedDB in Web Browser — All in Java with Mrs. Gwitany and Dr. 
Jackl"  *
http://bit.ly/GWTJ2CLIndexedDB

Enjoy reading!
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/3dea3f8d-8001-438e-a80b-12f4aed0a9b6n%40googlegroups.com.


Re: elemental2 indexeddb example?

2019-01-28 Thread Thomas Broyer


On Monday, January 28, 2019 at 12:49:41 AM UTC+1, rhodebump wrote:
>
> Thanks, I did make some progress.   I dug around a little in the javadoc 
> and found the IndexedDbGlobal, which I was able to use to create a new 
> database.
>
>
> elemental2.indexeddb.IDBFactory indexedDB = 
> elemental2.indexeddb.IndexedDbGlobal.indexedDB;
>
> elemental2.indexeddb.IDBOpenDBRequest openDBRequest = indexedDB.open(
> "mydbtest", 1.0);
>
>
> So far so good.
>
>
> With a open database call, I get a returned object of 
> elemental2.indexeddb.IDBOpenDBRequest 
> (
> https://static.javadoc.io/com.google.elemental2/elemental2-indexeddb/1.0.0-RC1/elemental2/indexeddb/IDBOpenDBRequest.html
> )
>
>
>
> In the google documentation that I have found that describes the indexedDB 
> open operation, 
> https://developers.google.com/web/ilt/pwa/working-with-indexeddb#opening_a_database
>
>
> They provide the following code:
>
>   var dbPromise = idb.open('test-db2', 1, function(upgradeDb) {
> console.log('making a new object store');
> if (!upgradeDb.objectStoreNames.contains('firstOS')) {
>   upgradeDb.createObjectStore('firstOS');
> }
>   });
>
>
>
Note that this is using the IndexedDB Promised library, not the IndexedDB 
API 
(see 
https://developers.google.com/web/ilt/pwa/working-with-indexeddb#comparison_of_indexeddb_api_and_indexeddb_promised_library)
Fwiw, I'd rather 
use https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API as a 
reference.
 

> I want to register a function to execute when the database is upgraded.  I 
> see there is a openDBRequest.onupgradeneeded(), but I just can't the syntax 
> right.
>
>
> elemental2.indexeddb.IDBFactory indexedDB = 
> elemental2.indexeddb.IndexedDbGlobal.indexedDB;
>
> elemental2.indexeddb.IDBOpenDBRequest openDBRequest = indexedDB.open(
> "mydbtest", 1.0);
>
>
> //how to i call a function for upgrade?  I want to create some object 
> stores.
> openDBRequest. onupgradeneeded = doUpgrade();
>

That would be something like:

openDBRequest.onupgradeneeded = new OnupgradeneededFn() {
  @Override
  public Object onInvoke(IDBVersionChangeEvent event) {
doUpgrade();
return Js.undefined(); // that value will likely be ignored anyway
  }
};


or, using a lambda:

openDBRequest.onupgradeneeded = event -> {
  doUpgrade();
  return Js.undefined();
};

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: elemental2 indexeddb example?

2019-01-27 Thread rhodebump
Thanks, I did make some progress.   I dug around a little in the javadoc 
and found the IndexedDbGlobal, which I was able to use to create a new 
database.


elemental2.indexeddb.IDBFactory indexedDB = 
elemental2.indexeddb.IndexedDbGlobal.indexedDB;

elemental2.indexeddb.IDBOpenDBRequest openDBRequest = indexedDB.open(
"mydbtest", 1.0);


So far so good.


With a open database call, I get a returned object of 
elemental2.indexeddb.IDBOpenDBRequest 
(https://static.javadoc.io/com.google.elemental2/elemental2-indexeddb/1.0.0-RC1/elemental2/indexeddb/IDBOpenDBRequest.html)



In the google documentation that I have found that describes the indexedDB 
open 
operation, 
https://developers.google.com/web/ilt/pwa/working-with-indexeddb#opening_a_database


They provide the following code:

  var dbPromise = idb.open('test-db2', 1, function(upgradeDb) {
console.log('making a new object store');
if (!upgradeDb.objectStoreNames.contains('firstOS')) {
  upgradeDb.createObjectStore('firstOS');
}
  });


I want to register a function to execute when the database is upgraded.  I 
see there is a openDBRequest.onupgradeneeded(), but I just can't the syntax 
right.


elemental2.indexeddb.IDBFactory indexedDB = 
elemental2.indexeddb.IndexedDbGlobal.indexedDB;

elemental2.indexeddb.IDBOpenDBRequest openDBRequest = indexedDB.open(
"mydbtest", 1.0);


//how to i call a function for upgrade?  I want to create some object 
stores.
openDBRequest. onupgradeneeded = doUpgrade();

Thanks for your help.



On Sunday, January 27, 2019 at 5:48:37 AM UTC-5, Thomas Broyer wrote:
>
> Elemental2 API map directly to the native browser APIs, so you'll start 
> with IndexedDBGlobal.indexedDB and walk your way almost exactly like you'd 
> do in JS.
> Javadoc can be found here fwiw: 
> https://javadoc.io/doc/com.google.elemental2/elemental2-indexeddb/1.0.0-RC1
>
> On Sunday, January 27, 2019 at 5:57:44 AM UTC+1, rhodebump wrote:
>>
>>
>> I am interested in using indexeddb from within GWT.  I found the 
>> following library that indicates that it provides indexeddb support 
>> https://github.com/google/elemental2
>>
>>
>> Does anyone have an example of opening a database? 
>>
>>
>> *Thanks,*
>>
>> *Phillip*
>>
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: elemental2 indexeddb example?

2019-01-27 Thread Thomas Broyer
Elemental2 API map directly to the native browser APIs, so you'll start 
with IndexedDBGlobal.indexedDB and walk your way almost exactly like you'd 
do in JS.
Javadoc can be found here 
fwiw: 
https://javadoc.io/doc/com.google.elemental2/elemental2-indexeddb/1.0.0-RC1

On Sunday, January 27, 2019 at 5:57:44 AM UTC+1, rhodebump wrote:
>
>
> I am interested in using indexeddb from within GWT.  I found the following 
> library that indicates that it provides indexeddb support 
> https://github.com/google/elemental2
>
>
> Does anyone have an example of opening a database? 
>
>
> *Thanks,*
>
> *Phillip*
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


elemental2 indexeddb example?

2019-01-26 Thread rhodebump

I am interested in using indexeddb from within GWT.  I found the following 
library that indicates that it provides indexeddb support 
https://github.com/google/elemental2


Does anyone have an example of opening a database? 


*Thanks,*

*Phillip*



-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Can we use GWT code with IndexedDB to provide offline support in browsers

2013-08-26 Thread Michael Prentice
Have you looked at Elemental? 
http://www.gwtproject.org/articles/elemental.html

It is 'experimental' but it may be helpful for what you are doing. 

On Friday, August 23, 2013 3:35:50 AM UTC-4, NITIN PANDEY wrote:

 Hi,
 I have an issue is that I have to provide offline support using my GWT 
 code on browsers. Currently I have implemented it on google chrome via 
 WebSql. But Websql is not supported on firefox and IE so I need to migrate 
 by IndexedDB. Is there any library available for the same?? Please help


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Can we use GWT code with IndexedDB to provide offline support in browsers

2013-08-23 Thread NITIN PANDEY
Hi,
I have an issue is that I have to provide offline support using my GWT code 
on browsers. Currentl I have implemented it on google chrome via WebSql. 
But Websql is not supported on firefox and IE so I need to migrate by 
IndexedDB. Is there any library availible for the same?? Please help

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: IndexedDb

2012-10-24 Thread Manuel Carrasco Moñino
Have you try this http://code.google.com/p/indexeddb-gwt/wiki/HowTo ?


On Mon, Oct 22, 2012 at 10:56 PM, Twentyseven ebarthel...@gmail.com wrote:

 Hello,

 I did some test with local and session storage with GWT but it's very
 limited in size.
 I'd like to use IndexedDb but there's no native API implemented in GWT.
 I've saw Elemental in GWT 2.5 but it seems to be experimental.

 Is there a mature project that wrap the IndexedDb API in GWT ?

 Thank's

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/4E0k4LR_d2MJ.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



IndexedDb

2012-10-22 Thread Twentyseven
Hello,

I did some test with local and session storage with GWT but it's very 
limited in size.
I'd like to use IndexedDb but there's no native API implemented in GWT.
I've saw Elemental in GWT 2.5 but it seems to be experimental.

Is there a mature project that wrap the IndexedDb API in GWT ?

Thank's

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/4E0k4LR_d2MJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



JSNI Return Results from IndexedDB Get() call?

2011-05-10 Thread David E.
I'm trying to get a Java object back from an IndexedDB get() call via
a JSNI method. I can't figure it out, code is below, any help is
appreciated.

I think because this code is RPC in nature, i.e. it does a call and
you wait for the success or error  to come back that maybe has
something to do with it?

How do I get a useful java object back from this method? Thanks!

public native static void getItems() /*-{
var request = mozIndexedDB.open(MyDB);
request.onerror = function(event) {
$wnd.alert(There was an Error opening IndexedDB!);
};
request.onsuccess = function(event) {
var db = event.target.result;
var transaction = db.transaction([form],
IDBTransaction.READ_ONLY);
var request = transaction.objectStore(form).getAll();
request.onerror = function(event) {
$wnd.alert(error getAll object);
}
request.onsuccess = function(event) {
$wnd.alert(Success getAll);

var results = event.target.result;

for(var i=0; iresults.length; i++) {
console.log(success :  +
formId= + 
results[i].formId + ,  +
orgId= + 
results[i].orgId + ,  +
projectId= + 
results[i].projectId + ,  +
formName= + 
results[i].formName + ,  +
level_1= + 
results[i].level_1 + ,  +
level_2= + 
results[i].level_2 + ,  +
level_3= + 
results[i].level_3 + ,  +
level_4= + 
results[i].level_4 + ,  +
level_5= + 
results[i].level_5 + ,  +
form= + 
results[i].form + ,  +
createdBy= + 
results[i].createdBy + ,  +
createDate= + 
results[i].createDate + ,  +
lastSavedBy= + 
results[i].lastSavedBy + ,  +
lastSaved= + 
results[i].lastSaved);
}
}
}
}-*/;

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT indexedDB API

2011-05-09 Thread David E.
Is there going to be an indexedDB API for GWT anytime soon?

I went to :

http://code.google.com/p/gwt-indexeddb/

It looks like there is nothing there?

Are we supposed to role are own?

Thanks,
David

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.