Hi All,

I am trying to bind a given value from within an xml file to an selection 
list based on an enum datatype. Without data in the bound xml file, the 
list gets displayed nicely and is serialized allright. If however the file 
contains the same serialzed value, I allways get the following error:
java.lang.RuntimeException: Incorrect value type for "Status" (expected 
class f.q.n.Status, got class java.lang.String).
That also happens, if I try to load a serialized result from the 
form2simpleXML sample containing a value for "Preferred contact".

Am I doing anything wrong here? If so, can somebody point me into the 
right direction.

TIA, Jan


<snippet from xml>
        <Status>f.q.n.Status.STATUS_NEW</Status>
</snippet from xml>

<snippet from model>
        <fd:datatype base="enum">
                <fd:convertor type="enum">
                        <fd:enum>f.q.n.Status</fd:enum>
                </fd:convertor>
        </fd:datatype>
        <fd:selection-list type="enum" class="f.q.n.Status" />
</snippet from model>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to