name property restrictions

Hi,

I’m trying to set the name property of an element to a string that contains dots (.) and colons (:), but this value is not accepted.

It seems there are restirctions to which characters can and can’t be used.

To my knowledge, for a Java perspective, dots and colons are allowed in a component’s name.

Can these restrictions be removed, or are they there for good reason?

Tnx in advance,

Paul

Just an idea: can you encode the ‘illegal’ characters in some way?
I’m sure javascript has some alternative way of writing characters which would otherwise upset the code…

Well, it’s possible, but then you have to take that into account everywhere you access the element’s name

As far as I know, the colon and dot’s are not illegal characters from a jav or javascript perspective. To me it seems it’s only a restriction Servoy has added, intentionally, or unintentionally.

Like I said, maybe there is a good reason for it that I’m missing…