Ops. Should be in included in the list before the if.
On Fri, Nov 12, 2010 at 8:50 AM, panyasan <[email protected]> wrote:
>
> Hi,
>
>
> Krycek wrote:
> >
> > I can add that, but maybe with the following change:
> >
> > addToken : function( itemModelData, selected )
> > {
> > var item = new qx.ui.form.ListItem( itemModelData.label );
> > item.setModel( qx.data.marshal.Json.createModel( itemModelData ) );
> > if (selected)
> > {
> > this._selectItem( item );
> > }
> > }
> >
>
> Hm, but what would be the use of the method if selected = false? Then an
> item is created, but immediately goes out of scope, with no change to the
> widget.
>
> Maybe we should continue the detailed discussion in a new bug? It seems to
> me that the matter deserves a better solution than my extension hack... ;-)
>
> Christian
>
> --
> View this message in context:
> http://qooxdoo.678.n2.nabble.com/Prepopulating-a-TokenField-widget-tp5724596p5731874.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Centralized Desktop Delivery: Dell and VMware Reference Architecture
> Simplifying enterprise desktop deployment and management using
> Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
> client virtualization framework. Read more!
> http://p.sf.net/sfu/dell-eql-dev2dev
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel