04-20-2011 09:37 AM
04-20-2011 04:38 PM
I''ve just done this in the project i'm working on at the minute and can tell you that creating a date spinner field native java control certianly is possible. You have to do this by writing a widget extension through as it is not supported out of the box in the web works API... If you take a look at the UIExamples project (here) there is an example html code / css for replicating the native blackberry drop down combo style field... Their example shows a text spinner field to choose countries but you can tweak the supplied widget code (just uncompress the included jar file in the EXT folder) to display a date spinner picker field and some ok / cancel buttons... What that example is doing is displaying a native screen modal window infront of the webworks application and it works quite well.... A bit of faffing about i know but then again most things in webworks seem to turn out that way as i'm finding but you can nearly always get where you need to be.
Another tip would be to make sure you use their HTML5 tools (here) to emulate the HTML 5 DB access in the Blackberry OS 5 version of webworks if you plan to suport OS5 an OS6 as they are quite different.... OS 5 uses google gears as a database and doesn't implement HTML5, it run in a synchronous fashion and is a java based browser engine..... OS 6 is a webkit based browser, runs HTML 5, and operates asynchronously (this bit us in the bum and had to refactor more of less the whole app to get it working on OS6...). On OS6 you have to perform any lengthy operation asynchronously (and by lengthy i mean more than a few milliseconds) or the OS appears to swat your app down and kill it as having become unresponsive unless thats been sorted out in the latest webworks sdk release the other day...
04-20-2011 04:43 PM
>> My limited understanding the framework is that it provides a 'wrapper' around a browser window granted us some sort of hooks to some aspects of the native OS components.
>> What I'm specifically researching is what level of access we'd have. For instance, could we trigger a native date picker spinner from a button on our HTML page (I do know we could trigger it via an HTML 5 DATE field).
I would be very happy to learn what others have to say about comparing PhoneGap to WebWorks, especially those developers who have had experience using both products. From my perspective, they are both great SDKs that developers can use to turn Web content into native applications. However PhoneGap has a cross-platform story, while WebWorks is tuned specifically for BlackBerry.
Hope that answers some of your questions.