Hi,
> Is it possible to use the parts without explicit partNames in code?
> I have a list and a tartget container which I would like to fill up with
> content depending on the selected list item.
> Every listItem has a model { part : "partName" }.
> I would like to achive that after list selection has been changed a
> funcition would find out the current partName which belongs to the current
> listItem. After that the target container's filler function would be wrapped
> around with partLoader like this:
>
> var partName = selectedListItem.getModel().partName;
> qx.io.PartLoader.require([partName], function()
> {
>      fillTargetSomehow();
> }, this);
>    
Part names are only defined in the config.json. So this should be possible.
> Now when I've run the generator it writes that the defined parts in
> config.json are "ignored in current configaration". I think it is because
> the part names doesn't show up explicitly in the source code.
>    
It looks more like a problem in your part definition. I can remember 
that the developer must be careful with using the same class in two 
includes (part's include key config.json). If you define a class 
explicit in one include the class in only in this part. But if you 
define it in tow parts -> the class is in no part. Please have a look at 
[1] and [2] it describes some background information about the part 
generation.

Cheers,
Chris

[1] http://qooxdoo.org/documentation/1.1/parts_using
[2] 
http://qooxdoo.org/documentation/1.0/tool/generator_config_articles#packages_key

------------------------------------------------------------------------------

_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to