Hi,

Discussion list for developers <[email protected]> on Saturday,
July 23, 2005 at 9:12 AM +0100 wrote:
>The originalValue is the fieldValue when the node was loaded into the
>editwizard. The mmbaseValue is the fieldValue at the time this piece of
>code is executed.
>I see two ways it can go wrong. I haven't checked the rest of the code
>so I don't know which one it is.
>1. mmbaseValue = null and originalValue = "". Maybe the code converts a
>null somewhere to a "" value?
>2. If the Strings are one character (eg a \n) different from eachother.
>The node.getStringValue() calls a Processor when that is defined for a
>guitype. The getStringValue() does also call the get-methods in a
>Builder class file. I guess, there is a small change that the
>getStringValue() returns 2 different Strings and the equals will fail.
>Or the String changed by writing and reading it from a dom document in
>the editwizard.
hmm could it be related to the editwizard bug which creates a "<br>" for
empty fields? Just a wild guess...
>
>What is the guitype in the builder for the field linktext? Does the
>builder have a custom class? How does your wizard definition look like?

It's a string, the full definition is:
<type state="persistent" size="255" notnull="false"
key="false">STRING</type>
(so to answer Michiels question, no it's not "not null")
It doesn't have a custom class (there aren't any in this setup at all)

the annoying thing is that the problem goes away when mmbase is restarted,
so I can't investigate it further right now.
if I knew how to reproduce it, we probably would be closer to finding the
cause :)

anyway thanks for your help so far.

Ricardo.

--------------------------------------------
Ricardo Kustner
IC&S B.V.

Stadhouderslaan 57
3583 JD Utrecht
The Netherlands
http://www.ic-s.nl

T: +31 30 6355730
F: +31 30 6355731 

PGP-key: http://www.ic-s.nl/keys/ricardo.txt

_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers

Reply via email to