Hi Dietrich,
I've been following your thread. I'm not a qooxdoo developper, but i'm a bit
suprised you don't want to solve the *real problem*.
You went from an '*bad*' situation (a few seconds to load a tab) to an *
'unacceptable'* situation.
Why not just aim for *0.1 sec load time*?
Your current setup is not optimal because:
- you use memory for all kinds of widget on tabs that may never be viewed
at all
- you dispose and recreate the form for every record the user views.
Disposing takes time as well, and is much more prone to bugs.
- rendering isn't instantly for the user.
*Here's are three quick (say: 10 minute) solutions:*
- *There can only one record open at the same time and the application is
constantly running:*
Don't recreate the form-widgets whenever somebody selects a new record!
You can re-use the existing form! For example, by re-binding the model in
your controller to the model of other record.
You'll still have the 9 second delay, but it will happen just once.
But if you combine this approach, with the 'draw sub-form' on 'appear'
trick below, all delays will be gone.
- *You currently use a custom form renderer that creates a bunch of tabs:
*
Change this code in your customer form-renderer:
var vPage = new qx.ui.tabview.Page('TabTitle');
// adding a bunch of fields
vPage.add( the label );
vPage.add( the form-field );
To something like this:
var vPage = new qx.ui.tabview.Page('TabTitle');
vPage.addListenerOnce('appear', function(){
// adding a bunch of fields
this.add( the label );
this.add( the form-field );
}, vPage);
*You currently add several forms to all tabs individually*
Change this code in your customer form-renderer:
var vPage = new qx.ui.tabview.Page('TabTitle');
// adding a form
vPage.add( the form );
To something like this:
var vPage = new qx.ui.tabview.Page('TabTitle');
// adding a form
vPage.addListenerOnce( 'appear', function(){
this.add( the form );
}, vPage);
-- Greetings,
-- Ralf
2010/7/30 Dietrich Streifert <[email protected]>
>
>
> Am 30.07.2010 14:28, schrieb Derrell Lipman:
> > Dietrich, this seems to lend itself REALLY well to using the
> > Progressive loader. As soon as the first tab is rendered, the UI is
> > available to your users, and additional tabs can continue to render in
> > the background. Please see
> >
> http://demo.qooxdoo.org/devel/demobrowser/#progressive~ProgressiveLoader.html
> > <
> http://demo.qooxdoo.org/devel/demobrowser/#progressive%7EProgressiveLoader.html
> >
> >
> > In that example, I intentionally switch to the latest tab being
> > rendered, and render small portions of each tab in a batch, so that
> > the user can see the UI being rendered. In your case, you wouldn't
> > switch to the latest tab being rendered, and you'd probably include a
> > single tab's widgets in a single batch.
> >
> >
>
> Thank you for the hint Derrell.
>
> But I think my first option is to try to implement a lightweight
> checkbox and radiobox which should resolve two issues:
>
> 1. reduce the number of created dom elements from 7 to 3 per instance (1
> container div, 1 input and 1 label)
> 2. give the classic look of checkboxes and radiobuttons back
>
> But I've not made a decision yet.
>
> --
> Mit freundlichen Grüßen
> Dietrich Streifert
> --
> Visionet GmbH
> Firmensitz: Am Weichselgarten 7, 91058 Erlangen
> Registergericht: Handelsregister Fürth, HRB 6573
> Geschäftsführer: Stefan Lindner
>
>
>
>
>
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://p.sf.net/sfu/dev2dev-palm
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel