Hi,
In a schema, I have defined:
<xs:element name="htticketno" type="xs:int"/>
In our ecm-types-config.xml, I have:
<widget jsfcomponent="h:inputText"
schemaname="htticket" fieldname="htticketno"
label="label.htticket.htticketno"/>
The problem is that there is an exception (ClassCastException on
java.lang.String) thrown whenever I try to
create a document of the new type that includes this field. Change the
schema to xs:string and it works fine.
That <widget> format works for all our string fields, but not for int
fields. I've looked at the reference at doc.nuxeo.org, which talks
about an old and a new layout system. We are running 5.1.2.GA, which
apparently uses the old system. I tried the new system, but got no
display at all on the create document screen with it, so I guess we're
stuck with the old system.
How can I set up the old system to let us input Ints?
Or, how can I use the new system under 5.1.2.GA?
Thanks,
-- John
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm