well, good example. I havent reach that step yet. I can't even make my
jsf app goes offline available. I'm trying the offline with manifest
version example

{
  "betaManifestVersion": 1,
  "version": "v1.0",
  "entries": [
      { "url": "index.xhtml"},
      { "url": "offline.js"},
      { "url": "gears_init.js"}
    ]
}
so once I create the resource store, I turn my browser to work
offline, I refresh my xxx/index.jsf, it wont show.

On Sep 4, 4:34 am, Tac Tacelosky <[email protected]> wrote:
> This is pretty trivial with Gears as well.  Look at the database example on
> the Gears API (I think it's a reminder list).  Basically instead of
> submitting the form to a server, you set the onclick to execute a javascript
> function, which looks at the form variables and acts accordingly.  So the
> data never really gets POSTed, but rather read by the javascript and acted
> upon, as by definition, POSTs are always sent to a server (either as AJAX or
> a traditional 
> submit).http://code.google.com/apis/gears/samples/hello_world_database.html
>
> You'll need to download the example to get the HTML, but it's just a trivial
> form.  More details at:
>
> http://code.google.com/apis/gears/api_database.html#example
>
> Tac
>
> On Thu, Sep 3, 2009 at 6:12 AM, bruce lee <[email protected]> wrote:
>
> > I have the same doubt here! Is anyone got the answer? I would like to
> > offline my jsf (with spring framework) app. Possible?
>
> > On Sep 1, 2:32 pm, Sam Donaldson <[email protected]> wrote:
> > > Hi,
>
> > > I have a design problem, and it's possible I lack a clear
> > > understanding of gears' limitations.  Consider an example - I have a
> > > website with a few forms; a user enters some information, and after
> > > clicking save, the form data gets POSTed to a servlet and saved in a
> > > database.  This is quite trivial, but not so offline.  Offline, I'm
> > > able to capture all the necessarystaticfiles, but am unable to find
> > > a place to emulate the servlet logic after a user clicks 'Save'.  Is
> > > there an available hook to supply a callback in the manifest file?
> > > I'd like to capture the POST request, extract the form data, and save
> > > it to the local sqllite DB and then finally redirect, similar to the
> > > aforementioned online example.
>
> > > Thanks.

Reply via email to