Nico Klasens wrote:
>
> IMO previous version of mmbase were wrong about the String type. My
> option corrects this misconception and it still has the same
> functionality.
I propose:
<pattern enforce="never" value="\A[^\n\r]*\z" />
<specialization id="line">
<pattern enforce="always" value="\A[^\n\r]*\z" />
</specialization>
So, the default presentation of a String is than a line, but you may
enter newlines if you like.
The specialization 'line' then also enforces that.
Especially congruent with e.g. the 'guitype' of numbers, which used to be
'string' iirc. And indeed it makes very little sense to present a
text-area to enter those.
Michiel
--
Michiel Meeuwissen mihxil'
Peperbus 111 MediaPark H'sum [] ()
+31 (0)35 6772979 nl_NL eo_XX en_US
_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers