Ted Vinke wrote: > In one of my builder I've defined a 'visible'-field as an integer in a > certain builder, where 1 = yes and 0 is no. In the editwizard I can > present the user a nice dropdownbox with > > <lists> > <optionlist name="truefalse"> > <option id="1">True</option> > <option id="0">False</option> > </optionlist> > </lists> > > When I pas this field along to list.jsp it shows the rwal values of that > field, such as 0 or 1. > > Is it possible to have 1 and 0 substituted by 'Yes' and 'No' when I > present a list of this builder? > > I do not prefer to create a YesNo builder and make my 'visible'-field a > NODE field and refer to that builder. > > I'm using MMBase 1.7.3
The logical way would be to define a resource-bundle and specify it in the guitype of the field in the builder. But I'm not entirely sure that this is actually used in the gui-presentation of the field, and if this gui-presentation is actually used in list.jsp. It's a sad thing that these kind of things cannot be defined centrally. One of the goals of the field-types project... Michiel -- Michiel Meeuwissen mihxil' Mediacentrum 140 H'sum [] () +31 (0)35 6772979 nl_NL eo_XX en_US _______________________________________________ Developers mailing list [email protected] http://lists.mmbase.org/mailman/listinfo/developers
