| << Back to previous view |
[MMB-1922] An enumeration of a node field can result in a very large and unusable pulldown Created: 2010-02-02 Updated: 2012-06-11 |
|
| Status: | Reopened |
| Project: | MMBase |
| Component/s: | DataTypes |
| Affects Version/s: | 1.9.2 |
| Fix Version/s: | 1.9.7 |
| Type: | Bug | Priority: | Major |
| Reporter: | André van Toly | Assignee: | Michiel Meeuwissen |
| Resolution: | Unresolved | Votes: | 0 |
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Like it is being used in streamsourcescaches.id field in the Streams application:
<datatype base="nodenumber" xmlns="http://www.mmbase.org/xmlns/datatypes"> <required value="true" enforce="never" /> <enumeration enforce="never"> <!-- enforcing is very bad for performance --> <query type="mediasources" xmlns="http://www.mmbase.org/xmlns/searchquery" /> </enumeration> </datatype> |
| Comments |
| Comment by Michiel Meeuwissen [ 2011-02-16 16:09 ] |
| Issue can be worked arround by installing mmbase-searchrelate. This will install a better handler for node-types. Namely a mm-sr:relatednodes instance. |
| Comment by Michiel Meeuwissen [ 2011-02-16 17:17 ] |
|
add
<context-param> <param-name>mmbase.taglib.max_enumhandler_length</param-name> <param-value>20</param-value> </context-param> to web.xml to apply a maximum length |
| Comment by André van Toly [ 2011-04-21 10:48 ] |
|
That does not solve it f.e. for parent in properties builder (core/src/main/config/builders/properties.xml). Which could list all nodes in mmbase.
<field name="parent"> <descriptions> <description xml:lang="en">Node to which the property was added</description> <description xml:lang="nl">Node waaraan de eigenschap of voorkeur is toegekend</description> </descriptions> <gui> <guiname xml:lang="en">Parent</guiname> <guiname xml:lang="nl">Ouder</guiname> </gui> <editor><positions><list>1</list></positions></editor> <datatype base="node" xmlns="http://www.mmbase.org/xmlns/datatypes"> <required value="true" /> </datatype> </field> |
| Comment by André van Toly [ 2012-06-11 22:54 ] |
| my_editors has an added feature to edit owner, but maybe still this needs to be fixed some other way. |