small question: if you never enforce the pattern, then why define it at
all?
Ernst
Michiel Meeuwissen wrote:
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
|
_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers